Skip to content

Commit

Permalink
Add blank lines between messages for readability
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Sheen <roger@infotexture.net>
  • Loading branch information
infotexture committed Sep 29, 2023
1 parent 97a8787 commit 6f31d4d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/main/config/messages_template.xml
Expand Up @@ -38,18 +38,22 @@ See the accompanying LICENSE file for applicable license.
<reason>Argument "%1" is deprecated.</reason>
<response>This argument is no longer supported in the toolkit.</response>
</message>

<message id="DOTA012W" type="WARN">
<reason>Argument "%1" is deprecated.</reason>
<response>Please use the argument "%2" instead.</response>
</message>

<message id="DOTA013F" type="FATAL">
<reason>Cannot find the specified DITAVAL '%1'.</reason>
<response></response>
</message>

<message id="DOTA014W" type="WARN">
<reason>Attribute @%1 is deprecated.</reason>
<response>Use attribute @%2 instead.</response>
</message>

<message id="DOTA015F" type="FATAL">
<reason>Internal property %1 may not be set directly.</reason>
<response>Use property %2 instead.</response>
Expand Down Expand Up @@ -838,7 +842,6 @@ See the accompanying LICENSE file for applicable license.
<response>Rewriting resolved version to '%2'.</response>
</message>


<!-- End of XSL Messages -->

<!-- Add any messages defined by plugins. -->
Expand Down
27 changes: 24 additions & 3 deletions src/main/plugins/org.dita.pdf2/resource/messages.xml
Expand Up @@ -7,82 +7,103 @@ Copyright 2011 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
<messages>
<!-- Ant -->

<!-- Start of Ant Messages -->
<message id="DOTA066F" type="FATAL">
<reason>Cannot find the user specified XSLT stylesheet '%1'.</reason>
<response></response>
</message>
<!-- Java -->

<!-- Start of Java Messages -->

<message id="PDFJ001E" type="ERROR">
<reason>The PDF indexing process could not find the proper sort location for '%1', so the term has been dropped from the index.</reason>
<response/>
</message>

<message id="PDFJ002E" type="ERROR">
<reason>The build failed due to problems encountered when sorting the PDF index.</reason>
<response>Please address any messages located earlier in the log.</response>
</message>

<message id="PDFJ003I" type="INFO">
<reason>Index entry '%1' will be sorted under the "Special characters" heading.</reason>
<response/>
</message>

<!-- DOTA067W and DOTA068W actually come from Java code inside the PDF plug-in.
DOTA prefix is innacurate. No reason to change at this point. -->
<message id="DOTA067W" type="WARN">
<reason>Ignoring index-see '%1' inside parent index entry '%2' because the parent indexterm contains indexterm children.</reason>
<response></response>
</message>

<message id="DOTA068W" type="WARN">
<reason>Ignoring index-see-also '%1' inside parent index entry '%2' because the parent indexterm contains indexterm children.</reason>
<response></response>
</message>
<!-- XSLT -->

<!-- Start of XSL Messages -->

<message id="PDFX001W" type="WARN">
<reason>There is an index term specified with start="%1", but there is no matching end for this term.</reason>
<response>Add an index term in a valid location with end="%1".</response>
</message>

<message id="PDFX002W" type="WARN">
<reason>There are multiple index terms specified with start="%1", but there is only one term to end this range, or the ranges for this term overlap.</reason>
<response>Ensure that each term with this start value has a matching end value, and that the specified ranges for this value do not overlap</response>
</message>

<message id="PDFX003W" type="WARN">
<reason>There are multiple index entries found to close the index range for "%1".</reason>
<response>Ensure that any index term with start="%1" has only one matching end term with end="%1".</response>
</message>

<message id="PDFX004F" type="ERROR">
<reason>A topic reference was found with href="".</reason>
<response>Please specify a target or remove the href attribute.</response>
</message>

<message id="PDFX005F" type="ERROR">
<reason>The topic reference href="%1" could not be found.</reason>
<response>Please correct the reference, or set the scope or format attribute if the target is not a local DITA topic.</response>
</message>

<!-- PDFX006E cannot appear with version 2.2; commenting out. Should be removed when it is removed from the code.
<message id="PDFX006E" type="ERROR">
<reason>Number of columns must be specified.</reason>
<response/>
</message>-->

<message id="PDFX007W" type="WARN">
<reason>Found an index term with end="%1", but no starting term was found for this entry.</reason>
<response/>
</message>

<message id="PDFX008W" type="WARN">
<reason>Font definition not found for the logical name or alias '%1'.</reason>
<response/>
</message>

<message id="PDFX009E" type="ERROR">
<reason>Attribute set reflection cannot handle XSLT element %1.</reason>
<response/>
</message>

<message id="PDFX011E" type="ERROR">
<reason>The index term '%2' uses both an index-see element and %1 element.</reason>
<response>Convert the index-see element to index-see-also.</response>
</message>

<message id="PDFX012E" type="ERROR">
<reason>Found a table row with more entries than allowed.</reason>
<response/>
</message>

<message id="PDFX013F" type="FATAL">
<reason>The PDF file '%1' could not be generated.</reason>
<response/>
</message>

</messages>
6 changes: 6 additions & 0 deletions src/main/plugins/org.dita.xhtml/resource/messages.xml
Expand Up @@ -7,24 +7,30 @@ Copyright 2014 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
<messages>

<message id="DOTA006W" type="WARN">
<reason>Absolute paths on the local file system are not supported for the CSSPATH parameter.</reason>
<response>Please use a relative path or full URI instead.</response>
</message>

<message id="DOTA007E" type="ERROR">
<reason>Cannot find the running-footer file "%1".</reason>
<response>Please double check the value to ensure it is specified correctly.</response>
</message>

<message id="DOTA008E" type="ERROR">
<reason>Cannot find the running-header file "%1".</reason>
<response>Please double check the value to ensure it is specified correctly.</response>
</message>

<message id="DOTA009E" type="ERROR">
<reason>Cannot find the specified heading file "%1".</reason>
<response>Please double check the value to ensure it is specified correctly.</response>
</message>

<message id="DOTA069W" type="WARN">
<reason>Target "%1" is deprecated.</reason>
<response>Remove references to this target from your custom XSLT or plug-ins.</response>
</message>

</messages>

0 comments on commit 6f31d4d

Please sign in to comment.