]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Clarify constraints for PO files.
authorBruno Haible <bruno@clisp.org>
Sun, 3 Jul 2022 09:15:39 +0000 (11:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 3 Jul 2022 09:15:39 +0000 (11:15 +0200)
Reported by Gábor Hojtsy <gabor.hojtsy@gmail.com> in
<https://savannah.gnu.org/bugs/?62677>.

* gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement.

gettext-tools/doc/gettext.texi

index 531c73b53a521cc684200c5bb52a179cbf2fbbab..2d17df602878a713a1b9aba23c2770ac7099030e 100644 (file)
@@ -1874,6 +1874,11 @@ this comment is most likely generated and managed by specialized GNU
 tools, and might disappear or be replaced unexpectedly when the PO
 file is given to @code{msgmerge}.
 
+For a PO file to be valid, no two entries without @code{msgctxt} may have
+the same @var{untranslated-string} or @var{untranslated-string-singular}.
+Similarly, no two entries may have the same @code{msgctxt} and the same
+@var{untranslated-string} or @var{untranslated-string-singular}.
+
 @node Sources
 @chapter Preparing Program Sources
 @cindex preparing programs for translation