add db based translations
load translations from files and adds option to translate string layers (i.e. keywords)
This commit is contained in:
parent
0a4c507346
commit
f93ece1ab7
22 changed files with 682 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue