<input type="text" id="groupName" name="groupName" value="{$i18nPlainValues['groupName']}" autofocus="autofocus" class="long" />
{if $errorField == 'groupName'}
<small class="innerError">
- {if $errorType == 'empty'}
- {lang}wcf.global.form.error.empty{/lang}
+ {if $errorType == 'empty' || $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.{@$errorType}{/lang}
{else}
{lang}wcf.acp.label.group.groupName.error.{@$errorType}{/lang}
{/if}
parent::validate();
// validate group name
- try {
- if (!I18nHandler::getInstance()->validateValue('groupName')) {
- if (I18nHandler::getInstance()->isPlainValue('groupName')) {
- throw new UserInputException('groupName');
- }
- else {
- throw new UserInputException('groupName', 'multilingual');
- }
+ if (!I18nHandler::getInstance()->validateValue('groupName')) {
+ if (I18nHandler::getInstance()->isPlainValue('groupName')) {
+ throw new UserInputException('groupName');
+ }
+ else {
+ throw new UserInputException('groupName', 'multilingual');
}
- }
- catch (UserInputException $e) {
- $this->errorType[$e->getField()] = $e->getType();
}
// validate object type relations