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

Rework `timelines.admin_menu.color`, `timelines.new_color` and `timelines.edit_color`

Aaron Contrerascc3216bdf5e5
diff --git a/app/views/colors/_form.html.erb b/app/views/colors/_form.html.erb
index ddb187812b2..d30fdcd696a 100644
--- a/app/views/colors/_form.html.erb
+++ b/app/views/colors/_form.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for 'color' %>
-<%= toolbar title: (color.new_record? ? t('timelines.new_color') : t('timelines.edit_color')) do %>
+<%= toolbar title: (color.new_record? ? t('.label_new_color') : t('.label_edit_color')) do %>
<% if color.persisted? %>
<li class="toolbar-item">
<%= link_to color_path(color),
diff --git a/app/views/colors/edit.html.erb b/app/views/colors/edit.html.erb
index f49c82a868c..41a958bdd16 100644
--- a/app/views/colors/edit.html.erb
+++ b/app/views/colors/edit.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), "#{t(:label_edit)} #{t("timelines.admin_menu.color")} #{h @color.name}" %>
+<% html_title t(:label_administration), "#{t('.label_edit_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.erb
index b32565136ec..471111d7672 100644
--- a/app/views/colors/index.html.erb
+++ b/app/views/colors/index.html.erb
@@ -33,8 +33,8 @@ See COPYRIGHT and LICENSE files for more details.
<li class="toolbar-item">
<%= link_to new_color_path,
{ class: 'button -alt-highlight',
- aria: {label: t('timelines.new_color')},
- title: t('timelines.new_color')} do %>
+ aria: {label: t('.label_new_color')},
+ title: t('.label_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.erb
index 288512d35d0..c7b76d86c0b 100644
--- a/app/views/colors/new.html.erb
+++ b/app/views/colors/new.html.erb
@@ -27,8 +27,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% 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") %>
+<% html_title t(:label_administration), t('.label_new_color') %>
+<% local_assigns[:additional_breadcrumb] = t('.label_new_color') %>
<%= labelled_tabular_form_for @color,
url: colors_url,
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 6f2f638681b..224ac1128ef 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -189,11 +189,19 @@ en:
index:
no_results_title_text: There are currently no colors.
no_results_content_text: Create a new color
- label_no_color: 'No color'
+ label_new_color: "New color"
+ new:
+ label_new_color: "New Color"
+ edit:
+ label_edit_color: "Edit Color"
+ form:
+ label_new_color: "New color"
+ label_edit_color: "Edit color"
+ label_no_color: "No color"
custom_actions:
actions:
- name: 'Actions'
+ name: "Actions"
add: 'Add action'
assigned_to:
executing_user_value: '(Assign to executing user)'
@@ -2942,13 +2950,9 @@ en:
start: "from"
timelines:
- admin_menu:
- color: "Color"
color_could_not_be_saved: "Color could not be saved"
- edit_color: "Edit color"
empty: "(empty)"
enable_type_in_project: 'Enable type "%{type}"'
- new_color: "New color"
properties: "Properties"
really_delete_color: >