Skip to content

Commit

Permalink
#465 - fix: code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Jul 17, 2024
1 parent f958997 commit ca15af9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function toSlack(): SlackMessage
$lastMedicalExamDate = $this->user->lastMedicalExam();

return (new SlackMessage())
->text(__("The deadline for occupational health examinations for you is about to expire - :date (overdue :difference days)", [
->text(__("The deadline for occupational medical examinations for you is about to expire - :date (:difference days)", [
"date" => $lastMedicalExamDate->to->toDisplayString(),
"difference" => (int)$lastMedicalExamDate->to->diffInDays(Carbon::today(), true),
]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function toSlack(): SlackMessage
$lastOhsTrainingDate = $this->user->lastOhsTraining();

return (new SlackMessage())
->text(__("The deadline for occupational ohs training for you is about to expire - :date (overdue :difference days)", [
->text(__("The deadline for occupational ohs training for you is about to expire - :date (:difference days)", [
"date" => $lastOhsTrainingDate->to->toDisplayString(),
"difference" => (int)$lastOhsTrainingDate->to->diffInDays(Carbon::today(), true),
]));
Expand Down
2 changes: 1 addition & 1 deletion lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"The request :title has been approved by you as a technical approver.\nUser: :requester\nDate: :date (number of days: :days)": "Wniosek :title został zaakceptowany przez Ciebie jako przełożonego technicznego.\nPracownik: :requester\nData: :date (liczba dni: :days)",
"The request :title has been approved by you as an administrative approver.\nUser: :requester\nDate: :date (number of days: :days)": "Wniosek :title został zaakceptowany przez Ciebie jako przełożonego administracyjnego.\nPracownik: :requester\nData: :date (liczba dni: :days)",
"The deadline for occupational ohs training for you is about to expire - :date (:difference days)": "Niedługo mija termin Twojego szkolenia BHP - :date (:difference dni)",
"The deadline for occupational health examinations for you is about to expire - :date (:difference days)": "Niedługo mija termin Twojego badania lekarskiego z medycyny pracy - :date (:difference dni)",
"The deadline for occupational medical examinations for you is about to expire - :date (:difference days)": "Niedługo mija termin Twojego badania lekarskiego z medycyny pracy - :date (:difference dni)",
"Request :title has been :status": "Wniosek :title został :status",
"Request :title in :application": "Wniosek :title w aplikacji :application",
"The request :title from user :requester has been :status.": "Wniosek :title użytkownika :requester został :status.",
Expand Down

0 comments on commit ca15af9

Please sign in to comment.