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

use module i18n for my_page

ulfertsfa03558eacca
diff --git a/app/views/homescreen/blocks/_my_account.html.erb b/app/views/homescreen/blocks/_my_account.html.erb
index e39e03121d1..75b3175a6cb 100644
--- a/app/views/homescreen/blocks/_my_account.html.erb
+++ b/app/views/homescreen/blocks/_my_account.html.erb
@@ -2,13 +2,13 @@
<ul class="widget-box--arrow-links">
<li>
- <%= link_to l(:label_profile), my_account_path, title: l(:label_profile) %>
+ <%= link_to t(:label_profile), my_account_path, title: t(:label_profile) %>
</li>
<li>
- <%= link_to l(:label_my_page), my_page_path,
- title: l(:label_my_page) %>
+ <%= link_to t(:'js.my_page.label'), my_page_path,
+ title: t(:'js.my_page.label') %>
</li>
<li>
- <%= link_to l(:button_change_password), my_password_path, title: l(:button_change_password) %>
+ <%= link_to t(:button_change_password), my_password_path, title: t(:button_change_password) %>
</li>
</ul>
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 665f8cd0aa2..b917a30bfe2 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -70,6 +70,7 @@ end
Redmine::MenuManager.map :account_menu do |menu|
menu.push :my_page,
:my_page_path,
+ caption: I18n.t('js.my_page.label'),
if: Proc.new { User.current.logged? }
menu.push :my_account,
{ controller: '/my', action: 'account' },