[FIX] msgstr in .pot file must be '' while exporting template translation
authorAnup (OpenERP) <ach@tinyerp.com>
Wed, 1 Sep 2010 07:44:38 +0000 (13:14 +0530)
committerAnup (OpenERP) <ach@tinyerp.com>
Wed, 1 Sep 2010 07:44:38 +0000 (13:14 +0530)
lp bug: https://launchpad.net/bugs/627299 fixed

bzr revid: ach@tinyerp.com-20100901074438-2epp2eqb0cnqyed0

bin/tools/translate.py

index f1f5062..66ba28d 100644 (file)
@@ -349,6 +349,9 @@ def trans_export(lang, modules, buffer, format, dbname=None):
     if newlang:
         lang = 'en_US'
     trans = trans_generate(lang, modules, dbname)
+    if newlang and format!='csv':
+        for trx in trans:
+            trx[-1] = ''
     modules = set([t[0] for t in trans[1:]])
     _process(format, modules, trans, buffer, lang, newlang)
     del trans