开发者 |
stuwest
jblz automattic |
---|---|
更新时间 | 2016年3月22日 10:55 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 4.4.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory.The plugin ships with JSON files for over 100 WordPress locales including ar
, ary
, az
, bg_BG
, bn_BD
, bs_BA
, ca
, cy
, da_DK
, de_CH
, de_DE
, de_DE_formal
, el
, en_US
, en_AU
, en_CA
, en_GB
, en_NZ
, en_ZA
, eo
, es_AR
, es_CL
, es_CO
, es_ES
, es_GT
, es_MX
, es_PE
, es_VE
, et
, eu
, fa_IR
, fi
, fr_BE
, fr_CA
, fr_FR
, gd
, gl_ES
, he_IL
, hi_IN
, hr
, hu_HU
, hy
, id_ID
, is_IS
, it_IT
, ja
, ka_GE
, ko_KR
, lt_LT
, ms_MY
, my_MM
, nb_NO
, nl_NL
, nl_NL_formal
, nn_NO
, pl_PL
, ps
, pt_BR
, pt_PT
, ro_RO
, ru_RU
, sk_SK
, sl_SI
, sq
, sr_RS
, sv_SE
, th
, tl
, tr_TR
, ug_CN
, uk
, vi
, zh_CN
, zh_TW
.
Yes! The class includes a suite of PHPUnit tests. To run them, call phpunit
from the plugin directory.
The plugin includes two layers of caching (in-memory arrays and the WordPress object cache) and is designed for high volume use. It is currently used on WordPress.com.
The scripts used to collect the JSON files are included in the repo. A bash script bash get-cldr-files.sh
uses wget to collect the files from Unicode's reference distribution of CLDR JSON on GitHub; a command-line PHP script php prune-cldr-files.php
removes unneeded locales and locale files from that download. Both should be run from within the wp-cldr
directory.
Open up a new issue on GitHub at https://github.com/Automattic/wp-cldr/issues. We love pull requests!