savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #01020
Re: [Merge] lp:~savoirfairelinux-openerp/ocb-addons/7.0_mail_thread_translate_bug1262000 into lp:ocb-addons
Stefan, how about this following patch?
It will add the _description of any module having its translations exported regardless of _() around the description in the model declaration.
=== modified file 'openerp/tools/translate.py'
--- openerp/tools/translate.py 2014-02-06 10:51:41 +0000
+++ openerp/tools/translate.py 2014-02-26 21:37:49 +0000
@@ -656,6 +656,11 @@
return s.encode('utf8')
return s
+ for module in modules:
+ obj = pool.get(module.replace('_', '.'))
+ if obj:
+ push_translation(module, 'code', '_description', 0, obj._description)
+
for (xml_name,model,res_id,module) in cr.fetchall():
module = encode(module)
model = encode(model)
--
https://code.launchpad.net/~savoirfairelinux-openerp/ocb-addons/7.0_mail_thread_translate_bug1262000/+merge/207992
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/ocb-addons/7.0_mail_thread_translate_bug1262000.
References