[WIP] load translation, mhhh

bzr revid: fme@openerp.com-20130926135216-f1b1k6kg04it9dzs
This commit is contained in:
Fabien Meghazi 2013-09-26 15:52:16 +02:00
parent b6e1e1ec71
commit c67092bc37
1 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@
$pagination.last().before(col);
});
var page_start = page - parseInt(Math.floor((scope-1)/2));
var page_start = page - parseInt(Math.floor((scope-1)/2), 10);
if (page_start < 1 ) page_start = 1;
var page_end = page_start + (scope-1);
if (page_end > page_count ) page_end = page_count;
@ -108,10 +108,10 @@
*/
website.ready = function() {
if (!all_ready) {
all_ready = dom_ready.then(function () {
// TODO: load translations
return website.load_templates(templates);
});
var tpl = website.load_templates(templates);
// var session;
// var trads = openerp._t.database.load_translations(session, ['website'], website.get_context().lang);
all_ready = $.when(dom_ready, tpl);
}
return all_ready;
};