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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
replace custom i18n function in views
ulferts27b41a313ce9
diff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erbindex 0e6e999d9ec..f27d757b8da 100644--- a/app/views/account/_login.html.erb+++ b/app/views/account/_login.html.erb@@ -41,7 +41,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field-extra-actions"><% if Setting.autologin? %><label class="form--label-with-check-box">- <%= styled_check_box_tag 'autologin', 1, false, id: 'autologin-pulldown' %> <%= l(:label_stay_logged_in) %></label>+ <%= styled_check_box_tag 'autologin', 1, false, id: 'autologin-pulldown' %> <%= t(:label_stay_logged_in) %></label><% elsif Setting.self_registration? %><%# show here if autologin is disabled, otherwise below lost_password link %><%= link_to t(:label_register),@@ -75,7 +75,7 @@ See docs/COPYRIGHT.rdoc for more details. </label><input type="submit" name="login" id="login-pulldown"- value="<%=l(:button_login)%>" class="button -highlight" tabindex="1" />+ value="<%=t(:button_login)%>" class="button -highlight" tabindex="1" /></div></div>diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erbindex add711399fa..b3082b92f5a 100644--- a/app/views/account/_password_login_form.html.erb+++ b/app/views/account/_password_login_form.html.erb@@ -49,18 +49,18 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field-container"><label class="form--label-with-check-box"><%= styled_check_box_tag 'autologin', 1, false %>- <%= l(:label_stay_logged_in) %>+ <%= t(:label_stay_logged_in) %></label></div></div><% end %>- <input type="submit" name="login" value="<%=l(:button_login)%>" class="button -highlight" />+ <input type="submit" name="login" value="<%=t(:button_login)%>" class="button -highlight" /><div class="login-options-container"><div class="login-links"><% if Setting.lost_password? %>- <%= link_to l(:label_password_lost), { controller: '/account', action: 'lost_password' } %>+ <%= link_to t(:label_password_lost), { controller: '/account', action: 'lost_password' } %><br><% end %><% if Setting.self_registration? %>diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erbindex d94e839707a..b02cc3f8499 100644--- a/app/views/account/_register.html.erb+++ b/app/views/account/_register.html.erb@@ -105,7 +105,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'account/user_consent_check', locals: { consenting_user: @user } %><% end %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><%= render partial: 'account/auth_providers', locals: { omniauth_title: I18n.t('account.signup_with_auth_provider'), wide: true } %></div>diff --git a/app/views/account/exit.html.erb b/app/views/account/exit.html.erbindex dd6caeae796..5dc636c4235 100644--- a/app/views/account/exit.html.erb+++ b/app/views/account/exit.html.erb@@ -31,8 +31,8 @@ See docs/COPYRIGHT.rdoc for more details.fail ArgumentError, 'missing instructions' unless defined? instructions%>-<% html_title l(:label_login) %>-<% breadcrumb_paths(l(:label_login)) %>+<% html_title t(:label_login) %>+<% breadcrumb_paths(t(:label_login)) %><%= call_hook :view_account_login_top %><%diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erbindex e18f9719733..8fdca49bd91 100644--- a/app/views/account/login.html.erb+++ b/app/views/account/login.html.erb@@ -27,8 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% breadcrumb_paths(l(:label_login)) %>-<% html_title l(:label_login) %>+<% breadcrumb_paths(t(:label_login)) %>+<% html_title t(:label_login) %><%= call_hook :view_account_login_top %><div id="login-form" class="form -bordered"><h1><%= I18n.t(:label_login) %></h1>diff --git a/app/views/account/lost_password.html.erb b/app/views/account/lost_password.html.erbindex fd27a4a9575..39660f99b9d 100644--- a/app/views/account/lost_password.html.erb+++ b/app/views/account/lost_password.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_password_lost) %>-<%= toolbar title: l(:label_password_lost) %>+<% html_title t(:label_password_lost) %>+<%= toolbar title: t(:label_password_lost) %><section class="form--section"><%= styled_form_tag({action: "lost_password"}) do %><div class="form--field -required">@@ -36,6 +36,6 @@ See docs/COPYRIGHT.rdoc for more details.<%= styled_text_field_tag 'mail', nil, size: 40, container_class: '-middle' %></span></div>- <%= styled_button_tag l(:button_submit), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_submit), class: '-highlight -with-icon icon-checkmark' %><% end %></section>diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erbindex 51328a4d3a1..6668fcbfb7f 100644--- a/app/views/account/password_recovery.html.erb+++ b/app/views/account/password_recovery.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_password_lost) %>-<%= toolbar title: l(:label_password_lost) %>+<% html_title t(:label_password_lost) %>+<%= toolbar title: t(:label_password_lost) %><%= error_messages_for 'user' %><%= styled_form_tag({token: @token.value}, autocomplete: 'off') do %><section class="form--section">@@ -48,5 +48,5 @@ See docs/COPYRIGHT.rdoc for more details.</div></div></section>- <p><%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %></p>+ <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></p><% end %>diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erbindex a2e48016f2e..9daac740c3c 100644--- a/app/views/activities/index.html.erb+++ b/app/views/activities/index.html.erb@@ -29,7 +29,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= call_hook :activity_index_head %>-<%= toolbar title: (@author.nil? ? t(:label_activity) : l(:label_user_activity, link_to_user(@author))).html_safe,+<%= toolbar title: (@author.nil? ? t(:label_activity) : t(:label_user_activity, link_to_user(@author))).html_safe,subtitle: t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to-1))%>diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erbindex c6104a11a6b..b5e0c348302 100644--- a/app/views/admin/index.html.erb+++ b/app/views/admin/index.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_administration), l(:label_overview)) -%>+<% html_title(t(:label_administration), t(:label_overview)) -%><%= toolbar title: t(:label_overview) %>diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erbindex e8f843f98cb..87bcf45a306 100644--- a/app/views/admin/info.html.erb+++ b/app/views/admin/info.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_administration), l(:label_information_plural)) -%>+<% html_title(t(:label_administration), t(:label_information_plural)) -%><%= toolbar title: I18n.t('label_information_plural') %>@@ -35,14 +35,14 @@ See docs/COPYRIGHT.rdoc for more details.<div class="attributes-key-value"><%= call_hook(:view_admin_info_top) %><% if (product_version = OpenProject::VERSION.product_version).present? %>- <div class="attributes-key-value--key"><%= l(:label_product_version) %></div>+ <div class="attributes-key-value--key"><%= t(:label_product_version) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span><strong><%= product_version %></strong></span></div></div><% end %>- <div class="attributes-key-value--key"><%= l(:label_core_version) %></div>+ <div class="attributes-key-value--key"><%= t(:label_core_version) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span><strong><%= OpenProject::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</span>@@ -64,7 +64,7 @@ See docs/COPYRIGHT.rdoc for more details.</div><% end %><% if (updated_on = OpenProject::VERSION.updated_on).present? %>- <div class="attributes-key-value--key"><%= l(:label_last_change_on) %></div>+ <div class="attributes-key-value--key"><%= t(:label_last_change_on) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span><%= format_date(updated_on) %></span>@@ -82,7 +82,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="attributes-key-value--key"><%= l(label) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text">- <span><%= icon_wrapper((result ? 'icon-context icon-checkmark' : 'icon-context icon-bug'), (result ? l(:general_text_Yes) : l(:general_text_No))) %></span>+ <span><%= icon_wrapper((result ? 'icon-context icon-checkmark' : 'icon-context icon-bug'), (result ? t(:general_text_Yes) : t(:general_text_No))) %></span></div></div><% end %>@@ -90,10 +90,10 @@ See docs/COPYRIGHT.rdoc for more details.</div><% @storage_information.each_with_index do |(_,entries), i| %>-<%= content_tag :h3, l(:label_storage_group, identifier: i + 1) %>+<%= content_tag :h3, t(:label_storage_group, identifier: i + 1) %><div class="attributes-group"><div class="attributes-key-value">- <div class="attributes-key-value--key"><%= l(:label_storage_for) %></div>+ <div class="attributes-key-value--key"><%= t(:label_storage_for) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span>@@ -104,13 +104,13 @@ See docs/COPYRIGHT.rdoc for more details.</span></div></div>- <div class="attributes-key-value--key"><%= l(:label_storage_free_space) %></div>+ <div class="attributes-key-value--key"><%= t(:label_storage_free_space) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span><%= number_to_human_size(entries[:data][:free], precision: 2) %></span></div></div>- <div class="attributes-key-value--key"><%= l(:label_storage_used_space) %></div>+ <div class="attributes-key-value--key"><%= t(:label_storage_used_space) %></div><div class="attributes-key-value--value-container"><div class="attributes-key-value--value -text"><span>diff --git a/app/views/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erbindex 449991cf5f6..04b5156abb3 100644--- a/app/views/attribute_help_texts/edit.html.erb+++ b/app/views/attribute_help_texts/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title t(:label_administration), l(:'attribute_help_texts.edit', attribute_caption: @attribute_help_text.attribute_caption) %>+<% html_title t(:label_administration), t(:'attribute_help_texts.edit', attribute_caption: @attribute_help_text.attribute_caption) %><% local_assigns[:additional_breadcrumb] = t(:'attribute_help_texts.edit', attribute_caption: @attribute_help_text.attribute_caption) %><%= breadcrumb_toolbar t(:'attribute_help_texts.edit', attribute_caption: @attribute_help_text.attribute_caption)%>@@ -38,5 +38,5 @@ See docs/COPYRIGHT.rdoc for more details.html: {id: 'attribute_help_text_form'} do |f| %><%= render partial: 'form', locals: { f: f, editing: true } %><%= hidden_field_tag 'attribute_scope', @attribute_help_text.attribute_scope %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/attribute_help_texts/new.html.erb b/app/views/attribute_help_texts/new.html.erbindex b84c126828f..3ce71906285 100644--- a/app/views/attribute_help_texts/new.html.erb+++ b/app/views/attribute_help_texts/new.html.erb@@ -38,5 +38,5 @@ See docs/COPYRIGHT.rdoc for more details.html: {id: 'attribute_help_text_form'} do |f| %><%= render partial: 'form', locals: { f: f } %><%= f.hidden_field :type, value: @attribute_help_text.type %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/auth_sources/edit.html.erb b/app/views/auth_sources/edit.html.erbindex 59267dcd016..f416fc49990 100644--- a/app/views/auth_sources/edit.html.erb+++ b/app/views/auth_sources/edit.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{l(:label_auth_source)} #{@auth_source.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{t(:label_auth_source)} #{@auth_source.name}" %><% local_assigns[:additional_breadcrumb] = @auth_source.name %>-<%= toolbar title: "#{l(:label_auth_source)} (#{@auth_source.auth_method_name})" %>+<%= toolbar title: "#{t(:label_auth_source)} (#{@auth_source.auth_method_name})" %><%= labelled_tabular_form_for @auth_source, as: :auth_source do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/auth_sources/index.html.erb b/app/views/auth_sources/index.html.erbindex 1914905834b..cb21df9cf37 100644--- a/app/views/auth_sources/index.html.erb+++ b/app/views/auth_sources/index.html.erb@@ -27,15 +27,15 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_auth_source_plural) %>-<%= toolbar title: l(:label_auth_source_plural) do %>+<% html_title t(:label_administration), t(:label_auth_source_plural) %>+<%= toolbar title: t(:label_auth_source_plural) do %><li class="toolbar-item"><%= link_to({ action: 'new' },{ class: 'button -alt-highlight',aria: {label: t(:label_auth_source_new)},title: t(:label_auth_source_new)}) do %><%= op_icon('button--icon icon-add') %>- <span class="button--text"><%= l(:label_auth_source) %></span>+ <span class="button--text"><%= t(:label_auth_source) %></span><% end %></li><% end %>@@ -84,7 +84,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:label_user_plural)%>+ <%= t(:label_user_plural)%></span></div></div>@@ -100,10 +100,10 @@ See docs/COPYRIGHT.rdoc for more details.<td><%= source.host %></td><td><%= source.users.count %></td><td class="buttons">- <%= link_to l(:button_test), { action: 'test_connection', id: source } %>+ <%= link_to t(:button_test), { action: 'test_connection', id: source } %><%= link_to '', { action: 'destroy', id: source },method: :delete,- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },class: 'icon icon-delete',disabled: source.users.any?,title: t(:button_delete) %>diff --git a/app/views/auth_sources/new.html.erb b/app/views/auth_sources/new.html.erbindex 1b44fb59a6f..be4e0fa28d1 100644--- a/app/views/auth_sources/new.html.erb+++ b/app/views/auth_sources/new.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_auth_source_new) %>-<% local_assigns[:additional_breadcrumb] = l(:label_auth_source_new) %>-<%= toolbar title: "#{l(:label_auth_source_new)} (#{@auth_source.auth_method_name})" %>+<% html_title t(:label_administration), t(:label_auth_source_new) %>+<% local_assigns[:additional_breadcrumb] = t(:label_auth_source_new) %>+<%= toolbar title: "#{t(:label_auth_source_new)} (#{@auth_source.auth_method_name})" %><%= labelled_tabular_form_for @auth_source, as: :auth_source do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/authentication/authentication_settings.html.erb b/app/views/authentication/authentication_settings.html.erbindex 19351696b03..3fe32e7c11d 100644--- a/app/views/authentication/authentication_settings.html.erb+++ b/app/views/authentication/authentication_settings.html.erb@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_authentication) -%>+<% html_title t(:label_administration), t(:label_authentication) -%>-<%= toolbar title: l(:label_authentication) %>+<%= toolbar title: t(:label_authentication) %><%= styled_form_tag({ action: :edit }) do %><section class="form--section">diff --git a/app/views/categories/destroy.html.erb b/app/views/categories/destroy.html.erbindex 7dffd1b9e2c..f8a4effb568 100644--- a/app/views/categories/destroy.html.erb+++ b/app/views/categories/destroy.html.erb@@ -28,7 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= toolbar title: "#{Category.model_name.human} #{@category.name}" %><%= form_tag({}, {method: :delete, class: 'form'}) do %>- <p><strong><%= l(:text_work_package_category_destroy_question, @issue_count) %></strong></p>+ <p><strong><%= t(:text_work_package_category_destroy_question, count: @issue_count) %></strong></p><div class="form--field"><label class="form--label" for="todo_nullify"><%= t(:text_work_package_category_destroy_assignments) %></label>@@ -43,12 +43,12 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field-container"><%= styled_radio_button_tag 'todo', 'reassign', false %></div>- <%= label_tag "reassign_to_id", l(:description_work_package_category_reassign), class: "hidden-for-sighted" %>+ <%= label_tag "reassign_to_id", t(:description_work_package_category_reassign), class: "hidden-for-sighted" %><%= styled_select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name'), container_class: '-middle' %></div><% end %>- <%= submit_tag l(:button_apply), class: 'button -highlight' %>- <%= link_to l(:button_cancel), { controller: '/project_settings/categories', action: 'show', id: @project },+ <%= submit_tag t(:button_apply), class: 'button -highlight' %>+ <%= link_to t(:button_cancel), { controller: '/project_settings/categories', action: 'show', id: @project },class: 'button' %><% end %>diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erbindex 9ccdaad9477..6e2424cd882 100644--- a/app/views/categories/edit.html.erb+++ b/app/views/categories/edit.html.erb@@ -29,5 +29,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: Category.model_name.human %><%= labelled_tabular_form_for @category, as: :category do |f| %><%= render partial: 'categories/form', locals: { f: f } %>- <%= f.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>+ <%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erbindex d11e732f8bd..58cd862046a 100644--- a/app/views/categories/new.html.erb+++ b/app/views/categories/new.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_work_package_category_new) %>+<%= toolbar title: t(:label_work_package_category_new) %><%= labelled_tabular_form_for [@project, @category], as: :category do |f| %><%= render partial: 'categories/form', locals: { f: f } %>- <%= f.button l(:button_create), class: 'button -highlight -with-icon icon-checkmark' %>+ <%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/colors/confirm_destroy.html.erb b/app/views/colors/confirm_destroy.html.erbindex a9ab52065dd..3744ab704ed 100644--- a/app/views/colors/confirm_destroy.html.erb+++ b/app/views/colors/confirm_destroy.html.erb@@ -33,20 +33,20 @@ See docs/COPYRIGHT.rdoc for more details.as: :color do |f| %><div class='flash warning'>- <%= l('timelines.really_delete_color') %>+ <%= t('timelines.really_delete_color') %><span class="close-handler" role="button" tabindex="0" aria-label="{{ ::I18n.t('js.close_popup_title') }}"><%= op_icon('icon-close') %></span></div><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l('timelines.properties') %></legend>+ <legend class="form--fieldset-legend"><%= t('timelines.properties') %></legend><div class="form--field"><%= f.text_field :hexcode, disabled: 'disabled' %><%= icon_for_color(@color) %></div></fieldset>- <%= submit_tag l(:button_delete), class: 'button -highlight' %>- <%= link_to l(:button_cancel), colors_path, class: 'button' %>+ <%= submit_tag t(:button_delete), class: 'button -highlight' %>+ <%= link_to t(:button_cancel), colors_path, class: 'button' %><% end %>diff --git a/app/views/colors/edit.html.erb b/app/views/colors/edit.html.erbindex 5a40543edcc..975de26ae4a 100644--- a/app/views/colors/edit.html.erb+++ b/app/views/colors/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{l("timelines.admin_menu.color")} #{h @color.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{t("timelines.admin_menu.color")} #{h @color.name}" %><% local_assigns[:additional_breadcrumb] = @color.name %><%= labelled_tabular_form_for @color,diff --git a/app/views/colors/index.html.erb b/app/views/colors/index.html.erbindex d109a412a94..1f368a79007 100644--- a/app/views/colors/index.html.erb+++ b/app/views/colors/index.html.erb@@ -27,14 +27,14 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l("timelines.admin_menu.colors") %>+<% html_title t(:label_administration), t("timelines.admin_menu.colors") %>-<%= toolbar title: l('timelines.admin_menu.colors') do %>+<%= toolbar title: t('timelines.admin_menu.colors') do %><li class="toolbar-item"><%= link_to new_color_path,{ class: 'button -alt-highlight',- aria: {label: l('timelines.new_color')},- title: l('timelines.new_color')} do %>+ aria: {label: t('timelines.new_color')},+ title: t('timelines.new_color')} do %><%= op_icon('button--icon icon-add') %><span class="button--text"><%= t('activerecord.attributes.type.color') %></span><% end %>diff --git a/app/views/colors/new.html.erb b/app/views/colors/new.html.erbindex ee400e03f2a..8be76f7c328 100644--- a/app/views/colors/new.html.erb+++ b/app/views/colors/new.html.erb@@ -27,8 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_new)} #{l("timelines.admin_menu.color")}" %>-<% local_assigns[:additional_breadcrumb] = l(:label_new) + ' ' + l("timelines.admin_menu.color") %>+<% html_title t(:label_administration), "#{t(:label_new)} #{t("timelines.admin_menu.color")}" %>+<% local_assigns[:additional_breadcrumb] = t(:label_new) + ' ' + t("timelines.admin_menu.color") %><%= labelled_tabular_form_for @color,url: colors_url,diff --git a/app/views/common/_diff.html.erb b/app/views/common/_diff.html.erbindex 21e0574149f..67d4ebaff1c 100644--- a/app/views/common/_diff.html.erb+++ b/app/views/common/_diff.html.erb@@ -88,4 +88,4 @@ See docs/COPYRIGHT.rdoc for more details.<% end -%></div><% end -%>-<%= l(:text_diff_truncated) if diff.truncated? %>+<%= t(:text_diff_truncated) if diff.truncated? %>diff --git a/app/views/common/_validation_error.html.erb b/app/views/common/_validation_error.html.erbindex bc3cd60b9ed..fa48d9dd2af 100644--- a/app/views/common/_validation_error.html.erb+++ b/app/views/common/_validation_error.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% error_message = l("activerecord.errors.template.header.#{(error_messages.count == 1) ? 'one' : 'other'}",+<% error_message = t("activerecord.errors.template.header.#{(error_messages.count == 1) ? 'one' : 'other'}",count: error_messages.count,model: object_name)%>diff --git a/app/views/copy_projects/copy_from_admin.html.erb b/app/views/copy_projects/copy_from_admin.html.erbindex 59557c01de2..d56965eb813 100644--- a/app/views/copy_projects/copy_from_admin.html.erb+++ b/app/views/copy_projects/copy_from_admin.html.erb@@ -29,7 +29,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= error_messages_for 'copy_project' %>-<%= toolbar title: l(:label_project_new) %>+<%= toolbar title: t(:label_project_new) %><%= labelled_tabular_form_for @copy_project, url: { action: 'copy', coming_from: 'admin' } do |f| %><%= hidden_field_tag :coming_from, 'admin' %>@@ -46,5 +46,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: "copy_projects/copy_settings/copy_associations", locals: { project: @project } %>- <%= submit_tag l(:button_copy), class: 'button -highlight' %>+ <%= submit_tag t(:button_copy), class: 'button -highlight' %><% end %>diff --git a/app/views/copy_projects/copy_from_settings.html.erb b/app/views/copy_projects/copy_from_settings.html.erbindex 2055d4d8cdd..8de10262358 100644--- a/app/views/copy_projects/copy_from_settings.html.erb+++ b/app/views/copy_projects/copy_from_settings.html.erb@@ -28,7 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= error_messages_for 'copy_project' %>-<%= toolbar title: l(:label_project_new) %>+<%= toolbar title: t(:label_project_new) %><%= labelled_tabular_form_for @copy_project, url: { action: 'copy', coming_from: 'settings' } do |f| %><%= hidden_field_tag :coming_from, 'settings' %>@@ -46,5 +46,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: "copy_projects/copy_settings/copy_associations", locals: { project: @project } %>- <%= submit_tag l(:button_copy), class: 'button -highlight' %>+ <%= submit_tag t(:button_copy), class: 'button -highlight' %><% end %>diff --git a/app/views/copy_projects/copy_settings/_copy_associations.html.erb b/app/views/copy_projects/copy_settings/_copy_associations.html.erbindex 4aea4bed6b7..7ea3a01a53e 100644--- a/app/views/copy_projects/copy_settings/_copy_associations.html.erb+++ b/app/views/copy_projects/copy_settings/_copy_associations.html.erb@@ -28,49 +28,49 @@ See docs/COPYRIGHT.rdoc for more details.++#%><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l(:button_copy) %></legend>+ <legend class="form--fieldset-legend"><%= t(:button_copy) %></legend><%= render partial: "copy_projects/copy_settings/block_checkbox",locals: { name: "overview", checked: true, label: t(:label_overview), count: nil } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "queries", checked: true, label: l(:label_query_plural),+ locals: { name: "queries", checked: true, label: t(:label_query_plural),count: project.queries.count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "boards", checked: true, label: l('boards.label_boards'),+ locals: { name: "boards", checked: true, label: t('boards.label_boards'),count: ::Boards::Grid.where(project: project).count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "forums", checked: false, label: l(:label_forum_plural),+ locals: { name: "forums", checked: false, label: t(:label_forum_plural),count: project.forums.count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "members", checked: true, label: l(:label_member_plural),+ locals: { name: "members", checked: true, label: t(:label_member_plural),count: project.members.count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "versions", checked: true, label: l(:label_version_plural),+ locals: { name: "versions", checked: true, label: t(:label_version_plural),count: project.versions.count } %><% if project.wiki.present? %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "wiki", checked: true, label: l(:label_wiki_page_plural),+ locals: { name: "wiki", checked: true, label: t(:label_wiki_page_plural),count: project.wiki.nil? ? 0 : project.wiki.pages.count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "wiki_page_attachments", checked: false, label: l(:label_wiki_page_attachments),+ locals: { name: "wiki_page_attachments", checked: false, label: t(:label_wiki_page_attachments),count: project.wiki.pages.joins(:attachments).count('attachments.id') } %><% end %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "work_packages", checked: true, label: l(:label_work_package_plural),+ locals: { name: "work_packages", checked: true, label: t(:label_work_package_plural),count: project.work_packages.count } %><%= render partial: "copy_projects/copy_settings/block_checkbox",- locals: { name: "work_package_attachments", checked: true, label: l(:label_work_package_attachments),+ locals: { name: "work_package_attachments", checked: true, label: t(:label_work_package_attachments),count: project.work_packages.joins(:attachments).count('attachments.id') } %><%= render partial: "copy_projects/copy_settings/block_checkbox",locals: { name: "categories", checked: true,- label: l(:label_work_package_category_plural),+ label: t(:label_work_package_category_plural),count: project.categories.count } %><%= hidden_field_tag 'only[]', '' %><br /><label class="block"><%= check_box_tag 'notifications', 1, params[:notifications] %>- <%= l(:label_project_copy_notifications) %>+ <%= t(:label_project_copy_notifications) %></label></fieldset>diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erbindex ac42b94171c..d7bd4d89961 100644--- a/app/views/custom_actions/edit.html.erb+++ b/app/views/custom_actions/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), t('custom_actions.edit', name: @custom_action.name) %>+<% html_title t(:label_administration), t('custom_actions.edit', name: @custom_action.name) %><% local_assigns[:additional_breadcrumb] = t('custom_actions.edit', name: @custom_action.name) %><%= breadcrumb_toolbar t('custom_actions.edit', name: @custom_action.name) %>@@ -36,5 +36,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @custom_action do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erbindex 73d95b0c0ba..5d46a2fdbe6 100644--- a/app/views/custom_actions/index.html.erb+++ b/app/views/custom_actions/index.html.erb@@ -1,4 +1,4 @@-<% html_title l(:label_administration), t('custom_actions.plural') -%>+<% html_title t(:label_administration), t('custom_actions.plural') -%><%= toolbar title: t('custom_actions.plural') do %><li class="toolbar-item"><%= link_to new_custom_action_path,diff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erbindex cce85a326ce..29cb63cf2ff 100644--- a/app/views/custom_actions/new.html.erb+++ b/app/views/custom_actions/new.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), t('custom_actions.new') %>+<% html_title t(:label_administration), t('custom_actions.new') %><% local_assigns[:additional_breadcrumb] = t('custom_actions.new') %><%= breadcrumb_toolbar t('custom_actions.new') %>@@ -36,5 +36,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @custom_action do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erbindex 19a02ea8570..2427b464d83 100644--- a/app/views/custom_fields/_tab.html.erb+++ b/app/views/custom_fields/_tab.html.erb@@ -112,7 +112,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:button_sort)%>+ <%=t(:button_sort)%></span></div></div>diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erbindex afe4feacf38..04848a0d1de 100644--- a/app/views/custom_fields/edit.html.erb+++ b/app/views/custom_fields/edit.html.erb@@ -29,7 +29,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render :partial => 'custom_fields_header' %>-<% html_title l(:label_administration), "#{l(:label_edit)} #{CustomField.model_name.human} #{h @custom_field.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{CustomField.model_name.human} #{h @custom_field.name}" %><% local_assigns[:additional_breadcrumb] = link_to(l(@custom_field.type_name), custom_fields_path(tab: @custom_field.type)),@custom_field.name %>@@ -41,5 +41,5 @@ See docs/COPYRIGHT.rdoc for more details.url: custom_field_path(@custom_field),html: {method: :put, id: 'custom_field_form'} do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/custom_fields/index.html.erb b/app/views/custom_fields/index.html.erbindex f28aeb15a4e..9a4149f6a7b 100644--- a/app/views/custom_fields/index.html.erb+++ b/app/views/custom_fields/index.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_custom_field_plural) %>+<%= toolbar title: t(:label_custom_field_plural) %><%= render_tabs custom_fields_tabs %>-<% html_title(l(:label_administration), l(:label_custom_field_plural)) -%>+<% html_title(t(:label_administration), t(:label_custom_field_plural)) -%>diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erbindex 419eea446fc..b527b311874 100644--- a/app/views/custom_fields/new.html.erb+++ b/app/views/custom_fields/new.html.erb@@ -28,10 +28,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= render :partial => 'custom_fields_header' %>-<% html_title l(:label_administration), l(:label_custom_field_new) %>+<% html_title t(:label_administration), t(:label_custom_field_new) %><% local_assigns[:additional_breadcrumb] = link_to(l(@custom_field.type_name), custom_fields_path(tab: @custom_field.type)),- l(:label_custom_field_new) %>-<%= breadcrumb_toolbar l(:label_custom_field_new) %>+ t(:label_custom_field_new) %>+<%= breadcrumb_toolbar t(:label_custom_field_new) %><%= error_messages_for 'custom_field' %><%= labelled_tabular_form_for @custom_field, as: :custom_field,@@ -39,5 +39,5 @@ See docs/COPYRIGHT.rdoc for more details.html: {id: 'custom_field_form', class: "-wide-labels"} do |f| %><%= render partial: 'form', locals: { f: f } %><%= hidden_field_tag 'type', @custom_field.type %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erbindex 6be42239e10..7bc25dcd0bd 100644--- a/app/views/custom_styles/show.html.erb+++ b/app/views/custom_styles/show.html.erb@@ -60,7 +60,7 @@ See docs/COPYRIGHT.rdoc for more details.<div><%# Don't use image_tag here due to asset host %><%= tag('img', src: custom_style_logo_path(digest: @custom_style.digest, filename: @custom_style.logo_identifier), class: 'custom-logo-preview') %>- <%= link_to l(:button_delete),+ <%= link_to t(:button_delete),custom_style_logo_delete_path,method: :delete,class: 'icon icon-delete confirm-form-submit' %>@@ -196,7 +196,7 @@ See docs/COPYRIGHT.rdoc for more details.var computedStyle = getComputedStyle(document.documentElement);document- .querySelectorAll('.design-color--variable-input')+ .querySelectorAlt('.design-color--variable-input').forEach(function(el) {if (!el.value || el.value === '') {el.placeholder = computedStyle.getPropertyValue('--' + el.dataset.variableName).trim();diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erbindex 9f95a71a51c..b72623f3378 100644--- a/app/views/enumerations/destroy.html.erb+++ b/app/views/enumerations/destroy.html.erb@@ -29,15 +29,15 @@ See docs/COPYRIGHT.rdoc for more details.<%= breadcrumb_toolbar link_to(t(@enumeration.option_name), enumerations_path), @enumeration %><%= styled_form_tag({}, method: :delete) do %><section class="form--section">- <p><strong><%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p>+ <p><strong><%= t(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p><div class="form--field">- <%= styled_label_tag 'reassign_to_id', l(:text_enumeration_category_reassign_to) %>+ <%= styled_label_tag 'reassign_to_id', t(:text_enumeration_category_reassign_to) %><div class="form--field-container"><%= styled_select_tag 'reassign_to_id', options_from_collection_for_select(@enumerations, 'id', 'name') %></div></div></section>- <%= styled_submit_tag l(:button_apply), class: '-highlight' %>- <%= link_to l(:button_cancel), { controller: '/enumerations', action: 'index' },+ <%= styled_submit_tag t(:button_apply), class: '-highlight' %>+ <%= link_to t(:button_cancel), { controller: '/enumerations', action: 'index' },class: 'button' %><% end %>diff --git a/app/views/enumerations/edit.html.erb b/app/views/enumerations/edit.html.erbindex 08bda6ceae7..5c3eb5872a2 100644--- a/app/views/enumerations/edit.html.erb+++ b/app/views/enumerations/edit.html.erb@@ -27,16 +27,16 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{Enumeration.model_name.human} #{h @enumeration.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{Enumeration.model_name.human} #{h @enumeration.name}" %><% local_assigns[:additional_breadcrumb] = @enumeration %><%= breadcrumb_toolbar @enumeration %><%= labelled_tabular_form_for @enumeration do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %><%= styled_form_tag(enumeration_path(@enumeration), method: :delete) do %>- <%= styled_submit_tag l(:button_delete) %>+ <%= styled_submit_tag t(:button_delete) %><% end %>diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erbindex 4c0bcea3ee9..e476e5918d9 100644--- a/app/views/enumerations/new.html.erb+++ b/app/views/enumerations/new.html.erb@@ -27,10 +27,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_enumeration_new) %>-<% local_assigns[:additional_breadcrumb] = l(:label_enumeration_new) %>-<%= breadcrumb_toolbar l(:label_enumeration_new) %>+<% html_title t(:label_administration), t(:label_enumeration_new) %>+<% local_assigns[:additional_breadcrumb] = t(:label_enumeration_new) %>+<%= breadcrumb_toolbar t(:label_enumeration_new) %><%= labelled_tabular_form_for @enumeration do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erbindex bd52d4d56fd..8dca6f82a72 100644--- a/app/views/forums/index.html.erb+++ b/app/views/forums/index.html.erb@@ -100,7 +100,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:button_sort)%>+ <%=t(:button_sort)%></span></div></div>@@ -141,7 +141,7 @@ See docs/COPYRIGHT.rdoc for more details.title: t(:button_edit) %><%= link_to_if_authorized '',{ controller: '/forums', action: 'destroy', project_id: @project, id: forum },- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },method: :delete,class: 'icon icon-delete',title: t(:button_delete) %>diff --git a/app/views/groups/_general.html.erb b/app/views/groups/_general.html.erbindex 094ea0dfdcc..32e1dcb4a6c 100644--- a/app/views/groups/_general.html.erb+++ b/app/views/groups/_general.html.erb@@ -29,5 +29,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @group, url: group_path(@group), html: {method: :put}, as: :group do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erbindex cde2edc5d8c..5505c0e695c 100644--- a/app/views/groups/_memberships.html.erb+++ b/app/views/groups/_memberships.html.erb@@ -55,7 +55,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:label_role_plural) %>+ <%= t(:label_role_plural) %></span></div></div>@@ -89,8 +89,8 @@ See docs/COPYRIGHT.rdoc for more details.</label><% end %><p class="generic-table--cell-controls">- <%= submit_tag l(:button_change), class: 'button -highlight -small' %>- <%= link_to_function l(:button_cancel), "jQuery('#member-#{membership.id}-roles').show(); jQuery('#member-#{membership.id}-roles-form').hide();",+ <%= submit_tag t(:button_change), class: 'button -highlight -small' %>+ <%= link_to_function t(:button_cancel), "jQuery('#member-#{membership.id}-roles').show(); jQuery('#member-#{membership.id}-roles-form').hide();",class: 'button -small' %></p><% end %>@@ -99,7 +99,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= link_to_function icon_wrapper('icon icon-edit', t(:button_edit)),"jQuery('#member-#{membership.id}-roles').hide(); jQuery('#member-#{membership.id}-roles-form').show();" do %><% end %>- <%= link_to l(:button_remove), membership_of_group_path(@group, membership),+ <%= link_to t(:button_remove), membership_of_group_path(@group, membership),method: :delete,class: 'icon icon-remove' %></td>@@ -118,16 +118,16 @@ See docs/COPYRIGHT.rdoc for more details.<% if projects.any? %><%= styled_form_tag(memberships_of_group_path(@group), method: :post) do %><fieldset class="form--fieldset add-membership-form-fieldset">- <legend class="form--fieldset-legend"><%=l(:label_project_new)%></legend>- <%= label_tag "new_membership_project_id", l(:description_choose_project), class: "hidden-for-sighted" %>+ <legend class="form--fieldset-legend"><%=t(:label_project_new)%></legend>+ <%= label_tag "new_membership_project_id", t(:description_choose_project), class: "hidden-for-sighted" %><%= styled_select_tag 'new_membership[project_id]', options_for_membership_project_select(@group, projects) %><div class="form--field -vertical">- <%= styled_label_tag nil, "#{l(:label_role_plural)}:" %>+ <%= styled_label_tag nil, "#{t(:label_role_plural)}:" %><div class="form--field-container -vertical"><%= labeled_check_box_tags 'new_membership[role_ids][]', roles %></div></div>- <div><%= styled_button_tag l(:button_add), class: '-highlight -with-icon icon-checkmark' %></div>+ <div><%= styled_button_tag t(:button_add), class: '-highlight -with-icon icon-checkmark' %></div></fieldset><% end %><% end %>diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erbindex 3ede3d84771..7d665658012 100644--- a/app/views/groups/_users.html.erb+++ b/app/views/groups/_users.html.erb@@ -51,7 +51,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= styled_form_tag(members_of_group_path(@group), method: :post) do %><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%=l(:label_user_new)%></legend>+ <legend class="form--fieldset-legend"><%=t(:label_user_new)%></legend><div class="form--field -vertical"><%= hidden_field_tag :user_ids, nil %><user-autocompleter data-update-input="user_ids"@@ -60,7 +60,7 @@ See docs/COPYRIGHT.rdoc for more details.</user-autocompleter></div><div>- <%= styled_button_tag l(:button_add),+ <%= styled_button_tag t(:button_add),class: '-highlight -with-icon icon-checkmark' %></div></fieldset>diff --git a/app/views/groups/edit.html.erb b/app/views/groups/edit.html.erbindex 99cb2b92ee7..47900fd9fcb 100644--- a/app/views/groups/edit.html.erb+++ b/app/views/groups/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{Group.model_name.human} #{h @group.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{Group.model_name.human} #{h @group.name}" %><% local_assigns[:additional_breadcrumb] = @group.name %>diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erbindex e6db98093b2..ea06e3ecbca 100644--- a/app/views/groups/index.html.erb+++ b/app/views/groups/index.html.erb@@ -27,8 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l("label_group_plural") %>-<%= toolbar title: l(:label_group_plural) do %>+<% html_title t(:label_administration), t("label_group_plural") %>+<%= toolbar title: t(:label_group_plural) do %><li class="toolbar-item"><%= link_to new_group_path,{ class: 'button -alt-highlight',@@ -63,7 +63,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:label_user_plural)%>+ <%=t(:label_user_plural)%></span></div></div>@@ -78,7 +78,7 @@ See docs/COPYRIGHT.rdoc for more details.<td><%= group.users.size %></td><td class="buttons"><%= link_to '', group,- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },method: :delete,class: 'icon icon-delete',title: t(:button_delete) %>diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erbindex a59fb325f9c..87df429ee2e 100644--- a/app/views/groups/new.html.erb+++ b/app/views/groups/new.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l("label_group_new") %>-<% local_assigns[:additional_breadcrumb] = l(:label_group_new) %>-<%= breadcrumb_toolbar l(:label_group_new) %>+<% html_title t(:label_administration), t("label_group_new") %>+<% local_assigns[:additional_breadcrumb] = t(:label_group_new) %>+<%= breadcrumb_toolbar t(:label_group_new) %><%= labelled_tabular_form_for(@group) do |f| %><%= render partial: 'form', locals: { f: f } %>- <div><%= f.button l(:button_create), class: 'button -highlight -with-icon icon-checkmark' %></div>+ <div><%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %></div><% end %>diff --git a/app/views/homescreen/blocks/_administration.html.erb b/app/views/homescreen/blocks/_administration.html.erbindex 2d0f9a54ad0..cbddd34cab5 100644--- a/app/views/homescreen/blocks/_administration.html.erb+++ b/app/views/homescreen/blocks/_administration.html.erb@@ -2,43 +2,43 @@<ul class="widget-box--arrow-links"><li>- <%= link_to l(:label_project_plural), projects_path,- title: l(:label_project_plural) %>+ <%= link_to t(:label_project_plural), projects_path,+ title: t(:label_project_plural) %></li><li>- <%= link_to l(:label_user_plural), users_path,- title: l(:label_user_plural) %>+ <%= link_to t(:label_user_plural), users_path,+ title: t(:label_user_plural) %></li><li>- <%= link_to l(:label_group_plural), groups_path,- title: l(:label_group_plural) %>+ <%= link_to t(:label_group_plural), groups_path,+ title: t(:label_group_plural) %></li><li>- <%= link_to l(:label_role_and_permissions), roles_path,- title: l(:label_role_and_permissions) %>+ <%= link_to t(:label_role_and_permissions), roles_path,+ title: t(:label_role_and_permissions) %></li><li>- <%= link_to l(:label_work_package_types), types_path,- title: l(:label_work_package_types) %>+ <%= link_to t(:label_work_package_types), types_path,+ title: t(:label_work_package_types) %></li><li>- <%= link_to l(:label_work_package_status), statuses_path,- title: l(:label_work_package_status) %>+ <%= link_to t(:label_work_package_status), statuses_path,+ title: t(:label_work_package_status) %></li><li>- <%= link_to l(:label_workflow_plural), workflows_path,- title: l(:label_workflow_plural) %>+ <%= link_to t(:label_workflow_plural), workflows_path,+ title: t(:label_workflow_plural) %></li><li>- <%= link_to l('attributes.custom_values'), custom_fields_path,- title: l('attributes.custom_values') %>+ <%= link_to t('attributes.custom_values'), custom_fields_path,+ title: t('attributes.custom_values') %></li><li>- <%= link_to l(:label_system_settings), general_settings_path,- title: l(:label_system_settings) %>+ <%= link_to t(:label_system_settings), general_settings_path,+ title: t(:label_system_settings) %></li><li><%= link_to t(:label_custom_style), custom_style_path,diff --git a/app/views/homescreen/blocks/_community.html.erb b/app/views/homescreen/blocks/_community.html.erbindex 4cb595d08af..5055fdc375d 100644--- a/app/views/homescreen/blocks/_community.html.erb+++ b/app/views/homescreen/blocks/_community.html.erb@@ -5,8 +5,8 @@<%= static_link_to :user_guides %></li><li>- <a class="help-link-shortcuts-link" title="<%= l('homescreen.links.shortcuts') %>">- <%= l('homescreen.links.shortcuts') %>+ <a class="help-link-shortcuts-link" title="<%= t('homescreen.links.shortcuts') %>">+ <%= t('homescreen.links.shortcuts') %></a></li><li>diff --git a/app/views/homescreen/blocks/_projects.html.erb b/app/views/homescreen/blocks/_projects.html.erbindex e2b9f62b5de..2b1a252a127 100644--- a/app/views/homescreen/blocks/_projects.html.erb+++ b/app/views/homescreen/blocks/_projects.html.erb@@ -5,7 +5,7 @@<%= t('homescreen.additional.no_visible_projects') %></p><% else %>- <p class="widget-box--additional-info"><%= l('homescreen.additional.projects') %></p>+ <p class="widget-box--additional-info"><%= t('homescreen.additional.projects') %></p><ul class="widget-box--arrow-links"><% @newest_projects.each do |project| %><li>@@ -29,8 +29,8 @@<%# If any project exists %><% unless @newest_projects.empty? %>- <%= link_to l(:label_project_view_all), projects_path,+ <%= link_to t(:label_project_view_all), projects_path,class: 'button -highlight-inverted',- title: l(:label_project_view_all) %>+ title: t(:label_project_view_all) %><% end %></div>diff --git a/app/views/homescreen/blocks/_users.html.erb b/app/views/homescreen/blocks/_users.html.erbindex dc725a5cafb..f3d93ba39c9 100644--- a/app/views/homescreen/blocks/_users.html.erb+++ b/app/views/homescreen/blocks/_users.html.erb@@ -1,6 +1,6 @@<%= render 'homescreen/blocks/header', title: t(:label_user_plural) %>-<p class="widget-box--additional-info"><%= l('homescreen.additional.users') %></p>+<p class="widget-box--additional-info"><%= t('homescreen.additional.users') %></p><% unless @newest_users.empty? %><ul class="widget-box--arrow-links">@@ -17,7 +17,7 @@<% if User.current.admin? %><%= link_to new_user_path, class: 'button -alt-highlight' do %><%= op_icon('button--icon icon-add') %>- <span class="button--text"><%= l(:label_invite_user) %></span>+ <span class="button--text"><%= t(:label_invite_user) %></span><% end %><% end %></div>diff --git a/app/views/journals/diff.html.erb b/app/views/journals/diff.html.erbindex 73db21e4e3a..5ff582a7c95 100644--- a/app/views/journals/diff.html.erb+++ b/app/views/journals/diff.html.erb@@ -32,6 +32,6 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'diff',locals: { diff: @diff } %>-<p><%= link_to(l(:button_back), polymorphic_path(@journable)) %></p>+<p><%= link_to(t(:button_back), polymorphic_path(@journable)) %></p><% html_title "#{ @journable.to_s }" %>diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erbindex 09f1065d0dc..c633ece1daf 100644--- a/app/views/layouts/admin.html.erb+++ b/app/views/layouts/admin.html.erb@@ -38,6 +38,6 @@ See docs/COPYRIGHT.rdoc for more details.end%>-<% @page_header_title = l(:label_administration) %>+<% @page_header_title = t(:label_administration) %><%= render template: "layouts/base", locals: { menu_name: :admin_menu } %>diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erbindex f0ecc47ec17..5e5a97432c8 100644--- a/app/views/layouts/base.html.erb+++ b/app/views/layouts/base.html.erb@@ -107,7 +107,7 @@ See docs/COPYRIGHT.rdoc for more details.<strong><%= t(:noscript_heading) %></strong></span><%= t(:noscript_description) %>- <a href="http://www.enable-javascript.com/" target="_blank"><%= l(:noscript_learn_more) %></a>+ <a href="http://www.enable-javascript.com/" target="_blank"><%= t(:noscript_learn_more) %></a></p></div></noscript>@@ -121,7 +121,7 @@ See docs/COPYRIGHT.rdoc for more details.<div id="header"><div id="top-menu-items"><h1 class="hidden-for-sighted">- <%= l(:label_top_menu) %>+ <%= t(:label_top_menu) %></h1><main-menu-toggle></main-menu-toggle><a href="" class="hidden-for-sighted skip-navigation-link"@@ -145,7 +145,7 @@ See docs/COPYRIGHT.rdoc for more details.class="<%= initial_classes %>"><% if (side_displayed && show_decoration) %><div id="main-menu" class="main-menu">- <h1 class="hidden-for-sighted"><%= l(:label_main_menu) %></h1>+ <h1 class="hidden-for-sighted"><%= t(:label_main_menu) %></h1><main-menu-resizer></main-menu-resizer><div id="menu-sidebar"><%= main_menu %>@@ -177,7 +177,7 @@ See docs/COPYRIGHT.rdoc for more details.</section><% end %><div id="content" class="<%= initial_classes %>">- <h1 class="hidden-for-sighted"><%= l(:label_content) %></h1>+ <h1 class="hidden-for-sighted"><%= t(:label_content) %></h1><%= content_for :content_body %><% unless local_assigns[:no_action_menu] %><%= yield %>@@ -186,7 +186,7 @@ See docs/COPYRIGHT.rdoc for more details.</div></div></div>- <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>+ <div id="ajax-indicator" style="display:none;"><span><%= t(:label_loading) %></span></div></div><%# Properly decides main menu expanded state and width before its drawn. Fixes flickering side menuwhere menu is first expanded, then being collapsed in angular. %>diff --git a/app/views/layouts/styleguide/styleguide.layout.html.erb b/app/views/layouts/styleguide/styleguide.layout.html.erbindex 1b9c148673b..8e2d81e91a9 100644--- a/app/views/layouts/styleguide/styleguide.layout.html.erb+++ b/app/views/layouts/styleguide/styleguide.layout.html.erb@@ -72,7 +72,7 @@.styleguide-banner {padding: 200px 0 0;- background: url('/assets/styleguide/logo_openproject.png');+ background: urt('/assets/styleguide/logo_openproject.png');background-position: top center;background-repeat: no-repeat;background-size: contain;diff --git a/app/views/members/_autocomplete_for_member.html.erb b/app/views/members/_autocomplete_for_member.html.erbindex 858170e54ab..e88c90a2bd0 100644--- a/app/views/members/_autocomplete_for_member.html.erb+++ b/app/views/members/_autocomplete_for_member.html.erb@@ -30,12 +30,12 @@ See docs/COPYRIGHT.rdoc for more details.<div class="grid-block"><div class="grid-block medium-4" id="principal_results"><fieldset class="form--fieldset principals medium-11">- <legend class="form--fieldset-legend"><%="#{l(:label_user_plural)}/#{l(:label_group_plural)}" %></legend>+ <legend class="form--fieldset-legend"><%="#{t(:label_user_plural)}/#{t(:label_group_plural)}" %></legend><% if principals.empty? %>- <%= l('notice_no_principals_found') %>+ <%= t('notice_no_principals_found') %><% else %><% if principals.size > 20 %>- <%= l('notice_to_many_principals_to_display') %>+ <%= t('notice_to_many_principals_to_display') %><% else %><%= principals_check_box_tags 'member[user_ids][]', principals %><% end %>@@ -43,26 +43,26 @@ See docs/COPYRIGHT.rdoc for more details.</fieldset><div class="hidden-for-sighted" aria-live="polite"><% if principals.empty? %>- <label aria-role="alert"><%= l('notice_no_principals_found') %></label>+ <label aria-role="alert"><%= t('notice_no_principals_found') %></label><% else %><% if principals.size > 20 %>- <label><%= l('notice_to_many_principals_to_display') %></label>+ <label><%= t('notice_to_many_principals_to_display') %></label><% elsif principals.size == 1 %>- <label><%= l('notice_principals_found_single') %></label>+ <label><%= t('notice_principals_found_single') %></label><% else %>- <label><%= l('notice_principals_found_multiple', number: principals.size) %></label>+ <label><%= t('notice_principals_found_multiple', number: principals.size) %></label><% end %><% end %></div></div><div class="grid-block medium-4 roles"><fieldset class="form--fieldset medium-11">- <legend class="form--fieldset-legend"><%= l(:label_role_plural) %></legend>+ <legend class="form--fieldset-legend"><%= t(:label_role_plural) %></legend><%= labeled_check_box_tags 'member[role_ids][]', roles %></fieldset></div></div>-<%= styled_button_tag l(:button_add),+<%= styled_button_tag t(:button_add),id: 'member-add-submit',class: 'button -highlight -with-icon icon-checkmark',style: roles.any? && (principals.any? && principals.size <= 20) ? "": "display:none" %>diff --git a/app/views/members/_member_form.html.erb b/app/views/members/_member_form.html.erbindex b1819379bc2..d45024ff89a 100644--- a/app/views/members/_member_form.html.erb+++ b/app/views/members/_member_form.html.erb@@ -55,14 +55,14 @@ See docs/COPYRIGHT.rdoc for more details.</div><div class="grid-content medium-8 small-12 -flex -with-button"><div class="form--field">- <%= styled_label_tag :member_role_ids, l(:label_role_search) %>+ <%= styled_label_tag :member_role_ids, t(:label_role_search) %><div class="form--field-container"><div class="form--select-container -auto"><% options = roles.collect { |obj| [obj.name, obj.id] } %><%= select_tag 'member[role_ids][]', options_for_select(options),multiple: false,no_label: true,- title: l(:label_role_search),+ title: t(:label_role_search),tabIndex: 0,class: 'form--select',id: 'member_role_ids' %>@@ -70,7 +70,7 @@ See docs/COPYRIGHT.rdoc for more details.</div></div><div id="member-add-submit-button--container">- <%= f.button l(:button_add),+ <%= f.button t(:button_add),class: 'button -highlight -with-icon icon-checkmark',id: 'add-member--submit-button' %></div>diff --git a/app/views/my/access_token.html.erb b/app/views/my/access_token.html.erbindex 1a1947ed01c..18b58153260 100644--- a/app/views/my/access_token.html.erb+++ b/app/views/my/access_token.html.erb@@ -27,12 +27,12 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_my_account), I18n.t('my_account.access_tokens.access_token')) -%>+<% html_title(t(:label_my_account), I18n.t('my_account.access_tokens.access_token')) -%>-<% breadcrumb_paths(l(:label_my_account), I18n.t('my_account.access_tokens.access_token')) %>+<% breadcrumb_paths(t(:label_my_account), I18n.t('my_account.access_tokens.access_token')) %><%= toolbar title: I18n.t('my_account.access_tokens.access_token') %>-<p><%= l(:text_access_token_hint) %></p>+<p><%= t(:text_access_token_hint) %></p><% if has_tokens? %><div class="generic-table--container">@@ -49,7 +49,7 @@ See docs/COPYRIGHT.rdoc for more details.<th><div class="generic-table--sort-header-outer"><div class="generic-table--sort-header">- <%= l('attributes.name') %>+ <%= t('attributes.name') %></div></div></th>@@ -80,7 +80,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if Setting.feeds_enabled? %><% if @user.rss_token %><tr>- <td><%= l(:label_feeds_access_key_type) %></td>+ <td><%= t(:label_feeds_access_key_type) %></td><td><span title="<%= format_time(@user.rss_token.created_on) %>"><%= format_time(@user.rss_token.created_on.to_s) %>@@ -88,7 +88,7 @@ See docs/COPYRIGHT.rdoc for more details.</td><td><%= I18n.t('my_account.access_tokens.indefinite_expiration') %></td><td>- <%= link_to l(:button_reset),+ <%= link_to t(:button_reset),{ action: 'generate_rss_key' },method: :post,class: 'icon icon-delete' %>@@ -96,11 +96,11 @@ See docs/COPYRIGHT.rdoc for more details.</tr><% else %><tr>- <td><%= l(:label_feeds_access_key_type) %></td>- <td><%= l(:label_missing_feeds_access_key) %></td>+ <td><%= t(:label_feeds_access_key_type) %></td>+ <td><%= t(:label_missing_feeds_access_key) %></td><td></td><td>- <%= link_to l(:button_generate),+ <%= link_to t(:button_generate),{ action: 'generate_rss_key' },method: :post,class: 'icon icon-key' %>@@ -112,7 +112,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if Setting.rest_api_enabled? %><% if @user.api_token %><tr>- <td><%= l(:label_api_access_key_type) %></td>+ <td><%= t(:label_api_access_key_type) %></td><td><span title="<%= format_time(@user.api_token.created_on) %>"><%= format_time(@user.api_token.created_on.to_s) %>@@ -120,7 +120,7 @@ See docs/COPYRIGHT.rdoc for more details.</td><td><%= I18n.t('my_account.access_tokens.indefinite_expiration') %></td><td>- <%= link_to l(:button_reset),+ <%= link_to t(:button_reset),{ action: 'generate_api_key' },method: :post,class: 'icon icon-delete' %>@@ -128,11 +128,11 @@ See docs/COPYRIGHT.rdoc for more details.</tr><% else %><tr>- <td><%= l(:label_api_access_key_type) %></td>- <td><%= l(:label_missing_api_access_key) %></td>+ <td><%= t(:label_api_access_key_type) %></td>+ <td><%= t(:label_missing_api_access_key) %></td><td></td><td>- <%= link_to l(:button_generate),+ <%= link_to t(:button_generate),{ action: 'generate_api_key' },method: :post,class: 'icon icon-key' %>diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erbindex e51d7da3b8d..159a4b43336 100644--- a/app/views/my/account.html.erb+++ b/app/views/my/account.html.erb@@ -27,10 +27,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_my_account), l(:label_profile)) -%>+<% html_title(t(:label_my_account), t(:label_profile)) -%>-<% breadcrumb_paths(l(:label_my_account), l(:label_profile)) %>-<%= toolbar title: l(:label_profile) %>+<% breadcrumb_paths(t(:label_my_account), t(:label_profile)) %>+<%= toolbar title: t(:label_profile) %><%= error_messages_for 'user' %><%= password_confirmation_form_for @user,@@ -75,5 +75,5 @@ See docs/COPYRIGHT.rdoc for more details.locals: { form: f, input_size: :middle } %></section>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/my/mail_notifications.html.erb b/app/views/my/mail_notifications.html.erbindex deb007976b2..c5f7d1866e7 100644--- a/app/views/my/mail_notifications.html.erb+++ b/app/views/my/mail_notifications.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_my_account), I18n.t('activerecord.attributes.user.mail_notification')) -%>+<% html_title(t(:label_my_account), I18n.t('activerecord.attributes.user.mail_notification')) -%>-<% breadcrumb_paths(l(:label_my_account), I18n.t('activerecord.attributes.user.mail_notification')) %>+<% breadcrumb_paths(t(:label_my_account), I18n.t('activerecord.attributes.user.mail_notification')) %><%= toolbar title: I18n.t('activerecord.attributes.user.mail_notification') %><%= labelled_tabular_form_for @user,@@ -40,5 +40,5 @@ See docs/COPYRIGHT.rdoc for more details.<section class="form--section"><%= render partial: 'users/mail_notifications' %></section>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/my/password.html.erb b/app/views/my/password.html.erbindex 003438a64af..8ad7179a53b 100644--- a/app/views/my/password.html.erb+++ b/app/views/my/password.html.erb@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_my_account), l(:button_change_password) %>-<% breadcrumb_paths(l(:label_my_account), l(:button_change_password)) %>-<%= toolbar title: l(:button_change_password) %>+<% html_title t(:label_my_account), t(:button_change_password) %>+<% breadcrumb_paths(t(:label_my_account), t(:button_change_password)) %>+<%= toolbar title: t(:button_change_password) %><%= error_messages_for 'user' %><%= styled_form_tag({ action: :change_password },@@ -40,5 +40,5 @@ See docs/COPYRIGHT.rdoc for more details.locals: { show_user_name: !!(defined? show_user_name) ? show_user_name : nil,input_size: :middle } %></section>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/my/settings.html.erb b/app/views/my/settings.html.erbindex 2ffafa1acf7..8a9ccdaf7be 100644--- a/app/views/my/settings.html.erb+++ b/app/views/my/settings.html.erb@@ -27,10 +27,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_my_account), l(:label_setting_plural)) %>+<% html_title(t(:label_my_account), t(:label_setting_plural)) %>-<% breadcrumb_paths(l(:label_my_account), l(:label_setting_plural)) %>-<%= toolbar title: l(:label_setting_plural) %>+<% breadcrumb_paths(t(:label_my_account), t(:label_setting_plural)) %>+<%= toolbar title: t(:label_setting_plural) %><%= error_messages_for 'user' %><%= labelled_tabular_form_for @user, as: :user, url: { action: 'update_settings' },@@ -41,5 +41,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'users/preferences', locals: { input_size: :middle } %></fieldset><%= call_hook(:view_my_settings, user: @user, form: f) %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/news/_news.html.erb b/app/views/news/_news.html.erbindex b888c4394e8..b0e8e9980f6 100644--- a/app/views/news/_news.html.erb+++ b/app/views/news/_news.html.erb@@ -36,6 +36,6 @@ See docs/COPYRIGHT.rdoc for more details.<%= format_text(news.summary, object: news) %></div><% end %>- <%= "(#{l(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %>+ <%= "(#{t(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %></div></div>diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erbindex 8798effb6c8..38ad7d623cb 100644--- a/app/views/news/edit.html.erb+++ b/app/views/news/edit.html.erb@@ -27,13 +27,13 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_news_edit) %>+<% html_title t(:label_news_edit) %><%= toolbar title: News.model_name.human %><%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %><%= render partial: 'form', locals: { f: f } %><hr class="form--separator" />- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), news_path(@news), class: 'button -with-icon icon-cancel' %><% end %><div id="preview"></div>diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erbindex d27c062ca45..5c0db603a0f 100644--- a/app/views/news/index.html.erb+++ b/app/views/news/index.html.erb@@ -30,8 +30,8 @@ See docs/COPYRIGHT.rdoc for more details.managable = User.current.allowed_to?(:manage_news, @project)%>-<% html_title(l(:label_news_plural)) -%>-<%= toolbar title: l(:label_news_plural) do %>+<% html_title(t(:label_news_plural)) -%>+<%= toolbar title: t(:label_news_plural) do %><% if managable %><li class="toolbar-item"><%= link_to new_project_news_path(@project),@@ -51,7 +51,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="news"><h3 class="news--header"><%= avatar(news.author) %><%= link_to_project(news.project) + ': ' unless news.project == @project %><%= link_to h(news.title), news_path(news) %>- <%= "(#{l(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %></h3>+ <%= "(#{t(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %></h3><p class="author additional-information"><%= authoring news.created_at, news.author %></p><div class="wiki"><%= format_text(news.summary.present? ? news.summary : truncate(news.description, length: 150, escape: false), object: news) %>diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erbindex b3f8c91b437..fe621d4a437 100644--- a/app/views/news/new.html.erb+++ b/app/views/news/new.html.erb@@ -27,13 +27,13 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_news_new) %>+<% html_title t(:label_news_new) %>-<%= toolbar title: l(:label_news_new) %>+<%= toolbar title: t(:label_news_new) %><%= labelled_tabular_form_for [@project, @news], html: { id: 'news-form' } do |f| %><%= render partial: 'news/form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), project_news_index_path(@project), class: 'button -with-icon icon-cancel' %><% end %><div id="preview"></div>diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erbindex 2ab4aafd8f4..fc81d49b55b 100644--- a/app/views/news/show.html.erb+++ b/app/views/news/show.html.erb@@ -34,7 +34,7 @@ See docs/COPYRIGHT.rdoc for more details.accesskey: accesskey(:edit),class: 'button edit-news-button') do %><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_edit) %></span>+ <span class="button--text"><%= t(:button_edit) %></span><% end %><% csp_onclick('jQuery("#edit-news").show()', '.edit-news-button') %></li>@@ -45,11 +45,11 @@ See docs/COPYRIGHT.rdoc for more details.<% if User.current.allowed_to?(:manage_news, @project) %><li class="toolbar-item"><%= link_to(news_path(@news),- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },method: :delete,class: 'button') do %><%= op_icon('button--icon icon-delete') %>- <span class="button--text"><%= l(:button_delete) %></span>+ <span class="button--text"><%= t(:button_delete) %></span><% end %></li><% end %>@@ -59,8 +59,8 @@ See docs/COPYRIGHT.rdoc for more details.<div id="edit-news" style="display:none;"><%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>- <%= link_to_function l(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button -with-icon icon-cancel'%>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= link_to_function t(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button -with-icon icon-cancel'%><% end %></div><% end %>@@ -75,18 +75,18 @@ See docs/COPYRIGHT.rdoc for more details.</div><br /><div id="comments" class="news--comments comments">- <h3 class="icon-context icon-quote"><%= l(:label_comment_plural) %></h3>+ <h3 class="icon-context icon-quote"><%= t(:label_comment_plural) %></h3><% @comments.each do |comment| %><% next if comment.new_record? %><div class="comment"><div class="contextual">- <%= link_to_if_authorized icon_wrapper('icon-context icon-delete', l(:button_delete)),+ <%= link_to_if_authorized icon_wrapper('icon-context icon-delete', t(:button_delete)),{controller: '/news/comments', action: 'destroy', id: comment},- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },method: :delete,class: 'no-decoration-on-hover',- title: l(:button_delete),- alt: l(:button_delete) %>+ title: t(:button_delete),+ alt: t(:button_delete) %></div><h4 class="author additional-information"><%= avatar(comment.author) %><%= authoring comment.created_on, comment.author %></h4><%= format_text(comment.comments, object: comment) %>@@ -103,7 +103,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= wikitoolbar_for 'comment_comments', preview_context: preview_context(@news) %></div><p>- <%= submit_tag l(:button_add_comment), class: 'button -highlight' %>+ <%= submit_tag t(:button_add_comment), class: 'button -highlight' %></p><% end %><% end %>diff --git a/app/views/oauth/applications/edit.html.erb b/app/views/oauth/applications/edit.html.erbindex 96dca0ab8c9..557d0fcb451 100644--- a/app/views/oauth/applications/edit.html.erb+++ b/app/views/oauth/applications/edit.html.erb@@ -27,8 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% edit_label = "#{l(:label_edit)} #{@application.class.model_name.human} #{h(@application.name)}" %>-<% html_title(l(:label_administration), edit_label) -%>+<% edit_label = "#{t(:label_edit)} #{@application.class.model_name.human} #{h(@application.name)}" %>+<% html_title(t(:label_administration), edit_label) -%><% local_assigns[:additional_breadcrumb] = h(@application.name) %><%= breadcrumb_toolbar(edit_label) %>diff --git a/app/views/oauth/applications/new.html.erb b/app/views/oauth/applications/new.html.erbindex a706d85b107..0c6ce8089f0 100644--- a/app/views/oauth/applications/new.html.erb+++ b/app/views/oauth/applications/new.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), t('oauth.application.new') %>+<% html_title t(:label_administration), t('oauth.application.new') %><% local_assigns[:additional_breadcrumb] = t('oauth.application.new') %><%= breadcrumb_toolbar(t('oauth.application.new')) %>diff --git a/app/views/onboarding/_configuration_modal.html.erb b/app/views/onboarding/_configuration_modal.html.erbindex 02d60554f57..2dbb7876697 100644--- a/app/views/onboarding/_configuration_modal.html.erb+++ b/app/views/onboarding/_configuration_modal.html.erb@@ -50,7 +50,7 @@ See docs/COPYRIGHT.rdoc for more details.</div><div class="onboarding--footer op-modal--modal-footer">- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></div></div><% end %>diff --git a/app/views/onboarding/_menu_item.html.erb b/app/views/onboarding/_menu_item.html.erbindex 529c23d5c39..fad217bd40c 100644--- a/app/views/onboarding/_menu_item.html.erb+++ b/app/views/onboarding/_menu_item.html.erb@@ -30,9 +30,9 @@ See docs/COPYRIGHT.rdoc for more details.data-modal-iframe-url="<%= OpenProject::Configuration.onboarding_video_url %>"data-modal-class-name="onboarding-modal -highlight"><li>- <%= link_to l(:label_introduction_video),+ <%= link_to t(:label_introduction_video),'',- title: l(:label_introduction_video),+ title: t(:label_introduction_video),class: 'modal-wrapper--activation-link' %></li><%= render partial: '/onboarding/onboarding_video_modal' %>diff --git a/app/views/project_settings/categories.html.erb b/app/views/project_settings/categories.html.erbindex 053b08cf957..ec852c7bc89 100644--- a/app/views/project_settings/categories.html.erb+++ b/app/views/project_settings/categories.html.erb@@ -86,7 +86,7 @@ See docs/COPYRIGHT.rdoc for more details.title: t(:button_edit) %><%= link_to_if_authorized '',{ controller: '/categories', action: 'destroy', id: category },- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },method: :delete,class: 'icon icon-delete',title: t(:button_delete) %>diff --git a/app/views/project_settings/custom_fields.html.erb b/app/views/project_settings/custom_fields.html.erbindex ead462b35a3..6e0be19a314 100644--- a/app/views/project_settings/custom_fields.html.erb+++ b/app/views/project_settings/custom_fields.html.erb@@ -57,7 +57,7 @@ See docs/COPYRIGHT.rdoc for more details.} %><div class="generic-table--action-buttons">- <%= form.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>+ <%= form.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %></div><% end %><% else %>diff --git a/app/views/project_settings/modules.html.erb b/app/views/project_settings/modules.html.erbindex 1957510d437..9f0255a4ffe 100644--- a/app/views/project_settings/modules.html.erb+++ b/app/views/project_settings/modules.html.erb@@ -38,5 +38,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: "/projects/form/modules",locals: { form: form } %>- <p><%= form.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %></p>+ <p><%= form.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %></p><% end %>diff --git a/app/views/projects/_edit.html.erb b/app/views/projects/_edit.html.erbindex 3d666a525fa..9e41052f2a5 100644--- a/app/views/projects/_edit.html.erb+++ b/app/views/projects/_edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_information_plural) do %>+<%= toolbar title: t(:label_information_plural) do %><% if User.current.allowed_to?(:add_subprojects, @project) %><li class="toolbar-item"><%= link_to new_project_path(parent_id: @project.id),@@ -94,5 +94,5 @@ See docs/COPYRIGHT.rdoc for more details.render_custom_fields: false} %>- <%= f.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>+ <%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/projects/destroy_info.html.erb b/app/views/projects/destroy_info.html.erbindex 0f269a50b0b..31b83fc0b82 100644--- a/app/views/projects/destroy_info.html.erb+++ b/app/views/projects/destroy_info.html.erb@@ -31,33 +31,33 @@ See docs/COPYRIGHT.rdoc for more details.method: :delete) do %><section class="form--section"><h3 class="form--section-title">- <%= l('project.destroy.title', name: "<em>#{h(@project_to_destroy)}</em>").html_safe %>+ <%= t('project.destroy.title', name: "<em>#{h(@project_to_destroy)}</em>").html_safe %></h3><p>- <%= l('project.destroy.confirmation', identifier: @project_to_destroy.identifier)%>+ <%= t('project.destroy.confirmation', identifier: @project_to_destroy.identifier)%><% if @project_to_destroy.descendants.any? %><br /><% descendants = h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')) %>- <%= l('project.destroy.subprojects_confirmation', value: "<strong>#{h(descendants)}</strong>").html_safe %>+ <%= t('project.destroy.subprojects_confirmation', value: "<strong>#{h(descendants)}</strong>").html_safe %><% end %></p><p class="danger-zone--warning"><span class="icon icon-error"></span>- <span><%= l('project.destroy.info')%></span>+ <span><%= t('project.destroy.info')%></span></p><p>- <%= l('project.destroy.project_verification', name: "<em class=\"danger-zone--expected-value\">#{h(@project_to_destroy)}</em>").html_safe %>+ <%= t('project.destroy.project_verification', name: "<em class=\"danger-zone--expected-value\">#{h(@project_to_destroy)}</em>").html_safe %></p><div class="danger-zone--verification"><input type="text"></input>- <%= styled_button_tag title: l(:button_delete), class: '-highlight', disabled: true do+ <%= styled_button_tag title: t(:button_delete), class: '-highlight', disabled: true doconcat content_tag :i, '', class: 'button--icon icon-delete'- concat content_tag :span, l(:button_delete), class: 'button--text'+ concat content_tag :span, t(:button_delete), class: 'button--text'end %><%= link_to projects_path,- title: l(:button_cancel),+ title: t(:button_cancel),class: 'button -with-icon icon-cancel' do %>- <%= l(:button_cancel) %>+ <%= t(:button_cancel) %><% end %></div></section>diff --git a/app/views/projects/form/_required_storage.html.erb b/app/views/projects/form/_required_storage.html.erbindex e7a5e67ae74..8362ae58fef 100644--- a/app/views/projects/form/_required_storage.html.erb+++ b/app/views/projects/form/_required_storage.html.erb@@ -29,7 +29,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if storage['total'] > 0 %><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%=l(:label_required_disk_storage)%></legend>+ <legend class="form--fieldset-legend"><%=t(:label_required_disk_storage)%></legend><% storage['modules'].each do |label, value| %><%= render partial: 'projects/form/attributes/storage_field',@@ -38,7 +38,7 @@ See docs/COPYRIGHT.rdoc for more details.<%# Hide total when there's only one module %><% if storage['modules'].length > 1 %><%= render partial: 'projects/form/attributes/storage_field',- locals: { label: l(:label_total), value: storage['total'] } %>+ locals: { label: t(:label_total), value: storage['total'] } %><% end %></fieldset><% end %>diff --git a/app/views/projects/form/_types.html.erb b/app/views/projects/form/_types.html.erbindex 0ed7152ed6b..317140358ec 100644--- a/app/views/projects/form/_types.html.erb+++ b/app/views/projects/form/_types.html.erb@@ -83,7 +83,7 @@ See docs/COPYRIGHT.rdoc for more details.<tr><td class='center'><% type_id = "project_planning_element_type_ids_#{type.id}" %>- <%= label_tag type_id, l('timelines.enable_type_in_project', type: type.name), class: 'hidden-for-sighted' %>+ <%= label_tag type_id, t('timelines.enable_type_in_project', type: type.name), class: 'hidden-for-sighted' %><%= check_box_tag "project[type_ids][]",type.id,projects_types_id.include?(type.id),@@ -110,6 +110,6 @@ See docs/COPYRIGHT.rdoc for more details.</div><% if withControlls == true %><div class="generic-table--action-buttons">- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></div><% end %>diff --git a/app/views/projects/form/attributes/_identifier.html.erb b/app/views/projects/form/attributes/_identifier.html.erbindex 772c912c209..1dca238e310 100644--- a/app/views/projects/form/attributes/_identifier.html.erb+++ b/app/views/projects/form/attributes/_identifier.html.erb@@ -47,9 +47,9 @@ See docs/COPYRIGHT.rdoc for more details.container_class: '-middle'%><div class="form--field-instructions">- <%= l(:text_length_between, min: 1,+ <%= t(:text_length_between, min: 1,max: Project::IDENTIFIER_MAX_LENGTH) %>- <%= l(:text_project_identifier_info).html_safe %>+ <%= t(:text_project_identifier_info).html_safe %></div><% else %><label class="form--label" title="<%= Project.human_attribute_name(:identifier) %>">@@ -63,10 +63,10 @@ See docs/COPYRIGHT.rdoc for more details.<span id="identifier"><%= project.identifier %></span>- <%= link_to identifier_project_path, title: l(:button_edit), class: "icon" do %>+ <%= link_to identifier_project_path, title: t(:button_edit), class: "icon" do %><%= op_icon('icon icon-edit') %><span class="hidden-for-sighted">- <%= l(:button_edit) %>+ <%= t(:button_edit) %></span><% end %></span>diff --git a/app/views/projects/identifier.html.erb b/app/views/projects/identifier.html.erbindex 9e284caa4b5..e281f860013 100644--- a/app/views/projects/identifier.html.erb+++ b/app/views/projects/identifier.html.erb@@ -32,27 +32,27 @@ See docs/COPYRIGHT.rdoc for more details.<%= form_for @project, url: { action: 'update_identifier' }, html: { class: 'danger-zone form -vertical' } do |f| %><section class="form--section"><h3 class="form--section-title">- <%= l('project.identifier.title') %>+ <%= t('project.identifier.title') %></h3><p class="danger-zone--warning"><span class="icon icon-error"></span>- <span><%= l('project.identifier.warning_one').html_safe %></span>+ <span><%= t('project.identifier.warning_one').html_safe %></span><br><span class="icon icon-error"></span>- <span><%= l('project.identifier.warning_two').html_safe %></span>+ <span><%= t('project.identifier.warning_two').html_safe %></span></p><%= styled_label_tag 'identifier', Project.human_attribute_name(:identifier), class: '-required' %><div class="danger-zone--verification"><%= f.text_field :identifier %><span>- <%= f.submit l(:button_update), class: 'button -highlight -with-icon icon-checkmark' %>+ <%= f.submit t(:button_update), class: 'button -highlight -with-icon icon-checkmark' %></span><span><%= link_to settings_generic_project_path(@project), class: 'button' do %><%= op_icon('button--icon icon-cancel') %>- <span class="button--text"><%= l(:button_cancel) %></span>+ <span class="button--text"><%= t(:button_cancel) %></span><% end %></span></div>@@ -61,9 +61,9 @@ See docs/COPYRIGHT.rdoc for more details.<br><div class="form--field-instructions">- <%= l(:text_length_between, min: 1,+ <%= t(:text_length_between, min: 1,max: Project::IDENTIFIER_MAX_LENGTH) %>- <%= l(:text_project_identifier_info).html_safe %>+ <%= t(:text_project_identifier_info).html_safe %></div></section>diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erbindex 011f719bc6f..2ae6d514353 100644--- a/app/views/projects/new.html.erb+++ b/app/views/projects/new.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l("label_project_new") %>-<%= toolbar title: l(:label_project_new) %>+<% html_title t("label_project_new") %>+<%= toolbar title: t(:label_project_new) %><%= labelled_tabular_form_for @project do |f| %><%= render partial: 'form',locals: {@@ -39,5 +39,5 @@ See docs/COPYRIGHT.rdoc for more details.render_modules: false,render_custom_fields: false} %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erbindex ff5184ea269..da66b1d1aa4 100644--- a/app/views/repositories/_breadcrumbs.html.erb+++ b/app/views/repositories/_breadcrumbs.html.erb@@ -52,7 +52,7 @@ dirs.each_with_index do |dir, index|rev_text = @changeset.nil? ? @rev : format_revision(@changeset)%><span class="repository-bradcrumbs--identifier">- <%= "(#{l('repositories.at_identifier', identifier: rev_text)})" if rev_text.present? %>+ <%= "(#{t('repositories.at_identifier', identifier: rev_text)})" if rev_text.present? %></span><% html_title(h(with_leading_slash(path))) -%>diff --git a/app/views/repositories/_checkout_instructions.html.erb b/app/views/repositories/_checkout_instructions.html.erbindex 369c1fc85f1..813ad054893 100644--- a/app/views/repositories/_checkout_instructions.html.erb+++ b/app/views/repositories/_checkout_instructions.html.erb@@ -38,8 +38,8 @@ See docs/COPYRIGHT.rdoc for more details.<%= simple_format instructions.instructions %><% if instructions.manages_permissions? %><br/>- <span><%= l('repositories.checkout.access_permission') %>:</span>- <strong><%= l("repositories.checkout.access.#{instructions.permission}") %></strong>+ <span><%= t('repositories.checkout.access_permission') %>:</span>+ <strong><%= t("repositories.checkout.access.#{instructions.permission}") %></strong><% end %></p></div>@@ -50,7 +50,7 @@ See docs/COPYRIGHT.rdoc for more details.class="notification-box--close icon-context icon-close"></a><div class="notification-box--content">- <p><%= l('repositories.checkout.not_available') %></p>+ <p><%= t('repositories.checkout.not_available') %></p></div></div><% end %>diff --git a/app/views/repositories/_link_to_functions.html.erb b/app/views/repositories/_link_to_functions.html.erbindex 9aa4dbba998..8c48d5a4cda 100644--- a/app/views/repositories/_link_to_functions.html.erb+++ b/app/views/repositories/_link_to_functions.html.erb@@ -28,14 +28,14 @@ See docs/COPYRIGHT.rdoc for more details.++#%><% if @entry && @entry.kind == 'file' %><p>- <%= link_to_if action_name != 'changes', l(:label_history), {action: 'changes', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |+ <%= link_to_if action_name != 'changes', t(:label_history), {action: 'changes', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |<% if @repository.supports_cat? %>- <%= link_to_if action_name != 'entry', l(:button_view), entry_revision_project_repository_path(project_id: @project, repo_path: to_path_param(@path), rev: @rev) %> |+ <%= link_to_if action_name != 'entry', t(:button_view), entry_revision_project_repository_path(project_id: @project, repo_path: to_path_param(@path), rev: @rev) %> |<% end %><% if @repository.supports_annotate? %>- <%= link_to_if action_name != 'annotate', l(:button_annotate), {action: 'annotate', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |+ <%= link_to_if action_name != 'annotate', t(:button_annotate), {action: 'annotate', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |<% end %>- <%= link_to(l(:button_download), {action: 'entry', project_id: @project, repo_path: to_path_param(@path), rev: @rev, format: 'raw' }) if @repository.supports_cat? %>+ <%= link_to(t(:button_download), {action: 'entry', project_id: @project, repo_path: to_path_param(@path), rev: @rev, format: 'raw' }) if @repository.supports_cat? %><%= "(#{number_to_human_size(@entry.size)})" if @entry.size %></p><% end %>diff --git a/app/views/repositories/_repository_header.html.erb b/app/views/repositories/_repository_header.html.erbindex 0cd88a11807..4555fd29d59 100644--- a/app/views/repositories/_repository_header.html.erb+++ b/app/views/repositories/_repository_header.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><persistent-toggle data-identifier="repository.checkout_instructions"></persistent-toggle>-<%= toolbar title: l('repositories.named_repository',+<%= toolbar title: t('repositories.named_repository',vendor_name: @repository.class.vendor_name) do %><% if @instructions && @instructions.available? %><li class="toolbar-item toolbar-input-group hidden-for-mobile">@@ -48,15 +48,15 @@ See docs/COPYRIGHT.rdoc for more details.clipboard-target="#repository-checkout-url"></copy-to-clipboard><button class="repository-checkout-copy-button toolbar-input--affix toolbar-input-group--affix -append"- title="<%= l(:label_copy_to_clipboard) %>">+ title="<%= t(:label_copy_to_clipboard) %>"><%= op_icon('icon-copy') %>- <span class="hidden-for-sighted"><%= l(:label_copy_to_clipboard) %></span>+ <span class="hidden-for-sighted"><%= t(:label_copy_to_clipboard) %></span></button></li><li class="toolbar-item -icon-only"><a id="repository--checkout-instructions-toggle"class="persistent-toggle--click-handler button"- title="<%= l('repositories.checkout.show_instructions') %>">+ title="<%= t('repositories.checkout.show_instructions') %>"><%= op_icon('button--icon icon-info1') %></a></li>@@ -64,7 +64,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if !empty && User.current.allowed_to?(:browse_repository, @project) %><li class="toolbar-item -icon-only"><%= link_to stats_project_repository_path(@project),- class: 'button', title: l(:label_statistics) do %>+ class: 'button', title: t(:label_statistics) do %><%= op_icon('button--icon icon-chart1') %><% end %></li>@@ -74,7 +74,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if User.current.allowed_to?(:manage_repository, @project) %><li class="toolbar-item -icon-only"><%= link_to settings_repository_project_path(@project),- class: 'button', title: l(:label_setting_plural) do %>+ class: 'button', title: t(:label_setting_plural) do %><%= op_icon('button--icon icon-settings') %><% end %></li>diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erbindex 5a05f2c23c9..bf1b48f3265 100644--- a/app/views/repositories/annotate.html.erb+++ b/app/views/repositories/annotate.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= call_hook(:view_repositories_show_contextual, { repository: @repository, project: @project }) %>-<% html_title(l(:button_annotate)) %>+<% html_title(t(:button_annotate)) %><%= render partial: 'repository_header', locals: { empty: false } %><div class="repository-breadcrumbs">diff --git a/app/views/repositories/changes.html.erb b/app/views/repositories/changes.html.erbindex 33bd0bffcf9..509af962421 100644--- a/app/views/repositories/changes.html.erb+++ b/app/views/repositories/changes.html.erb@@ -43,4 +43,4 @@ See docs/COPYRIGHT.rdoc for more details.<%= render(partial: 'revisions',locals: {project: @project, path: @path, revisions: @changesets, entry: @entry }) unless @changesets.empty? %>-<% html_title(l(:label_change_plural)) -%>+<% html_title(t(:label_change_plural)) -%>diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erbindex 0e03001395b..7920525fa19 100644--- a/app/views/repositories/committers.html.erb+++ b/app/views/repositories/committers.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_repository) %>-<%= simple_format(l(:text_repository_usernames_mapping)) %>+<%= toolbar title: t(:label_repository) %>+<%= simple_format(t(:text_repository_usernames_mapping)) %><% if @committers.empty? %><% no_results_box %><% else %>@@ -80,9 +80,9 @@ See docs/COPYRIGHT.rdoc for more details.</div><hr class="form--separator" /><p>- <%= submit_tag l(:button_update), class: 'button -highlight' %>+ <%= submit_tag t(:button_update), class: 'button -highlight' %><%= link_to settings_repository_project_path(@project.id), class: 'button' do %>- <span class="button--text"><%= l(:button_cancel) %></span>+ <span class="button--text"><%= t(:button_cancel) %></span><% end %></p><% end %>diff --git a/app/views/repositories/destroy_info.html.erb b/app/views/repositories/destroy_info.html.erbindex 90d4fbf747d..421089f49c3 100644--- a/app/views/repositories/destroy_info.html.erb+++ b/app/views/repositories/destroy_info.html.erb@@ -30,35 +30,35 @@ See docs/COPYRIGHT.rdoc for more details.<%= styled_form_tag(project_repository_path(@project), method: :delete, class: 'danger-zone') do %><section class="form--section"><h3 class="form--section-title">- <%= l('repositories.destroy.title', repository_type: "<em>#{h(@repository.repository_type)} - #{l(:project_module_repository)}</em>").html_safe %>+ <%= t('repositories.destroy.title', repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %></h3><p>- <%= l('repositories.destroy.subtitle', repository_type: "#{h(@repository.repository_type)} - #{l(:project_module_repository)}", project_name: h(@project.identifier)).html_safe %> <br />- <%= l('repositories.destroy.confirmation') %>+ <%= t('repositories.destroy.subtitle', repository_type: "#{h(@repository.repository_type)} - #{t(:project_module_repository)}", project_name: h(@project.identifier)).html_safe %> <br />+ <%= t('repositories.destroy.confirmation') %><br/>- <%= l('repositories.destroy.managed_path_note', path: @repository.root_url) %>+ <%= t('repositories.destroy.managed_path_note', path: @repository.root_url) %></p><p class="danger-zone--warning"><span class="icon icon-error"></span>- <span><%= l('repositories.destroy.info') %></span>+ <span><%= t('repositories.destroy.info') %></span></p><p>- <%= l('repositories.destroy.repository_verification', identifier: "<em class=\"danger-zone--expected-value\">#{h(@project.identifier)}</em>").html_safe %>+ <%= t('repositories.destroy.repository_verification', identifier: "<em class=\"danger-zone--expected-value\">#{h(@project.identifier)}</em>").html_safe %></p><div class="danger-zone--verification"><input type="text"></input><%= styled_button_tag project_repository_path(@project),method: :delete,- title: l(:button_delete),+ title: t(:button_delete),disabled: true,class: '-highlight' do %><%= op_icon('button--icon icon-delete') %>- <span class="button--text"><%= l(:button_delete) %></span>+ <span class="button--text"><%= t(:button_delete) %></span><% end %><%= link_to settings_repository_tab_path,- title: l(:button_cancel),+ title: t(:button_cancel),class: 'button -with-icon icon-cancel' do %>- <%= l(:button_cancel) %>+ <%= t(:button_cancel) %><% end %></div></section>@@ -66,28 +66,28 @@ See docs/COPYRIGHT.rdoc for more details.<% else %><div class="notification-box -warning"><div class="notification-box--content">- <p><strong><%= l('repositories.destroy.title_not_managed', repository_type: "<em>#{h(@repository.repository_type)} - #{l(:project_module_repository)}</em>").html_safe %></strong><br /></p>+ <p><strong><%= t('repositories.destroy.title_not_managed', repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %></strong><br /></p><p>- <%= l('repositories.destroy.subtitle_not_managed',- repository_type: "#{h(@repository.repository_type)} - #{l(:project_module_repository)}",+ <%= t('repositories.destroy.subtitle_not_managed',+ repository_type: "#{h(@repository.repository_type)} - #{t(:project_module_repository)}",project_name: h(@project.identifier),url: h(@repository.url)).html_safe %> <br /></p><p>- <span><%= l('repositories.destroy.info_not_managed') %></span>+ <span><%= t('repositories.destroy.info_not_managed') %></span></p><p><%= link_to project_repository_path(@project),- title: l(:button_delete),+ title: t(:button_delete),method: :delete,class: 'button' do %><%= op_icon('button--icon icon-remove') %>- <span class="button--text"><%= l(:button_remove) %></span>+ <span class="button--text"><%= t(:button_remove) %></span><% end %><%= link_to settings_repository_tab_path,- title: l(:button_cancel),+ title: t(:button_cancel),class: 'button -with-icon icon-cancel' do %>- <%= l(:button_cancel) %>+ <%= t(:button_cancel) %><% end %></p></div>diff --git a/app/views/repositories/diff.html.erb b/app/views/repositories/diff.html.erbindex 9d0f70f8a62..67fca3c8193 100644--- a/app/views/repositories/diff.html.erb+++ b/app/views/repositories/diff.html.erb@@ -27,12 +27,12 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: "#{l(:label_revision)} #{@diff_format_revisions} #{@path}" do %>+<%= toolbar title: "#{t(:label_revision)} #{@diff_format_revisions} #{@path}" do %><li class="toolbar-item"><%= form_tag({repo_path: to_path_param(@path)}, method: :get) do %><%= hidden_field_tag('rev', params[:rev]) if params[:rev] %><%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>- <%= styled_select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), id: "repository-diff-type-select" %>+ <%= styled_select_tag 'type', options_for_select([[t(:label_diff_inline), "inline"], [t(:label_diff_side_by_side), "sbs"]], @diff_type), id: "repository-diff-type-select" %><% end %><%=content_for(:additional_js_dom_ready) dodiff --git a/app/views/repositories/project_settings.html.erb b/app/views/repositories/project_settings.html.erbindex e1d24f59b51..ff8d30ce199 100644--- a/app/views/repositories/project_settings.html.erb+++ b/app/views/repositories/project_settings.html.erb@@ -44,12 +44,12 @@ See docs/COPYRIGHT.rdoc for more details.<fieldset class="form--fieldset -with-control"><legend class="form--fieldset-legend">- <%= l(:label_available_project_repositories) %>+ <%= t(:label_available_project_repositories) %></legend><%= error_messages_for 'repository' %><div class="form--field -required">- <%= label_tag('scm_vendor', l('repositories.scm_vendor'), class: "form--label") %>+ <%= label_tag('scm_vendor', t('repositories.scm_vendor'), class: "form--label") %><div class="form--field-container"><div class="form--select-container -middle"><%= scm_vendor_tag(@repository) %>diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erbindex 997406aa3d0..e8257846e62 100644--- a/app/views/repositories/revision.html.erb+++ b/app/views/repositories/revision.html.erb@@ -27,24 +27,24 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: "#{l(:label_revision)} #{format_revision(@changeset)}" do %>+<%= toolbar title: "#{t(:label_revision)} #{format_revision(@changeset)}" do %><li class="toolbar-item"><% if @changeset.previous.nil? %>- <button class="button" disabled="disabled"><%= l(:label_previous) %></button>+ <button class="button" disabled="disabled"><%= t(:label_previous) %></button><% else %>- <%= link_to_revision(@changeset.previous, @project, text: l(:label_previous), class: 'button') %>+ <%= link_to_revision(@changeset.previous, @project, text: t(:label_previous), class: 'button') %><% end %></li><li class="toolbar-item"><% if @changeset.next.nil? %>- <button class="button" disabled="disabled"><%= l(:label_next) %></button>+ <button class="button" disabled="disabled"><%= t(:label_next) %></button><% else %>- <%= link_to_revision(@changeset.next, @project, text: l(:label_next), class: 'button') %>+ <%= link_to_revision(@changeset.next, @project, text: t(:label_next), class: 'button') %><% end %></li><li class="toolbar-item"><%= form_tag({controller: '/repositories', action: 'revision', project_id: @project}, method: :get) do %>- <%= text_field_tag :rev, @rev, placeholder: l(:label_revision) %>+ <%= text_field_tag :rev, @rev, placeholder: t(:label_revision) %><% end %></li><% end %>@@ -53,7 +53,7 @@ See docs/COPYRIGHT.rdoc for more details.<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p><%= format_revision_text @changeset.comments %><% if @changeset.work_packages.visible.any? %>- <h3><%= l(:label_related_work_packages) %></h3>+ <h3><%= t(:label_related_work_packages) %></h3><ul><% @changeset.work_packages.visible.each do |work_package| %><li><%= link_to_work_package work_package %></li>@@ -61,17 +61,17 @@ See docs/COPYRIGHT.rdoc for more details.</ul><% end %><% if User.current.allowed_to?(:browse_repository, @project) %>- <h3><%= l(:label_attachment_plural) %></h3>+ <h3><%= t(:label_attachment_plural) %></h3><ul id="changes-legend">- <li class="change change-A icon icon-add" title=<%= l(:label_added) %>><%= l(:label_added) %></li>- <li class="change change-M icon icon-arrow-left-right" title=<%= l(:label_modified) %>><%= l(:label_modified) %></li>- <li class="change change-C icon icon-copy" title=<%= l(:label_copied) %>><%= l(:label_copied) %></li>- <li class="change change-R icon icon-rename" title=<%= l(:label_renamed) %>><%= l(:label_renamed) %></li>- <li class="change change-D icon icon-delete" title=<%= l(:label_deleted) %>><%= l(:label_deleted) %></li>+ <li class="change change-A icon icon-add" title=<%= t(:label_added) %>><%= t(:label_added) %></li>+ <li class="change change-M icon icon-arrow-left-right" title=<%= t(:label_modified) %>><%= t(:label_modified) %></li>+ <li class="change change-C icon icon-copy" title=<%= t(:label_copied) %>><%= t(:label_copied) %></li>+ <li class="change change-R icon icon-rename" title=<%= t(:label_renamed) %>><%= t(:label_renamed) %></li>+ <li class="change change-D icon icon-delete" title=<%= t(:label_deleted) %>><%= t(:label_deleted) %></li></ul>- <p><%= link_to(l(:label_view_diff), action: 'diff', project_id: @project, repo_path: nil, rev: @changeset.identifier) if @changeset.file_changes.any? %></p>+ <p><%= link_to(t(:label_view_diff), action: 'diff', project_id: @project, repo_path: nil, rev: @changeset.identifier) if @changeset.file_changes.any? %></p><div class="changeset-changes"><%= render_changeset_changes %></div><% end %>-<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>+<% html_title("#{t(:label_revision)} #{format_revision(@changeset)}") -%>diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erbindex ea235f0769e..5d1aa56eb7d 100644--- a/app/views/repositories/revisions.html.erb+++ b/app/views/repositories/revisions.html.erb@@ -26,11 +26,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_revision_plural) do %>+<%= toolbar title: t(:label_revision_plural) do %><%= form_tag({ action: 'revision', id: @project }, { method: :get }) do %><li class="toolbar-item">- <%= label_tag :rev, l(:label_revision), class: 'hidden-for-sighted' %>- <%= text_field_tag :rev, @rev, size: 8, placeholder: l(:label_revision) %>+ <%= label_tag :rev, t(:label_revision), class: 'hidden-for-sighted' %>+ <%= text_field_tag :rev, @rev, size: 8, placeholder: t(:label_revision) %></li><li class="toolbar-item"><%= submit_tag 'OK', class: 'button -highlight' %>@@ -46,4 +46,4 @@ See docs/COPYRIGHT.rdoc for more details.<%= f.link_to 'Atom', url: {key: User.current.rss_key} %><% end %>-<% html_title(l(:label_revision_plural)) -%>+<% html_title(t(:label_revision_plural)) -%>diff --git a/app/views/repositories/settings/_repository_committers_link.html.erb b/app/views/repositories/settings/_repository_committers_link.html.erbindex 115b783ecd1..e831ef6a4a3 100644--- a/app/views/repositories/settings/_repository_committers_link.html.erb+++ b/app/views/repositories/settings/_repository_committers_link.html.erb@@ -1,2 +1,2 @@-<%= link_to l(:label_user_plural), committers_project_repository_path(repository.project),+<%= link_to t(:label_user_plural), committers_project_repository_path(repository.project),class: 'icon icon-user' %>diff --git a/app/views/repositories/settings/_submit.html.erb b/app/views/repositories/settings/_submit.html.erbindex 58a2ee114c5..8e6d4a114d6 100644--- a/app/views/repositories/settings/_submit.html.erb+++ b/app/views/repositories/settings/_submit.html.erb@@ -1,6 +1,6 @@<button type="submit" class="button -highlight"><%= op_icon('button--icon icon-checkmark') %><span class="button--text">- <%= is_creation_form ? l(:button_create) : l(:button_save) %>+ <%= is_creation_form ? t(:button_create) : t(:button_save) %></span></button>diff --git a/app/views/repositories/settings/_vendor_attribute_groups.html.erb b/app/views/repositories/settings/_vendor_attribute_groups.html.erbindex ec1ad2c6955..1e05e26d867 100644--- a/app/views/repositories/settings/_vendor_attribute_groups.html.erb+++ b/app/views/repositories/settings/_vendor_attribute_groups.html.erb@@ -2,18 +2,18 @@<div class="attributes-group--header"><div class="attributes-group--header-container"><span class="attributes-group--header-text">- <%= l("repositories.#{vendor}.#{type}_url") %>+ <%= t("repositories.#{vendor}.#{type}_url") %></span></div><% unless repository.new_record? %><div class="attributes-group--header-control"><%= render partial: '/repositories/settings/repository_committers_link', locals: { repository: repository } %><% if type === 'managed' %>- <%= link_to l(:button_delete), destroy_info_project_repository_path(repository.project),+ <%= link_to t(:button_delete), destroy_info_project_repository_path(repository.project),method: :get,class: 'icon icon-delete' %><% else %>- <%= link_to l(:button_remove), destroy_info_project_repository_path(repository.project),+ <%= link_to t(:button_remove), destroy_info_project_repository_path(repository.project),method: :get,class: 'icon icon-remove' %><% end %>@@ -21,7 +21,7 @@<% end %></div>- <p><%= l("repositories.#{vendor}.#{type}_introduction") %></p>+ <p><%= t("repositories.#{vendor}.#{type}_introduction") %></p><div id="attributes-group--content-<%= type %>"class="attributes-group--contentsingle-attribute">diff --git a/app/views/repositories/settings/_vendor_form.html.erb b/app/views/repositories/settings/_vendor_form.html.erbindex 4f3f6e6577e..6787ffa9668 100644--- a/app/views/repositories/settings/_vendor_form.html.erb+++ b/app/views/repositories/settings/_vendor_form.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="attributes-group -toggleable" data-switch="scm_type"><% scm_types.each do |type|%><div class="form--field">- <%= styled_label_tag type, l("repositories.#{@repository.vendor}.#{type}_title") %>+ <%= styled_label_tag type, t("repositories.#{@repository.vendor}.#{type}_title") %><div class="form--field-container"><%= styled_radio_button_tag 'scm_type', type, scm_types.length == 1 ? true : false, id: type, autofocus: true %></div>diff --git a/app/views/repositories/settings/git/_local.html.erb b/app/views/repositories/settings/git/_local.html.erbindex 5a0a356b993..185b1fad627 100644--- a/app/views/repositories/settings/git/_local.html.erb+++ b/app/views/repositories/settings/git/_local.html.erb@@ -28,18 +28,18 @@ See docs/COPYRIGHT.rdoc for more details.++#%><div class="form--field -required"><%= form.text_field(:url,- label: l('repositories.git.path'),+ label: t('repositories.git.path'),size: 60,required: true) %><div class="form--field-instructions">- <%= raw l('repositories.git.instructions.path', example_path: '<code>/path/to/repository/.git</code>') %>+ <%= raw t('repositories.git.instructions.path', example_path: '<code>/path/to/repository/.git</code>') %></div></div><div class="form--field -required"><%= form.select(:path_encoding,git_path_encoding_options(repository),- label: l('repositories.git.path_encoding')) %>+ label: t('repositories.git.path_encoding')) %><div class="form--field-instructions">- <%= l('repositories.git.instructions.path_encoding') %>+ <%= t('repositories.git.instructions.path_encoding') %></div></div>diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erbindex 514f29d7dd7..45305f881b3 100644--- a/app/views/repositories/show.html.erb+++ b/app/views/repositories/show.html.erb@@ -40,7 +40,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render_properties(@properties) %>-<%= toolbar title: l(:label_revision_plural), html: { class: 'repository--revision-toolbar' } do %>+<%= toolbar title: t(:label_revision_plural), html: { class: 'repository--revision-toolbar' } do %><%# rev => nil prevents overwriting the rev parameter queried for in the form with the parameter from the request %><%= form_tag({ action: controller.action_name,project_id: @project,@@ -55,7 +55,7 @@ See docs/COPYRIGHT.rdoc for more details.<div><%= label_tag 'rev', I18n.t('repositories.go_to_revision') %></div>- <%= text_field_tag :rev, @rev, id: 'revision-identifier-input', placeholder: l(:label_revision) %>+ <%= text_field_tag :rev, @rev, id: 'revision-identifier-input', placeholder: t(:label_revision) %></li><% if [email protected]? && @repository.branches.length > 0 %><li class="toolbar-item toolbar-input-group hidden-for-mobile">@@ -82,7 +82,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item -icon-only"><%= link_to({ url: { action: 'revisions', project_id: @project,key: User.current.rss_key } },- { class: 'button', title: l('repositories.atom_revision_feed') }) do %>+ { class: 'button', title: t('repositories.atom_revision_feed') }) do %><%= op_icon('button--icon icon-export-atom') %><% end %></li>@@ -102,10 +102,10 @@ See docs/COPYRIGHT.rdoc for more details.%><% if @repository.supports_all_revisions? && @path.blank? %>-<%= link_to l(:label_view_all_revisions), revisions_project_repository_path(@project) %>+<%= link_to t(:label_view_all_revisions), revisions_project_repository_path(@project) %><% sep = '|' %><% end %></p><% end %>-<% html_title(l(:label_repository)) -%>+<% html_title(t(:label_repository)) -%>diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erbindex adf24b3e9d3..fa1c86031d2 100644--- a/app/views/repositories/stats.html.erb+++ b/app/views/repositories/stats.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_statistics) %>+<%= toolbar title: t(:label_statistics) %><p class="autoscroll"><%= tag("embed", width: 800,@@ -50,6 +50,6 @@ See docs/COPYRIGHT.rdoc for more details.</p><% end %>-<p><%= link_to l(:button_back), action: 'show', project_id: @project.id %></p>+<p><%= link_to t(:button_back), action: 'show', project_id: @project.id %></p>-<% html_title(l(:label_repository), l(:label_statistics)) -%>+<% html_title(t(:label_repository), t(:label_statistics)) -%>diff --git a/app/views/roles/_member_attributes.html.erb b/app/views/roles/_member_attributes.html.erbindex 7d58f2e1eb8..3ae30abb95c 100644--- a/app/views/roles/_member_attributes.html.erb+++ b/app/views/roles/_member_attributes.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.</div><% if role.new_record? && roles.any? %><div class="form--field">- <%= styled_label_tag :copy_workflow_from, l(:label_copy_workflow_from) %>+ <%= styled_label_tag :copy_workflow_from, t(:label_copy_workflow_from) %><div class="form--field-container"><%= styled_select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles.select{|r| !r.is_a?(GlobalRole)}, :id, :name), container_class: '-slim') %></div>diff --git a/app/views/roles/_member_form.html.erb b/app/views/roles/_member_form.html.erbindex 966dd96c046..014ec33f3d7 100644--- a/app/views/roles/_member_form.html.erb+++ b/app/views/roles/_member_form.html.erb@@ -36,7 +36,7 @@ See docs/COPYRIGHT.rdoc for more details.</div><% if role.new_record? && roles.any? %><div class="form--field">- <%= styled_label_tag :copy_workflow_from, l(:label_copy_workflow_from) %>+ <%= styled_label_tag :copy_workflow_from, t(:label_copy_workflow_from) %><div class="form--field-container"><%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></div>@@ -44,7 +44,7 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><% end %>-<h3><%= l(:label_permissions) %></h3>+<h3><%= t(:label_permissions) %></h3><div id="permissions"><% @permissions.each do |mod, mod_permissions| %><fieldset><legend><%= mod.blank? ? Project.model_name.human : l_or_humanize(mod, :prefix => 'project_module_') %></legend>diff --git a/app/views/roles/edit.html.erb b/app/views/roles/edit.html.erbindex 667bb8936b2..80790c51065 100644--- a/app/views/roles/edit.html.erb+++ b/app/views/roles/edit.html.erb@@ -36,5 +36,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= hidden_field_tag :id, @role.id %><%= render partial: 'form', locals: { f: f , role: @role } %><br/>- <%= styled_button_tag l(:button_save), class: '-with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark' %><% end %>diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erbindex f2205e01464..2c58350ec14 100644--- a/app/views/roles/index.html.erb+++ b/app/views/roles/index.html.erb@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l("label_role_plural") %>+<% html_title t(:label_administration), t("label_role_plural") %><%= toolbar title: Role.model_name.human(count: 2) do %><li class="toolbar-item"><%= link_to({ action: 'new'},@@ -63,7 +63,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:label_global)%>+ <%=t(:label_global)%></span></div></div>@@ -72,7 +72,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:button_sort)%>+ <%=t(:button_sort)%></span></div></div>@@ -97,7 +97,7 @@ See docs/COPYRIGHT.rdoc for more details.<td class="buttons"><%= link_to('', role_path(role),method: :delete,- data: { confirm: l(:text_are_you_sure) },+ data: { confirm: t(:text_are_you_sure) },class: 'icon icon-delete',title: t(:button_delete)) unless role.builtin? %></td>@@ -111,4 +111,4 @@ See docs/COPYRIGHT.rdoc for more details.<%= pagination_links_full @roles %>-<p><%= link_to l(:label_permissions_report), :action => 'report' %></p>+<p><%= link_to t(:label_permissions_report), :action => 'report' %></p>diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erbindex d201d112518..5b719343a8f 100644--- a/app/views/roles/report.html.erb+++ b/app/views/roles/report.html.erb@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= breadcrumb_toolbar l(:label_permissions_report) %>-<% local_assigns[:additional_breadcrumb] = l(:label_permissions_report) %>-<% html_title l(:label_administration), l(:label_permissions_report) %>+<%= breadcrumb_toolbar t(:label_permissions_report) %>+<% local_assigns[:additional_breadcrumb] = t(:label_permissions_report) %>+<% html_title t(:label_administration), t(:label_permissions_report) %><% (@calls || []).select(&:failure?).each do |call| %><%= error_messages_for_contract(call.result, call.errors) %>@@ -67,7 +67,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l(:label_permissions)%>+ <%=t(:label_permissions)%></span></div></div>@@ -79,10 +79,10 @@ See docs/COPYRIGHT.rdoc for more details.<span><%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %><%= link_to_function(- icon_wrapper('icon-context icon-checkmark',"#{l(:button_check_all)}/#{l(:button_uncheck_all)}"),+ icon_wrapper('icon-context icon-checkmark',"#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),"OpenProject.helpers.toggleCheckboxesBySelector('input.role-#{role.id}')",class: 'no-decoration-on-hover',- title: "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>+ title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %></span></div></div>@@ -95,10 +95,10 @@ See docs/COPYRIGHT.rdoc for more details.<tr class="permission-<%= permission.name %>"><td><%= link_to_function(- icon_wrapper('icon-context icon-checkmark',"#{l(:button_check_all)}/#{l(:button_uncheck_all)}"),+ icon_wrapper('icon-context icon-checkmark',"#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),"OpenProject.helpers.toggleCheckboxesBySelector('.permission-#{permission.name} input')",class: 'no-decoration-on-hover',- title: "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>+ title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %><%= l_or_humanize(permission.name, prefix: 'permission_') %></td><% @roles.each do |role| %>@@ -118,5 +118,5 @@ See docs/COPYRIGHT.rdoc for more details.</fieldset><% end %>- <p><%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %></p>+ <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></p><% end %>diff --git a/app/views/search/_mini_form.html.erb b/app/views/search/_mini_form.html.erbindex 07b2201cfc4..d39f5e3dac6 100644--- a/app/views/search/_mini_form.html.erb+++ b/app/views/search/_mini_form.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><div class="top-menu-search--wrapper">- <%= label_tag("q", l(:label_search), class: "hidden-for-sighted") %>+ <%= label_tag("q", t(:label_search), class: "hidden-for-sighted") %><global-search-input>diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erbindex 88a267783e1..c358f4dea0f 100644--- a/app/views/search/index.html.erb+++ b/app/views/search/index.html.erb@@ -40,7 +40,7 @@ See docs/COPYRIGHT.rdoc for more details.<global-search-work-packages-entry></global-search-work-packages-entry><% else %>- <h3><%= l(:label_result_plural) %> (<%= @results_count&.values&.sum || 0 %>)</h3>+ <h3><%= t(:label_result_plural) %> (<%= @results_count&.values&.sum || 0 %>)</h3><% if @results.present? %>@@ -76,4 +76,4 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><%= render partial: 'pagination', locals: {pagination_previous_date: @pagination_previous_date, pagination_next_date: @pagination_next_date } unless params[:work_packages].present? %>-<% html_title(l(:label_search)) -%>+<% html_title(t(:label_search)) -%>diff --git a/app/views/statuses/edit.html.erb b/app/views/statuses/edit.html.erbindex 9bd5bdc6eec..b167f8f1d7f 100644--- a/app/views/statuses/edit.html.erb+++ b/app/views/statuses/edit.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{Status.model_name.human} #{h @status.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{Status.model_name.human} #{h @status.name}" %><% local_assigns[:additional_breadcrumb] = @status.name %><%= breadcrumb_toolbar @status.name %><%= labelled_tabular_form_for(@status) do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/statuses/index.html.erb b/app/views/statuses/index.html.erbindex 9532081a6e4..3bdef06e6db 100644--- a/app/views/statuses/index.html.erb+++ b/app/views/statuses/index.html.erb@@ -27,8 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_work_package_status_plural) -%>-<%= toolbar title: l(:label_work_package_status_plural) do %>+<% html_title t(:label_administration), t(:label_work_package_status_plural) -%>+<%= toolbar title: t(:label_work_package_status_plural) do %><li class="toolbar-item"><%= link_to new_status_path,{ class: 'button -alt-highlight',@@ -40,9 +40,9 @@ See docs/COPYRIGHT.rdoc for more details.</li><% if WorkPackage.use_status_for_done_ratio? %><li class="toolbar-item">- <%= link_to update_work_package_done_ratio_statuses_path, class: 'button', method: :post, data: { confirm: l(:text_are_you_sure) } do %>+ <%= link_to update_work_package_done_ratio_statuses_path, class: 'button', method: :post, data: { confirm: t(:text_are_you_sure) } do %><%= op_icon('button--icon icon-reload') %>- <span class="button--text"><%= l(:label_update_work_package_done_ratios) %></span>+ <span class="button--text"><%= t(:label_update_work_package_done_ratios) %></span><% end %></li><% end %>diff --git a/app/views/statuses/new.html.erb b/app/views/statuses/new.html.erbindex c6e102feb3b..8e1b2e93237 100644--- a/app/views/statuses/new.html.erb+++ b/app/views/statuses/new.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_work_package_status_new) %>-<% local_assigns[:additional_breadcrumb] = l(:label_work_package_status_new) %>-<%= breadcrumb_toolbar l(:label_work_package_status_new) %>+<% html_title t(:label_administration), t(:label_work_package_status_new) %>+<% local_assigns[:additional_breadcrumb] = t(:label_work_package_status_new) %>+<%= breadcrumb_toolbar t(:label_work_package_status_new) %><%= labelled_tabular_form_for(@status) do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/types/new.html.erb b/app/views/types/new.html.erbindex 6f7aaa93c65..1e1b664c92a 100644--- a/app/views/types/new.html.erb+++ b/app/views/types/new.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_type_new) %>+<% html_title t(:label_administration), t(:label_type_new) %><% local_assigns[:additional_breadcrumb] = t(:label_type_new) %>diff --git a/app/views/user_mailer/_errors.html.erb b/app/views/user_mailer/_errors.html.erbindex 200178335f0..b2e4e6ffc5f 100644--- a/app/views/user_mailer/_errors.html.erb+++ b/app/views/user_mailer/_errors.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<h1><%= l('copy_project.errors') %></h1>+<h1><%= t('copy_project.errors') %></h1><ul><% errors.each do |error| %>diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erbindex 42489086f6c..fc8144c22b8 100644--- a/app/views/users/_form.html.erb+++ b/app/views/users/_form.html.erb@@ -71,7 +71,7 @@ See docs/COPYRIGHT.rdoc for more details.<% unless @auth_sources.empty? || OpenProject::Configuration.disable_password_login? %><div class="form--field"><%= f.select :auth_source_id,- ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }),+ ([[t(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }),label: :'activerecord.attributes.user.auth_source',container_class: '-middle' %></div>diff --git a/app/views/users/_general.html.erb b/app/views/users/_general.html.erbindex 8fdf52468ed..42b3a942d8e 100644--- a/app/views/users/_general.html.erb+++ b/app/views/users/_general.html.erb@@ -47,5 +47,5 @@ See docs/COPYRIGHT.rdoc for more details.as: :user do |f| %><%= render partial: 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/users/_memberships.html.erb b/app/views/users/_memberships.html.erbindex 80ebe5623bf..1aeae0ace6c 100644--- a/app/views/users/_memberships.html.erb+++ b/app/views/users/_memberships.html.erb@@ -56,7 +56,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:label_role_plural) %>+ <%= t(:label_role_plural) %></span></div></div>@@ -98,8 +98,8 @@ See docs/COPYRIGHT.rdoc for more details.</label><% end %></div>- <p><%= submit_tag l(:button_change), class: 'user-memberships--edit-submit-button button -highlight -small' %>- <%= link_to_function l(:button_cancel),+ <p><%= submit_tag t(:button_change), class: 'user-memberships--edit-submit-button button -highlight -small' %>+ <%= link_to_function t(:button_cancel),"jQuery('.member-#{membership.id}--edit-toggle-item').toggle();",class: 'button -small' %></p><% end %>@@ -132,15 +132,15 @@ See docs/COPYRIGHT.rdoc for more details.url: user_memberships_path(user_id: @user),html: {id: "new_project_membership"}) do %><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%=l(:label_project_new)%></legend>+ <legend class="form--fieldset-legend"><%=t(:label_project_new)%></legend><%= styled_select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %><div class="form--field -vertical">- <%= styled_label_tag nil, "#{l(:label_role_plural)}:" %>+ <%= styled_label_tag nil, "#{t(:label_role_plural)}:" %><div class="form--field-container -vertical"><%= labeled_check_box_tags 'membership[role_ids][]', roles %></div></div>- <div><%= styled_button_tag l(:button_add), class: '-highlight -with-icon icon-checkmark' %></div>+ <div><%= styled_button_tag t(:button_add), class: '-highlight -with-icon icon-checkmark' %></div></fieldset><% end %><% end %>diff --git a/app/views/users/_toolbar.html.erb b/app/views/users/_toolbar.html.erbindex 0a896fd2adc..5cd6de9dc12 100644--- a/app/views/users/_toolbar.html.erb+++ b/app/views/users/_toolbar.html.erb@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= breadcrumb_toolbar(@user.new_record? ? l(:label_user_new) : @user.name) do %>+<%= breadcrumb_toolbar(@user.new_record? ? t(:label_user_new) : @user.name) do %><% unless @user.new_record? %><% if current_user.admin? || current_user.id == @user.id %><li class="toolbar-item hidden-for-mobile">@@ -43,7 +43,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item"><%= link_to user_path(@user), class: 'button' do %><%= op_icon('button--icon icon-user') %>- <span class="button--text"><%= l(:label_profile) %></span>+ <span class="button--text"><%= t(:label_profile) %></span><% end %></li><% unless current_user.id == @user.id %>@@ -58,7 +58,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item"><%= link_to deletion_info_user_path(@user), class: 'button' do %><%= op_icon('button--icon icon-delete') %>- <span class="button--text"><%= l(:button_delete) %></span>+ <span class="button--text"><%= t(:button_delete) %></span><% end %></li><% end %>diff --git a/app/views/users/change_status_info.html.erb b/app/views/users/change_status_info.html.erbindex 5d6e63619bd..7dfb36af76a 100644--- a/app/views/users/change_status_info.html.erb+++ b/app/views/users/change_status_info.html.erb@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_administration), "#{ l(:label_change_status_of_user, username: @user.name)}") -%>+<% html_title(t(:label_administration), "#{ t(:label_change_status_of_user, username: @user.name)}") -%><% local_assigns[:additional_breadcrumb] = @user.name %><% new_status = t("user.#{@status_change}") %>diff --git a/app/views/users/deletion_info.html.erb b/app/views/users/deletion_info.html.erbindex 89da56beb9c..fdd31c91db9 100644--- a/app/views/users/deletion_info.html.erb+++ b/app/views/users/deletion_info.html.erb@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_administration), "#{ l('account.deletion_info.heading', name: @user.name)}") -%>+<% html_title(t(:label_administration), "#{ t('account.deletion_info.heading', name: @user.name)}") -%><%= labelled_tabular_form_for(:user,@@ -38,29 +38,29 @@ See docs/COPYRIGHT.rdoc for more details.<div class='wiki'><section class="form--section"><h3 class="form--section-title">- <%= l('account.deletion_info.heading', name: "<em>#{h(@user.name)}</em>").html_safe %>+ <%= t('account.deletion_info.heading', name: "<em>#{h(@user.name)}</em>").html_safe %></h3><p>- <%= l("account.deletion_info.login_consequences.#{User.current == @user ? 'self' : 'other'}") %>+ <%= t("account.deletion_info.login_consequences.#{User.current == @user ? 'self' : 'other'}") %></p><p>- <%= l("account.deletion_info.data_consequences.#{User.current == @user ? 'self' : 'other'}") %>+ <%= t("account.deletion_info.data_consequences.#{User.current == @user ? 'self' : 'other'}") %></p><p class="danger-zone--warning"><span class="icon icon-error"></span>- <span><%= l("account.deletion_info.info.#{User.current == @user ? 'self' : 'other'}") %></span>+ <span><%= t("account.deletion_info.info.#{User.current == @user ? 'self' : 'other'}") %></span></p><p>- <%= l("account.deletion_info.login_verification.#{User.current == @user ? 'self' : 'other'}",+ <%= t("account.deletion_info.login_verification.#{User.current == @user ? 'self' : 'other'}",name: "<em class=\"danger-zone--expected-value\">#{h(@user.login)}</em>").html_safe %></p><div class="danger-zone--verification"><input type="text" name="login_verification"/><%= styled_button_tag '', class: '-highlight', disabled: true doconcat content_tag :i, '', class: 'button--icon icon-delete'- concat content_tag :span, l(:button_delete), class: 'button--text'+ concat content_tag :span, t(:button_delete), class: 'button--text'end %></div></section>diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erbindex 282675bc65d..ac1c9841967 100644--- a/app/views/users/edit.html.erb+++ b/app/views/users/edit.html.erb@@ -28,7 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_administration), "#{l(:label_edit)} #{User.model_name.human} #{h(@user.name)}") -%>+<% html_title(t(:label_administration), "#{t(:label_edit)} #{User.model_name.human} #{h(@user.name)}") -%><% local_assigns[:additional_breadcrumb] = @user.name %><%= render partial: 'toolbar', locals: { new_user: false } %>diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erbindex 07a18b01d5d..d72759cbf6a 100644--- a/app/views/users/new.html.erb+++ b/app/views/users/new.html.erb@@ -31,8 +31,8 @@ See docs/COPYRIGHT.rdoc for more details.<meta name="required_script" content="new_user" /><% end %>-<% html_title l(:label_administration), l("label_user_new") %>-<% local_assigns[:additional_breadcrumb] = l(:label_user_new) %>+<% html_title t(:label_administration), t("label_user_new") %>+<% local_assigns[:additional_breadcrumb] = t(:label_user_new) %><%= render partial: 'toolbar', locals: { new_user: true } %><%= labelled_tabular_form_for @user,url: { action: "create" },@@ -41,7 +41,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'simple_form', locals: { f: f, auth_sources: @auth_sources, user: @user } %><p>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>- <%= styled_button_tag l(:button_create_and_continue), name: 'continue', class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-highlight -with-icon icon-checkmark' %></p><% end %>diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erbindex 75623c70e99..a16df0549af 100644--- a/app/views/users/show.html.erb+++ b/app/views/users/show.html.erb@@ -30,13 +30,13 @@ See docs/COPYRIGHT.rdoc for more details.<% content_for :header_tags do %><%= call_hook :users_show_head %><% end %>-<% html_title l(:label_administration), l(:label_user_plural) -%>+<% html_title t(:label_administration), t(:label_user_plural) -%><%= toolbar title: "#{avatar @user} #{h(@user.name)}".html_safe do %><% if User.current.admin? %><li class="toolbar-item"><%= link_to edit_user_path(@user), class: 'button', accesskey: accesskey(:edit) do %><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_edit) %></span>+ <span class="button--text"><%= t(:button_edit) %></span><% end %></li><% end %>@@ -59,7 +59,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= call_hook :view_account_left_middle, user: @user %><% unless @memberships.empty? %>- <h3><%=l(:label_project_plural)%></h3>+ <h3><%=t(:label_project_plural)%></h3><ul><% for membership in @memberships %><li>@@ -75,10 +75,10 @@ See docs/COPYRIGHT.rdoc for more details.<div class="grid-content"><% unless @events_by_day.empty? %><h3>- <%= link_to l(:label_activity), controller: '/activities', action: 'index', id: nil, user_id: @user, from: @events_by_day.keys.first %>+ <%= link_to t(:label_activity), controller: '/activities', action: 'index', id: nil, user_id: @user, from: @events_by_day.keys.first %></h3><p>- <%=l(:label_reported_work_packages)%>: <%= @user.reported_work_package_count %>+ <%=t(:label_reported_work_packages)%>: <%= @user.reported_work_package_count %></p><div id="activity"><% @events_by_day.keys.sort.reverse.each do |day| %>diff --git a/app/views/users/users_settings.html.erb b/app/views/users/users_settings.html.erbindex a3616796ecf..ef01abb81f0 100644--- a/app/views/users/users_settings.html.erb+++ b/app/views/users/users_settings.html.erb@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_user_settings) -%>+<% html_title t(:label_administration), t(:label_user_settings) -%>-<%= toolbar title: l(:label_user_settings) %>+<%= toolbar title: t(:label_user_settings) %><%= styled_form_tag({ action: 'edit' }, class: 'admin-settings--form') do %>@@ -99,5 +99,5 @@ See docs/COPYRIGHT.rdoc for more details.</span></div></fieldset>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/app/views/versions/_overview.html.erb b/app/views/versions/_overview.html.erbindex 3a297b43b35..16a7d9b78e0 100644--- a/app/views/versions/_overview.html.erb+++ b/app/views/versions/_overview.html.erb@@ -54,12 +54,12 @@ See docs/COPYRIGHT.rdoc for more details.<%= progress_bar([version.closed_percent, version.completed_percent], width: '40%', legend: ('%0.0f' % version.completed_percent)) %><p class="progress-info"><%= link_to_if(version.closed_issues_count > 0,- l(:label_x_closed_work_packages_abbr, count: version.closed_issues_count),+ t(:label_x_closed_work_packages_abbr, count: version.closed_issues_count),project_work_packages_closed_version_path(version)) %>(<%= '%0.0f' % (version.closed_issues_count.to_f / version.work_packages.count * 100) %>%) <%= link_to_if(version.open_issues_count > 0,- l(:label_x_open_work_packages_abbr, count: version.open_issues_count),+ t(:label_x_open_work_packages_abbr, count: version.open_issues_count),project_work_packages_open_version_path(version)) %>(<%= '%0.0f' % (version.open_issues_count.to_f / version.work_packages.count * 100) %>%)</p>diff --git a/app/views/versions/_roadmap_filter.html.erb b/app/views/versions/_roadmap_filter.html.erbindex f2b17089595..981484787de 100644--- a/app/views/versions/_roadmap_filter.html.erb+++ b/app/views/versions/_roadmap_filter.html.erb@@ -1,6 +1,6 @@<%= form_tag({}, method: :get) do %><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l(:description_filter) %></legend>+ <legend class="form--fieldset-legend"><%= t(:description_filter) %></legend><% @types.each do |type| %><div class="form--field -trailing-label -no-margin"><%= styled_label_tag "type-#{type.id}", type.name %>@@ -33,7 +33,7 @@<div class="form--space"></div>- <div><%= submit_tag l(:button_apply), class: 'button -small -alt-highlight', name: nil %></div>+ <div><%= submit_tag t(:button_apply), class: 'button -small -alt-highlight', name: nil %></div></fieldset><% end %>diff --git a/app/views/versions/_roadmap_version_links.html.erb b/app/views/versions/_roadmap_version_links.html.erbindex 8f7e183bb77..cbb415e44d7 100644--- a/app/views/versions/_roadmap_version_links.html.erb+++ b/app/views/versions/_roadmap_version_links.html.erb@@ -1,4 +1,4 @@-<h3><%= l(:label_version_plural) %></h3>+<h3><%= t(:label_version_plural) %></h3><% @versions.each do |version| %><%= link_to format_version_name(version), "#{project_roadmap_url}##{version.name}" %><br />diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erbindex b91b4c0a8af..974a2ae7cff 100644--- a/app/views/versions/index.html.erb+++ b/app/views/versions/index.html.erb@@ -52,7 +52,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if (issues = @wps_by_version[version]) && issues.size > 0 %><form><fieldset class="form--fieldset -collapsible">- <legend class="form--fieldset-legend" ><%= l(:label_related_work_packages) %></legend>+ <legend class="form--fieldset-legend" ><%= t(:label_related_work_packages) %></legend><div><ul><%- issues.each do |issue| -%>@@ -73,4 +73,4 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'roadmap_version_links' %><% end %>-<% html_title(l(:label_roadmap)) %>+<% html_title(t(:label_roadmap)) %>diff --git a/app/views/wiki/diff.html.erb b/app/views/wiki/diff.html.erbindex 0615f5921c2..e198e5a535b 100644--- a/app/views/wiki/diff.html.erb+++ b/app/views/wiki/diff.html.erb@@ -38,10 +38,10 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= Version.model_name.human %> <%= link_to @diff.content_from.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_from.version %>/<%= @page.content.version %>- <em>(<%= @diff.content_from.user ? link_to_user(@diff.content_from.user) : l(:label_user_anonymous) %>, <%= format_time(@diff.content_from.created_at) %>)</em>+ <em>(<%= @diff.content_from.user ? link_to_user(@diff.content_from.user) : t(:label_user_anonymous) %>, <%= format_time(@diff.content_from.created_at) %>)</em>→<%= Version.model_name.human %> <%= link_to @diff.content_to.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_to.version %>/<%= @page.content.version %>- <em>(<%= @diff.content_to.user ? link_to_user(@diff.content_to.user) : l(:label_user_anonymous) %>, <%= format_time(@diff.content_to.created_at) %>)</em>+ <em>(<%= @diff.content_to.user ? link_to_user(@diff.content_to.user) : t(:label_user_anonymous) %>, <%= format_time(@diff.content_to.created_at) %>)</em></p><div class="text-diff"><%= nl2br @html_diff %>diff --git a/app/views/wiki/edit_parent_page.html.erb b/app/views/wiki/edit_parent_page.html.erbindex 2464d3aaa60..08ae49a22c5 100644--- a/app/views/wiki/edit_parent_page.html.erb+++ b/app/views/wiki/edit_parent_page.html.erb@@ -29,7 +29,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: "#{t(:button_change_parent_page)}: #{@page.title}" %>-<% html_title l('activerecord.models.wiki'), t(:button_change_parent_page) %>+<% html_title t('activerecord.models.wiki'), t(:button_change_parent_page) %><% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %><%= error_messages_for 'page' %>diff --git a/app/views/wiki/export_multiple.html.erb b/app/views/wiki/export_multiple.html.erbindex 1edae9b165c..310e4c19b60 100644--- a/app/views/wiki/export_multiple.html.erb+++ b/app/views/wiki/export_multiple.html.erb@@ -44,7 +44,7 @@ See docs/COPYRIGHT.rdoc for more details.</style></head><body>- <strong><%= l(:label_index_by_title) %></strong>+ <strong><%= t(:label_index_by_title) %></strong><ul><% @pages.each do |page| %><li><a href="#<%= h(page.to_param) %>"><%= h(page.title) %></a></li>diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erbindex 0974ae73563..56b43fc4203 100644--- a/app/views/wiki/history.html.erb+++ b/app/views/wiki/history.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= toolbar title: @page.title %>-<% html_title l('activerecord.models.wiki'), l(:label_history) %>+<% html_title t('activerecord.models.wiki'), t(:label_history) %><% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>-<h3><%= l(:label_history) %></h3>+<h3><%= t(:label_history) %></h3><%= form_tag({action: "diff"}, method: :get) do %><div class="generic-table--container"><div class="generic-table--results-container">@@ -137,7 +137,7 @@ See docs/COPYRIGHT.rdoc for more details.<td class="updated_on"><%= format_time(ver.created_at) %></td><td class="author"><%= link_to_user ver.user %></td><td class="comments"><%=h ver.notes %></td>- <td class="buttons"><%= link_to l(:button_annotate), action: 'annotate', id: @page, version: ver.version %></td>+ <td class="buttons"><%= link_to t(:button_annotate), action: 'annotate', id: @page, version: ver.version %></td></tr><% line_num += 1 %><% end %>@@ -147,7 +147,7 @@ See docs/COPYRIGHT.rdoc for more details.</div></div><div class="generic-table--action-buttons">- <%= submit_tag l(:label_view_diff), class: 'button -highlight -small' if show_diff %>+ <%= submit_tag t(:label_view_diff), class: 'button -highlight -small' if show_diff %></div><%= nonced_javascript_tag do -%>diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erbindex a2de613597f..85577837d30 100644--- a/app/views/wiki/show.html.erb+++ b/app/views/wiki/show.html.erb@@ -61,7 +61,7 @@ See docs/COPYRIGHT.rdoc for more details.title: t(:button_edit),class: 'button' }) do %><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_edit) %></span>+ <span class="button--text"><%= t(:button_edit) %></span><% end %></li><% end %>@@ -72,7 +72,7 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><% if @content.version != @page.content.version %><li class="toolbar-item hidden-for-mobile">- <%= link_to(l(:label_history), {action: 'history', id: @page}, class: 'button icon-wiki') %>+ <%= link_to(t(:label_history), {action: 'history', id: @page}, class: 'button icon-wiki') %></li><% end %><% end %>@@ -84,8 +84,8 @@ See docs/COPYRIGHT.rdoc for more details.</a><ul style="display:none;" class="menu-drop-down-container"><% if @editable %>- <%= li_unless_nil(link_to_if_authorized(l(:button_lock), {action: 'protect', id: @page, protected: 1}, method: :post, class: 'icon-context icon-locked')) if [email protected]? %>- <%= li_unless_nil(link_to_if_authorized(l(:button_unlock), {action: 'protect', id: @page, protected: 0}, method: :post, class: 'icon-context icon-unlocked')) if @page.protected? %>+ <%= li_unless_nil(link_to_if_authorized(t(:button_lock), {action: 'protect', id: @page, protected: 1}, method: :post, class: 'icon-context icon-locked')) if [email protected]? %>+ <%= li_unless_nil(link_to_if_authorized(t(:button_unlock), {action: 'protect', id: @page, protected: 0}, method: :post, class: 'icon-context icon-unlocked')) if @page.protected? %><% if @content.version == @page.content.version %><%= li_unless_nil(link_to_if_authorized(t(:button_rename),{action: 'rename', id: @page},@@ -94,11 +94,11 @@ See docs/COPYRIGHT.rdoc for more details.{action: 'edit_parent_page', id: @page},class: 'icon-context icon-link')) %><% end %>- <%= li_unless_nil(link_to_if_authorized(l(:button_delete), {action: 'destroy', id: @page}, method: :delete, data: { confirm: l(:text_are_you_sure) }, class: 'icon-context icon-delete')) %>- <%= li_unless_nil(link_to_if_authorized(l(:button_rollback), {action: 'edit', id: @page, version: @content.version }, class: 'icon-context icon-cancel')) if @content.version < @page.content.version %>+ <%= li_unless_nil(link_to_if_authorized(t(:button_delete), {action: 'destroy', id: @page}, method: :delete, data: { confirm: t(:text_are_you_sure) }, class: 'icon-context icon-delete')) %>+ <%= li_unless_nil(link_to_if_authorized(t(:button_rollback), {action: 'edit', id: @page, version: @content.version }, class: 'icon-context icon-cancel')) if @content.version < @page.content.version %><% end %>- <%= li_unless_nil(link_to_if_authorized(l(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-wiki')) %>- <%= li_unless_nil(link_to_if_authorized(l(:button_manage_menu_entry), {controller: '/wiki_menu_items', action: 'edit', project_id: @project.identifier, id: @page}, class: 'icon-context icon-settings')) %>+ <%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-wiki')) %>+ <%= li_unless_nil(link_to_if_authorized(t(:button_manage_menu_entry), {controller: '/wiki_menu_items', action: 'edit', project_id: @project.identifier, id: @page}, class: 'icon-context icon-settings')) %><% if User.current.allowed_to?(:export_wiki_pages, @project) %><section data-augmented-model-wrapperdata-modal-class-name="wiki-export---modal">@@ -111,7 +111,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'wiki/wiki_export_modal' %></section><% end %>- <%= li_unless_nil(link_to_if_authorized(l(:label_table_of_contents), {controller: '/wiki', action: 'index', project_id: @project.identifier, id: @page}, class: 'icon-context icon-view-list')) %>+ <%= li_unless_nil(link_to_if_authorized(t(:label_table_of_contents), {controller: '/wiki', action: 'index', project_id: @project.identifier, id: @page}, class: 'icon-context icon-view-list')) %></ul></li><% end %>@@ -122,10 +122,10 @@ See docs/COPYRIGHT.rdoc for more details.<hr /><div class="wiki-version--details"><div>- <%= link_to(l(:label_previous), { action: 'show', id: @page, project_id: @page.project, version: (@content.version - 1) }, class: 'button navigate-left') if @content.version > 1 %>+ <%= link_to(t(:label_previous), { action: 'show', id: @page, project_id: @page.project, version: (@content.version - 1) }, class: 'button navigate-left') if @content.version > 1 %><span><%= "#{Version.model_name.human} #{@content.version}/#{@page.content.version}" %> —</span>- <span><em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous) %></em> — <%= format_time(@content.updated_on) %></span>- <%= link_to(l(:label_next), { action: 'show', id: @page, project_id: @page.project, version: (@content.version + 1) }, class: 'button navigate-right') if @content.version < @page.content.version %>+ <span><em><%= @content.author ? link_to_user(@content.author) : t(:label_user_anonymous) %></em> — <%= format_time(@content.updated_on) %></span>+ <%= link_to(t(:label_next), { action: 'show', id: @page, project_id: @page.project, version: (@content.version + 1) }, class: 'button navigate-right') if @content.version < @page.content.version %></div><hr /></div>diff --git a/app/views/wiki_menu_items/edit.html.erb b/app/views/wiki_menu_items/edit.html.erbindex 281b4f35e46..9b9453da3cf 100644--- a/app/views/wiki_menu_items/edit.html.erb+++ b/app/views/wiki_menu_items/edit.html.erb@@ -30,10 +30,10 @@ See docs/COPYRIGHT.rdoc for more details.<%= error_messages_for "wiki_menu_item", object: @wiki_menu_item %><% breadcrumb_paths(*@page.ancestors.reverse.collect {|parent| link_to h(parent.title), {id: parent.title, project_id: parent.project}}.push(@page_title)) %>-<%= toolbar title: l(:wiki_menu_item_for, title: @page_title) %>+<%= toolbar title: t(:wiki_menu_item_for, title: @page_title) %><%= form_for @wiki_menu_item, html: {id: 'wiki_menu_item_form', class: 'menu-item-form', method: :put}, url: wiki_menu_item_path(@project, @page) do |form| %><p class="item-name">- <%= form.label :title, l(:label_menu_item_name), {id: 'item-name'} %>+ <%= form.label :title, t(:label_menu_item_name), {id: 'item-name'} %><% if @wiki_menu_item.title.nil? %><%= form.text_field :title, size: 20, value: @page_title %><% else %>@@ -43,26 +43,26 @@ See docs/COPYRIGHT.rdoc for more details.<br><div style="clear: both;"></div><fieldset class="form--fieldset" id="wiki_menu_item_setting">- <legend class="form--fieldset-legend"><%=l(:menu_item_setting)%></legend>+ <legend class="form--fieldset-legend"><%=t(:menu_item_setting)%></legend><p><%= form.radio_button 'setting', :no_item %>- <%= form.label 'setting_no_item', l(:label_wiki_dont_show_menu_item) %>+ <%= form.label 'setting_no_item', t(:label_wiki_dont_show_menu_item) %></p><p class="main_item"><%= form.radio_button 'setting', :main_item %>- <%= form.label 'setting_main_item', l(:label_wiki_show_menu_item) %>+ <%= form.label 'setting_main_item', t(:label_wiki_show_menu_item) %></p><p><% disabled = @parent_menu_item_options.empty? %><%= form.radio_button 'setting', :sub_item, disabled: disabled %>- <%= form.label 'setting_sub_item', l(:label_wiki_show_submenu_item), {id: 'with-select'} %>+ <%= form.label 'setting_sub_item', t(:label_wiki_show_submenu_item), {id: 'with-select'} %><%= select_tag "parent_wiki_menu_item", options_for_select(@parent_menu_item_options, @selected_parent_menu_item_id), disabled: disabled %></p></fieldset><p>- <%= styled_button_tag l(:button_save), method: :post,+ <%= styled_button_tag t(:button_save), method: :post,class: '-highlight -with-icon icon-checkmark' %>- <%= link_to l(:button_cancel),+ <%= link_to t(:button_cancel),{controller: '/wiki', action: 'show', project_id: @project, id: @page_title},class: 'button -with-icon icon-cancel'%></p>diff --git a/app/views/wiki_menu_items/select_main_menu_item.html.erb b/app/views/wiki_menu_items/select_main_menu_item.html.erbindex 2f8207f8839..06183fdc9aa 100644--- a/app/views/wiki_menu_items/select_main_menu_item.html.erb+++ b/app/views/wiki_menu_items/select_main_menu_item.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for :wiki_page, url: { action: 'replace_main_menu_item' } do |f| %><fieldset class="form--fieldset" id="wiki_menu_item_setting">- <legend class="form--fieldset-legend"><%= l(:label_wiki_page) %></legend>+ <legend class="form--fieldset-legend"><%= t(:label_wiki_page) %></legend><p><%= f.select :id,wiki_page_options_for_select(@possible_wiki_pages),diff --git a/app/views/work_packages/auto_completes/index.html.erb b/app/views/work_packages/auto_completes/index.html.erbindex 697ec5d9b9e..826b0b82580 100644--- a/app/views/work_packages/auto_completes/index.html.erb+++ b/app/views/work_packages/auto_completes/index.html.erb@@ -32,6 +32,6 @@ See docs/COPYRIGHT.rdoc for more details.<%= content_tag 'li', h(work_package.to_s), id: work_package.id %><% end -%><% else -%>- <%= content_tag("li", l(:label_none), style: 'display:none') %>+ <%= content_tag("li", t(:label_none), style: 'display:none') %><% end -%></ul>diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erbindex 71c216444e7..f6944ce7550 100644--- a/app/views/work_packages/bulk/edit.html.erb+++ b/app/views/work_packages/bulk/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_bulk_edit_selected_work_packages) %>+<% html_title t(:label_bulk_edit_selected_work_packages) %><% if @bulk_errors.present? %><div class="notification-box -error">@@ -47,7 +47,7 @@ See docs/COPYRIGHT.rdoc for more details.</div><% end %>-<h2><%= l(:label_bulk_edit_selected_work_packages) %></h2>+<h2><%= t(:label_bulk_edit_selected_work_packages) %></h2><ul><% @work_packages.each do |wp| %><li>@@ -65,20 +65,20 @@ See docs/COPYRIGHT.rdoc for more details.<%= back_url_hidden_field_tag %><section class="form--section"><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l(:label_change_properties) %></legend>+ <legend class="form--fieldset-legend"><%= t(:label_change_properties) %></legend><div class="grid-block"><div class="grid-content medium-6"><div class="form--field"><label class="form--label" for="work_package_type_id"><%= WorkPackage.human_attribute_name(:type) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[type_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %>+ <%= styled_select_tag('work_package[type_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %></div></div><% if @available_statuses.any? %><div class="form--field"><label class="form--label" for='status_id'><%= WorkPackage.human_attribute_name(:status) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %>+ <%= styled_select_tag('work_package[status_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %></div></div><% else %>@@ -92,22 +92,22 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field"><label class="form--label" for='work_package_priority_id'><%= WorkPackage.human_attribute_name(:priority) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>+ <%= styled_select_tag('work_package[priority_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.active, :id, :name)) %></div></div><div class="form--field"><label class="form--label" for='work_package_assigned_to_id'><%= WorkPackage.human_attribute_name(:assigned_to) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[assigned_to_id]', content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_nobody), value: 'none') ++ <%= styled_select_tag('work_package[assigned_to_id]', content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_nobody), value: 'none') +options_from_collection_for_select(@assignables, :id, :name)) %></div></div><div class="form--field"><label class="form--label" for='work_package_responsible_id'><%= WorkPackage.human_attribute_name(:responsible) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[responsible_id]', content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_nobody), value: 'none') ++ <%= styled_select_tag('work_package[responsible_id]', content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_nobody), value: 'none') +options_from_collection_for_select(@responsibles, :id, :name)) %></div></div>@@ -115,8 +115,8 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field"><label class="form--label" for='category_id'><%= WorkPackage.human_attribute_name(:category) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[category_id]', content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_none), value: 'none') ++ <%= styled_select_tag('work_package[category_id]', content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_none), value: 'none') +options_from_collection_for_select(@project.categories, :id, :name)) %></div></div>@@ -126,8 +126,8 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field"><label class="form--label" for='work_package_version_id'><%= WorkPackage.human_attribute_name(:version) %></label><div class="form--field-container">- <%= styled_select_tag('work_package[version_id]', content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_none), value: 'none') ++ <%= styled_select_tag('work_package[version_id]', content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_none), value: 'none') +version_options_for_select(@project.shared_versions.with_status_open.order_by_semver_name)) %></div></div>@@ -180,7 +180,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--field"><label class="form--label" for='work_package_done_ratio'><%= WorkPackage.human_attribute_name(:done_ratio) %></label><div class="form--field-container">- <%= styled_select_tag 'work_package[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>+ <%= styled_select_tag 'work_package[done_ratio]', options_for_select([[t(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></div></div><% end %>@@ -194,5 +194,5 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= send_notification_option %></p></fieldset></section>- <p><%= styled_button_tag l(:button_submit), class: '-highlight -with-icon icon-checkmark' %></p>+ <p><%= styled_button_tag t(:button_submit), class: '-highlight -with-icon icon-checkmark' %></p><% end %>diff --git a/app/views/work_packages/calendars/index.html.erb b/app/views/work_packages/calendars/index.html.erbindex 8d87556af9b..f1789bef087 100644--- a/app/views/work_packages/calendars/index.html.erb+++ b/app/views/work_packages/calendars/index.html.erb@@ -27,4 +27,4 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l(:label_calendar)) -%>+<% html_title(t(:label_calendar)) -%>diff --git a/app/views/work_packages/index.html.erb b/app/views/work_packages/index.html.erbindex aeac41fd1a1..44b5a2a5a15 100644--- a/app/views/work_packages/index.html.erb+++ b/app/views/work_packages/index.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title(l('activerecord.attributes.project.work_packages')) -%>+<% html_title(t('activerecord.attributes.project.work_packages')) -%><%= call_hook(:view_work_packages_index_bottom, { project: project, query: query }) %><% content_for :sidebar do %>@@ -35,6 +35,6 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><% content_for :header_tags do %>- <%= auto_discovery_link_tag(:atom, {query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: l(:label_work_package_plural)) %>- <%= auto_discovery_link_tag(:atom, {controller: '/journals', action: 'index', query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: l(:label_changes_details)) %>+ <%= auto_discovery_link_tag(:atom, {query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: t(:label_work_package_plural)) %>+ <%= auto_discovery_link_tag(:atom, {controller: '/journals', action: 'index', query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: t(:label_changes_details)) %><% end %>diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erbindex 7db30398683..4414fc70569 100644--- a/app/views/work_packages/moves/new.html.erb+++ b/app/views/work_packages/moves/new.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title @copy ? l(:button_copy) : l(:button_move), l('activerecord.models.work_package') %>+<% html_title @copy ? t(:button_copy) : t(:button_move), t('activerecord.models.work_package') %>-<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>+<h2><%= @copy ? t(:button_copy) : t(:button_move) %></h2><ul><% @work_packages.each do |work_package| -%><li>@@ -52,7 +52,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= back_url_hidden_field_tag %><section class="form--section"><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l(:label_change_properties) %></legend>+ <legend class="form--fieldset-legend"><%= t(:label_change_properties) %></legend><div class="grid-block"><div class="grid-content medium-6"><div class="form--field">@@ -67,7 +67,7 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for="new_type_id"><%= WorkPackage.human_attribute_name(:type) %>:</label><div class="form--field-container"><%= styled_select_tag("new_type_id",- content_tag('option', l(:label_no_change_option), value: '') ++ content_tag('option', t(:label_no_change_option), value: '') +options_from_collection_for_select(@types, "id", "name")) %></div></div>@@ -75,7 +75,7 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for='status_id'><%= WorkPackage.human_attribute_name(:status) %></label><div class="form--field-container"><%= styled_select_tag('status_id',- content_tag('option', l(:label_no_change_option), value: '') ++ content_tag('option', t(:label_no_change_option), value: '') +options_from_collection_for_select(@available_statuses, :id, :name)) %></div></div>@@ -83,7 +83,7 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for='version_id'><%= WorkPackage.human_attribute_name(:version) %></label><div class="form--field-container"><%= styled_select_tag('version_id',- content_tag('option', l(:label_no_change_option), value: '') ++ content_tag('option', t(:label_no_change_option), value: '') +version_options_for_select(@available_versions)) %></div></div>@@ -91,7 +91,7 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for='priority_id'><%= WorkPackage.human_attribute_name(:priority) %></label><div class="form--field-container"><%= styled_select_tag('priority_id',- content_tag('option', l(:label_no_change_option), value: '') ++ content_tag('option', t(:label_no_change_option), value: '') +options_from_collection_for_select(IssuePriority.active, :id, :name)) %></div></div>@@ -99,8 +99,8 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for='assigned_to_id'><%= WorkPackage.human_attribute_name(:assigned_to) %></label><div class="form--field-container"><%= styled_select_tag('assigned_to_id',- content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_nobody), value: 'none') ++ content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_nobody), value: 'none') +options_from_collection_for_select(@target_project.possible_assignees, :id, :name)) %></div></div>@@ -108,8 +108,8 @@ See docs/COPYRIGHT.rdoc for more details.<label class="form--label" for='responsible_id'><%= WorkPackage.human_attribute_name(:responsible) %></label><div class="form--field-container"><%= styled_select_tag('responsible_id',- content_tag('option', l(:label_no_change_option), value: '') +- content_tag('option', l(:label_nobody), value: 'none') ++ content_tag('option', t(:label_no_change_option), value: '') ++ content_tag('option', t(:label_nobody), value: 'none') +options_from_collection_for_select(@target_project.possible_responsibles, :id, :name)) %></div></div>@@ -145,11 +145,11 @@ See docs/COPYRIGHT.rdoc for more details.</section><% if @copy %><%= hidden_field_tag("copy") %>- <%= styled_submit_tag l(:button_copy), class: '-highlight' %>- <%= styled_submit_tag l(:button_copy_and_follow), name: 'follow', class: '-highlight' %>+ <%= styled_submit_tag t(:button_copy), class: '-highlight' %>+ <%= styled_submit_tag t(:button_copy_and_follow), name: 'follow', class: '-highlight' %><% else %>- <%= styled_submit_tag l(:button_move), class: '-highlight' %>- <%= styled_submit_tag l(:button_move_and_follow), name: 'follow', class: '-highlight' %>+ <%= styled_submit_tag t(:button_move), class: '-highlight' %>+ <%= styled_submit_tag t(:button_move_and_follow), name: 'follow', class: '-highlight' %><% end %><% end %><% content_for :header_tags do %>diff --git a/app/views/work_packages/reports/_report_category.html.erb b/app/views/work_packages/reports/_report_category.html.erbindex 7f9a1535e71..bde51c2f219 100644--- a/app/views/work_packages/reports/_report_category.html.erb+++ b/app/views/work_packages/reports/_report_category.html.erb@@ -31,9 +31,9 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--fieldset-legend"><%= WorkPackage.human_attribute_name(report.report_type) %></div><div class="form--toolbar"><span class="form--toolbar-item">- <%= link_to(icon_wrapper('icon icon-zoom-in',l(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type))),+ <%= link_to(icon_wrapper('icon icon-zoom-in',t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type))),{action: 'report_details', detail: report.report_type},- title: l(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type)),+ title: t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type)),class: 'no-decoration-on-hover') %></span></div><%= render partial: 'report', locals: { report: report } %>diff --git a/app/views/work_packages/settings/work_package_tracking.html.erb b/app/views/work_packages/settings/work_package_tracking.html.erbindex 270d0994cdd..af3c7b1f462 100644--- a/app/views/work_packages/settings/work_package_tracking.html.erb+++ b/app/views/work_packages/settings/work_package_tracking.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_work_package_tracking) -%>+<% html_title t(:label_administration), t(:label_work_package_tracking) -%>-<%= toolbar title: l(:label_work_package_tracking) %>+<%= toolbar title: t(:label_work_package_tracking) %><%= styled_form_tag({action: 'edit'}) do %><section class="form--section">diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erbindex fa92580b3fc..a91d8f03f7a 100644--- a/app/views/workflows/_form.html.erb+++ b/app/views/workflows/_form.html.erb@@ -36,7 +36,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer -no-border"><div class="generic-table--sort-header workflow-table--header"><span>- <%=l(:label_new_statuses_allowed)%>+ <%=t(:label_new_statuses_allowed)%></span><span class="workflow-table--check-all">(<%= check_all_links 'workflow_form_' + name %>)@@ -49,11 +49,11 @@ See docs/COPYRIGHT.rdoc for more details.<th class="-table-border-bottom -table-border-right"></th><% for new_status in @statuses %><th class="workflow-table--current-status -table-border-top -table-border-bottom">- <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{l(:label_check_uncheck_all_in_column)}"),+ <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{t(:label_check_uncheck_all_in_column)}"),"OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",class: 'no-decoration-on-hover',- title: "#{l(:label_check_uncheck_all_in_column)}",- alt: "#{l(:label_check_uncheck_all_in_column)}") %>+ title: "#{t(:label_check_uncheck_all_in_column)}",+ alt: "#{t(:label_check_uncheck_all_in_column)}") %><%=h new_status.name %></th><% end %>@@ -63,11 +63,11 @@ See docs/COPYRIGHT.rdoc for more details.<% for old_status in @statuses %><tr class="-table-border-left"><td class="workflow-table--current-status -table-border-right">- <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{l(:label_check_uncheck_all_in_row)}"),+ <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{t(:label_check_uncheck_all_in_row)}"),"OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",class: 'no-decoration-on-hover',- title: "#{l(:label_check_uncheck_all_in_row)}",- alt: "#{l(:label_check_uncheck_all_in_row)}") %>+ title: "#{t(:label_check_uncheck_all_in_row)}",+ alt: "#{t(:label_check_uncheck_all_in_row)}") %><%=h old_status.name %></td><% for new_status in @statuses -%>@@ -81,7 +81,7 @@ See docs/COPYRIGHT.rdoc for more details.<tr class="-no-highlighting"><td colspan="<%= @statuses.length + 2 %>"><span class="workflow-table--turned-header">- <%=l(:label_current_status)%>+ <%=t(:label_current_status)%></span></td></tr>diff --git a/app/views/workflows/_toolbar.html.erb b/app/views/workflows/_toolbar.html.erbindex 14092b05ecb..06cd2657c68 100644--- a/app/views/workflows/_toolbar.html.erb+++ b/app/views/workflows/_toolbar.html.erb@@ -31,13 +31,13 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item hidden-for-mobile"><%= link_to({ action: 'copy' }, class: 'button') do %><%= op_icon('button--icon icon-copy') %>- <span class="button--text"><%= l(:button_copy) %></span>+ <span class="button--text"><%= t(:button_copy) %></span><% end %></li><li class="toolbar-item"><%= link_to({ action: 'show' }, class: 'button') do %><%= op_icon('button--icon icon-info1') %>- <span class="button--text"><%= l(:label_workflow_summary) %></span>+ <span class="button--text"><%= t(:label_workflow_summary) %></span><% end %></li><% end %>diff --git a/app/views/workflows/copy.html.erb b/app/views/workflows/copy.html.erbindex 6a2b5a54bf1..cac41733ab4 100644--- a/app/views/workflows/copy.html.erb+++ b/app/views/workflows/copy.html.erb@@ -26,39 +26,39 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_workflow_plural) -%>+<% html_title t(:label_administration), t(:label_workflow_plural) -%><%= render partial: 'toolbar', locals: { title: Workflow.model_name.human } %><% local_assigns[:additional_breadcrumb] = t(:button_copy) %><%= styled_form_tag({}, id: 'workflow_copy_form') do %><section class="form--section"><div class="form--field -required">- <label class="form--label" for="source_type_id"><%= l(:label_copy_source) %></label>+ <label class="form--label" for="source_type_id"><%= t(:label_copy_source) %></label><div class="form--field-container"><div class="form--select-container -middle"><label class="form--label" for="source_type_id"><%= Type.model_name.human %></label><%= select_tag('source_type_id',- "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>".html_safe +- "<option value=\"any\">--- #{ l(:label_copy_same_as_target) } ---</option>".html_safe ++ "<option value=\"\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe ++ "<option value=\"any\">--- #{ t(:label_copy_same_as_target) } ---</option>".html_safe +options_from_collection_for_select(@types, 'id', 'name', @source_type && @source_type.id), class: 'form--select') %></div><div class="form--select-container -middle"><label class="form--label" for='source_role_id'><%= Role.model_name.human %></label><%= select_tag('source_role_id',- "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>".html_safe +- "<option value=\"any\">--- #{ l(:label_copy_same_as_target) } ---</option>".html_safe ++ "<option value=\"\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe ++ "<option value=\"any\">--- #{ t(:label_copy_same_as_target) } ---</option>".html_safe +options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id), class: 'form--select') %></div></div></div><br/><div class="form--field -required">- <label class="form--label" for="target_type_ids"><%= l(:label_copy_target) %></label>+ <label class="form--label" for="target_type_ids"><%= t(:label_copy_target) %></label><div class="form--field-container"><div class="form--select-container -middle"><label class="form--label" for="target_type_ids"><%= Type.model_name.human %></label><%= select_tag 'target_type_ids',- "<option value=\"\" disabled=\"disabled\">--- #{l(:actionview_instancetag_blank_option)} ---</option>".html_safe ++ "<option value=\"\" disabled=\"disabled\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +options_from_collection_for_select(@types, 'id', 'name', @target_types && @target_types.map(&:id)),multiple: true,size: 20, class: 'form--select' %>@@ -66,7 +66,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--select-container -middle"><label class="form--label" for='target_role_ids'><%= Role.model_name.human %></label><%= select_tag 'target_role_ids',- "<option value=\"\" disabled=\"disabled\">--- #{l(:actionview_instancetag_blank_option)} ---</option>".html_safe ++ "<option value=\"\" disabled=\"disabled\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)),multiple: true,size: 20,@@ -75,5 +75,5 @@ See docs/COPYRIGHT.rdoc for more details.</div></div></section>- <%= styled_submit_tag l(:button_copy), class: '-highlight' %>+ <%= styled_submit_tag t(:button_copy), class: '-highlight' %><% end %>diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erbindex 59c466d61ef..53bc8654ee7 100644--- a/app/views/workflows/edit.html.erb+++ b/app/views/workflows/edit.html.erb@@ -26,12 +26,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_workflow_plural) -%>+<% html_title t(:label_administration), t(:label_workflow_plural) -%><%= render partial: 'toolbar', locals: {title: Workflow.model_name.human } %><%= styled_form_tag({}, method: 'get') do %><fieldset class="simple-filters--container">- <legend><%=l(:text_workflow_edit)%></legend>+ <legend><%=t(:text_workflow_edit)%></legend><ul class="simple-filters--filters"><li class="simple-filters--filter"><%= styled_label_tag :role_id, Role.model_name.human, class: 'simple-filters--filter-name' %>@@ -49,14 +49,14 @@ See docs/COPYRIGHT.rdoc for more details.<li class="form--field -trailing-label"><%= hidden_field_tag 'used_statuses_only', '0', id: 'used_statuses_only_hidden' %>- <%= styled_label_tag :used_statuses_only, l(:label_display_used_statuses_only) %>+ <%= styled_label_tag :used_statuses_only, t(:label_display_used_statuses_only) %><span class="form--field-container"><%= styled_check_box_tag :used_statuses_only, '1', @used_statuses_only %></span></li></ul><li class="simple-filters--controls">- <%= submit_tag l(:button_edit), name: nil, accesskey: accesskey(:edit), class: 'button -small -highlight' %>+ <%= submit_tag t(:button_edit), name: nil, accesskey: accesskey(:edit), class: 'button -small -highlight' %></li></ul></fieldset>@@ -79,7 +79,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= render partial: 'form', locals: { name: 'assignee', workflows: @workflows['assignee'] } %><% end %>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %><% end %>diff --git a/app/views/workflows/show.html.erb b/app/views/workflows/show.html.erbindex a5827d7549c..3dc7748368c 100644--- a/app/views/workflows/show.html.erb+++ b/app/views/workflows/show.html.erb@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render partial: 'toolbar', locals: {title: l(:label_workflow_plural) } %>-<% html_title l(:label_administration), l(:label_workflow_plural) -%>+<%= render partial: 'toolbar', locals: {title: t(:label_workflow_plural) } %>+<% html_title t(:label_administration), t(:label_workflow_plural) -%><% local_assigns[:additional_breadcrumb] = t(:label_workflow_summary) %><% if @workflow_counts.any? %>@@ -64,7 +64,7 @@ See docs/COPYRIGHT.rdoc for more details.<td><%= h type %></td><% roles.each do |role, count| -%><td>- <%= link_to((count > 0 ? count : content_tag(:span, '', class: "icon-close icon-context icon-button")), {action: 'edit', role_id: role, type_id: type}, title: l(:button_edit)) %>+ <%= link_to((count > 0 ? count : content_tag(:span, '', class: "icon-close icon-context icon-button")), {action: 'edit', role_id: role, type_id: type}, title: t(:button_edit)) %></td><% end -%></tr>diff --git a/modules/auth_plugins/app/views/hooks/login/_providers_css.html.erb b/modules/auth_plugins/app/views/hooks/login/_providers_css.html.erbindex 57938160c96..7d05bb25639 100644--- a/modules/auth_plugins/app/views/hooks/login/_providers_css.html.erb+++ b/modules/auth_plugins/app/views/hooks/login/_providers_css.html.erb@@ -31,13 +31,13 @@ See docs/COPYRIGHT.rdoc for more details.<% if pro[:icon] %><style type="text/css">#content .login-auth-providers a.auth-provider.auth-provider-<%= pro[:name] %> {- background-image: url('<%= image_path(pro[:icon]) %>');+ background-image: urt('<%= image_path(pro[:icon]) %>');}#top-menu #nav-login-content .login-auth-providers a.auth-provider.auth-provider-<%= pro[:name] %> {- background-image: url('<%= image_path(pro[:icon]) %>') ;+ background-image: urt('<%= image_path(pro[:icon]) %>') ;}.modal-wrapper .login-auth-providers a.auth-provider.auth-provider-<%= pro[:name] %> {- background-image: url('<%= image_path(pro[:icon]) %>') ;+ background-image: urt('<%= image_path(pro[:icon]) %>') ;}</style><% end -%>diff --git a/modules/avatars/app/views/avatars/users/_local_avatars.html.erb b/modules/avatars/app/views/avatars/users/_local_avatars.html.erbindex 9146354df94..531907f84a5 100644--- a/modules/avatars/app/views/avatars/users/_local_avatars.html.erb+++ b/modules/avatars/app/views/avatars/users/_local_avatars.html.erb@@ -9,7 +9,7 @@</p><div class="form--field"><label class="form--label" for="username">- <%= l(:label_current_avatar) %>+ <%= t(:label_current_avatar) %></label><div class="form--field-container"><div class="avatars--local-gravatar">diff --git a/modules/avatars/app/views/settings/_openproject_avatars.html.erb b/modules/avatars/app/views/settings/_openproject_avatars.html.erbindex 45a1127339e..990560c942c 100644--- a/modules/avatars/app/views/settings/_openproject_avatars.html.erb+++ b/modules/avatars/app/views/settings/_openproject_avatars.html.erb@@ -1,5 +1,5 @@<% manager = ::OpenProject::Avatars::AvatarManager %>-<% html_title l(:label_administration), 'Openproject Avatars' %>+<% html_title t(:label_administration), 'Openproject Avatars' %><fieldset class="form--fieldset"><legend class="form--fieldset-legend" title="<%= t 'avatars.label_gravatar' %>"><%= t 'avatars.label_gravatar' %></legend>diff --git a/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb b/modules/backlogs/app/views/project_settings/backlogs_settings.html.erbindex 36bbba2120f..7ad98fe0b88 100644--- a/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb+++ b/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb@@ -55,7 +55,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%=l('backlogs.work_package_is_closed')%>+ <%=t('backlogs.work_package_is_closed')%></span></div></div>@@ -70,7 +70,7 @@ See docs/COPYRIGHT.rdoc for more details.</td><td style="text-align:left"><% checkbox_id = status.name.parameterize.underscore %>- <%= styled_label_tag checkbox_id, l('backlogs.label_is_done_status', status_name: status.name), class: 'hidden-for-sighted' %>+ <%= styled_label_tag checkbox_id, t('backlogs.label_is_done_status', status_name: status.name), class: 'hidden-for-sighted' %><%= (styled_check_box_tag 'statuses[][status_id]', status.id.to_s, @statuses_done_for_project.include?(status.id), id: checkbox_id) %></td></tr>@@ -80,13 +80,13 @@ See docs/COPYRIGHT.rdoc for more details.</div></div><div class="generic-table--action-buttons">- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></div><% end %>-<h3><%=l('backlogs.rebuild_positions')%></h3>+<h3><%=t('backlogs.rebuild_positions')%></h3><%= styled_form_tag(:controller => '/projects', :action => "rebuild_positions", :id => @project) do %>- <p><%= styled_button_tag l('backlogs.rebuild'), class: '-highlight' %></p>+ <p><%= styled_button_tag t('backlogs.rebuild'), class: '-highlight' %></p><% end %>diff --git a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb b/modules/backlogs/app/views/rb_burndown_charts/show.html.erbindex 785bbbf67e4..9ce28371e26 100644--- a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb+++ b/modules/backlogs/app/views/rb_burndown_charts/show.html.erb@@ -38,12 +38,12 @@ See docs/COPYRIGHT.rdoc for more details.<% if @burndown %><%= render :partial => 'burndown', :locals => {:div => 'burndown_', :burndown => @burndown } %>- <div class="burndown_chart autoscroll" id="burndown_<%= @burndown.sprint_id %>" style="width:600px;height:300px;"><div class="loading"><%=l('backlogs.generating_chart')%></div></div>+ <div class="burndown_chart autoscroll" id="burndown_<%= @burndown.sprint_id %>" style="width:600px;height:300px;"><div class="loading"><%=t('backlogs.generating_chart')%></div></div><fieldset class="burndown_control form--fieldset">- <legend class="form--fieldset-legend"><%= l('backlogs.chart_options') %></legend>+ <legend class="form--fieldset-legend"><%= t('backlogs.chart_options') %></legend><%= burndown_series_checkboxes(@burndown) %></fieldset><% else %>- <%= l('backlogs.no_burndown_data')%>+ <%= t('backlogs.no_burndown_data')%><% end %>diff --git a/modules/backlogs/app/views/rb_export_card_configurations/index.html.erb b/modules/backlogs/app/views/rb_export_card_configurations/index.html.erbindex b38398213e3..fc3ba5821ee 100644--- a/modules/backlogs/app/views/rb_export_card_configurations/index.html.erb+++ b/modules/backlogs/app/views/rb_export_card_configurations/index.html.erb@@ -29,8 +29,8 @@ See docs/COPYRIGHT.rdoc for more details.<div class='contextual'></div>-<%= toolbar title: l(:label_backlogs_export_card_config_select) %>-<% html_title l(:label_backlogs_export_card_config_select) %>+<%= toolbar title: t(:label_backlogs_export_card_config_select) %>+<% html_title t(:label_backlogs_export_card_config_select) %><ul><% @configs.each do |config| %><li>diff --git a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb b/modules/backlogs/app/views/rb_impediments/_impediment.html.erbindex 3d0e6ad3539..8c52706c010 100644--- a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb+++ b/modules/backlogs/app/views/rb_impediments/_impediment.html.erb@@ -34,7 +34,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="v"><%= id_or_empty(impediment) %></div></div><div class="subject editable" fieldtype="textarea" fieldname="subject" field_id=<%= impediment.id %>><%= impediment.subject %></div>- <div class="blocks editable" fieldname="blocks_ids" fieldlabel="<%= l(:label_blocks_ids) %>" field_id=<%= impediment.id %>><%= blocks_ids(impediment.blocks_ids) %></div>+ <div class="blocks editable" fieldname="blocks_ids" fieldlabel="<%= t(:label_blocks_ids) %>" field_id=<%= impediment.id %>><%= blocks_ids(impediment.blocks_ids) %></div><div class="assigned_to_id editable" fieldtype="select" fieldname="assigned_to_id" field_id=<%= impediment.id %>><div class="t"><%= assignee_name_or_empty(impediment) %></div><div class="v"><%= assignee_id_or_empty(impediment) %></div>diff --git a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb b/modules/backlogs/app/views/rb_master_backlogs/index.html.erbindex bef80e9f724..13c6cb7f57c 100644--- a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb+++ b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><div class='contextual'></div>-<% html_title l(:label_backlogs) %>+<% html_title t(:label_backlogs) %><%= toolbar title: t(:label_backlogs) do %><li class="toolbar-item">diff --git a/modules/backlogs/app/views/rb_stories/_helpers.html.erb b/modules/backlogs/app/views/rb_stories/_helpers.html.erbindex c4cafabfca4..81006149895 100644--- a/modules/backlogs/app/views/rb_stories/_helpers.html.erb+++ b/modules/backlogs/app/views/rb_stories/_helpers.html.erb@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.<% statuses.each do |old_status, allowed_statuses| %><select class="status_id helper" id="status_id_options_<%= type.id %>_<%= old_status.id %>"><% allowed_statuses.sort_by(&:position).each do |status| %>- <option value="<%= status.id %>" class="<%= (status.is_closed? ? l(:label_closed_work_packages) + ' ' : "") %>">+ <option value="<%= status.id %>" class="<%= (status.is_closed? ? t(:label_closed_work_packages) + ' ' : "") %>"><%= status.name %></option><% end %>@@ -42,11 +42,11 @@ See docs/COPYRIGHT.rdoc for more details.<% all_work_package_status.each do |old_status| %><select class="status_id helper" id="status_id_options_default_<%= old_status.id %>">- <option value="<%= default_work_package_status.id %>" class="<%= (default_work_package_status.is_closed? ? l(:label_closed_work_packages) + ' ' : "") %>">+ <option value="<%= default_work_package_status.id %>" class="<%= (default_work_package_status.is_closed? ? t(:label_closed_work_packages) + ' ' : "") %>"><%= default_work_package_status.name %></option><% if old_status != default_work_package_status %>- <option value="<%= old_status.id %>" class="<%= (old_status.is_closed? ? l(:label_closed_work_packages) + ' ' : "") %>">+ <option value="<%= old_status.id %>" class="<%= (old_status.is_closed? ? t(:label_closed_work_packages) + ' ' : "") %>"><%= old_status.name %></option><% end %>@@ -55,7 +55,7 @@ See docs/COPYRIGHT.rdoc for more details.<select class="status_id helper" id="status_id_options"><% all_work_package_status.each do |status| %>- <option value="<%= status.id %>" class="<%= (status.is_closed? ? l(:label_closed_work_packages) + ' ' : "") %>">+ <option value="<%= status.id %>" class="<%= (status.is_closed? ? t(:label_closed_work_packages) + ' ' : "") %>"><%= status.name %></option><% end %>diff --git a/modules/backlogs/app/views/rb_taskboards/show.html.erb b/modules/backlogs/app/views/rb_taskboards/show.html.erbindex 4284e0937ad..4599ef04485 100644--- a/modules/backlogs/app/views/rb_taskboards/show.html.erb+++ b/modules/backlogs/app/views/rb_taskboards/show.html.erb@@ -35,7 +35,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: @sprint.name do %><li class="toolbar-item toolbar-input-group" id="col_width"><div>- <label for="col_width_input"><%= l('backlogs.column_width') %></label>+ <label for="col_width_input"><%= t('backlogs.column_width') %></label></div><input type="text" id="col_width_input"></li>@@ -46,13 +46,13 @@ See docs/COPYRIGHT.rdoc for more details.<% end %><% end %>-<% breadcrumb_paths(link_to(l(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %>+<% breadcrumb_paths(link_to(t(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %><div id='rb'><div id="taskboard"><table id="board_header" cellspacing="0"><tr>- <td><%= l(:backlogs_story) %></td>+ <td><%= t(:backlogs_story) %></td><% @statuses.each do |status| %><td class="swimlane"><%= status.name %></td><% end %>@@ -61,7 +61,7 @@ See docs/COPYRIGHT.rdoc for more details.<table id="impediments" class="board" cellspacing="0"><tr>- <td><div class="label_sprint_impediments"><%= l(:label_sprint_impediments) %></div></td>+ <td><div class="label_sprint_impediments"><%= t(:label_sprint_impediments) %></div></td><% if User.current.allowed_to?(:add_work_packages, @project) %><td class ="add_new clickable">+</td><% else %>@@ -97,7 +97,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if story.assigned_to.present? %><%= link_to_user(story.assigned_to) %><% else %>- <em><%= l('backlogs.unassigned') %></em>+ <em><%= t('backlogs.unassigned') %></em><% end %></div><div class="story-points">diff --git a/modules/backlogs/app/views/shared/_settings.html.erb b/modules/backlogs/app/views/shared/_settings.html.erbindex 30cfdf0a4c6..51b032bd30c 100644--- a/modules/backlogs/app/views/shared/_settings.html.erb+++ b/modules/backlogs/app/views/shared/_settings.html.erb@@ -59,10 +59,10 @@ See docs/COPYRIGHT.rdoc for more details.});</script><% end %>-<% html_title l(:label_administration), l(:label_backlogs) %>+<% html_title t(:label_administration), t(:label_backlogs) %><div class="form--field">- <%= styled_label_tag("settings[story_types]", l(:backlogs_story_type)) %>+ <%= styled_label_tag("settings[story_types]", t(:backlogs_story_type)) %><div class="form--field-container"><%= styled_select_tag("settings[story_types]",options_from_collection_for_select(Type.all, :id, :name, Story.types),@@ -71,7 +71,7 @@ See docs/COPYRIGHT.rdoc for more details.</div></div><div class="form--field">- <%= styled_label_tag("settings[task_type]", l(:backlogs_task_type)) %>+ <%= styled_label_tag("settings[task_type]", t(:backlogs_task_type)) %><div class="form--field-container"><%= styled_select_tag("settings[task_type]",options_from_collection_for_select(Type.all, :id, :name, Task.type),@@ -79,16 +79,16 @@ See docs/COPYRIGHT.rdoc for more details.</div></div><div class="form--field">- <%= styled_label_tag("settings[points_burn_direction]", l(:backlogs_points_burn_direction)) %>+ <%= styled_label_tag("settings[points_burn_direction]", t(:backlogs_points_burn_direction)) %><div class="form--field-container"><%= styled_select_tag("settings[points_burn_direction]",- options_for_select([[l(:label_points_burn_up), 'up'], [l(:label_points_burn_down), 'down']],+ options_for_select([[t(:label_points_burn_up), 'up'], [t(:label_points_burn_down), 'down']],Setting.plugin_openproject_backlogs["points_burn_direction"]),container_class: '-slim') %></div></div><div class="form--field">- <%= styled_label_tag("settings[wiki_template]", l(:backlogs_wiki_template)) %>+ <%= styled_label_tag("settings[wiki_template]", t(:backlogs_wiki_template)) %><div class="form--field-container"><%= styled_text_field_tag("settings[wiki_template]",Setting.plugin_openproject_backlogs["wiki_template"],diff --git a/modules/backlogs/app/views/shared/_validation_errors.html.erb b/modules/backlogs/app/views/shared/_validation_errors.html.erbindex dd0503096f2..3dd5fcc1d1b 100644--- a/modules/backlogs/app/views/shared/_validation_errors.html.erb+++ b/modules/backlogs/app/views/shared/_validation_errors.html.erb@@ -27,10 +27,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= validation_errors.length > 1 ? l(:error_intro_plural) : l(:error_intro_singular) %>+<%= validation_errors.length > 1 ? t(:error_intro_plural) : t(:error_intro_singular) %><ul><%- validation_errors.each_full do |msg| %><li><%= msg %></li><%- end %></ul>-<%= l(:error_outro ) %>+<%= t(:error_outro ) %>diff --git a/modules/backlogs/app/views/shared/_view_my_settings.html.erb b/modules/backlogs/app/views/shared/_view_my_settings.html.erbindex 531ab153b8e..53cd2ffc11a 100644--- a/modules/backlogs/app/views/shared/_view_my_settings.html.erb+++ b/modules/backlogs/app/views/shared/_view_my_settings.html.erb@@ -28,9 +28,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%=l(:label_backlogs)%></legend>+ <legend class="form--fieldset-legend"><%=t(:label_backlogs)%></legend><div class="form--field">- <%= styled_label_tag :backlogs_task_color, l(:'backlogs.task_color') %>+ <%= styled_label_tag :backlogs_task_color, t(:'backlogs.task_color') %><%= styled_text_field_tag :'backlogs[task_color]', color, container_class: '-middle' %></div><div class="form--field">diff --git a/modules/backlogs/app/views/shared/not_configured.html.erb b/modules/backlogs/app/views/shared/not_configured.html.erbindex 98df1237635..2d21588270d 100644--- a/modules/backlogs/app/views/shared/not_configured.html.erb+++ b/modules/backlogs/app/views/shared/not_configured.html.erb@@ -28,10 +28,10 @@ See docs/COPYRIGHT.rdoc for more details.++#%><div id="not_configured">- <%= l(:label_backlogs_unconfigured, {- :administration => l(:label_administration),- :plugins => l(:label_plugins),- :configure => l(:button_configure)+ <%= t(:label_backlogs_unconfigured, {+ :administration => t(:label_administration),+ :plugins => t(:label_plugins),+ :configure => t(:button_configure)})%></div>diff --git a/modules/backlogs/app/views/version_settings/edit.html.erb b/modules/backlogs/app/views/version_settings/edit.html.erbindex 4c8b91c577d..ae28d0513a4 100644--- a/modules/backlogs/app/views/version_settings/edit.html.erb+++ b/modules/backlogs/app/views/version_settings/edit.html.erb@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_version) %>-<% html_title l(:label_version) %>+<%= toolbar title: t(:label_version) %>+<% html_title t(:label_version) %><% labelled_tabular_form_for :version, @version, :url => project_version_path(@project, @version), :html => {:method => :put} do |f| %><%= render :partial => 'form', :locals => { :f => f } %>-<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+<%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><% end %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erbindex 08739c4e8bc..3d06531da1c 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb@@ -17,7 +17,7 @@<%= styled_select_tag 'import_options[unknown_mails_invite_role_ids][]',options_for_select(options),no_label: true,- title: l(:label_role_search),+ title: t(:label_role_search),tabIndex: 0,container_class: '-slim',id: 'unknown_mails_invite_role_ids' %>diff --git a/modules/bim/app/views/bim/bcf/issues/index.html.erb b/modules/bim/app/views/bim/bcf/issues/index.html.erbindex 06ac29e3db0..7001d48e0dd 100644--- a/modules/bim/app/views/bim/bcf/issues/index.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/index.html.erb@@ -9,7 +9,7 @@title: I18n.t(:label_import),class: 'button import-bcf-button') do %><%= op_icon('button--icon icon-import') %>- <span class="button--text"><%= l(:label_import) %></span>+ <span class="button--text"><%= t(:label_import) %></span><% end %></li><li class="toolbar-item">diff --git a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erbindex 464a2a05994..f0eea525ccd 100644--- a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb@@ -1,6 +1,6 @@<link rel="stylesheet" href="/highlighting/styles.css" />-<%= toolbar title: l(:label_summary) %>+<%= toolbar title: t(:label_summary) %><%= link_to t('bcf.bcf_xml.import.button_back_to_list'),defaults_bcf_project_ifc_models_path(@project),diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erbindex e8851460e2a..542df4f93e8 100644--- a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb@@ -34,5 +34,5 @@ See doc/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_models_path(@project), html: { multipart: true } do |f| -%><%= error_messages_for_contract @ifc_model, @errors %><%= render :partial => 'form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: "-highlight -with-icon icon-checkmark" %>+ <%= styled_button_tag t(:button_create), class: "-highlight -with-icon icon-checkmark" %><% end %>diff --git a/modules/budgets/app/views/budgets/show.html.erb b/modules/budgets/app/views/budgets/show.html.erbindex ca48e09af1d..c44ad9f76bc 100644--- a/modules/budgets/app/views/budgets/show.html.erb+++ b/modules/budgets/app/views/budgets/show.html.erb@@ -33,7 +33,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item"><%= link_to({ controller: 'budgets', action: 'edit', id: @budget }, class: 'button', accesskey: accesskey(:edit)) do %><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_update) %></span>+ <span class="button--text"><%= t(:button_update) %></span><% end %></li><% end %>@@ -41,7 +41,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item hidden-for-mobile"><%= link_to({ controller: 'budgets', action: 'copy', id: @budget }, class: 'button') do %><%= op_icon('button--icon icon-copy') %>- <span class="button--text"><%= l(:button_copy) %></span>+ <span class="button--text"><%= t(:button_copy) %></span><% end %></li><% end %>diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erbindex 22cb4892647..9ae1f8fb6eb 100644--- a/modules/costs/app/views/cost_types/edit.html.erb+++ b/modules/costs/app/views/cost_types/edit.html.erb@@ -31,8 +31,8 @@ See docs/COPYRIGHT.rdoc for more details.<% html_title t(:label_cost_type_specific, id: @cost_type.id, name: @cost_type.name) %><% local_assigns[:additional_breadcrumb] = @cost_type.name %><% else %>- <% html_title l(:label_administration), t(:label_cost_type_plural) %>- <% local_assigns[:additional_breadcrumb] = l(:label_new) + ' ' + I18n.t('activerecord.models.cost_type.one') %>+ <% html_title t(:label_administration), t(:label_cost_type_plural) %>+ <% local_assigns[:additional_breadcrumb] = t(:label_new) + ' ' + I18n.t('activerecord.models.cost_type.one') %><% end %>diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erbindex 40f6e887293..a75c63fd9bc 100644--- a/modules/costs/app/views/cost_types/index.html.erb+++ b/modules/costs/app/views/cost_types/index.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), t(:label_cost_type_plural) %>+<% html_title t(:label_administration), t(:label_cost_type_plural) %><%= toolbar title: CostType.model_name.human(count: 2) do %><li class="toolbar-item"><a href="<%= new_cost_type_path %>" aria-label="<%= t(:button_add_cost_type) %>" title="<%= t(:button_add_cost_type) %>" class="button -alt-highlight">diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erbindex 9b945b58d6a..3e0fa199e16 100644--- a/modules/costs/app/views/costlog/edit.html.erb+++ b/modules/costs/app/views/costlog/edit.html.erb@@ -66,7 +66,7 @@ See docs/COPYRIGHT.rdoc for more details.class: 'remote-field--input -augmented-datepicker',data: { :'remote-field-key' => 'fixed_date' },container_class: '-xslim' %>- <label for="cost_entry_spent_on" class="hidden-for-sighted"><%= l(:label_date) %> <%= l(:text_hint_date_format) %></label>+ <label for="cost_entry_spent_on" class="hidden-for-sighted"><%= t(:label_date) %> <%= t(:text_hint_date_format) %></label></div><% if User.current.allowed_to? :log_costs, @project %><div class="form--field">diff --git a/modules/costs/app/views/settings/_costs.html.erb b/modules/costs/app/views/settings/_costs.html.erbindex 6f323993b99..8e8aa5d78ec 100644--- a/modules/costs/app/views/settings/_costs.html.erb+++ b/modules/costs/app/views/settings/_costs.html.erb@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), t(:project_module_costs) %>+<% html_title t(:label_administration), t(:project_module_costs) %><div class="form--field"><%= styled_label_tag :label_currency, t(:label_currency) %><div class="form--field-container">diff --git a/modules/documents/app/views/documents/edit.html.erb b/modules/documents/app/views/documents/edit.html.erbindex ec0eeb00f2d..534d4e6da41 100644--- a/modules/documents/app/views/documents/edit.html.erb+++ b/modules/documents/app/views/documents/edit.html.erb@@ -31,5 +31,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @document, url: document_path(@document), method: 'PATCH' do |f| -%><%= render partial: "documents/form", locals: { f: f } %>- <%= styled_button_tag l(:button_save), class: "-highlight -with-icon icon-checkmark" %>+ <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %><% end %>diff --git a/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erbindex f374a9ff6da..6cc4f35abfc 100644--- a/modules/documents/app/views/documents/index.html.erb+++ b/modules/documents/app/views/documents/index.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_document_plural) do %>+<%= toolbar title: t(:label_document_plural) do %><% if authorize_for(:documents, :new) %><li class="toolbar-item"><%= link_to({:controller => '/documents', :action => 'new', :project_id => @project},@@ -58,7 +58,7 @@ See docs/COPYRIGHT.rdoc for more details.<% content_for :sidebar do %><%= form_tag({}, :method => :get, class: 'sidebar--document-sort') do %><fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= l(:label_group_by, '') %></legend>+ <legend class="form--fieldset-legend"><%= t(:label_group_by) %></legend><p><%= radio_button_tag 'group_by', 'category', (@group_by == 'category'), class: 'submit-this-form' %><label for="group_by_category">@@ -66,7 +66,7 @@ See docs/COPYRIGHT.rdoc for more details.</label><br /><%= radio_button_tag 'group_by', 'date', (@group_by == 'date'), class: 'submit-this-form' %><label for="group_by_date">- <%= l(:label_date) %>+ <%= t(:label_date) %></label><br /><%= radio_button_tag 'group_by', 'title', (@group_by == 'title'), class: 'submit-this-form' %><label for="group_by_title">@@ -89,4 +89,4 @@ See docs/COPYRIGHT.rdoc for more details.});<% end %>-<% html_title(l(:label_document_plural)) -%>+<% html_title(t(:label_document_plural)) -%>diff --git a/modules/documents/app/views/documents/new.html.erb b/modules/documents/app/views/documents/new.html.erbindex 5edc3c34b4a..f76bd716202 100644--- a/modules/documents/app/views/documents/new.html.erb+++ b/modules/documents/app/views/documents/new.html.erb@@ -26,11 +26,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_document_new) %>+<%= toolbar title: t(:label_document_new) %><%= labelled_tabular_form_for @document, url: project_documents_path(@project), html: { multipart: true } do |f| -%><%= render :partial => 'documents/form', locals: { f: f } %>- <%= styled_button_tag l(:button_create), class: "-highlight -with-icon icon-checkmark" %>+ <%= styled_button_tag t(:button_create), class: "-highlight -with-icon icon-checkmark" %><% end %>diff --git a/modules/documents/app/views/documents/show.html.erb b/modules/documents/app/views/documents/show.html.erbindex d1e15e57c8a..f6c76b611a4 100644--- a/modules/documents/app/views/documents/show.html.erb+++ b/modules/documents/app/views/documents/show.html.erb@@ -34,15 +34,15 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item"><%= link_to({controller: '/documents', action: 'edit', id: @document}, class: 'button', accesskey: accesskey(:edit)) do %><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_edit) %></span>+ <span class="button--text"><%= t(:button_edit) %></span><% end %></li><% end %><% if authorize_for(:documents, :destroy) %><li class="toolbar-item">- <%= link_to({controller: '/documents', action: 'destroy', id: @document}, class: 'button', data: { confirm: l(:text_are_you_sure) }, method: :delete) do %>+ <%= link_to({controller: '/documents', action: 'destroy', id: @document}, class: 'button', data: { confirm: t(:text_are_you_sure) }, method: :delete) do %><%= op_icon('button--icon icon-delete') %>- <span class="button--text"><%= l(:button_delete) %></span>+ <span class="button--text"><%= t(:button_delete) %></span><% end %></li><% end %>diff --git a/modules/global_roles/app/views/users/_available_global_roles.html.erb b/modules/global_roles/app/views/users/_available_global_roles.html.erbindex b9d98682365..7df80429b74 100644--- a/modules/global_roles/app/views/users/_available_global_roles.html.erb+++ b/modules/global_roles/app/views/users/_available_global_roles.html.erb@@ -45,7 +45,7 @@ end%><% available_additional_global_roles(global_roles, user).each do |role| %><%= render :partial => 'users/available_global_role', :locals => {:role => role} %><% end %>- <p><br/><%= styled_button_tag l(:button_add), class: '-with-icon icon-checkmark' %></p>+ <p><br/><%= styled_button_tag t(:button_add), class: '-with-icon icon-checkmark' %></p><% end %></span><% end %>diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erbindex a397518d987..bf65a30c570 100644--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb@@ -11,10 +11,10 @@</p><p class="danger-zone--warning"><span class="icon icon-info2"></span>- <%= l('ldap_groups.synchronized_groups.destroy.confirmation', name: @group.dn, users_count: @group.users.count)%>+ <%= t('ldap_groups.synchronized_groups.destroy.confirmation', name: @group.dn, users_count: @group.users.count)%></p><p>- <span><%= l('ldap_groups.synchronized_groups.destroy.info')%></span>+ <span><%= t('ldap_groups.synchronized_groups.destroy.info')%></span><br/><%= t('ldap_groups.synchronized_groups.destroy.verification',name: "<em class=\"danger-zone--expected-value\">#{h(@group.dn)}</em>").html_safe %>diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erbindex 16c71b0acf3..d007fd0398f 100644--- a/modules/meeting/app/views/meeting_contents/_form.html.erb+++ b/modules/meeting/app/views/meeting_contents/_form.html.erb@@ -48,6 +48,6 @@ See docs/COPYRIGHT.rdoc for more details.<% path = send("preview_#{content_type}_path", content.meeting) %><p><%= f.text_field :comment, :size => 120 %></p>- <p><%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark button--save-agenda' %>+ <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark button--save-agenda' %><%= link_to t(:button_cancel), "#", data: { 'content-type': content_type }, class: 'button -with-icon icon-cancel button--cancel-agenda' %><% end %>diff --git a/modules/meeting/app/views/meeting_contents/_show.html.erb b/modules/meeting/app/views/meeting_contents/_show.html.erbindex 7cedb4f3f71..30607df7c1a 100644--- a/modules/meeting/app/views/meeting_contents/_show.html.erb+++ b/modules/meeting/app/views/meeting_contents/_show.html.erb@@ -38,7 +38,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="meeting_content <%= content_type %>"><div>- <%= toolbar title: l(:"label_#{content_type}") do %>+ <%= toolbar title: t(:"label_#{content_type}") do %><%=raw meeting_content_context_menu content, content_type %><% end %></div>diff --git a/modules/meeting/app/views/meeting_contents/diff.html.erb b/modules/meeting/app/views/meeting_contents/diff.html.erbindex b4041f5e72f..d1d23ff82b6 100644--- a/modules/meeting/app/views/meeting_contents/diff.html.erb+++ b/modules/meeting/app/views/meeting_contents/diff.html.erb@@ -27,24 +27,24 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title "#{l(:label_meeting_diff)}: #{@meeting.title}" %>-<%= toolbar title: l(:"label_#{@content_type}"),+<% html_title "#{t(:label_meeting_diff)}: #{@meeting.title}" %>+<%= toolbar title: t(:"label_#{@content_type}"),link_to: link_to(@meeting, @meeting) do %><% if authorize_for(@content_type.pluralize, :history) %><li class="toolbar-item"><%= link_to({controller: "/#{@content_type.pluralize}", action: 'history', meeting_id: @meeting }, class: 'button') do %><%= op_icon('button--icon icon-wiki') %>- <span class="button--text"><%= l(:label_history) %></span>+ <span class="button--text"><%= t(:label_history) %></span><% end %></li><% end %><% end %><p>-<%= l(:label_version) %> <%= link_to @diff.content_from.version, send(:"#{@content_type}_version_path", @meeting, @diff.content_from.version) %>+<%= t(:label_version) %> <%= link_to @diff.content_from.version, send(:"#{@content_type}_version_path", @meeting, @diff.content_from.version) %><em>(<%= link_to_user(@diff.content_from.user) %>, <%= format_time(@diff.content_from.created_at) %>)</em>→-<%= l(:label_version) %> <%= link_to @diff.content_to.version, send(:"#{@content_type}_version_path", @meeting, @diff.content_to.version) %>/<%= @content.last_journal&.version || 0 %>+<%= t(:label_version) %> <%= link_to @diff.content_to.version, send(:"#{@content_type}_version_path", @meeting, @diff.content_to.version) %>/<%= @content.last_journal&.version || 0 %><em>(<%= link_to_user(@diff.content_to.user) %>, <%= format_time(@diff.content_to.created_at) %>)</em></p>diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erbindex 3fc15ffa1be..3f29964e8ef 100644--- a/modules/meeting/app/views/meeting_contents/history.html.erb+++ b/modules/meeting/app/views/meeting_contents/history.html.erb@@ -27,12 +27,12 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title "#{l(:label_history)}: #{@meeting.title}" %>+<% html_title "#{t(:label_history)}: #{@meeting.title}" %>-<%= toolbar title: l(:"label_#{@content_type}"),+<%= toolbar title: t(:"label_#{@content_type}"),link_to: link_to(@meeting, @meeting) %>-<h3><%= l(:label_history) %></h3>+<h3><%= t(:label_history) %></h3><% content_for :header_tags do %><meta name="required_script" content="meeting" />@@ -56,7 +56,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span id="history-version">#</span>- <label class="hidden-for-sighted" for="history-version"><%= l(:label_version) %></label>+ <label class="hidden-for-sighted" for="history-version"><%= t(:label_version) %></label></div></div></th>@@ -112,13 +112,13 @@ See docs/COPYRIGHT.rdoc for more details.id: "checkbox-from-#{index}",class: 'meetings--checkbox-version-to',data: { target: ".checkbox-to-#{index+1}" }) %>- <label class="hidden-for-sighted" for="checkbox-from-<%= index %>"><%= l(:description_compare_from) %> <%= index %></label>+ <label class="hidden-for-sighted" for="checkbox-from-<%= index %>"><%= t(:description_compare_from) %> <%= index %></label><% end %></td><td class="checkbox -short"><% if show_diff && (index > 0) %><%= radio_button_tag('version_from', content_version.version, (index==1), :id => "checkbox-to-#{index}") %>- <label class="hidden-for-sighted" for="checkbox-to-<%= index %>"><%= l(:description_compare_to) %> <%= index %></label>+ <label class="hidden-for-sighted" for="checkbox-to-<%= index %>"><%= t(:description_compare_to) %> <%= index %></label><% end %></td><td id="test"><%= format_time(content_version.created_at) %></td>@@ -131,6 +131,6 @@ See docs/COPYRIGHT.rdoc for more details.</div></div>-<%= styled_button_tag l(:label_view_diff), class: '-small -highlight' if show_diff %>+<%= styled_button_tag t(:label_view_diff), class: '-small -highlight' if show_diff %><%= pagination_links_full @content_versions %><% end %>diff --git a/modules/meeting/app/views/meeting_contents/show.html.erb b/modules/meeting/app/views/meeting_contents/show.html.erbindex 884c7355c4c..f1ac9182b73 100644--- a/modules/meeting/app/views/meeting_contents/show.html.erb+++ b/modules/meeting/app/views/meeting_contents/show.html.erb@@ -32,5 +32,5 @@ See docs/COPYRIGHT.rdoc for more details.content: @content,journaled_version: @journaled_version,content_type: @content_type,- title: "#{l(:"label_#{@content_type}")}: #{link_to @meeting, @meeting}"+ title: "#{t(:"label_#{@content_type}")}: #{link_to @meeting, @meeting}"} %>diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erbindex cb6e4a1b2cd..a27eb05b2be 100644--- a/modules/meeting/app/views/meetings/edit.html.erb+++ b/modules/meeting/app/views/meetings/edit.html.erb@@ -27,12 +27,12 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title "#{l(:label_meeting_edit)}: #{@meeting.title}" %>+<% html_title "#{t(:label_meeting_edit)}: #{@meeting.title}" %>-<%= toolbar title: "#{l(:label_meeting)} ##{@meeting.id}" %>+<%= toolbar title: "#{t(:label_meeting)} ##{@meeting.id}" %><%= labelled_tabular_form_for @meeting, :url => {:controller => '/meetings', :action => 'update'}, :html => {:id => 'meeting-form', :method => :put} do |f| -%><%= render :partial => 'form', :locals => {:f => f} %>-<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>-<%= link_to l(:button_cancel), { :action => 'show', :id => @meeting },+<%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>+<%= link_to t(:button_cancel), { :action => 'show', :id => @meeting },class: 'button -with-icon icon-cancel' %><% end if @project %>diff --git a/modules/meeting/app/views/meetings/index.html.erb b/modules/meeting/app/views/meetings/index.html.erbindex 1cc22ab093b..084c66bb520 100644--- a/modules/meeting/app/views/meetings/index.html.erb+++ b/modules/meeting/app/views/meetings/index.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_meeting_plural) %>+<% html_title t(:label_meeting_plural) %>-<%= toolbar title: l(:label_meeting_plural) do %>+<%= toolbar title: t(:label_meeting_plural) do %><% if authorize_for(:meetings, :new) %><li class="toolbar-item"><a href="<%= new_meeting_path %>"diff --git a/modules/meeting/app/views/meetings/new.html.erb b/modules/meeting/app/views/meetings/new.html.erbindex 55012fe4c78..5c13804eeee 100644--- a/modules/meeting/app/views/meetings/new.html.erb+++ b/modules/meeting/app/views/meetings/new.html.erb@@ -27,11 +27,11 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_meeting_new) %>-<%= toolbar title: l(:label_meeting_new) %>+<% html_title t(:label_meeting_new) %>+<%= toolbar title: t(:label_meeting_new) %><%= labelled_tabular_form_for @meeting, :url => {:controller => '/meetings', :action => 'create', :project_id => @project}, :html => {:id => 'meeting-form'} do |f| -%><%= render :partial => 'form', :locals => {:f => f} %>- <%= styled_button_tag l(:button_create), class: '-highlight' %>- <%= link_to l(:button_cancel), { :action => 'index', :project_id => @project },+ <%= styled_button_tag t(:button_create), class: '-highlight' %>+ <%= link_to t(:button_cancel), { :action => 'index', :project_id => @project },class: 'button' %><% end if @project %>diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erbindex 271e420fbdd..63075e21797 100644--- a/modules/meeting/app/views/meetings/show.html.erb+++ b/modules/meeting/app/views/meetings/show.html.erb@@ -44,7 +44,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item"><%= link_to({:controller => '/meetings', :action => 'edit', :id => @meeting}, class: 'button',:accesskey => accesskey(:edit)) do%><%= op_icon('button--icon icon-edit') %>- <span class="button--text"><%= l(:button_edit) %></span>+ <span class="button--text"><%= t(:button_edit) %></span><% end %></li><% end %>@@ -52,7 +52,7 @@ See docs/COPYRIGHT.rdoc for more details.<li class="toolbar-item hidden-for-mobile"><%= link_to({:controller => '/meetings', :action => 'copy', :id => @meeting}, class: 'button') do %><%= op_icon('button--icon icon-copy') %>- <span class="button--text"><%= l(:button_copy) %></span>+ <span class="button--text"><%= t(:button_copy) %></span><% end %></li><% end %>@@ -95,7 +95,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if @meeting.journals.changing.present? %><div id="history">- <h3><%=l(:label_history)%></h3>+ <h3><%=t(:label_history)%></h3><% @meeting.journals.each do |journal| %><%= render_meeting_journal @meeting, journal %><% end %>diff --git a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erbindex 03f8ef4e595..95a6f1b6034 100644--- a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb+++ b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb@@ -11,7 +11,7 @@html: { class: 'form', autocomplete: 'off' } do |f| %><%= render partial: "form", locals: { f: f } %><p>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %></p><% end %>diff --git a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb b/modules/openid_connect/app/views/openid_connect/providers/new.html.erbindex a90bfc4c33e..9bf97d8c3ad 100644--- a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb+++ b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb@@ -9,7 +9,7 @@html: { class: 'form', autocomplete: 'off' } do |f| %><%= render partial: "form", locals: { f: f } %><p>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %></p><% end %>diff --git a/modules/pdf_export/app/views/export_card_configurations/_rows_format_help.html.erb b/modules/pdf_export/app/views/export_card_configurations/_rows_format_help.html.erbindex 541217ee605..fc098c03b2a 100644--- a/modules/pdf_export/app/views/export_card_configurations/_rows_format_help.html.erb+++ b/modules/pdf_export/app/views/export_card_configurations/_rows_format_help.html.erb@@ -9,7 +9,7 @@<a href="https://github.com/opf/openproject/tree/dev/modules/pdf_export#usage"target="_blank"class="icon icon-help1">- <%= l('help_link_rows_format') %>+ <%= t('help_link_rows_format') %></a></span></div>diff --git a/modules/pdf_export/app/views/export_card_configurations/edit.html.erb b/modules/pdf_export/app/views/export_card_configurations/edit.html.erbindex c423ed3c9b8..6770c9e93e8 100644--- a/modules/pdf_export/app/views/export_card_configurations/edit.html.erb+++ b/modules/pdf_export/app/views/export_card_configurations/edit.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), "#{l(:label_edit)} #{l(:label_export_card_configuration)} #{@config.name}" %>+<% html_title t(:label_administration), "#{t(:label_edit)} #{t(:label_export_card_configuration)} #{@config.name}" %><%= error_messages_for 'config' %>@@ -38,6 +38,6 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @config, url: pdf_export_export_card_configuration_path(@config) do |f| -%><%= render partial: 'form', locals: { f: f } %><hr class="form--separator">- <%= styled_button_tag l(:button_save), class: "-highlight -with-icon icon-checkmark" %>+ <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %><% end %>diff --git a/modules/pdf_export/app/views/export_card_configurations/index.html.erb b/modules/pdf_export/app/views/export_card_configurations/index.html.erbindex b306cd2db1b..9ec6bcb2338 100644--- a/modules/pdf_export/app/views/export_card_configurations/index.html.erb+++ b/modules/pdf_export/app/views/export_card_configurations/index.html.erb@@ -27,9 +27,9 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_export_card_configuration_plural) %>+<% html_title t(:label_administration), t(:label_export_card_configuration_plural) %>-<h2><%=l(:label_export_card_configuration_plural)%></h2>+<h2><%=t(:label_export_card_configuration_plural)%></h2><div class="generic-table--container"><div class="generic-table--results-container">@@ -57,7 +57,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:export_config_page_size) %>+ <%= t(:export_config_page_size) %></span></div></div>@@ -66,7 +66,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:export_config_per_page) %>+ <%= t(:export_config_per_page) %></span></div></div>@@ -75,7 +75,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= l(:export_config_orientation) %>+ <%= t(:export_config_orientation) %></span></div></div>diff --git a/modules/pdf_export/app/views/export_card_configurations/new.html.erb b/modules/pdf_export/app/views/export_card_configurations/new.html.erbindex f61cd54f355..fb920320385 100644--- a/modules/pdf_export/app/views/export_card_configurations/new.html.erb+++ b/modules/pdf_export/app/views/export_card_configurations/new.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% html_title l(:label_administration), l(:label_export_card_configuration_new) %>+<% html_title t(:label_administration), t(:label_export_card_configuration_new) %><%= error_messages_for 'config' %>@@ -38,5 +38,5 @@ See docs/COPYRIGHT.rdoc for more details.<%= labelled_tabular_form_for @config, url: pdf_export_export_card_configurations_path do |f| -%><%= render partial: 'form', locals: { f: f } %><hr class="form--separator">- <%= styled_button_tag l(:button_create), class: "-highlight -with-icon icon-checkmark" %>+ <%= styled_button_tag t(:button_create), class: "-highlight -with-icon icon-checkmark" %><% end %>diff --git a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb b/modules/recaptcha/app/views/recaptcha/admin/show.html.erbindex fe3ef521e2f..74dc19311d9 100644--- a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb+++ b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb@@ -41,6 +41,6 @@</div></div></fieldset>- <%= styled_submit_tag l(:button_apply), class: '-highlight' %>+ <%= styled_submit_tag t(:button_apply), class: '-highlight' %><% end %></section>diff --git a/modules/reporting/app/views/cost_reports/_report_category.html.erb b/modules/reporting/app/views/cost_reports/_report_category.html.erbindex 3fec47c53fc..2baa5119106 100644--- a/modules/reporting/app/views/cost_reports/_report_category.html.erb+++ b/modules/reporting/app/views/cost_reports/_report_category.html.erb@@ -33,6 +33,6 @@ See docs/COPYRIGHT.rdoc for more details.<% queries = respond_to?(:"#{report_type}_queries") ? send(:"#{report_type}_queries") : [] %><% if queries.any? %>- <h3><%= l(:"label_#{report_type}_report_plural") %></h3>+ <h3><%= t(:"label_#{report_type}_report_plural") %></h3><%= render :partial => "report_list", :locals => { :report_type => report_type, :queries => queries } %><% end -%>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erbindex a942f0eece0..bb035c48126 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb@@ -1,7 +1,7 @@<%= render partial: 'two_factor_authentication/header_tags' %>-<% html_title l(:field_otp) %>-<% breadcrumb_paths(l(:field_otp)) %>+<% html_title t(:field_otp) %>+<% breadcrumb_paths(t(:field_otp)) %><div id="login-form" class="form -bordered"><%= styled_form_tag({ action: :verify_backup_code }, { :autocomplete => "off", :id => 'submit_backup_code' }) do %><h2><%= t 'two_factor_authentication.login.enter_backup_code_title' %></h2>@@ -13,7 +13,7 @@<%= styled_text_field_tag 'backup_code', nil, required: true, autocomplete: 'off', size: 20, maxlength: 20, tabindex: 1, focus: true %></div></div>- <input type="submit" name="login" value="<%=l(:button_submit)%>" class="button -highlight" tabindex="2" />+ <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -highlight" tabindex="2" /><% end %></div></div>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erbindex 0f5e60be858..2ef6d8d8f03 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb@@ -4,8 +4,8 @@<%= render partial: 'two_factor_authentication/header_tags' %>-<% html_title l(:field_otp) %>-<% breadcrumb_paths(l(:field_otp)) %>+<% html_title t(:field_otp) %>+<% breadcrumb_paths(t(:field_otp)) %><div id="login-form" class="form -bordered"><%= styled_form_tag({ action: :confirm_otp }, { :autocomplete => "off", :id => 'submit_otp' }) do %><h2><%= t 'two_factor_authentication.label_two_factor_authentication' %></h2>@@ -14,7 +14,7 @@<hr class="form--separator"><%= back_url_hidden_field_tag %><div class="form--field -wide-label">- <%= styled_label_tag 'otp', l(:field_otp) %>+ <%= styled_label_tag 'otp', t(:field_otp) %><div class="form--field-container"><%= styled_text_field_tag 'otp', nil, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, focus: true %></div>@@ -29,11 +29,11 @@</label></div><% end %>- <input type="submit" name="login" value="<%=l(:button_login)%>" class="button -highlight" tabindex="2" />+ <input type="submit" name="login" value="<%=t(:button_login)%>" class="button -highlight" tabindex="2" /><% if resend_supported || has_other_devices || has_backup_codes %><div class="login-options-container"><div class="login-links">- <%= link_to(l(:text_otp_not_receive), '#', id: 'toggle_resend_form', tabindex: 3) %>+ <%= link_to(t(:text_otp_not_receive), '#', id: 'toggle_resend_form', tabindex: 3) %></div></div><% end %>@@ -43,7 +43,7 @@<%= styled_form_tag({action: :retry }, autocomplete: 'off', id: 'resend_otp') do %><%= hidden_field_tag 'use_device', @service.device.id %><hr />- <div class="resend-header"><%= l(:text_send_otp_again) %></div>+ <div class="resend-header"><%= t(:text_send_otp_again) %></div><div class="radios-wrapper"><% default_channel = @service.device.channel %><% supported_channels = @used_device.class.supported_channels & @strategy.class.supported_channels %>@@ -53,7 +53,7 @@<% end %></div>- <input type="submit" value="<%= l(:button_resend_otp_form) %>" id="submit_resend_form" class="button -highlight" />+ <input type="submit" value="<%= t(:button_resend_otp_form) %>" id="submit_resend_form" class="button -highlight" /><% end %><% end %><% if has_other_devices %>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erbindex 4d13c383917..3bfe414c81a 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb@@ -76,6 +76,6 @@</div></div></fieldset>- <%= styled_submit_tag l(:button_apply), class: '-highlight' %>+ <%= styled_submit_tag t(:button_apply), class: '-highlight' %><% end %></section>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erbindex a7bbf50b41a..2c0c8922b0b 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb@@ -9,7 +9,7 @@<hr class="form--separator"><%= back_url_hidden_field_tag %><div class="form--field -required -wide-label">- <%= styled_label_tag 'otp', l(:field_otp) %>+ <%= styled_label_tag 'otp', t(:field_otp) %><div class="form--field-container"><%= styled_text_field_tag 'otp', nil, required: true, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, focus: true %></div>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erbindex 485d31cd698..d9ff5316a24 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb@@ -15,7 +15,7 @@<%= render partial: "two_factor_authentication/two_factor_devices/form", locals: { f: f, device_type: @device_type, device: @device, user: @user } %><p>- <%= styled_button_tag l(:button_continue), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_continue), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), index_path, class: 'button -with-icon icon-cancel' %></p><% end %>diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erbindex 469fb50f3a0..181ccaf3358 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb@@ -16,7 +16,7 @@html: { class: 'form', autocomplete: 'off' } do |f| %><%= render partial: "form", locals: { f: f, webhook: @webhook } %><p>- <%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %></p><% end %>\ No newline at end of filediff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erbindex 36374cf01b0..57602eda0fa 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb@@ -15,7 +15,7 @@html: { class: 'form', autocomplete: 'off' } do |f| %><%= render partial: "form", locals: { f: f, webhook: @webhook } %><p>- <%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>+ <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %><%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %></p><% end %>\ No newline at end of file