Leon Ziemba, 09/03/2018 09:33:
Hello there! I am working on localizing numerical
values in some
Wikimedia applications (XTools[0], namely). I've been using
PHP's NumberFormatter[1] and it works great for some languages like
Arabic and Persian.
I thought NumberFormatter was supposed to use the PHP library which
ships the ICU data derived from CLDR. The documentation page seems to
hint so as well.
The first step would be to check whether the data you need is in CLDR:
<https://www.unicode.org/cldr/charts/latest/summary/ckb.html>
Then check if it's propagated downstream from there. Maybe it's just an
older version somewhere.
Note that one wishlist item is to make MediaWiki's own i18n "library"
and its CLDR-derived components more readily available to other PHP
projects of ours, to reduce such duplicate work or incompatible l10n
formats.
<https://www.mediawiki.org/wiki/Language_goals_and_wishlist#Librarization_of_MediaWiki_i18n>
The current state means that many pieces of code developed outside
MediaWiki's PHP tend to have a relatively poor i18n support (for gender,
plural and even basic things like numbers).
Federico