From: Alexander Ebert Date: Tue, 3 Jan 2012 16:00:09 +0000 (+0100) Subject: Added flexible template for i18n X-Git-Tag: 2.0.0_Beta_1~1463 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f414ba9bf95f0985d543f8207860c4961eaaa70;p=GitHub%2FWoltLab%2FWCF.git Added flexible template for i18n Credits go to @Gravatronics. Closes #318 --- diff --git a/wcfsetup/install/files/acp/templates/multipleLanguageInputJavascript.tpl b/wcfsetup/install/files/acp/templates/multipleLanguageInputJavascript.tpl new file mode 100644 index 0000000000..2a4a32a834 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/multipleLanguageInputJavascript.tpl @@ -0,0 +1,10 @@ +{if !$forceSelection|isset}{assign var=forceSelection value=false}{/if} + \ No newline at end of file diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index 504b541891..77de974916 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -124,7 +124,7 @@ class I18nHandler extends SingletonFactory { * @param boolean $requireI18n * @return boolean */ - public function validateValue($elementID, $requireI18n) { + public function validateValue($elementID, $requireI18n = false) { if ($this->isPlainValue($elementID)) { if ($requireI18n || $this->getValue($elementID) == '') { return false;