]> 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, 9 Oct 2022 07:30:42 +0000 (09:30 +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 583573e4bd2c1d49ff249345d3be25b823fde846..b9aa7798fc1f3b0a29adc11e1742eb264436c5e0 100644 (file)
@@ -1869,6 +1869,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