From 6a4daf80115d9774f400f5942d79b81e6a8ac2d9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 31 May 2013 13:15:21 +0000 Subject: [PATCH] disable language for non admins until we have translations, fixes #1527 --- static/js/pandora/mainMenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/mainMenu.js b/static/js/pandora/mainMenu.js index d9ccdc7d0..749cfb719 100644 --- a/static/js/pandora/mainMenu.js +++ b/static/js/pandora/mainMenu.js @@ -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} }) }