From e184fc1cc2ab0b5d02473c72a3eb892e81787586 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 29 Sep 2011 17:13:20 +0200 Subject: [PATCH] i18n values are now handled as user-defined variable Setting origin != system allows you to directly edit the language item value instead of messing around with custom values (which in this case are wrong and misleading). --- .../install/files/lib/system/language/I18nHandler.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index eccf763ce8..3452da2b38 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -193,8 +193,8 @@ class I18nHandler extends SingletonFactory { // insert language items if (count($insertLanguageIDs)) { $sql = "INSERT INTO wcf".WCF_N."_language_item - (languageID, languageItem, languageItemValue, languageCategoryID, packageID) - VALUES (?, ?, ?, ?, ?)"; + (languageID, languageItem, languageItemValue, languageItemOriginIsSystem, languageCategoryID, packageID) + VALUES (?, ?, ?, ?, ?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); foreach ($insertLanguageIDs as $languageID) { @@ -202,6 +202,7 @@ class I18nHandler extends SingletonFactory { $languageID, $languageVariable, $this->i18nValues[$elementID][$languageID], + 0, $languageCategoryID, $packageID )); -- 2.20.1