diff --git a/application/forms/Config/GeneralForm.php b/application/forms/Config/GeneralForm.php index ced24401c..debb27d44 100644 --- a/application/forms/Config/GeneralForm.php +++ b/application/forms/Config/GeneralForm.php @@ -93,7 +93,6 @@ class GeneralForm extends Form foreach (Translator::getAvailableLocaleCodes() as $language) { $languages[$language] = $language; } - $languages[Translator::DEFAULT_LOCALE] = Translator::DEFAULT_LOCALE; $this->addElement( 'select', diff --git a/application/forms/Preference/GeneralForm.php b/application/forms/Preference/GeneralForm.php index fbc8f8d74..204ddc51d 100644 --- a/application/forms/Preference/GeneralForm.php +++ b/application/forms/Preference/GeneralForm.php @@ -33,7 +33,6 @@ class GeneralForm extends Form foreach (Translator::getAvailableLocaleCodes() as $language) { $languages[$language] = $language; } - $languages[Translator::DEFAULT_LOCALE] = Translator::DEFAULT_LOCALE; $prefs = $this->getUserPreferences(); $useDefaultLanguage = $this->getRequest()->getParam('default_language', !$prefs->has('app.language')); diff --git a/library/Icinga/Util/Translator.php b/library/Icinga/Util/Translator.php index 111e414ad..fd01812b3 100644 --- a/library/Icinga/Util/Translator.php +++ b/library/Icinga/Util/Translator.php @@ -115,7 +115,7 @@ class Translator */ public static function getAvailableLocaleCodes() { - $codes = array(); + $codes = array(static::DEFAULT_LOCALE); foreach (array_values(self::$knownDomains) as $directory) { $dh = opendir($directory); while (false !== ($name = readdir($dh))) {