#22 - fix
This commit is contained in:
		| @@ -37,7 +37,7 @@ class DoesNotExceedLimitRule implements VacationRequestRule | |||||||
|  |  | ||||||
|     public function errorMessage(): string |     public function errorMessage(): string | ||||||
|     { |     { | ||||||
|         return __("You have exceeded your vacation limit."); |         return __("Vacation limit has been exceeded."); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     protected function getUserVacationLimit(User $user, YearPeriod $yearPeriod): int |     protected function getUserVacationLimit(User $user, YearPeriod $yearPeriod): int | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ | |||||||
|   "accepted_by_administrative": "Zaakceptowany przez administracyjnego", |   "accepted_by_administrative": "Zaakceptowany przez administracyjnego", | ||||||
|   "You have pending vacation request in this range.": "Masz oczekujący wniosek urlopowy w tym zakresie dat.", |   "You have pending vacation request in this range.": "Masz oczekujący wniosek urlopowy w tym zakresie dat.", | ||||||
|   "You have approved vacation request in this range.": "Masz zaakceptowany wniosek urlopowy w tym zakresie dat.", |   "You have approved vacation request in this range.": "Masz zaakceptowany wniosek urlopowy w tym zakresie dat.", | ||||||
|   "You have exceeded your vacation limit.": "Przekroczyłeś/aś limit urlopu.", |   "Vacation limit has been exceeded.": "Limit urlopu został przekroczony.", | ||||||
|   "Vacation needs minimum one day.": "Urlop musi być co najmniej na jeden dzień.", |   "Vacation needs minimum one day.": "Urlop musi być co najmniej na jeden dzień.", | ||||||
|   "The vacation request cannot be created at the turn of the year.": "Wniosek urlopowy nie może zostać złożony na przełomie roku." |   "The vacation request cannot be created at the turn of the year.": "Wniosek urlopowy nie może zostać złożony na przełomie roku." | ||||||
| } | } | ||||||
|   | |||||||
| @@ -181,7 +181,7 @@ class VacationRequestTest extends FeatureTestCase | |||||||
|                 "comment" => "Comment for the vacation request.", |                 "comment" => "Comment for the vacation request.", | ||||||
|             ]) |             ]) | ||||||
|             ->assertSessionHasErrors([ |             ->assertSessionHasErrors([ | ||||||
|                 "vacationRequest" => __("You have exceeded your vacation limit."), |                 "vacationRequest" => __("Vacation limit has been exceeded."), | ||||||
|             ]); |             ]); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user