From bf0bb534bfd4f8d1459c91a4858dfdc12191b32b Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 3 Apr 2019 14:24:34 +0000 Subject: [PATCH] [FIX] base: Arabic generic World locale is ar_001 Before this commit, the "unitag" notation "xx_AA" was used for arabic generic locale Since it is not an official Unicode CLDR notation, some other modules may, and did crash (babel) Instead, we prefer to use Unicode CLDR compliance i.e. World regions should be "_001" http://www.unicode.org/reports/tr35/#unicode_region_subtag http://www.unicode.org/reports/tr35/#unicode_region_subtag_validity BCP47: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry This commit should invalidate the commit made by #32344 which was a hack for stable versions It should also be taken into account in migration scripts closes odoo/odoo#32393 Signed-off-by: Olivier Dony (odo) --- odoo/addons/base/data/res.lang.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/data/res.lang.csv b/odoo/addons/base/data/res.lang.csv index b28e9dfc5d6..7f864be4fbe 100644 --- a/odoo/addons/base/data/res.lang.csv +++ b/odoo/addons/base/data/res.lang.csv @@ -1,7 +1,7 @@ "id","name","code","iso_code","direction","grouping","decimal_point","thousands_sep","date_format","time_format","translatable","week_start" "base.lang_en","English (US)","en_US","en","Left-to-Right","[3,0]",".",",","%m/%d/%Y","%H:%M:%S","True","7" "base.lang_am_ET","Amharic / አምሃርኛ","am_ET","am_ET","Left-to-Right","[3,0]",".",",","%d/%m/%Y","%I:%M:%S","True","7" -"base.lang_ar","Arabic / الْعَرَبيّة","ar_AA","ar","Right-to-Left","[3,0]",".",",","%d %b, %Y","%I:%M:%S","True","6" +"base.lang_ar","Arabic / الْعَرَبيّة","ar_001","ar","Right-to-Left","[3,0]",".",",","%d %b, %Y","%I:%M:%S","True","6" "base.lang_ar_SY","Arabic (Syria) / الْعَرَبيّة","ar_SY","ar_SY","Right-to-Left","[3,0]",".",",","%d %b, %Y","%I:%M:%S","True","6" "base.lang_eu_ES","Basque / Euskara","eu_ES","eu_ES","Left-to-Right","[]",",",,"%a, %Y.eko %bren %da","%H:%M:%S","True","1" "base.lang_bn_IN","Bengali / বাংলা","bn_IN","bn_IN","Left-to-Right","[]",",",,"%A %d %b %Y","%I:%M:%S","True","1"