# HG changeset patch # User luisf # Date 1291827080 0 # Node ID 45aa8d16ec108ea3535a6aad599a73b593b12ca5 # Parent 7c828d63cb0684999af663b50a96efbc19a788dd Feature #43: Added new strings and placeholders to make the new project page's fields more clear. diff -r 7c828d63cb06 -r 45aa8d16ec10 app/views/projects/_form.rhtml --- a/app/views/projects/_form.rhtml Wed Dec 08 15:14:02 2010 +0000 +++ b/app/views/projects/_form.rhtml Wed Dec 08 16:51:20 2010 +0000 @@ -2,7 +2,10 @@
-

<%= f.text_field :name, :required => true, :size => 60 %>

+

<%= f.text_field :name, :required => true, :size => 60 %> +
+ <%= l(:text_project_name_info) %> +

<% unless @project.allowed_parents.compact.empty? %>

<%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %>

@@ -11,10 +14,17 @@

<%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %>

<%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %> <% unless @project.identifier_frozen? %> -
<%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %> +
+ <%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %> <% end %>

-

<%= f.text_field :homepage, :size => 60 %>

-

<%= f.check_box :is_public %>

+

<%= f.text_field :homepage, :size => 60 %> +
+ <%= l(:text_project_homepage_info) %> +

+

<%= f.check_box :is_public %> +
+ <%= l(:text_project_visibility_info) %> +

<%= wikitoolbar_for 'project_description' %> <% @project.custom_field_values.each do |value| %> diff -r 7c828d63cb06 -r 45aa8d16ec10 config/locales/en.yml --- a/config/locales/en.yml Wed Dec 08 15:14:02 2010 +0000 +++ b/config/locales/en.yml Wed Dec 08 16:51:20 2010 +0000 @@ -865,7 +865,10 @@ text_tip_issue_begin_day: issue beginning this day text_tip_issue_end_day: issue ending this day text_tip_issue_begin_end_day: issue beginning and ending this day - text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.
Once saved, the identifier can not be changed.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.
This will be used in all project-related URLs, such as the repository name. Once saved, the identifier can not be changed.' + text_project_name_info: "This name of your project throughout this site.
You can change your project's name at any time in the project's settings." + text_project_visibility_info: "If your project is not public, it will only be visible to this site's users you add as project members." + :text_project_homepage_info: 'Link to an external project page.' text_caracters_maximum: "{{count}} characters maximum." text_caracters_minimum: "Must be at least {{count}} characters long." text_length_between: "Length between {{min}} and {{max}} characters."