Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix spent time label on roadmap

ulfertsb3890476e7e1
diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb
index 396b49d473b..26069042276 100644
--- a/app/views/versions/show.html.erb
+++ b/app/views/versions/show.html.erb
@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.
<li class="toolbar-item">
<%= link_to(edit_version_path(@version), 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 %>
@@ -43,7 +43,7 @@ See docs/COPYRIGHT.rdoc for more details.
id: @version.wiki_page_title},
class: 'button') do %>
<%= op_icon('button--icon icon-edit') %>
- <span class="button--text"><%= l(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' ')) %></span>
+ <span class="button--text"><%= t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' ')) %></span>
<% end %>
</li>
<% end %>
@@ -58,7 +58,7 @@ See docs/COPYRIGHT.rdoc for more details.
<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
<div class="widget-box -thin">
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= l(:label_time_tracking) %></legend>
+ <legend class="form--fieldset-legend"><%= t(:label_estimates_and_time) %></legend>
<table>
<tr>
<td width="130px" align="right"><%= Version.human_attribute_name(:estimated_hours) %></td>
@@ -66,7 +66,7 @@ See docs/COPYRIGHT.rdoc for more details.
</tr>
<% if User.current.allowed_to?(:view_time_entries, @project) %>
<tr>
- <td width="130px" align="right"><%= l(:label_spent_time) %></td>
+ <td width="130px" align="right"><%= t(:label_spent_time) %></td>
<td width="240px" class="total-hours" align="right"><%= html_hours(l_hours(@version.spent_hours)) %></td>
</tr>
<% end %>
@@ -84,7 +84,7 @@ See docs/COPYRIGHT.rdoc for more details.
<% if @issues.present? %>
<div class="widget-box -thin -wider">
<% if @issues.present? %>
- <fieldset class="form--fieldset related_issues"><legend class="form--fieldset-legend"><%= l(:label_related_work_packages) %></legend>
+ <fieldset class="form--fieldset related_issues"><legend class="form--fieldset-legend"><%= t(:label_related_work_packages) %></legend>
<ul>
<% @issues.each do |issue| -%>
<li><%= link_to_work_package(issue, project: issue.project != @version.project) %></li>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0d58db5c0b4..f01b059a30b 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1559,7 +1559,6 @@ en:
label_options: "Options"
label_other: "Other"
label_overall_activity: "Overall activity"
- label_overall_spent_time: "Overall spent time"
label_overview: "Overview"
label_page_title: "Page title"
label_part_of: "part of"