add db based translations

load translations from files
and adds option to translate
string layers (i.e. keywords)
This commit is contained in:
j 2018-08-08 10:23:05 +01:00
commit f93ece1ab7
22 changed files with 682 additions and 1 deletions

View file

@ -3062,9 +3062,13 @@ pandora.setLocale = function(locale, callback) {
url = [
'/static/json/locale.pandora.' + locale + '.json',
'/static/json/locale.' + pandora.site.site.id + '.' + locale + '.json',
'/api/locale.' + locale + '.json'
];
} else {
url = '/static/json/locale.' + locale + '.json';
url = [
'/static/json/locale.' + locale + '.json',
'/api/locale.' + locale + '.json'
];
}
}
Ox.setLocale(locale, url, callback);