i18n values are now handled as user-defined variable
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 Sep 2011 15:13:20 +0000 (17:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 29 Sep 2011 15:13:20 +0000 (17:13 +0200)
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).

wcfsetup/install/files/lib/system/language/I18nHandler.class.php

index eccf763ce838aeb3fda4ab1e43cee4be746352e3..3452da2b3869a529c89fb6208b386d682a05ca1a 100644 (file)
@@ -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
                                ));