From a362bb4ccdcab6e992a4f10f255e43a3636f18de Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Sep 2013 21:19:14 +0200 Subject: [PATCH] Fixed i18n validation for setups with only one available language --- .../install/files/lib/system/language/I18nHandler.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index 20be5d4510..56207d1137 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -214,6 +214,11 @@ class I18nHandler extends SingletonFactory { * @return boolean */ public function validateValue($elementID, $requireI18n = false, $permitEmptyValue = false) { + // do not force i18n if only one language is available + if ($requireI18n && count($this->availableLanguages) == 1) { + $requireI18n = false; + } + if ($this->isPlainValue($elementID)) { // plain values may be left empty if ($permitEmptyValue) { -- 2.20.1