From: Bruno Haible Date: Sun, 3 Jul 2022 09:15:39 +0000 (+0200) Subject: doc: Clarify constraints for PO files. X-Git-Tag: v0.21.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af5e05791dba05d8aa8ad94066c56286b497519f;p=thirdparty%2Fgettext.git doc: Clarify constraints for PO files. Reported by Gábor Hojtsy in . * gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement. --- diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index 583573e4b..b9aa7798f 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -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