summaryrefslogtreecommitdiff
path: root/addons/sms/static/src/js
diff options
context:
space:
mode:
authorRémi Rahir <rar@odoo.com>2018-05-18 16:30:51 +0200
committerRémi Rahir <rar@odoo.com>2018-07-06 14:15:56 +0200
commitf9a68d5e778da0ff4e1f1a0936b51b98a822a15a (patch)
tree43da55803fa0dad32eb7e56c9bd35bb4ba195f5c /addons/sms/static/src/js
parent8a1dad3da4a944e8d5300d970623c1f3c3c03b09 (diff)
IMP] sms: improve readability of the widget
Diffstat (limited to 'addons/sms/static/src/js')
-rw-r--r--addons/sms/static/src/js/sms_widget.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/sms/static/src/js/sms_widget.js b/addons/sms/static/src/js/sms_widget.js
index a01ff3753cf..9d6ff6b3302 100644
--- a/addons/sms/static/src/js/sms_widget.js
+++ b/addons/sms/static/src/js/sms_widget.js
@@ -9,6 +9,7 @@ var framework = require('web.framework');
var FieldText = basicFields.FieldText;
var QWeb = core.qweb;
+var _t = core._t
/**
* SmsWidget is a widget to display a textarea (the body) and a text representing
* the number of SMS and the number of characters. This text is computed every
@@ -89,7 +90,7 @@ var SmsWidget = FieldText.extend({
* @private
*/
_renderSMS: function () {
- this.$('.o_sms_count').text(this.nbrChar + ' / ' + this.nbrSMS + ' SMS (' + this.encoding + ') ');
+ this.$('.o_sms_count').text(this.nbrChar + _t(' chars, fits in ') + this.nbrSMS + ' SMS (' + this.encoding + ') ');
},
//--------------------------------------------------------------------------