From 0411c967949be475dc9ab42dc58bb5ca79b13268 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 16 Jun 2013 17:59:35 +0200 Subject: [PATCH] Replaces 'invalid' with 'notValid' --- com.woltlab.wcf/templates/mail.tpl | 2 +- com.woltlab.wcf/templates/newPassword.tpl | 9 ++++++--- .../files/acp/templates/userActivityPointOption.tpl | 2 +- .../lib/acp/form/AbstractCategoryEditForm.class.php | 2 +- .../install/files/lib/acp/form/LabelAddForm.class.php | 2 +- .../files/lib/acp/form/MasterPasswordForm.class.php | 2 +- .../lib/acp/form/UserActivityPointOptionForm.class.php | 2 +- .../install/files/lib/acp/form/UserRankAddForm.class.php | 2 +- wcfsetup/install/files/lib/form/MailForm.class.php | 2 +- .../install/files/lib/form/NewPasswordForm.class.php | 4 ++-- wcfsetup/install/lang/de.xml | 8 ++++---- wcfsetup/install/lang/en.xml | 8 ++++---- 12 files changed, 24 insertions(+), 21 deletions(-) diff --git a/com.woltlab.wcf/templates/mail.tpl b/com.woltlab.wcf/templates/mail.tpl index fce68ee0c2..ed8d9aeb6c 100644 --- a/com.woltlab.wcf/templates/mail.tpl +++ b/com.woltlab.wcf/templates/mail.tpl @@ -65,7 +65,7 @@ {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} - {elseif $errorType == 'invalid'} + {elseif $errorType == 'notValid'} {lang}wcf.user.email.error.notValid{/lang} {else} {lang}wcf.user.mail.senderEmail.error.{@$errorType}{/lang} diff --git a/com.woltlab.wcf/templates/newPassword.tpl b/com.woltlab.wcf/templates/newPassword.tpl index feaefd5fed..23ffb50305 100644 --- a/com.woltlab.wcf/templates/newPassword.tpl +++ b/com.woltlab.wcf/templates/newPassword.tpl @@ -44,7 +44,7 @@ {if $errorField == 'userID'} - {if $errorType == 'invalid'}{lang}wcf.user.userID.error.invalid{/lang}{/if} + {lang}wcf.user.userID.error.{$errorType}{/lang} {/if} @@ -58,8 +58,11 @@ {if $errorField == 'lostPasswordKey'} - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - {if $errorType == 'invalid'}{lang}wcf.user.lostPasswordKey.error.invalid{/lang}{/if} + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.user.lostPasswordKey.error.{$errorType}{/lang} + {/if} {/if} diff --git a/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl b/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl index 9a78db9c0a..d6eeed8317 100644 --- a/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl +++ b/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl @@ -47,7 +47,7 @@ {if $errorField == $objectType->objectTypeID} - {lang}wcf.acp.user.activityPoint.option.invalid{/lang} + {lang}wcf.acp.user.activityPoint.option.notValid{/lang} {/if} diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php index 6301a65375..541e96c01f 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php @@ -166,7 +166,7 @@ class AbstractCategoryEditForm extends AbstractCategoryAddForm { // check if new parent category is no child category of the category $childCategories = CategoryHandler::getInstance()->getChildCategories($this->categoryID, $this->objectType->objectTypeID); if (isset($childCategories[$this->parentCategoryID])) { - throw new UserInputException('parentCategoryID', 'invalid'); + throw new UserInputException('parentCategoryID', 'notValid'); } } } diff --git a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php index 5023e7bda7..01d173e379 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php @@ -127,7 +127,7 @@ class LabelAddForm extends AbstractForm { } $groups = $this->labelGroupList->getObjects(); if (!isset($groups[$this->groupID])) { - throw new UserInputException('groupID', 'invalid'); + throw new UserInputException('groupID', 'notValid'); } if (empty($this->cssClassName)) { diff --git a/wcfsetup/install/files/lib/acp/form/MasterPasswordForm.class.php b/wcfsetup/install/files/lib/acp/form/MasterPasswordForm.class.php index 8da439081b..06b7a864ce 100755 --- a/wcfsetup/install/files/lib/acp/form/MasterPasswordForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MasterPasswordForm.class.php @@ -68,7 +68,7 @@ class MasterPasswordForm extends AbstractForm { // check password if (!PasswordUtil::secureCompare(MASTER_PASSWORD, PasswordUtil::getDoubleSaltedHash($this->masterPassword, MASTER_PASSWORD))) { - throw new UserInputException('masterPassword', 'invalid'); + throw new UserInputException('masterPassword', 'notValid'); } } diff --git a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php index 882d0bcb9e..45ce44bca4 100644 --- a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php @@ -56,7 +56,7 @@ class UserActivityPointOptionForm extends AbstractForm { parent::validate(); foreach ($this->points as $objectTypeID => $points) { - if ($points < 0) throw new UserInputException($objectTypeID, 'invalid'); + if ($points < 0) throw new UserInputException($objectTypeID, 'notValid'); } } diff --git a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php index b9ea461267..8944bbff44 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php @@ -148,7 +148,7 @@ class UserRankAddForm extends AbstractForm { } $userGroup = UserGroup::getGroupByID($this->groupID); if ($userGroup === null || $userGroup->groupType == UserGroup::GUESTS || $userGroup->groupType == UserGroup::EVERYONE) { - throw new UserInputException('groupID', 'invalid'); + throw new UserInputException('groupID', 'notValid'); } // css class name diff --git a/wcfsetup/install/files/lib/form/MailForm.class.php b/wcfsetup/install/files/lib/form/MailForm.class.php index 34e9ecc347..63712fb795 100644 --- a/wcfsetup/install/files/lib/form/MailForm.class.php +++ b/wcfsetup/install/files/lib/form/MailForm.class.php @@ -103,7 +103,7 @@ class MailForm extends RecaptchaForm { } if (!UserUtil::isValidEmail($this->email)) { - throw new UserInputException('email', 'invalid'); + throw new UserInputException('email', 'notValid'); } } diff --git a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php index 3239191ca5..b80370221c 100644 --- a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php +++ b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php @@ -73,14 +73,14 @@ class NewPasswordForm extends AbstractForm { $this->user = new User($this->userID); if (!$this->user->userID) { - throw new UserInputException('userID', 'invalid'); + throw new UserInputException('userID', 'notValid'); } if (!$this->user->lostPasswordKey) { throw new UserInputException('lostPasswordKey'); } if ($this->user->lostPasswordKey != $this->lostPasswordKey) { - throw new UserInputException('lostPasswordKey', 'invalid'); + throw new UserInputException('lostPasswordKey', 'notValid'); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 1f31c3d796..4fd7bace3d 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -400,9 +400,9 @@ {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php löschen.]]> - {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php löschen.]]> + {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php löschen.]]> @@ -1311,7 +1311,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getAllowedExtensions() - + @@ -1905,8 +1905,8 @@ Falls Sie Ihr Kennwort nicht vergessen haben, können Sie diese E-Mail ignoriere - - + + {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php.]]> - {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php.]]> + {@RELATIVE_WCF_DIR}acp/masterPassword.inc.php.]]> @@ -1309,7 +1309,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getAllowedExtensions()}]]> - + @@ -1904,8 +1904,8 @@ If you have not lost your password, you can safely ignore this email.]]> - - + +