From 2758939406b76245eb6ee6008f3a573016ffe5cc Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Tue, 3 Oct 2017 12:26:38 -0400 Subject: [PATCH] Removed SUPPORT_UTF16_ENCODINGS, and regen'd strings. --- CMakeLists.txt | 1 - console/tidy.c | 5 +- include/tidyenum.h | 7 - include/tidyplatform.h | 5 - localize/translations/language_en_gb.po | 197 ++++++++++++++++++---- localize/translations/language_es.po | 197 ++++++++++++++++++---- localize/translations/language_es_mx.po | 197 ++++++++++++++++++---- localize/translations/language_fr.po | 199 ++++++++++++++++++---- localize/translations/language_pt_br.po | 214 ++++++++++++++++++++---- localize/translations/language_zh_cn.po | 197 ++++++++++++++++++---- localize/translations/tidy.pot | 2 +- src/config.c | 13 +- src/language_en.h | 2 - src/language_en_gb.h | 2 +- src/language_es.h | 2 +- src/language_es_mx.h | 2 +- src/language_fr.h | 8 +- src/language_pt_br.h | 4 - src/language_zh_cn.h | 2 +- src/message.c | 4 - src/pprint.c | 4 - src/streamio.c | 14 -- src/streamio.h | 5 - src/tidylib.c | 4 - 24 files changed, 1033 insertions(+), 254 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cee9e1..509372c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,7 +228,6 @@ endif () # Macro Values # These additional macros are set in Tidy's source code. #------------------------------------------------------------------------ -add_definitions ( -DSUPPORT_UTF16_ENCODINGS=1 ) add_definitions ( -DSUPPORT_ASIAN_ENCODINGS=1 ) add_definitions ( -DSUPPORT_ACCESSIBILITY_CHECKS=1 ) add_definitions ( -DLIBTIDY_VERSION="${LIBTIDY_VERSION}" ) diff --git a/console/tidy.c b/console/tidy.c index 4e2fdc3..846b0ac 100644 --- a/console/tidy.c +++ b/console/tidy.c @@ -376,11 +376,9 @@ static const CmdOptDesc cmdopt_defs[] = { { CmdOptCharEnc, "-mac", TC_OPT_MAC, 0, NULL }, { CmdOptCharEnc, "-win1252", TC_OPT_WIN1252, 0, NULL }, { CmdOptCharEnc, "-ibm858", TC_OPT_IBM858, 0, NULL }, -#if SUPPORT_UTF16_ENCODINGS { CmdOptCharEnc, "-utf16le", TC_OPT_UTF16LE, 0, NULL }, { CmdOptCharEnc, "-utf16be", TC_OPT_UTF16BE, 0, NULL }, { CmdOptCharEnc, "-utf16", TC_OPT_UTF16, 0, NULL }, -#endif #if SUPPORT_ASIAN_ENCODINGS /* #431953 - RJ */ { CmdOptCharEnc, "-big5", TC_OPT_BIG5, 0, NULL }, { CmdOptCharEnc, "-shiftjis", TC_OPT_SHIFTJIS, 0, NULL }, @@ -2144,11 +2142,10 @@ int main( int argc, char** argv ) #ifndef NO_NATIVE_ISO2022_SUPPORT strcasecmp(arg, "iso2022") == 0 || #endif -#if SUPPORT_UTF16_ENCODINGS strcasecmp(arg, "utf16le") == 0 || strcasecmp(arg, "utf16be") == 0 || strcasecmp(arg, "utf16") == 0 || -#endif + #if SUPPORT_ASIAN_ENCODINGS strcasecmp(arg, "shiftjis") == 0 || strcasecmp(arg, "big5") == 0 || diff --git a/include/tidyenum.h b/include/tidyenum.h index d47983f..5e50aa9 100644 --- a/include/tidyenum.h +++ b/include/tidyenum.h @@ -613,11 +613,7 @@ typedef enum TidyOmitOptionalTags, /**< Suppress optional start tags and end tags */ TidyOutCharEncoding, /**< Output character encoding (if different) */ TidyOutFile, /**< File name to write markup to */ -#if SUPPORT_UTF16_ENCODINGS TidyOutputBOM, /**< Output a Byte Order Mark (BOM) for UTF-16 encodings */ -#else - TidyOutputBOMNotUsed, /**< This option is not compiled in */ -#endif TidyPPrintTabs, /**< Indent using tabs istead of spaces */ TidyPreserveEntities, /**< Preserve entities */ TidyPreTags, /**< Declared pre tags */ @@ -756,12 +752,9 @@ typedef enum TidyEncMac, TidyEncWin1252, TidyEncIbm858, - -#if SUPPORT_UTF16_ENCODINGS TidyEncUtf16le, TidyEncUtf16be, TidyEncUtf16, -#endif #if SUPPORT_ASIAN_ENCODINGS TidyEncBig5, diff --git a/include/tidyplatform.h b/include/tidyplatform.h index 3006de4..3bd6f13 100644 --- a/include/tidyplatform.h +++ b/include/tidyplatform.h @@ -82,11 +82,6 @@ extern "C" { # define SUPPORT_ASIAN_ENCODINGS 1 #endif -/* Enable/disable support for UTF-16 character encodings */ -#ifndef SUPPORT_UTF16_ENCODINGS -# define SUPPORT_UTF16_ENCODINGS 1 -#endif - /* Enable/disable support for additional accessibility checks */ #ifndef SUPPORT_ACCESSIBILITY_CHECKS # define SUPPORT_ACCESSIBILITY_CHECKS 1 diff --git a/localize/translations/language_en_gb.po b/localize/translations/language_en_gb.po index f056517..1ec3602 100644 --- a/localize/translations/language_en_gb.po +++ b/localize/translations/language_en_gb.po @@ -5,7 +5,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: HTML Tidy poconvert.rb\n" "Project-Id-Version: \n" -"PO-Revision-Date: 2017-09-19 14:00:03\n" +"PO-Revision-Date: 2017-10-03 12:22:47\n" "Last-Translator: jderry\n" "Language-Team: \n" @@ -257,7 +257,8 @@ msgid "" "<!DOCTYPE html>." "
" "If set to auto (the default) Tidy will use an educated guess " -"based upon the contents of the document." +"based upon the contents of the document. Note that selecting this option " +"will not change the current document's DOCTYPE on output. " "
" "If set to strict, Tidy will set the DOCTYPE to the HTML4 or " "XHTML1 strict DTD." @@ -472,10 +473,14 @@ msgid "" "This option specifies if Tidy should replace unexpected hyphens with " "= characters when it comes across adjacent hyphens. " "
" -"The default is yes. " +"The default is auto will which will act as no " +"for HTML5 document types, and yes for all other document " +"types. " "
" -"This option is provided for users of Cold Fusion which uses the " -"comment syntax: <!--- --->. " +"HTML has abandonded SGML comment syntax, and allows adjacent hypens " +"for all versions of HTML, although XML and XHTML do not. If you plan " +"to support older browsers that require SGML comment syntax, then " +"consider setting this value to yes." msgstr "" #. Important notes for translators: @@ -1094,6 +1099,24 @@ msgid "" "This option is ignored in XML mode. " msgstr "" +#. Important notes for translators: +#. - Use only , , , , and +#.
. +#. - Entities, tags, attributes, etc., should be enclosed in . +#. - Option values should be enclosed in . +#. - It's very important that
be self-closing! +#. - The strings "Tidy" and "HTML Tidy" are the program name and must not +#. be translated. +msgctxt "TidyPriorityAttributes" +msgid "" +"This option allows prioritizing the writing of attributes in tidied " +"documents, allowing them to written before the other attributes of an " +"element. For example, you might specify that id and " +"name are written before every other attribute. " +"
" +"This option takes a space or comma separated list of attribute names. " +msgstr "" + #. Important notes for translators: #. - Use only , , , , and #.
. @@ -1268,6 +1291,10 @@ msgid "" "This option specifies that Tidy should sort attributes within an element " "using the specified sort algorithm. If set to alpha, the " "algorithm is an ascending alphabetic sort. " +"
" +"When used while sorting with priority-attributes, any " +"attribute sorting will take place after the priority attributes have " +"been output. " msgstr "" #. Important notes for translators: @@ -2010,6 +2037,15 @@ msgid "" "include an alternative layout inside a NOFRAMES element.\n" msgstr "" +#. This console output should be limited to 78 characters per line. +msgctxt "FOOTNOTE_TRIM_EMPTY_ELEMENT" +msgid "" +"One or more empty elements were present in the source document but\n" +"dropped on output. If these elements are necessary or you don't want\n" +"this behavior, then consider setting the option \"drop-empty-elements\"\n" +"to no.\n" +msgstr "" + #. This console output should be limited to 78 characters per line. #. - The URL should not be translated unless you find a matching URL in your language. msgctxt "TEXT_ACCESS_ADVICE1" @@ -2343,7 +2379,19 @@ msgid "%s joining values of repeated attribute \"%s\"" msgstr "" msgctxt "MALFORMED_COMMENT" -msgid "adjacent hyphens within comment" +msgid "tidy replaced adjacent \"-\" with \"=\"" +msgstr "" + +msgctxt "MALFORMED_COMMENT_DROPPING" +msgid "dropping a possible comment due to a missing hyphen" +msgstr "" + +msgctxt "MALFORMED_COMMENT_EOS" +msgid "the end of the document was reached before the end of the comment" +msgstr "" + +msgctxt "MALFORMED_COMMENT_WARN" +msgid "detected adjacent hyphens within the comment; consider fix-bad-comments" msgstr "" msgctxt "MALFORMED_DOCTYPE" @@ -2384,6 +2432,11 @@ msgctxt "MISSING_ENDTAG_FOR" msgid "missing " msgstr "" +#, c-format +msgctxt "MISSING_ENDTAG_OPTIONAL" +msgid "missing optional end tag " +msgstr "" + #, c-format msgctxt "MISSING_IMAGEMAP" msgid "%s should use client-side image map" @@ -2394,6 +2447,11 @@ msgctxt "MISSING_QUOTEMARK" msgid "%s attribute with missing trailing quote mark" msgstr "" +#, c-format +msgctxt "MISSING_QUOTEMARK_OPEN" +msgid "value for attribute \"%s\" missing quote marks" +msgstr "" + #, c-format msgctxt "MISSING_SEMICOLON_NCR" msgid "numeric character reference \"%s\" doesn't end in ';'" @@ -2501,7 +2559,7 @@ msgid "unknown option: %s" msgstr "" msgctxt "SUSPECTED_MISSING_QUOTE" -msgid "missing quote mark for attribute value" +msgid "suspected missing quote mark for attribute value" msgstr "" #, c-format @@ -3162,6 +3220,10 @@ msgctxt "TC_OPT_HELPCFG" msgid "list all configuration options" msgstr "" +msgctxt "TC_OPT_HELPENV" +msgid "show information about the environment and runtime configuration" +msgstr "" + msgctxt "TC_OPT_HELPOPT" msgid "show a description of the