From: Matthias Schmidt Date: Mon, 22 Jun 2015 18:16:46 +0000 (+0200) Subject: Use global timestamp condition error language items X-Git-Tag: 3.0.0_Beta_1~2249^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1896b8280ddff6932f053f5e0b8befdcb4867107;p=GitHub%2FWoltLab%2FWCF.git Use global timestamp condition error language items --- diff --git a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php index 9008bc4ab6..a886a203df 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php @@ -187,7 +187,7 @@ HTML; if (strlen($this->startTime)) { $startTime = @strtotime($this->startTime); if ($startTime === false) { - $this->errorMessage = $this->getLanguageItemPrefix().'.'.$this->getPropertyName().'.error.startNotValid'; + $this->errorMessage = 'wcf.condition.timestamp.error.startNotValid'; throw new UserInputException($this->getPropertyName(), 'startNotValid'); } @@ -195,14 +195,14 @@ HTML; if (strlen($this->endTime)) { $endTime = @strtotime($this->endTime); if ($endTime === false) { - $this->errorMessage = $this->getLanguageItemPrefix().'.'.$this->getPropertyName().'.error.endNotValid'; + $this->errorMessage = 'wcf.condition.timestamp.error.endNotValid'; throw new UserInputException($this->getPropertyName(), 'endNotValid'); } } if ($endTime !== null && $startTime !== null && $endTime < $startTime) { - $this->errorMessage = $this->getLanguageItemPrefix().'.'.$this->getPropertyName().'.error.endBeforeStart'; + $this->errorMessage = 'wcf.condition.timestamp.error.endBeforeStart'; throw new UserInputException($this->getPropertyName(), 'endBeforeStart'); } diff --git a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php index 0f9bb3e73d..c033904fb8 100644 --- a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php @@ -133,7 +133,7 @@ HTML; if (strlen($this->registrationDateStart)) { $registrationDateStart = @strtotime($this->registrationDateStart); if ($registrationDateStart === false) { - $this->errorMessage = 'wcf.user.condition.registrationDate.error.startNotValid'; + $this->errorMessage = 'wcf.condition.timestamp.error.startNotValid'; throw new UserInputException('registrationDate', 'startNotValid'); } @@ -141,14 +141,14 @@ HTML; if (strlen($this->registrationDateEnd)) { $registrationDateEnd = @strtotime($this->registrationDateEnd); if ($registrationDateEnd === false) { - $this->errorMessage = 'wcf.user.condition.registrationDate.error.endNotValid'; + $this->errorMessage = 'wcf.condition.timestamp.error.endNotValid'; throw new UserInputException('registrationDate', 'endNotValid'); } } if ($registrationDateEnd !== null && $registrationDateStart !== null && $registrationDateEnd < $registrationDateStart) { - $this->errorMessage = 'wcf.user.condition.registrationDate.error.endBeforeStart'; + $this->errorMessage = 'wcf.condition.timestamp.error.endBeforeStart'; throw new UserInputException('registrationDate', 'endBeforeStart'); } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index efe52883ef..3c276ba3b3 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1943,6 +1943,9 @@ Fehler sind beispielsweise: + + + @@ -3135,9 +3138,6 @@ Sollten Sie sich nicht auf der Website: {@PAGE_TITLE|language} angemeldet haben, - - - diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 5044b0bd43..e0d2f1ad11 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1941,6 +1941,9 @@ Errors are: + + + @@ -3126,9 +3129,6 @@ You can safely ignore this email if you did not register with the website: {@PAG - - -