From b636695631a244549d9004637bdffac4a5228130 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Jul 2012 14:19:01 +0000 Subject: [PATCH] Removed hard-coded strings (#703, #3521). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9979 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/workflows_helper.rb | 2 +- app/views/workflows/permissions.html.erb | 4 ++-- config/locales/en.yml | 4 ++++ config/locales/fr.yml | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb index 3dd514042..a9bc5ac81 100644 --- a/app/helpers/workflows_helper.rb +++ b/app/helpers/workflows_helper.rb @@ -21,7 +21,7 @@ module WorkflowsHelper def field_permission_tag(permissions, status, field) name = field.is_a?(CustomField) ? field.id.to_s : field select_tag("permissions[#{name}][#{status.id}]", - options_for_select([["", ""], ["Read-only", "readonly"], ["Required", "required"]], permissions[status.id][name]) + options_for_select([["", ""], [l(:label_readonly), "readonly"], [l(:label_required), "required"]], permissions[status.id][name]) ) end end diff --git a/app/views/workflows/permissions.html.erb b/app/views/workflows/permissions.html.erb index 73cf91656..3f9ea2181 100644 --- a/app/views/workflows/permissions.html.erb +++ b/app/views/workflows/permissions.html.erb @@ -4,8 +4,8 @@
diff --git a/config/locales/en.yml b/config/locales/en.yml index ef4466c52..a38171392 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -861,6 +861,10 @@ en: label_search_for_watchers: Search for watchers to add label_session_expiration: Session expiration label_show_closed_projects: View closed projects + label_status_transitions: Status transitions + label_fields_permissions: Fields permissions + label_readonly: Read-only + label_required: Required button_login: Login button_submit: Submit diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 7a68b72c0..f8f0aa0a3 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -836,6 +836,10 @@ fr: label_completed_versions: Versions passées label_session_expiration: Expiration des sessions label_show_closed_projects: Voir les projets fermés + label_status_transitions: Changements de statut + label_fields_permissions: Permissions sur les champs + label_readonly: Lecture + label_required: Obligatoire button_login: Connexion button_submit: Soumettre