[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:
parent
f80d242791
commit
21aca926bc
|
@ -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..."); }
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue