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

added i18n

Jonas Jabari7fd2ac8aca11
diff --git a/app/components/work_packages/activities_tab/journals/filter_component.html.erb b/app/components/work_packages/activities_tab/journals/filter_component.html.erb
index 405da009464..7cb2d450e08 100644
--- a/app/components/work_packages/activities_tab/journals/filter_component.html.erb
+++ b/app/components/work_packages/activities_tab/journals/filter_component.html.erb
@@ -5,7 +5,7 @@
component.with_item(
tag: :a,
href: filter_streams_work_package_activities_url(work_package),
- label: "All activities",
+ label: t("activities.work_packages.activity_tab.label_activity_show_all"),
icon: :pulse,
selected: !only_comments,
data: { "turbo-stream": true, "action": "click->work-packages--activities-tab--index#unsetOnlyComments" }
@@ -13,7 +13,7 @@
component.with_item(
tag: :a,
href: filter_streams_work_package_activities_url(work_package, only_comments: true),
- label: "Only comments",
+ label: t("activities.work_packages.activity_tab.label_activity_show_only_comments"),
icon: :"comment-discussion", selected: only_comments,
data: { "turbo-stream": true, "action": "click->work-packages--activities-tab--index#setOnlyComments" }
)
diff --git a/config/locales/en.yml b/config/locales/en.yml
index ae17335d4ed..9cefcb72ffa 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -36,6 +36,8 @@ en:
activity_tab:
no_results_title_text: Nothing to display
no_results_description_text: "Try to update your filter to see more."
+ label_activity_show_only_comments: "Only comments"
+ label_activity_show_all: "All activities"
admin:
plugins: