[FIX] OPW 586673: mail: make `read more/less` labels translatable
authorOlivier Dony <odo@openerp.com>
Thu, 6 Jun 2013 16:18:37 +0000 (18:18 +0200)
committerOlivier Dony <odo@openerp.com>
Thu, 6 Jun 2013 16:18:37 +0000 (18:18 +0200)
lp bug: https://launchpad.net/bugs/1165321 fixed

bzr revid: odo@openerp.com-20130606161837-1loqbdr269cr1udl

addons/mail/static/src/js/mail.js

index 1e58dc4..2f6cfbd 100644 (file)
@@ -975,8 +975,8 @@ openerp.mail = function (session) {
         expender: function () {
             this.$('.oe_msg_body:first').expander({
                 slicePoint: this.options.truncate_limit,
-                expandText: 'read more',
-                userCollapseText: 'read less',
+                expandText: _t('read more'),
+                userCollapseText: _t('read less'),
                 detailClass: 'oe_msg_tail',
                 moreClass: 'oe_mail_expand',
                 lessClass: 'oe_mail_reduce',