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
convert "Add Projects" translation to reusable label
Kabiru Mwenja84160c6c5f4c
diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rbindex 784dc0b8ec9..6d721c4f0b6 100644--- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb+++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb@@ -45,7 +45,7 @@ module Settingsprivatedef title- I18n.t("projects.settings.project_custom_fields.new_project_mapping_form.add_projects")+ I18n.t(:label_add_projects)endendenddiff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rbindex 1693de4871f..7a9123f455c 100644--- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb+++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb@@ -44,7 +44,7 @@ module Settingsprivatedef title- I18n.t("projects.settings.project_custom_fields.new_project_mapping_form.add_projects")+ I18n.t(:label_add_projects)enddef cancel_button_textdiff --git a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb b/app/views/admin/settings/project_custom_fields/project_mappings.html.erbindex ed01914788c..66e463fa57d 100644--- a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb+++ b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.data: { controller: "async-dialog" })) do |button|button.with_leading_visual_icon(icon: 'op-include-projects')- I18n.t("projects.settings.project_custom_fields.new_project_mapping_form.add_projects")+ I18n.t(:label_add_projects)endendend unless @custom_field.required?diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 2032e684fab..27e866ef13b 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -336,7 +336,6 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}heading: Required in all projectsdescription: This project attribute is activated in all projects since the "Required in all projects" option is checked. It cannot be deactivated for individual projects.new_project_mapping_form:- add_projects: Add projectsinclude_sub_projects: Include sub-projectstypes:no_results_title_text: There are currently no types available.@@ -1920,6 +1919,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}label_add_another_file: "Add another file"label_add_columns: "Add selected columns"label_add_note: "Add a note"+ label_add_projects: "Add projects"label_add_related_work_packages: "Add related work packages"label_add_subtask: "Add subtask"label_added: "added"diff --git a/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb b/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erbindex 9a0850f7930..a9b840abb92 100644--- a/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb+++ b/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.data: { controller: "async-dialog" })) do |button|button.with_leading_visual_icon(icon: 'op-include-projects')- I18n.t("projects.settings.project_custom_fields.new_project_mapping_form.add_projects")+ I18n.t(:label_add_projects)endendend