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

Add captions and change titles for T&C settings

Klaus Zandersdc84182ab2c7
diff --git a/modules/costs/app/views/admin/costs_settings/show.html.erb b/modules/costs/app/views/admin/costs_settings/show.html.erb
index df8384eea0c..78ce6d6fd59 100644
--- a/modules/costs/app/views/admin/costs_settings/show.html.erb
+++ b/modules/costs/app/views/admin/costs_settings/show.html.erb
@@ -47,10 +47,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= tab.with_text { I18n.t(:label_time) } %>
<%= tab.with_panel do %>
<%=
- render(::EnterpriseEdition::BannerComponent.new(:time_entry_time_restrictions,
- variant: :medium,
- image: "enterprise/exact-time-tracking.png",
- dismissable: false))
+ render(
+ ::EnterpriseEdition::BannerComponent.new(
+ :time_entry_time_restrictions,
+ variant: :medium,
+ image: "enterprise/exact-time-tracking.png",
+ dismissable: false
+ )
+ )
%>
<%=
admin_settings_primer_form_with(scope: :settings, action: :update, method: :patch) do |time_form|
@@ -62,8 +66,15 @@ See COPYRIGHT and LICENSE files for more details.
end
end
- form.check_box(name: :allow_tracking_start_and_end_times)
- form.check_box(name: :enforce_tracking_start_and_end_times, disabled: !EnterpriseToken.allows_to?(:time_entry_time_restrictions))
+ form.check_box(
+ name: :allow_tracking_start_and_end_times,
+ caption: I18n.t(:setting_allow_tracking_start_and_end_times_caption)
+ )
+ form.check_box(
+ name: :enforce_tracking_start_and_end_times,
+ caption: I18n.t(:setting_enforce_tracking_start_and_end_times_caption),
+ disabled: !EnterpriseToken.allows_to?(:time_entry_time_restrictions)
+ )
form.submit
end
@@ -72,7 +83,6 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
<%
-
component.with_tab(id: "tab-costs") do |tab|
tab.with_text { I18n.t(:label_costs) }
tab.with_panel do
diff --git a/modules/costs/config/locales/en.yml b/modules/costs/config/locales/en.yml
index 5fed849789e..7c838a0ff55 100644
--- a/modules/costs/config/locales/en.yml
+++ b/modules/costs/config/locales/en.yml
@@ -212,11 +212,13 @@ en:
project_module_costs: "Time and costs"
- setting_allow_tracking_start_and_end_times: "Allow exact times tracking"
+ setting_allow_tracking_start_and_end_times: "Allow start and finish times"
setting_costs_currency: "Currency"
setting_costs_currency_format: "Format of currency"
- setting_enforce_tracking_start_and_end_times: "Require exact times"
- setting_enforce_without_allow: "Requiring exact times is not possible without allowing them"
+ setting_enforce_tracking_start_and_end_times: "Require start and finish times"
+ setting_enforce_without_allow: "Requiring start and finish times is not possible without allowing them"
+ setting_allow_tracking_start_and_end_times_caption: "Enables entering start and finish time when logging time."
+ setting_enforce_tracking_start_and_end_times_caption: "Makes entering entering start and finish time mandatory when logging time."
text_assign_time_and_cost_entries_to_project: "Assign reported hours and costs to the project"
text_destroy_cost_entries_question: "%{cost_entries} were reported on the work packages you are about to delete. What do you want to do ?"