only use enabled languages

This commit is contained in:
j 2014-04-01 14:23:33 +00:00
commit e4e7fb87b1
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ pandora.ui.appearanceDialog = function() {
}),
Ox.Select({
id: 'locale',
items: Object.keys(Ox.LOCALE_NAMES).map(function(locale) {
items: pandora.site.languages.map(function(locale) {
return {id: locale, title: Ox.LOCALE_NAMES[locale]}
}),
label: Ox._('Language'),