{if $errorField == 'className'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'doesNotExist'}{lang}wcf.acp.cronjob.error.className.doesNotExist{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.cronjob.error.className.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="classNameHelpMessage">{lang}wcf.acp.cronjob.className.description{/lang}</small>
{if $errorField == 'startMinute'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notValid'}{lang}wcf.acp.cronjob.error.timing.notValid{/lang}{/if}
+ {lang}wcf.acp.cronjob.error.timing.{@$errorType}{/lang}
</small>
{/if}
<small id="startMinuteHelpMessage">{lang}wcf.acp.cronjob.startMinute.description{/lang}</small>
{if $errorField == 'startHour'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notValid'}{lang}wcf.acp.cronjob.error.timing.notValid{/lang}{/if}
+ {lang}wcf.acp.cronjob.error.timing.{@$errorType}{/lang}
</small>
{/if}
<small id="startHourHelpMessage">{lang}wcf.acp.cronjob.startHour.description{/lang}</small>
{if $errorField == 'startDom'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notValid'}{lang}wcf.acp.cronjob.error.timing.notValid{/lang}{/if}
+ {lang}wcf.acp.cronjob.error.timing.{@$errorType}{/lang}
</small>
{/if}
<small id="startDomHelpMessage">{lang}wcf.acp.cronjob.startDom.description{/lang}</small>
{if $errorField == 'startMonth'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notValid'}{lang}wcf.acp.cronjob.error.timing.notValid{/lang}{/if}
+ {lang}wcf.acp.cronjob.error.timing.{@$errorType}{/lang}
</small>
{/if}
<small id="startMonthHelpMessage">{lang}wcf.acp.cronjob.startMonth.description{/lang}</small>
{if $errorField == 'startDow'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notValid'}{lang}wcf.acp.cronjob.error.timing.notValid{/lang}{/if}
+ {lang}wcf.acp.cronjob.error.timing.{@$errorType}{/lang}
</small>
{/if}
<small id="startDowHelpMessage">{lang}wcf.acp.cronjob.startDow.description{/lang}</small>
</hgroup>
</header>
-{if $errorField != ''}
+{if $errorField}
<p class="error">{lang}wcf.global.form.error{/lang}</p>
{/if}
<dd><input type="text" id="username" name="username" value="{$username}" class="medium" />
{if $errorField == 'username'}
<small class="innerError">
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'notFound'}{lang}wcf.user.error.username.notFound{/lang}{/if}
+ <span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.error.username.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
</dd>
<dd><input type="password" id="password" name="password" value="" class="medium" />
{if $errorField == 'password'}
<small class="innerError">
- <img src="{@RELATIVE_WCF_DIR}icon/errorS.png" alt="" />
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'false'}{lang}wcf.user.error.password.false{/lang}{/if}
+ <span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.error.password.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorField == 'masterPassword'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'invalid'}{lang}wcf.acp.masterPassword.error.invalid{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.masterPassword.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="masterPasswordHelpMessage">{lang}wcf.acp.masterPassword.enter.description{/lang}</small>
{if $errorField == 'masterPassword'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'notSecure'}{lang}wcf.acp.masterPassword.error.notSecure{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.masterPassword.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="masterPasswordHelpMessage">{lang}wcf.acp.masterPassword.init.description{/lang}</small>
{if $errorField == 'confirmMasterPassword'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'notEqual'}{lang}wcf.acp.masterPassword.error.notEqual{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.masterPassword.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorField == 'optionImport'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'importFailed'}{lang}wcf.acp.option.import.error.importFailed{/lang}{/if}
- {if $errorType == 'uploadFailed'}{lang}wcf.acp.option.import.error.uploadFailed{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.option.import.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="optionImportHelpMessage">{lang}wcf.acp.option.import.upload.description{/lang}</small>
{if $errorField == 'uploadPackage'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'noValidPackage'}{lang}wcf.acp.package.startInstall.error.noValidPackage{/lang}{/if}
- {if $errorType == 'noValidUpdate'}{lang}wcf.acp.package.startInstall.error.noValidUpdate{/lang}{/if}
- {if $errorType == 'noValidInstall'}{lang}wcf.acp.package.startInstall.error.noValidInstall{/lang}{/if}
- {if $errorType == 'uploadFailed'}{lang}wcf.acp.package.startInstall.error.uploadFailed{/lang}{/if}
- {if $errorType == 'uniqueAlreadyInstalled'}{lang}wcf.acp.package.startInstall.error.uniqueAlreadyInstalled{/lang}{/if}
- {if $errorType == 'phpRequirements'}<pre>{$phpRequirements|print_r}</pre>{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {elseif $errorType == 'phpRequirements'}
+ {* todo: use language variable (-> else) *}
+ <pre>{$phpRequirements|print_r}</pre>
+ {else}
+ {lang}wcf.acp.package.startInstall.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="uploadPackageHelpMessage">{lang}wcf.acp.package.startInstall.source.upload.description{/lang}</small>
{if $errorField == 'downloadPackage'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'notFound'}{lang}wcf.acp.package.startInstall.error.notFound{/lang}{/if}
- {if $errorType == 'noValidPackage'}{lang}wcf.acp.package.startInstall.error.noValidPackage{/lang}{/if}
- {if $errorType == 'noValidUpdate'}{lang}wcf.acp.package.startInstall.error.noValidUpdate{/lang}{/if}
- {if $errorType == 'noValidInstall'}{lang}wcf.acp.package.startInstall.error.noValidInstall{/lang}{/if}
- {if $errorType == 'uniqueAlreadyInstalled'}{lang}wcf.acp.package.startInstall.error.uniqueAlreadyInstalled{/lang}{/if}
+ {lang}wcf.acp.package.startInstall.error.{@$errorType}{/lang}
</small>
{/if}
<small id="downloadPackageHelpMessage">{lang}wcf.acp.package.startInstall.source.download.description{/lang}</small>
{if $errorField == 'serverURL'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType == 'notValid'}{lang}wcf.acp.updateServer.serverURL.error.notValid{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.updateServer.serverURL.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="serverURLHelpMessage">{lang}wcf.acp.updateServer.serverURL.description{/lang}</small>
{if $errorType.username|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.username == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType.username == 'notValid'}{lang}wcf.user.error.username.notValid{/lang}{/if}
- {if $errorType.username == 'notUnique'}{lang}wcf.user.error.username.notUnique{/lang}{/if}
+ {if $errorType.username == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.error.username.{@$errorType.username}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorType.email|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.email == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
- {if $errorType.email == 'notValid'}{lang}wcf.user.error.email.notValid{/lang}{/if}
- {if $errorType.email == 'notUnique'}{lang}wcf.user.error.email.notUnique{/lang}{/if}
+ {if $errorType.email == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.error.email.{@$errorType.email}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorType.confirmEmail|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.confirmEmail == 'notEqual'}{lang}wcf.user.error.confirmEmail.notEqual{/lang}{/if}
+ {lang}wcf.user.error.confirmEmail.{@$errorType.confirmEmail}{/lang}
</small>
{/if}
</dd>
{if $errorType.password|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.password == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType.password == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.error.password.{@$errorType.password}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorType.confirmPassword|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.confirmPassword == 'notEqual'}{lang}wcf.user.error.confirmPassword.notEqual{/lang}{/if}
+ {lang}wcf.user.error.confirmPassword.{@$errorType.confirmPassword}{/lang}
</small>
{/if}
</dd>
{if $errorType.groupName|isset}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType.groupName == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType.groupName == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.group.groupName.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="groupNameHelpMessage">{lang}wcf.acp.group.groupName.description{/lang}</small>
{if $errorField == 'groupIDs'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.user.sendMail.groups.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
</dd>
{if $errorField == 'subject'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.user.sendMail.subject.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="subjectHelpMessage">{lang}wcf.acp.user.sendMail.subject.description{/lang}</small>
{if $errorField == 'from'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.user.sendMail.subject.from.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="fromHelpMessage">{lang}wcf.acp.user.sendMail.from.description{/lang}</small><!-- ToDo: Language variable contains paragraphs! -->
{if $errorField == 'text'}
<small class="innerError">
<span class="arrowOuter" style="display: none;"><span class="arrowInner"></span></span>
- {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.acp.user.sendMail.text.error.{@$errorType}{/lang}
+ {/if}
</small>
{/if}
<small id="textHelpMessage">{lang}wcf.acp.user.sendMail.text.description{/lang}</small>