Fixed i18n with only one available language
authorAlexander Ebert <ebert@woltlab.com>
Sun, 29 Sep 2013 14:06:55 +0000 (16:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 29 Sep 2013 14:06:55 +0000 (16:06 +0200)
wcfsetup/install/files/acp/templates/userOptionAdd.tpl
wcfsetup/install/files/acp/templates/userOptionCategoryAdd.tpl
wcfsetup/install/files/acp/templates/userRankAdd.tpl

index 3f23501862d611e3a2ca157aaa42639a3170b5db..aac12d8cf1f89f714e354091d886054cdad62171 100644 (file)
@@ -31,7 +31,7 @@
                                <dl{if $errorField == 'optionName'} class="formError"{/if}>
                                        <dt><label for="optionName">{lang}wcf.global.name{/lang}</label></dt>
                                        <dd>
-                                               <input type="text" id="optionName" name="optionName" value="{$optionName}" required="required" autofocus="autofocus" class="long" />
+                                               <input type="text" id="optionName" name="optionName" value="{$i18nPlainValues['optionName']}" required="required" autofocus="autofocus" class="long" />
                                                {if $errorField == 'optionName'}
                                                        <small class="innerError">
                                                                {if $errorType == 'empty'}
@@ -48,7 +48,7 @@
                                <dl{if $errorField == 'optionDescription'} class="formError"{/if}>
                                        <dt><label for="optionDescription">{lang}wcf.acp.user.option.description{/lang}</label></dt>
                                        <dd>
-                                               <textarea name="optionDescription" id="optionDescription" cols="40" rows="10">{$optionDescription}</textarea>
+                                               <textarea name="optionDescription" id="optionDescription" cols="40" rows="10">{lang __optional=true}{$i18nPlainValues['optionDescription']}{/lang}</textarea>
                                                {if $errorField == 'optionDescription'}
                                                        <small class="innerError">
                                                                {if $errorType == 'empty'}
index d036cd2ce5f2116e2681a617bf03398d3ba6c7ee..ef9abe89b792f0417d836f8838d43b9166f72959 100644 (file)
@@ -30,7 +30,7 @@
                        <dl{if $errorField == 'categoryName'} class="formError"{/if}>
                                <dt><label for="categoryName">{lang}wcf.global.name{/lang}</label></dt>
                                <dd>
-                                       <input type="text" id="categoryName" name="categoryName" value="{$categoryName}" required="required" autofocus="autofocus" class="long" />
+                                       <input type="text" id="categoryName" name="categoryName" value="{$i18nPlainValues['categoryName']}" required="required" autofocus="autofocus" class="long" />
                                        {if $errorField == 'categoryName'}
                                                <small class="innerError">
                                                        {if $errorType == 'empty'}
index 8c4d562d5395163d557d3bcb690d07f9beadbbf9..379374ee656a20bcfb35ce0ec2713b75a2aa2e25 100644 (file)
@@ -30,7 +30,7 @@
                        <dl{if $errorField == 'rankTitle'} class="formError"{/if}>
                                <dt><label for="rankTitle">{lang}wcf.acp.user.rank.title{/lang}</label></dt>
                                <dd>
-                                       <input type="text" id="rankTitle" name="rankTitle" value="{$rankTitle}" required="required" autofocus="autofocus" class="long" />
+                                       <input type="text" id="rankTitle" name="rankTitle" value="{$i18nPlainValues['rankTitle']}" required="required" autofocus="autofocus" class="long" />
                                        {if $errorField == 'rankTitle'}
                                                <small class="innerError">
                                                        {if $errorType == 'empty'}