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

[#44541] Unify the strings used for user involment

Dombi Attila2a923fd255c3
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index bb8fecfe156..bf4a0dafb21 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -582,8 +582,8 @@ en:
no_unread: "No unread notifications"
reasons:
mentioned: 'mentioned'
- watched: 'watched'
- assigned: 'assigned'
+ watched: 'watcher'
+ assigned: 'assignee'
responsible: 'accountable'
created: 'created'
scheduled: 'scheduled'
@@ -621,7 +621,7 @@ en:
by_reason: 'Involvement'
inbox: 'Inbox'
mentioned: 'Mentioned'
- watching: 'Watching'
+ watched: 'Watcher'
settings:
change_notification_settings: 'To view and change your notification settings, <a target="_blank" href="%{url}">click here</a>'
title: "Notification settings"
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 61c38b3eeb1..aacd5e185a0 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
@@ -77,7 +77,7 @@ export class InAppNotificationCenterComponent implements OnInit {
},
{
key: 'watched',
- title: this.I18n.t('js.notifications.menu.watching'),
+ title: this.I18n.t('js.notifications.menu.watched'),
},
];
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
index fc870155359..412979cd249 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
@@ -88,7 +88,7 @@ export class IanMenuComponent implements OnInit {
},
{
key: 'watched',
- title: this.I18n.t('js.notifications.menu.watching'),
+ title: this.I18n.t('js.notifications.menu.watched'),
icon: 'watching',
...getUiLinkForFilters({ filter: 'reason', name: 'watched' }),
},
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
index bbba1842ffa..ed60a6b417b 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
@@ -40,7 +40,7 @@
class="op-ian-item--reason"
*ngFor="let item of translatedReasons | keyvalue; let first = first; let last = last"
>
- {{ item.key }}<ng-container *ngIf="!last && first !== last">, </ng-container>
+ {{ item.key }}<ng-container *ngIf="!last">, </ng-container>
</span>
</div>
diff --git a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
index 1f5be577950..30ba237807b 100644
--- a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
+++ b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
@@ -76,7 +76,7 @@ describe "Notification center sidemenu", type: :feature, js: true do
side_menu.expect_item_with_no_count 'Assignee'
side_menu.expect_item_with_no_count 'Mentioned'
side_menu.expect_item_with_no_count 'Accountable'
- side_menu.expect_item_with_no_count 'Watching'
+ side_menu.expect_item_with_no_count 'Watcher'
end
end
@@ -88,7 +88,7 @@ describe "Notification center sidemenu", type: :feature, js: true do
side_menu.expect_item_with_count 'Assignee', 1
side_menu.expect_item_with_count 'Mentioned', 1
side_menu.expect_item_with_count 'Accountable', 1
- side_menu.expect_item_with_count 'Watching', 1
+ side_menu.expect_item_with_count 'Watcher', 1
# Expect project filters
side_menu.expect_item_with_count project.name, 1
@@ -103,7 +103,7 @@ describe "Notification center sidemenu", type: :feature, js: true do
side_menu.expect_item_with_count 'Assignee', 1
side_menu.expect_item_with_count 'Mentioned', 1
side_menu.expect_item_with_count 'Accountable', 1
- side_menu.expect_item_with_no_count 'Watching'
+ side_menu.expect_item_with_no_count 'Watcher'
# ... and show only those projects with a notification
side_menu.expect_item_not_visible project.name
@@ -111,9 +111,9 @@ describe "Notification center sidemenu", type: :feature, js: true do
side_menu.expect_item_with_count "... #{project3.name}", 2
# Empty filter sets have a separate message
- side_menu.click_item 'Watching'
+ side_menu.click_item 'Watcher'
side_menu.finished_loading
- expect(page).to have_text "Looks like you're all caught up for Watching filter"
+ expect(page).to have_text "Looks like you're all caught up for Watcher filter"
# Marking all as read
side_menu.click_item 'Inbox'
@@ -123,7 +123,7 @@ describe "Notification center sidemenu", type: :feature, js: true do
side_menu.expect_item_with_no_count 'Assignee'
side_menu.expect_item_with_no_count 'Mentioned'
side_menu.expect_item_with_no_count 'Accountable'
- side_menu.expect_item_with_no_count 'Watching'
+ side_menu.expect_item_with_no_count 'Watcher'
side_menu.expect_item_not_visible project.name
side_menu.expect_item_not_visible project2.name
@@ -134,8 +134,8 @@ describe "Notification center sidemenu", type: :feature, js: true do
# All notifications are shown
center.expect_work_package_item notification, notification2, notification3, notification4
- # Filter for "Watching"
- side_menu.click_item 'Watching'
+ # Filter for "Watcher"
+ side_menu.click_item 'Watcher'
side_menu.finished_loading
center.expect_work_package_item notification
center.expect_no_item notification2, notification3, notification4