disable language for non admins until we have translations, fixes #1527
This commit is contained in:
parent
0383de30fb
commit
6a4daf8011
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
}) }
|
||||
|
|
Loading…
Reference in a new issue