Skip to content

Commit 5614457

Browse files
author
André L F S Bacci
committed
Document and complement XInclude failures as warnings on translations
1 parent b84b0f4 commit 5614457

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

configure.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,8 @@ function getFileModificationHistory(): array {
816816

817817
if ( $ac['LANG'] != 'en' )
818818
{
819-
// XInclude failures are soft erros on translations, so replace
820-
// residual XInclude tags on translations to keep then building.
819+
// XInclude failures are soft errors on translations, so remove
820+
// residual XInclude tags on translations to keep them building.
821821

822822
$explain = false;
823823

@@ -844,7 +844,7 @@ function getFileModificationHistory(): array {
844844
// $fixup = "<varlistentry><term>></term><listitem><simpara></simpara></listitem></varlistentry>";
845845
// break;
846846
default:
847-
echo "Unknown parent element at XInclude failure: $tagName\n";
847+
echo "Unknown parent element of failed XInclude: $tagName\n";
848848
$explain = true;
849849
continue 2;
850850
}
@@ -863,8 +863,9 @@ function getFileModificationHistory(): array {
863863
echo <<<MSG
864864
\nIf you are seeing this message on a translation, this means that
865865
XInclude/XPointers failures reported above are so many or unknown,
866-
so that configure.php cannot patch the translated manual in a consistent
867-
state. Please report this issue on the doc-base repository.\n\n
866+
that configure.php cannot patch the translated manual into a validating
867+
state. Please report any "Unknown parent" messages on the doc-base
868+
repository, and focus on fixing XInclude/XPointers failures above.\n\n
868869
MSG;
869870
exit(-1); // stop here, do not let more messages further confuse the matter
870871
}

0 commit comments

Comments
 (0)