diff --git a/console/tidy.c b/console/tidy.c index 0d6179b..d340c86 100755 --- a/console/tidy.c +++ b/console/tidy.c @@ -576,6 +576,12 @@ static void GetOption(TidyDoc tdoc, /**< The tidy document. */ d->vals = "tagX, tagY, ..."; d->def = NULL; break; + + case TidyPriorityAttributes: + d->type = "Attributes Names"; + d->vals = "attributeX, attributeY, ..."; + d->def = NULL; + break; case TidyCharEncoding: case TidyInCharEncoding: diff --git a/include/tidy.h b/include/tidy.h index 29ccc09..3b5762a 100644 --- a/include/tidy.h +++ b/include/tidy.h @@ -925,7 +925,7 @@ TIDY_EXPORT TidyIterator TIDY_CALL tidyOptGetDocLinksList(TidyDoc tdoc, /**< T /** Given a valid TidyIterator initiated with tidyOptGetDocLinksList(), returns ** a TidyOption instance. - ** @result Returns in instane of TidyOption. + ** @result Returns in instance of TidyOption. */ TIDY_EXPORT TidyOption TIDY_CALL tidyOptGetNextDocLinks(TidyDoc tdoc, /**< The tidy document to query. */ TidyIterator* pos /**< The TidyIterator (initiated with tidyOptGetDocLinksList()) token. */ diff --git a/localize/translations/tidy.pot b/localize/translations/tidy.pot index 27a3879..3a5c734 100644 --- a/localize/translations/tidy.pot +++ b/localize/translations/tidy.pot @@ -5,7 +5,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: HTML Tidy poconvert.rb\n" "Project-Id-Version: \n" -"POT-Creation-Date: 2017-09-19 14:00:03\n" +"POT-Creation-Date: 2017-09-23 07:53:22\n" "Last-Translator: jderry\n" "Language-Team: \n" @@ -1055,6 +1055,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 #.
. @@ -1226,6 +1244,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: @@ -2329,6 +2351,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 ';'" diff --git a/src/language_en.h b/src/language_en.h index 82a9d99..18db40c 100755 --- a/src/language_en.h +++ b/src/language_en.h @@ -1172,6 +1172,10 @@ static languageDefinition language_en = { whichPluralForm_en, { "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. " }, {/* Important notes for translators: - Use only , , , , and diff --git a/src/message.c b/src/message.c index 7debb33..409f571 100755 --- a/src/message.c +++ b/src/message.c @@ -1424,6 +1424,7 @@ static const TidyOptionId TidyNumEntitiesLinks[] = { TidyDoctype, TidyPreser static const TidyOptionId TidyOutCharEncodingLinks[] = { TidyCharEncoding, TidyUnknownOption }; static const TidyOptionId TidyOutFileLinks[] = { TidyErrFile, TidyUnknownOption }; static const TidyOptionId TidyPreTagsLinks[] = { TidyBlockTags, TidyEmptyTags, TidyInlineTags, TidyUseCustomTags, TidyUnknownOption }; +static const TidyOptionId TidySortAttributesLinks[] = { TidyPriorityAttributes, TidyUnknownOption }; static const TidyOptionId TidyUseCustomTagsLinks[] = { TidyBlockTags, TidyEmptyTags, TidyInlineTags, TidyPreTags, TidyUnknownOption }; static const TidyOptionId TidyWrapAttValsLinks[] = { TidyWrapScriptlets, TidyLiteralAttribs, TidyUnknownOption }; static const TidyOptionId TidyWrapScriptletsLinks[] = { TidyWrapAttVals, TidyUnknownOption }; @@ -1451,6 +1452,7 @@ static const TidyOptionDoc docs_xrefs[] = { TidyOutCharEncoding, TidyOutCharEncodingLinks }, { TidyOutFile, TidyOutFileLinks }, { TidyPreTags, TidyPreTagsLinks }, + { TidySortAttributes, TidySortAttributesLinks }, { TidyUseCustomTags, TidyUseCustomTagsLinks }, { TidyWrapAttVals, TidyWrapAttValsLinks }, { TidyWrapScriptlets, TidyWrapScriptletsLinks },