<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
+ {elseif $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.multilingual{/lang}
{else}
{lang}wcf.acp.bbcode.buttonLabel.error.{@$errorType}{/lang}
{/if}
<input type="text" name="pageMenuItem" id="pageMenuItem" value="{$i18nPlainValues['pageMenuItem']}" class="long" required="required" />
{if $errorField == 'pageMenuItem'}
<small class="innerError">
- {if $errorType == 'empty'}
- {lang}wcf.global.form.error.empty{/lang}
+ {if $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.multilingual{/lang}
{else}
{lang}wcf.acp.pageMenu.pageMenuItem.error.{$errorType}{/lang}
{/if}
<small class="innerError">
{if $errorType.groupName == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
+ {elseif $errorType.groupName == 'multilingual'}
+ {lang}wcf.global.form.error.multilingual{/lang}
{else}
{lang}wcf.acp.group.groupName.error.{@$errorType}{/lang}
{/if}
<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'}
- {lang}wcf.global.form.error.empty{/lang}
+ {if $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.multilingual{/lang}
{else}
{lang}wcf.acp.user.option.name.error.{@$errorType}{/lang}
{/if}
<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'}
- {lang}wcf.global.form.error.empty{/lang}
+ {if $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.multilingual{/lang}
{else}
{lang}wcf.acp.user.option.category.name.error.{@$errorType}{/lang}
{/if}
if ($this->showButton) {
// validate label
if (!I18nHandler::getInstance()->validateValue('buttonLabel')) {
- throw new UserInputException('buttonLabel');
+ if (I18nHandler::getInstance()->isPlainValue('buttonLabel')) {
+ throw new UserInputException('buttonLabel');
+ }
+ else {
+ throw new UserInputException('buttonLabel', 'multilingual');
+ }
}
// validate image path
// validate page menu item name
if (!I18nHandler::getInstance()->validateValue('pageMenuItem', true)) {
- throw new UserInputException('pageMenuItem');
+ throw new UserInputException('pageMenuItem', 'multilingual');
}
// validate parent menu item
// validate group name
try {
if (!I18nHandler::getInstance()->validateValue('groupName')) {
- throw new UserInputException('groupName');
+ if (I18nHandler::getInstance()->isPlainValue('groupName')) {
+ throw new UserInputException('groupName');
+ }
+ else {
+ throw new UserInputException('groupName', 'multilingual');
+ }
}
if (mb_strpos($this->userOnlineMarking, '%s') === false) {
throw new UserInputException('userOnlineMarking', 'notValid');
// option name
if (!I18nHandler::getInstance()->validateValue('optionName', true)) {
- throw new UserInputException('optionName');
+ throw new UserInputException('optionName', 'multilingual');
}
// category name
parent::validate();
if (!I18nHandler::getInstance()->validateValue('categoryName', true)) {
- throw new UserInputException('categoryName');
+ throw new UserInputException('categoryName', 'multilingual');
}
}