>> Either you use gettext or you are doomed to reinvent it. ... > 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.
Has anyone here used gettext and then switched to the ICU solution, and can comment on what it does better than gettext, and what they feel is missing? An interesting article here, see section 10.2: http://wiki.zope.org/zope3/i18noverview.html My interpretation of this is they wanted to use ICU for Zope3 but it was too big to port to python, so they borrowed some of its ready-made translation data, and then used gettext because it was already available for python. Darren > 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 > >> Check gettext manual (http://www.php.net/ngettext). -- Darren Cook, Software Researcher/Developer http://dcook.org/gobet/ (Shodan Go Bet - who will win?) http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles) -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php