From 7e1c79dc7576e51c59257584da3b4ff06f852544 Mon Sep 17 00:00:00 2001 From: cpa-openerp Date: Tue, 8 May 2012 16:49:15 +0530 Subject: [PATCH] [FIX] Translation missing on translation form button. bzr revid: cpa@tinyerp.com-20120508111915-39f9xytufedlmg55 --- addons/web/static/src/js/chrome.js | 2 +- addons/web/static/src/js/views.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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%'