diff options
| author | Antonin Bourguignon <abo@openerp.com> | 2012-06-25 17:35:45 +0200 |
|---|---|---|
| committer | Antonin Bourguignon <abo@openerp.com> | 2012-06-25 17:35:45 +0200 |
| commit | cc2d116e47e27eccc00ec215c3fe3ef1f65f13cb (patch) | |
| tree | 17792168b4c2678712674970f7534ac28e17ada4 /addons/web/static/src | |
| parent | 5fc38ee41d6465d20c6dd7a90da8aed9090d049b (diff) | |
[IMP] better integration of openerp's i18n in timeago.js
a suggestion for easier third party i18n integration will be made on the original project's git repo: https://github.com/rmm5t/jquery-timeago
bzr revid: abo@openerp.com-20120625153545-zca7qljrizugxntk
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index 99e134e7bd4..ace41234e0c 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -606,12 +606,7 @@ instance.web.qweb.preprocess_node = function() { /** Setup jQuery timeago */ var timeago_setup = function () { - var s = $.timeago.settings.strings; - _.each(s, function(v,k) { - if(_.isString(v)) { - s[k] = instance.web._t(v); - } - }); + $.timeago.settings.translator = instance.web._t; } instance.connection.on('module_loaded', this, timeago_setup); |
