library php-pgettext
Extension of gettext functions for PHP like pgettext, dpgettext, etc.
azatoth/php-pgettext
Extension of gettext functions for PHP like pgettext, dpgettext, etc.
- Friday, December 5, 2014
- by AzaToth
- Repository
- 4 Watchers
- 5 Stars
- 15,778 Installations
- PHP
- 2 Dependents
- 1 Suggesters
- 5 Forks
- 1 Open issues
- 2 Versions
- 9 % Grown
pgettext and buddies
Default installation of gettext
in php lacks support for pgettext
et al.
This php script adds support for those, as well as an gettext_noop
wrapper., (*1)
For this to work when extracting strings using xgettext
, many keyword parameters needs to be filed,
A wrapper script called php-xgettext
might be used to simplify this., (*2)
Following functions are exported:, (*3)
pgettext($msg_ctxt, $msgid)
dpgettext($domain, $msg_ctxt, $msgid)
dcpgettext($domain, $msg_ctxt, $msgid, $category)
npgettext($msg_ctxt, $msgid, $msgid_plural, $n)
dnpgettext($domain, $msg_ctxt, $msgid, $msgid_plural, $n)
dcnpgettext($domain, $msg_ctxt, $msgid, $msgid_plural, $n, $category)
gettext_noop($msgid)