[IMP] Translation: remove get_iso dictionary which used in get_ico_codes method to get languages

bzr revid: mra@tinyerp.com-20100302085109-63xxp3mqx7wuh4zs
This commit is contained in:
mra (Open ERP) 2010-03-02 14:21:09 +05:30
parent 4e2beb23ae
commit f4820709b6
1 changed files with 1 additions and 16 deletions

View File

@ -883,23 +883,8 @@ if not hasattr(__builtin__, 'any'):
__builtin__.any = any
del any
get_iso = {'ca_ES':'ca',
'cs_CZ': 'cs',
'et_EE': 'et',
'sv_SE': 'sv',
'sq_AL': 'sq',
'uk_UA': 'uk',
'vi_VN': 'vi',
'af_ZA': 'af',
'be_BY': 'be',
'ja_JP': 'ja',
'ko_KR': 'ko'
}
def get_iso_codes(lang):
if lang in get_iso:
lang = get_iso[lang]
elif lang.find('_') != -1:
if lang.find('_') != -1:
if lang.split('_')[0] == lang.split('_')[1].lower():
lang = lang.split('_')[0]
return lang