Context support for gettext extension API
Bug #522405 reported by
wouter bolsterlee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Fix Released
|
Wishlist
|
wouter bolsterlee |
Bug Description
The gettext module extends the basic gettext functionality offered by PHP, but lacks the fairly recent context support API. In particular (pun intended), this includes dpgettext(), dnpgettext() and npgettext(). I think these can be implemented properly on top of the limited gettext support offered by PHP itself.
To post a comment you must log in.
[i18n] Implement contextual translation support
Implemented the pgettext() function in PHP since it is not
provided by the gettext bindings in PHP itself. The
pgettext() function also has a C_() alias (inspired by the
i18n support in GLib).
The i18n.make script also correctly detects C_() when
extracting translatable strings from source files.
Part of bug #522405.