diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2017-01-13 17:37:04 -0800 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2017-01-13 17:37:04 -0800 |
commit | 9bddb4841371de1d83affeddef12b5bca3e69647 (patch) | |
tree | f5df5991e8191929e4b52a19654dc2d23b735c4a /tools/localedata/extract_icu_data.py | |
parent | 383679bc1b6fe33d80dcb9578f7b62f1e914a3ee (diff) |
Update locale data from in-tree ICU
Also add back script information for Yiddish old code (ji) that was
removed in ICU.
Bug: 26756576
Test: none
Change-Id: Ia785f86bf0407aeed6134ef9d44e504494256da2
Diffstat (limited to 'tools/localedata/extract_icu_data.py')
-rwxr-xr-x | tools/localedata/extract_icu_data.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/localedata/extract_icu_data.py b/tools/localedata/extract_icu_data.py index b071093a5615..9dceba2163eb 100755 --- a/tools/localedata/extract_icu_data.py +++ b/tools/localedata/extract_icu_data.py @@ -48,6 +48,8 @@ def read_likely_subtags(input_file_name): # they may be used by apps for other purposes.) "en_XA": "~~~A", "ar_XB": "~~~B", + # Removed data from later versions of ICU + "ji": "Hebr", # Old code for Yiddish, still used in Java and Android } representative_locales = { # Android's additions @@ -69,7 +71,7 @@ def read_likely_subtags(input_file_name): _, to_scr, to_region = get_locale_parts(to_locale) if from_lang == 'und': continue # not very useful for our purposes - if from_region is None and to_region != '001': + if from_region is None and to_region not in ['001', 'ZZ']: representative_locales.add(to_locale) if from_scr is None: likely_script_dict[from_locale] = to_scr |