summaryrefslogtreecommitdiff
path: root/bin/tools/translate.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2010-11-30 12:09:40 +0100
committerOlivier Dony <odo@openerp.com>2010-11-30 12:09:40 +0100
commitf1cfc436a7311d8d1c0b4572ea59a983d65a2cd4 (patch)
treecba13723c5b3a5abd7021b930c467c4a2bafa3b0 /bin/tools/translate.py
parent4dd9ccb1b96fe96d7a57023ce1b0ac3db56babe2 (diff)
parent456579b198cd0ec544c90c36226308d298ea93fa (diff)
[MERGE+FIX] fixes for translations,sequence,copy,error messages - some patches courtesy of Margarita Manterola and Don Kirkby
lp bug: https://launchpad.net/bugs/672130 fixed lp bug: https://launchpad.net/bugs/663775 fixed lp bug: https://launchpad.net/bugs/673194 fixed lp bug: https://launchpad.net/bugs/663977 fixed bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
Diffstat (limited to 'bin/tools/translate.py')
-rw-r--r--bin/tools/translate.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py
index e0379a71eef..11ce59e1019 100644
--- a/bin/tools/translate.py
+++ b/bin/tools/translate.py
@@ -167,7 +167,7 @@ class GettextAlias(object):
cr = pooler.get_db(dbs[0]).cursor()
is_new_cr = True
return cr, is_new_cr
-
+
def _get_lang(self, frame):
lang = frame.f_locals.get('context', {}).get('lang', False)
if not lang:
@@ -179,7 +179,7 @@ class GettextAlias(object):
c = getattr(s, 'localcontext', {})
lang = c.get('lang', False)
return lang
-
+
def __call__(self, source):
is_new_cr = False
res = source
@@ -469,6 +469,8 @@ def trans_parse_view(de):
res.append(de.get('string').encode("utf8"))
if de.get("sum"):
res.append(de.get('sum').encode("utf8"))
+ if de.get("confirm"):
+ res.append(de.get('confirm').encode("utf8"))
for n in de:
res.extend(trans_parse_view(n))
return res