ICU, the internationalization library underlying the PHP intl
extension, has had support for plural formats since version 4.0, and
added support for gender-based formatting in version 4.4. Both are
available through pattern strings for the PHP MessageFormatter class.
See:
http://docs.php.net/manual/en/class.messageformatter.php
http://icu-project.org/apiref/icu4c/classPluralFormat.html
http://icu-project.org/apiref/icu4c/classSelectFormat.html
Norbert
On May 2, 2010, at 21:19 , Tomas Kuliavas wrote:
Andre Polykanine rašė:
Hello Tomas,
A good point about plurals! How do I handle them if I have Ukrainian,
Russian, and English interfaces?
Check gettext manual (http://www.php.net/ngettext).
Either you use gettext or you are doomed to reinvent it.
--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php