[MERGE] fix for form field translation dialog's button label translations
bzr revid: xmo@openerp.com-20120516143630-3qat2hnz278upm5m
This commit is contained in:
@@ -962,8 +962,8 @@ 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['on_button_' + _t("Save")] = this.on_btn_save;
|
||||
this['on_button_' + _t("Close")] = this.on_btn_close;
|
||||
this._super(view, {
|
||||
width: '80%',
|
||||
height: '80%'
|
||||
@@ -1044,7 +1044,7 @@ session.web.TranslateDialog = session.web.Dialog.extend({
|
||||
}
|
||||
});
|
||||
},
|
||||
on_button_Save: function() {
|
||||
on_btn_save: function() {
|
||||
var trads = {},
|
||||
self = this,
|
||||
trads_mutex = new $.Mutex();
|
||||
@@ -1067,7 +1067,7 @@ session.web.TranslateDialog = session.web.Dialog.extend({
|
||||
});
|
||||
this.close();
|
||||
},
|
||||
on_button_Close: function() {
|
||||
on_btn_close: function() {
|
||||
this.close();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user