Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Change localisation key to avoid inconsistent interpolations between languages

Henriette Darge2767d891fce0
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 368692d6721..fc3ec92869b 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -713,7 +713,8 @@ en:
empty_state:
no_notification: "Looks like you are all caught up."
no_notification_with_current_project_filter: "Looks like you are all caught up with the selected project."
- no_notification_with_current_filter: "Looks like you are all caught up for this filter."
+ no_notification_with_current_filter: "Looks like you are all caught up for %{filter} filter."
+ no_notification_for_filter: "Looks like you are all caught up for this filter."
no_selection: "Click on a notification to view all activity details."
new_notifications:
message: "There are new notifications."
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts
index 054dd5f2c12..f94b742187f 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts
@@ -114,7 +114,7 @@ export class InAppNotificationCenterComponent implements OnInit {
text = {
no_notification: this.I18n.t('js.notifications.center.empty_state.no_notification'),
no_notification_with_current_filter_project: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_project_filter'),
- no_notification_with_current_filter: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter'),
+ no_notification_for_filter: this.I18n.t('js.notifications.center.empty_state.no_notification_for_filter'),
no_selection: this.I18n.t('js.notifications.center.empty_state.no_selection'),
change_notification_settings: this.I18n.t(
'js.notifications.settings.change_notification_settings',
@@ -162,6 +162,6 @@ export class InAppNotificationCenterComponent implements OnInit {
return this.text.no_notification_with_current_filter_project;
}
- return this.text.no_notification_with_current_filter;
+ return this.text.no_notification_for_filter;
}
}