From af5e05791dba05d8aa8ad94066c56286b497519f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 3 Jul 2022 11:15:39 +0200 Subject: [PATCH] doc: Clarify constraints for PO files. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Gábor Hojtsy in . * gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement. --- gettext-tools/doc/gettext.texi | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.2