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

[#43151] fixed plural menu entry

Eric Schubert768bca155da5
diff --git a/app/views/my/access_token.html.erb b/app/views/my/access_token.html.erb
index 80b39dacfaa..9fe491e0e60 100644
--- a/app/views/my/access_token.html.erb
+++ b/app/views/my/access_token.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t(:label_my_account), I18n.t('my_account.access_tokens.access_token')) -%>
+<% html_title(t(:label_my_account), I18n.t('my_account.access_tokens.access_tokens')) -%>
-<% breadcrumb_paths(t(:label_my_account), I18n.t('my_account.access_tokens.access_token')) %>
-<%= toolbar title: I18n.t('my_account.access_tokens.access_token') %>
+<% breadcrumb_paths(t(:label_my_account), I18n.t('my_account.access_tokens.access_tokens')) %>
+<%= toolbar title: I18n.t('my_account.access_tokens.access_tokens') %>
<p><%= t(:text_access_token_hint) %></p>
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index e73b3222612..b7871830561 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -140,7 +140,7 @@ Redmine::MenuManager.map :my_menu do |menu|
icon: 'icon2 icon-locked'
menu.push :access_token,
{ controller: '/my', action: 'access_token' },
- caption: I18n.t('my_account.access_tokens.access_token'),
+ caption: I18n.t('my_account.access_tokens.access_tokens'),
icon: 'icon2 icon-key'
menu.push :notifications,
{ controller: '/my', action: 'notifications' },
@@ -491,7 +491,7 @@ Redmine::MenuManager.map :project_menu do |menu|
}.each do |key, caption|
menu.push :"settings_#{key}",
{ controller: "/projects/settings/#{key}", action: 'show' },
- caption: caption,
+ caption:,
parent: :settings
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f423022ffeb..f2a84d34629 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1432,7 +1432,7 @@ en:
no_results:
title: "No access tokens to display"
description: "All of them have been disabled. They can be re-enabled in the administration menu."
- access_token: "Access token"
+ access_tokens: "Access tokens"
headers:
action: "Action"
expiration: "Expires"