in setLocale, allow for setting the locale to the current locale (in order to include additional module locale files)

This commit is contained in:
rolux 2013-05-09 19:01:59 +02:00
parent 54c8871559
commit 9c66eced09

View file

@ -26,7 +26,7 @@
callback(true);
} else {
Ox.forEach(Ox.LOCALES, function(locales, module) {
if (Ox.contains(locales, locale)) {
if (Ox[module] && Ox.contains(locales, locale)) {
urls.push([
Ox.PATH + 'Ox' + (module ? '.' + module : '')
+ '/json/locale.' + locale + '.json'