Re: Re: How to i18n better?
| From: | Norbert Lindenberg ♻ | Date: | Mon, 03 May 2010 16:04:51 +0000 |
| Subject: | Re: Re: How to i18n better? | ||
| References: | 1 2 3 4 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1401@lists.php.net to get a copy of this message | ||
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