diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 8fdb7cf9bbc..89785614a41 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -77,7 +77,7 @@ openerp.web.Dialog = openerp.web.OldWidget.extend(/** @lends openerp.web.Dialog# }; for (var f in this) { if (f.substr(0, 10) == 'on_button_') { - this.dialog_options.buttons[f.substr(10)] = this[f]; + this.dialog_options.buttons[_t(f.substr(10))] = this[f]; } } if (options) { diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index a9979ebf099..d4b4a114db6 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -962,8 +962,6 @@ session.web.TranslateDialog = session.web.Dialog.extend({ // TODO fme: should add the language to fields_view_get because between the fields view get // and the moment the user opens the translation dialog, the user language could have been changed this.view_language = view.session.user_context.lang; - this['on_button' + _t("Save")] = this.on_button_Save; - this['on_button' + _t("Close")] = this.on_button_Close; this._super(view, { width: '80%', height: '80%'