Closed jblz closed 2 years ago
Lots of extra files in the data
. Will see what that's about.
OK, I had forgotten to run the php prune-cldr-files.php
script :)
Now the resultant data files are substantially fewer than before:
$ find data/29.0.0/ -type f | wc -l
704
$ find data/36.0.0/ -type f | wc -l
397
@stuwest -- any idea if that's intentional / expected?
The prune script output looks like this for v36:
php prune-cldr-files.php
wpcom locales -- 88
wporg locales -- 78
combined unique wp locales including English -- 149
combined CLDR JSON file locales -- 142
combined unique CLDR JSON file locales -- 98
CLDR locales deleted = 444
CLDR locales retained = 98
files pruned from retained CLDR locales = 686
WordPress locales without CLDR JSON file:
'su' -- found no match for CLDR file su
'oc' -- found no match for CLDR file oc
'mwl' -- found no match for CLDR file mwl
'mhr' -- found no match for CLDR file mhr
'azb' -- found no match for CLDR file azb
'haz' -- found no match for CLDR file haz
'oci' -- found no match for CLDR file oc
CLDR supplemental files deleted = 22
CLDR supplemental files retained = 4
Compared to master:
wpcom locales -- 88
wporg locales -- 78
combined unique wp locales including English -- 149
combined CLDR JSON file locales -- 141
combined unique CLDR JSON file locales -- 97
CLDR locales deleted = 414
CLDR locales retained = 97
files pruned from retained CLDR locales = 459
WordPress locales without CLDR JSON file:
'su' -- found no match for CLDR file su
'oc' -- found no match for CLDR file oc
'mwl' -- found no match for CLDR file mwl
'mhr' -- found no match for CLDR file mhr
'azb' -- found no match for CLDR file azb
'ceb' -- found no match for CLDR file ceb
'haz' -- found no match for CLDR file haz
'oci' -- found no match for CLDR file oc
I noticed that a new version of the data files had dropped: http://cldr.unicode.org/index/downloads/cldr-36
This picks up from #94 & brings in the new data files.
Additionally, this:
curl
since it's included in mac os by default (wget is not)mktemp
to create temp directories