[FIX] Translation missing on translation form button.
bzr revid: cpa@tinyerp.com-20120508111915-39f9xytufedlmg55
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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%'
|
||||
|
||||
Reference in New Issue
Block a user