diff options
Diffstat (limited to 'vendor/commerceguys/intl/scripts/generate_base.php')
-rw-r--r-- | vendor/commerceguys/intl/scripts/generate_base.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vendor/commerceguys/intl/scripts/generate_base.php b/vendor/commerceguys/intl/scripts/generate_base.php index 6932b32f4..a299c15cf 100644 --- a/vendor/commerceguys/intl/scripts/generate_base.php +++ b/vendor/commerceguys/intl/scripts/generate_base.php @@ -4,12 +4,10 @@ require __DIR__ . '/../vendor/autoload.php'; // Downloaded from http://www.currency-iso.org/en/home/tables/table-a1.html $isoCurrencies = __DIR__ . '/assets/c2.xml'; -// Downloaded from https://github.com/unicode-cldr/cldr-core.git -$currencyData = __DIR__ . '/assets/cldr-core/supplemental/currencyData.json'; -// Downloaded from https://github.com/unicode-cldr/cldr-localenames-full.git -$localeDirectory = __DIR__ . '/assets/cldr-localenames-full/main/'; -// Downloaded from https://github.com/unicode-cldr/cldr-numbers-full.git -$numbersDirectory = __DIR__ . '/assets/cldr-numbers-full/main/'; +// Downloaded from https://github.com/unicode-org/cldr-json.git +$currencyData = __DIR__ . '/assets/cldr/cldr-json/cldr-core/supplemental/currencyData.json'; +$localeDirectory = __DIR__ . '/assets/cldr/cldr-json/cldr-localenames-full/main/'; +$numbersDirectory = __DIR__ . '/assets/cldr/cldr-json/cldr-numbers-full/main/'; // Preflight checks. if (!file_exists($currencyData)) { @@ -33,12 +31,15 @@ if (!function_exists('collator_create')) { // Locales listed without a "-" match all variants. // Locales listed with a "-" match only those exact ones. $ignoredLocales = [ + // English is our fallback, we don't need another. + 'und', // Esperanto, Interlingua, Volapuk are made up languages. 'eo', 'ia', 'vo', - // Church Slavic, Manx, Prussian, Sanskrit are historical languages. - 'cu', 'gv', 'prg', 'sa', + // Belarus (Classical orthography), Church Slavic, Manx, Prussian, + // Sanskrit are historical languages. + 'be-tarask', 'cu', 'gv', 'prg', 'sa', // Valencian differs from its parent only by a single character (è/é). - 'ca-ES-VALENCIA', + 'ca-ES-valencia', // Africa secondary languages. 'agq', 'ak', 'am', 'asa', 'bas', 'bem', 'bez', 'bm', 'cgg', 'dav', 'dje', 'dua', 'dyo', 'ebu', 'ee', 'ewo', 'ff', 'ff-Latn', 'guz', @@ -50,12 +51,11 @@ $ignoredLocales = [ 'wo', 'xog', 'xh', 'zgh', 'yav', 'yo', 'zu', // Europe secondary languages. 'br', 'dsb', 'fo', 'fur', 'fy', 'hsb', 'ksh', 'kw', 'nds', 'or', 'rm', - 'se', 'smn', 'wae', + 'sc', 'se', 'smn', 'wae', // Other infrequently used locales. - 'ceb', 'ccp', 'chr', 'ckb', 'haw', 'ii', 'jv', 'kl', 'kn', 'lkt', + 'ceb', 'ccp', 'chr', 'ckb', 'haw', 'ii', 'jv', 'kgp', 'kl', 'kn', 'lkt', 'lrc', 'mi', 'mzn', 'os', 'qu', 'row', 'sah', 'su', 'tt', 'ug', 'yi', - // Special "grouping" locales. - 'root', 'en-US-POSIX', + 'yrl', ]; /** |