[#69927] Fix "since X days" on Notifications page

This should read "for X days" in English.

https://community.openproject.org/work_packages/69927
This commit is contained in:
Alexander Brandon Coles
2025-12-12 11:47:09 -03:00
parent 2bc79368be
commit e2dd0fdb85
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -598,7 +598,7 @@ en:
date_alerts:
milestone_date: "Milestone date"
overdue: "Overdue"
overdue_since: "since %{difference_in_days}."
overdue_since: "for %{difference_in_days}."
property_today: "is today."
property_is: "is in %{difference_in_days}."
property_was: "was %{difference_in_days} ago."
@@ -42,7 +42,7 @@ RSpec.describe "Notification center date alert and mention",
center.within_item(notification_date_alert) do
expect(page).to have_text("##{work_package.id}\n- #{project.name} -\nDate alert, Mentioned")
expect(page).to have_no_text("Actor User")
expect(page).to have_text("Overdue since 1 day.")
expect(page).to have_text("Overdue for 1 day.")
end
end
end
@@ -212,10 +212,10 @@ RSpec.describe "Notification center date alerts", :js, with_settings: { journal_
center.expect_item(notification_wp_start_past, "Start date was 1 day ago.")
center.expect_item(notification_wp_start_future, "Start date is in 7 days.")
center.expect_item(notification_wp_due_past, "Overdue since 3 days.")
center.expect_item(notification_wp_due_past, "Overdue for 3 days.")
center.expect_item(notification_wp_due_future, "Finish date is in 3 days.")
center.expect_item(notification_milestone_past, "Overdue since 2 days.")
center.expect_item(notification_milestone_past, "Overdue for 2 days.")
center.expect_item(notification_milestone_future, "Milestone date is in 1 day.")
center.expect_item(notification_wp_unset_date, "Finish date is deleted.")
@@ -56,7 +56,7 @@ RSpec.describe "Notification center reminder, mention and date alert",
it "shows the reminder alert within aggregation with date alert + reminder note" do
center.within_item(notification_reminder) do
expect(page).to have_text("##{work_package.id}\n- #{project.name} -\nDate alert, Mentioned, Reminder")
expect(page).to have_text("Overdue since 1 day.\nNote: “This is an important reminder”")
expect(page).to have_text("Overdue for 1 day.\nNote: “This is an important reminder”")
end
end
end
+2 -2
View File
@@ -161,7 +161,7 @@ RSpec.describe DigestMailer do
end
it "matches generated text" do
expect(mail_body).to have_text("Overdue since 3 days.")
expect(mail_body).to have_text("Overdue for 3 days.")
end
end
@@ -194,7 +194,7 @@ RSpec.describe DigestMailer do
end
it "matches generated text" do
expect(mail_body).to include('<span style="color: #C92A2A">Overdue since 2 days.</span>')
expect(mail_body).to include('<span style="color: #C92A2A">Overdue for 2 days.</span>')
end
end