manpagez: man pages & more
info gettext
Home | html | info | man

File: gettext.info,  Node: Entries with Context,  Next: Entries with Plural Forms,  Prev: Sticky flags,  Up: PO Files

3.4 Entries with Context
========================

   It is also possible to have entries with a context specifier.  They
look like this:

     WHITE-SPACE
     #  TRANSLATOR-COMMENTS
     #. EXTRACTED-COMMENTS
     #: REFERENCE...
     #, FLAG...
     #| msgctxt PREVIOUS-CONTEXT
     #| msgid PREVIOUS-UNTRANSLATED-STRING
     msgctxt CONTEXT
     msgid UNTRANSLATED-STRING
     msgstr TRANSLATED-STRING

   The context serves to disambiguate messages with the same
UNTRANSLATED-STRING.  It is possible to have several entries with the
same UNTRANSLATED-STRING in a PO file, provided that they each have a
different CONTEXT.  Note that an empty CONTEXT string and an absent
‘msgctxt’ line do not mean the same thing.

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.