[ADD] base: support alphabet-specific languages as in Rosetta + enabled Serbian@Latin

bzr revid: odo@openerp.com-20101203160907-59ytzsl8ah2ebtxa
This commit is contained in:
Olivier Dony
2010-12-03 17:09:07 +01:00
parent c95efe7997
commit c744e55ffc
4 changed files with 7 additions and 6 deletions
-2
View File
@@ -488,8 +488,6 @@ class module(osv.osv):
# unable to find the module. we skip
continue
for lang in filter_lang:
if len(lang) > 5:
raise osv.except_osv(_('Error'), _('You Can Not Load Translation For language Due To Invalid Language/Country Code'))
iso_lang = tools.get_iso_codes(lang)
f = addons.get_module_resource(mod.name, 'i18n', iso_lang + '.po')
# Implementation notice: we must first search for the full name of