[IMP] select2: allow translation of information messages, avoid the need of locale files from select2

bzr revid: mat@openerp.com-20140306122743-3ejmmnryx2sq8ud7
This commit is contained in:
Martin Trigaux 2014-03-06 13:27:43 +01:00
parent f80d242791
commit 21aca926bc
1 changed files with 9 additions and 1 deletions

View File

@ -482,5 +482,13 @@ openerp.base_import = function (instance) {
{ name: 'import_succeeded', from: 'importing', to: 'imported'},
{ name: 'import_failed', from: 'importing', to: 'results' }
]
})
});
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return _t("No matches found"); },
formatLoadMore: function (pageNumber) { return _t("Loading more results..."); },
formatSearching: function () { return _t("Searching..."); }
});
};