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:
313afc0
)
[FIX] msgstr in .pot file must be '' while exporting template translation
author
Anup (OpenERP)
<ach@tinyerp.com>
Wed, 1 Sep 2010 07:52:44 +0000
(13:22 +0530)
committer
Anup (OpenERP)
<ach@tinyerp.com>
Wed, 1 Sep 2010 07:52:44 +0000
(13:22 +0530)
bzr revid: ach@tinyerp.com-
20100901075244
-wz3c75j56q6m79yg
bin/tools/translate.py
patch
|
blob
|
history
diff --git
a/bin/tools/translate.py
b/bin/tools/translate.py
index
6c67075
..
18747a3
100644
(file)
--- a/
bin/tools/translate.py
+++ b/
bin/tools/translate.py
@@
-375,6
+375,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