projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f99a8a
)
[FIX] msgstr in .pot file must be '' while exporting template translation
author
Anup (OpenERP)
<ach@tinyerp.com>
Wed, 1 Sep 2010 07:44:38 +0000
(13:14 +0530)
committer
Anup (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
patch
|
blob
|
history
diff --git
a/bin/tools/translate.py
b/bin/tools/translate.py
index
f1f5062
..
66ba28d
100644
(file)
--- a/
bin/tools/translate.py
+++ b/
bin/tools/translate.py
@@
-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