openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04300
[Merge] lp:~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000 into lp:ocb-server
You have been requested to review the proposed merge of lp:~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000 into lp:ocb-server.
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000/+merge/208488
Related to https://code.launchpad.net/~savoirfairelinux-openerp/ocb-addons/7.0_mail_thread_translate_bug1262000/+merge/207992
Makes it so model descriptions are translated and chatter_widget can display the model in the proper language.
--
https://code.launchpad.net/~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000/+merge/208488
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000 into lp:ocb-server.
=== modified file 'openerp/tools/translate.py'
--- openerp/tools/translate.py 2014-02-06 10:51:41 +0000
+++ openerp/tools/translate.py 2014-02-27 23:46:31 +0000
@@ -778,6 +778,11 @@
except (IOError, etree.XMLSyntaxError):
_logger.exception("couldn't export translation for report %s %s %s", name, report_type, fname)
+ elif model == 'ir.model':
+ model_pool = pool.get(obj.model)
+ if model_pool:
+ push_translation(module, 'code', '_description', 0, model_pool._description)
+
for field_name,field_def in obj._table._columns.items():
if field_def.translate:
name = model + "," + field_name
References