Chirag Patel (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-574607-cpa into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574607-cpa/+merge/105067
Hello,
Translation missing on dialog's button.
Change db language english to any other.
Demo: Sales > Products > Products
1) Create new record.
2) Open dialog from the name field(click on translation img).
Observed: "Save" and "Close" button not translate.
Expected: Button label should be translate.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574607-cpa/+merge/105067
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-574607-cpa.
=== modified file 'addons/web/static/src/js/chrome.js'
--- addons/web/static/src/js/chrome.js 2012-04-25 21:19:12 +0000
+++ addons/web/static/src/js/chrome.js 2012-05-08 13:00:27 +0000
@@ -77,7 +77,7 @@
};
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) {
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js 2012-03-06 20:59:55 +0000
+++ addons/web/static/src/js/views.js 2012-05-08 13:00:27 +0000
@@ -962,8 +962,6 @@
// 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%'
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp