forked from Automattic/wp-cldr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
66 lines (41 loc) · 3.87 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
=== WP CLDR ===
Contributors: stuwest, jblz, automattic
Tags: i18n, internationalization, L10n, localization, unicode, CLDR
Requires at least: 4.4
Tested up to: 4.4.2
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Gives WordPress developers easy access to localized country, region, language, currency, and calendar info.
== Description ==
This plugin provides WordPress developers with easy access to localized country, language, currency, region, and calendar info from the [Unicode Common Locale Data Repository](http://cldr.unicode.org/).
With the plugin active, WordPress developers can access the following for over 100 WordPress locales:
* Names for countries (and ISO 3166 country codes).
* Names for regions (and UN M.49 region codes, plus countries included in each region).
* Names and symbols for currencies (and ISO 4317 currency codes).
* Names for languages (and ISO 639 language codes).
* Calendar information including the first day of the week in different countries.
* Country information including most spoken language, currency, telephone codes, and population.
More information in the [detailed API documentation](https://automattic.github.io/wp-cldr/class-WP_CLDR.html).
CLDR is a library of localization data coordinated by Unicode. It emphasizes [common, everyday usage](http://cldr.unicode.org/translation/country-names) and is available in over 700 language-region locales. It is [updated every six months](http://cldr.unicode.org/index/downloads) and used by [all major software systems](http://cldr.unicode.org/#TOC-Who-uses-CLDR-). CLDR data is licensed under [Unicode's data files and software license](http://unicode.org/copyright.html#Exhibit1) which is on [the list of approved GPLv2 compatible licenses](https://www.gnu.org/philosophy/license-list.html#Unicode).
== Installation ==
1. Upload the folder to the `/wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. See the plugin in action via its settings page.
1. Build CLDR data into your site by using [functions in the API documentation](https://automattic.github.io/wp-cldr/class-WP_CLDR.html)
== Frequently Asked Questions ==
= What locales are included? =
The plugin ships with JSON files for over 100 WordPress locales including `ary`, `ar`, `az`, `bg_BG`, `bn_BD`, `bs_BA`, `ca`, `cy`, `da_DK`, `de_CH`, `de_DE`, `de_DE_formal`, `el`, `en_NZ`, `en_ZA`, `en_AU`, `en_GB`, `en_CA`, `eo`, `es_MX`, `es_VE`, `es_CL`, `es_ES`, `es_AR`, `es_PE`, `es_CO`, `et`, `eu`, `fa_IR`, `fi`, `fr_CA`, `fr_BE`, `fr_FR`, `gd`, `gl_ES`, `he_IL`, `hi_IN`, `hr`, `hu_HU`, `hy`, `id_ID`, `is_IS`, `it_IT`, `ja`, `ko_KR`, `lt_LT`, `ms_MY`, `my_MM`, `nl_NL`, `nn_NO`, `pl_PL`, `ps`, `pt_PT`, `pt_BR`, `ro_RO`, `ru_RU`, `sk_SK`, `sl_SI`, `sq`, `sr_RS`, `sv_SE`, `th`, `tl`, `tr_TR`, `ug_CN`, `uk`, `vi`, `zh_TW`, `zh_CN`.
= Is there testing? =
Yes! The class includes a suite of PHPUnit tests. To run them, call `phpunit` from the plugin directory.
= Can the plugin handle high volume? =
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.
= Where do the JSON files come from? =
The scripts used to collect the JSON files are included in the repo. A bash script `get-cldr-files.sh` uses wget to collect the files from [Unicode's reference distribution of CLDR JSON on Github](http://cldr.unicode.org/index/cldr-spec/json); a command-line PHP script `prune-cldr-files.php` removes unneeded locales and locale files from that download.
= Where can I report issues? =
Open up a new issue on Github at https://github.com/Automattic/wp-cldr/issues. We love pull requests!
== Screenshots ==
1. The plugin's settings page shows the supported locales and some of the available data items.
== Changelog ==
= 1.0 (Mar __, 2016) =
* initial release into plugin repo