diff options
| author | Yogesh Sakhreliya <ysa@tinyerp.com> | 2010-11-24 14:42:07 +0530 |
|---|---|---|
| committer | Yogesh Sakhreliya <ysa@tinyerp.com> | 2010-11-24 14:42:07 +0530 |
| commit | ca3a65d9adcbc22ceb832e7573bc94ab2f25894f (patch) | |
| tree | 969ea95972c328f0d4df023373fc02a657c5cc4a /bin/tools | |
| parent | 4b93fa82ba0906e4485084f80d03d9d46057753c (diff) | |
Confirm message support translation and export--author=Margarita Manterola
bzr revid: ysa@tinyerp.com-20101124091207-5gccf6h5h0hgu06i
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/translate.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 807de0d2cde..176e2825ea4 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -166,7 +166,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: @@ -178,7 +178,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 @@ -464,6 +464,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 |
