disable language for non admins until we have translations, fixes #1527

This commit is contained in:
j 2013-05-31 13:15:21 +00:00
parent 0383de30fb
commit 6a4daf8011

View file

@ -158,7 +158,8 @@ pandora.ui.mainMenu = function() {
return {id: theme, title: Ox.Theme.getThemeData(theme).themeName, checked: ui.theme == theme}
}) }
] },
{ id: 'locale', title: Ox._('Language'), items: [
{ id: 'locale', disabled: pandora.user.level != 'admin',
title: Ox._('Language'), items: [
{ group: 'setlocale', min: 1, max: 1, items: Object.keys(Ox.LOCALE_NAMES).map(function(locale) {
return {id: locale, title: Ox.LOCALE_NAMES[locale], checked: ui.locale == locale}
}) }