From bc650ac97c23e66df8bd28f208480ef26a47c279 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 4 Oct 2012 11:13:14 +0200 Subject: [PATCH] [FIX] bootstrap_translations: leftover handling for multiple langs caused error if preferred lang had a hyphen bzr revid: odo@openerp.com-20121004091314-13nbs4386fimlxd3 --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 356e2960346..bd9f06625bd 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -685,7 +685,7 @@ class WebClient(openerpweb.Controller): # sub-languages (that should only be partially translated) we load the # main language PO instead - that should be enough for the login screen. if '-' in lang: # RFC2616 uses '-' separators for sublanguages - lang = [lang.split('-',1)[0], lang] + lang = lang.split('-')[0] translations_per_module = {} for addon_name in mods: