aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/commerceguys/intl/scripts
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-11 09:21:19 +0000
committerMario <mario@mariovavti.com>2022-02-11 09:21:19 +0000
commit6d8aabab2347feabdd804b609dcd4513f09f78d4 (patch)
tree9bea1aba6caa85084ec664f498c445bb92d9457c /vendor/commerceguys/intl/scripts
parente74359fcfe4d97efe72a811b45526a69edae3893 (diff)
downloadvolse-hubzilla-6d8aabab2347feabdd804b609dcd4513f09f78d4.tar.gz
volse-hubzilla-6d8aabab2347feabdd804b609dcd4513f09f78d4.tar.bz2
volse-hubzilla-6d8aabab2347feabdd804b609dcd4513f09f78d4.zip
composer libs minor version updates
Diffstat (limited to 'vendor/commerceguys/intl/scripts')
-rwxr-xr-xvendor/commerceguys/intl/scripts/fetch_data.sh2
-rw-r--r--vendor/commerceguys/intl/scripts/generate_base.php16
-rw-r--r--vendor/commerceguys/intl/scripts/generate_language_data.php4
3 files changed, 12 insertions, 10 deletions
diff --git a/vendor/commerceguys/intl/scripts/fetch_data.sh b/vendor/commerceguys/intl/scripts/fetch_data.sh
index 1b3a339a5..f5c3f2110 100755
--- a/vendor/commerceguys/intl/scripts/fetch_data.sh
+++ b/vendor/commerceguys/intl/scripts/fetch_data.sh
@@ -6,7 +6,7 @@ rm -fR assets
mkdir assets
cd assets
-git clone https://github.com/unicode-org/cldr-json.git cldr
+git clone --depth 1 https://github.com/unicode-org/cldr-json.git cldr
if command -v wget >/dev/null 2>&1;
then
diff --git a/vendor/commerceguys/intl/scripts/generate_base.php b/vendor/commerceguys/intl/scripts/generate_base.php
index 102a2cfae..a299c15cf 100644
--- a/vendor/commerceguys/intl/scripts/generate_base.php
+++ b/vendor/commerceguys/intl/scripts/generate_base.php
@@ -31,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',
@@ -48,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',
];
/**
diff --git a/vendor/commerceguys/intl/scripts/generate_language_data.php b/vendor/commerceguys/intl/scripts/generate_language_data.php
index c6215e3fd..34279f444 100644
--- a/vendor/commerceguys/intl/scripts/generate_language_data.php
+++ b/vendor/commerceguys/intl/scripts/generate_language_data.php
@@ -78,8 +78,8 @@ function generate_languages()
// Skip all languages that aren't an available locale at the same time.
// This reduces the language list from about 515 to about 185 languages.
$allowedLanguages = scandir($localeDirectory);
- $allowedLanguages[] = 'wa';
- $allowedLanguages = array_diff($allowedLanguages, ['eo', 'ia', 'vo', 'cu', 'gv', 'prg', 'root']);
+ $allowedLanguages = array_merge($allowedLanguages, ['iu', 'wa']);
+ $allowedLanguages = array_diff($allowedLanguages, ['eo', 'ia', 'vo', 'cu', 'gv', 'prg', 'und']);
// Languages that are untranslated in most locales (as of CLDR v34).
$allowedLanguages = array_diff($allowedLanguages, ['ccp', 'fa-AF']);