Skip to content

Commit

Permalink
Adding README markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
azatoth committed Aug 11, 2011
1 parent 4231f66 commit 73add93
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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.

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.

Following functions are exported:

* `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)`

0 comments on commit 73add93

Please sign in to comment.