From dc98cd55d0b4df3663a4645fd5664d58fafe34a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Apr 2012 18:14:50 +0200 Subject: [PATCH] Backed out changeset fe33dc121584 --- trytond/ir/translation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 6912604bc2..54c25e6923 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -1013,11 +1013,11 @@ class TranslationUpdate(Wizard): def transition_update(self, session): return 'end' - def _update(self, lang): + def do_update(self, session, action): pool = Pool() translation_obj = pool.get('ir.translation') cursor = Transaction().cursor - + lang = session.start.language.code cursor.execute('SELECT name, res_id, type, src, module ' \ 'FROM ir_translation ' \ 'WHERE lang=\'en_US\' ' \ @@ -1103,10 +1103,6 @@ class TranslationUpdate(Wizard): 'WHERE (value = \'\' OR value IS NULL) ' \ 'AND lang = %s', (False, lang,)) - def do_update(self, session, action): - lang = session.start.language.code - if lang != 'en_US': - self._update(lang) action['pyson_domain'] = PYSONEncoder().encode([ ('module', '!=', False), ('lang', '=', lang),