summaryrefslogtreecommitdiff
path: root/addons/web_dashboard/static/src/js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-12-15 11:40:31 +0100
committerXavier Morel <xmo@openerp.com>2011-12-15 11:40:31 +0100
commitb5a797ba0af00cebcf26005bdcfda8151e39cb48 (patch)
treea56d3fdd2769dbafc86555a50c49ff93772d6eb8 /addons/web_dashboard/static/src/js
parent68ff6cb98a8ccfae0179a712b4cce60a295c0b67 (diff)
[IMP] mark a bunch of dialog stuff as exportable (mostly buttons, but also dialog titles)
bzr revid: xmo@openerp.com-20111215104031-h2xjkf0zwf8x8zjk
Diffstat (limited to 'addons/web_dashboard/static/src/js')
-rw-r--r--addons/web_dashboard/static/src/js/dashboard.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js
index ce7e877b73f..28ea12796d2 100644
--- a/addons/web_dashboard/static/src/js/dashboard.js
+++ b/addons/web_dashboard/static/src/js/dashboard.js
@@ -1,5 +1,6 @@
openerp.web_dashboard = function(openerp) {
-var QWeb = openerp.web.qweb;
+var QWeb = openerp.web.qweb,
+ _t = openerp.web._t;
if (!openerp.web_dashboard) {
/** @namespace */
@@ -59,7 +60,7 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
};
var $dialog = $('<div>').dialog({
modal: true,
- title: 'Edit Layout',
+ title: _t("Edit Layout"),
width: 'auto',
height: 'auto'
}).html(QWeb.render('DashBoard.layouts', qdict));