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.color_could_not_be_saved`

Aaron Contreras32641c30d273
diff --git a/app/controllers/colors_controller.rb b/app/controllers/colors_controller.rb
index b444bab37a2..c28739aa80d 100644
--- a/app/controllers/colors_controller.rb
+++ b/app/controllers/colors_controller.rb
@@ -67,7 +67,7 @@ class ColorsController < ApplicationController
flash[:notice] = I18n.t(:notice_successful_create)
redirect_to colors_path
else
- flash.now[:error] = I18n.t('timelines.color_could_not_be_saved')
+ flash.now[:error] = I18n.t(:error_color_could_not_be_saved)
render action: 'new'
end
end
@@ -79,7 +79,7 @@ class ColorsController < ApplicationController
flash[:notice] = I18n.t(:notice_successful_update)
redirect_to colors_path
else
- flash.now[:error] = I18n.t('timelines.color_could_not_be_saved')
+ flash.now[:error] = I18n.t(:error_color_could_not_be_saved)
render action: 'edit'
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 224ac1128ef..42df91e75fd 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1358,6 +1358,7 @@ en:
error_can_not_unarchive_project: "This project cannot be unarchived: %{errors}"
error_check_user_and_role: "Please choose a user and a role."
error_code: "Error %{code}"
+ error_color_could_not_be_saved: "Color could not be saved"
error_cookie_missing: 'The OpenProject cookie is missing. Please ensure that cookies are enabled, as this application will not properly function without.'
error_custom_option_not_found: "Option does not exist."
error_enterprise_activation_user_limit: "Your account could not be activated (user limit reached). Please contact your administrator to gain access."
@@ -2950,7 +2951,6 @@ en:
start: "from"
timelines:
- color_could_not_be_saved: "Color could not be saved"
empty: "(empty)"
enable_type_in_project: 'Enable type "%{type}"'