GNU gettext utilities: Default Keywords
Next: Special Keywords, Previous: General Problems, Up: Perl [Contents][Index]
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:
gettextdgettext:2The second argument will be extracted.
dcgettext:2The second argument will be extracted.
ngettext:1,2The first (singular) and the second (plural) argument will be extracted.
dngettext:2,3The second (singular) and the third (plural) argument will be extracted.
dcngettext:2,3The second (singular) and the third (plural) argument will be extracted.
pgettext:1c,2The first (message context) and the second argument will be extracted.
dpgettext:2c,3The second (message context) and the third argument will be extracted.
dcpgettext:2c,3The second (message context) and the third argument will be extracted.
npgettext:1c,2,3The first (message context), second (singular), and third (plural) argument will be extracted.
dnpgettext:2c,3,4The second (message context), third (singular), and fourth (plural) argument will be extracted.
dcnpgettext:2c,3,4The second (message context), third (singular), and fourth (plural) argument will be extracted.
gettext_noop%gettextThe keys of lookups into the hash
%gettextwill be extracted.$gettextThe keys of lookups into the hash reference
$gettextwill be extracted.