gettext: Default Keywords
15.5.21.2 Which keywords will xgettext look for?
................................................
Unless you instruct ‘xgettext’ otherwise by invoking it with one of
the options ‘--keyword’ or ‘-k’, it will recognize the following
keywords in your Perl sources:
• ‘gettext’
• ‘dgettext:2’
The second argument will be extracted.
• ‘dcgettext:2’
The second argument will be extracted.
• ‘ngettext:1,2’
The first (singular) and the second (plural) argument will be
extracted.
• ‘dngettext:2,3’
The second (singular) and the third (plural) argument will be
extracted.
• ‘dcngettext:2,3’
The second (singular) and the third (plural) argument will be
extracted.
• ‘pgettext:1c,2’
The first (message context) and the second argument will be
extracted.
• ‘dpgettext:2c,3’
The second (message context) and the third argument will be
extracted.
• ‘dcpgettext:2c,3’
The second (message context) and the third argument will be
extracted.
• ‘npgettext:1c,2,3’
The first (message context), second (singular), and third (plural)
argument will be extracted.
• ‘dnpgettext:2c,3,4’
The second (message context), third (singular), and fourth (plural)
argument will be extracted.
• ‘dcnpgettext:2c,3,4’
The second (message context), third (singular), and fourth (plural)
argument will be extracted.
• ‘gettext_noop’
• ‘%gettext’
The keys of lookups into the hash ‘%gettext’ will be extracted.
• ‘$gettext’
The keys of lookups into the hash reference ‘$gettext’ will be
extracted.