Added separate columns to track changed phrases
authorAlexander Ebert <ebert@woltlab.com>
Thu, 16 Mar 2017 11:49:53 +0000 (12:49 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 16 Mar 2017 11:49:53 +0000 (12:49 +0100)
See #2221

wcfsetup/install/files/acp/templates/languageItemEditDialog.tpl
wcfsetup/setup/db/install.sql

index 84a63720cb88e82e67ee8b4e80cf02af0d5ed8fd..1eeb8ae49f33e0ab6ef728c60fea18f5b293a456 100644 (file)
 </section>
 
 {if $item->languageItemOriginIsSystem}
+       {if $item->languageItemOldValue}
+               <section class="section">
+                       <header class="sectionHeader">
+                               <h2 class="sectionTitle">{lang}wcf.acp.language.item.oldValue{/lang}</h2>
+                               <p class="sectionDescription">{lang}wcf.acp.language.item.oldValue.description{/lang}</p>
+                       </header>
+                       
+                       <dl class="wide">
+                               <dt></dt>
+                               <dd>
+                                       <textarea rows="5" cols="60" readonly>{$item->languageItemOldValue}</textarea>
+                               </dd>
+                       </dl>
+               </section>
+       {/if}
+       
        <section class="section">
                <h2 class="sectionTitle">{lang}wcf.acp.language.item.customValue{/lang}</h2>
                
index 12ce932d2ce7ff2fb52896c817d1883a42bacc8c..a8eb35a5c825e36a3b97b459521c9dbe8dc87ca5 100644 (file)
@@ -560,6 +560,8 @@ CREATE TABLE wcf1_language_item (
        languageItemOriginIsSystem TINYINT(1) NOT NULL DEFAULT 1,
        languageCategoryID INT(10) NOT NULL,
        packageID INT(10),
+       languageItemOldValue MEDIUMTEXT,
+       languageCustomItemDisableTime INT(10),
        UNIQUE KEY languageItem (languageItem, languageID),
        KEY languageItemOriginIsSystem (languageItemOriginIsSystem)
 );