##// END OF EJS Templates
Show tabs for existing custom field types only and adds a view for choosing the type when adding a new custom field....
Jean-Philippe Lang -
r12574:7b127ee489a1
parent child
Show More
@@ -0,0 +1,15
1 <%= title [l(:label_custom_field_plural), custom_fields_path],
2 l(:label_custom_field_new) %>
3
4 <% selected = 0 %>
5 <%= form_tag new_custom_field_path, :method => 'get' do %>
6 <div class="box">
7 <p><%= l(:label_custom_field_select_type) %>:</p>
8 <p>
9 <% custom_field_type_options.each do |name, type| %>
10 <label style="display:block;"><%= radio_button_tag 'type', type, 1==selected+=1 %> <%= name %></label>
11 <% end %>
12 </p>
13 </div>
14 <p><%= submit_tag l(:label_next).html_safe + " &#187;".html_safe, :name => nil %></p>
15 <% end %>
@@ -1,89 +1,89
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2014 Jean-Philippe Lang
2 # Copyright (C) 2006-2014 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 class CustomFieldsController < ApplicationController
18 class CustomFieldsController < ApplicationController
19 layout 'admin'
19 layout 'admin'
20
20
21 before_filter :require_admin
21 before_filter :require_admin
22 before_filter :build_new_custom_field, :only => [:new, :create]
22 before_filter :build_new_custom_field, :only => [:new, :create]
23 before_filter :find_custom_field, :only => [:edit, :update, :destroy]
23 before_filter :find_custom_field, :only => [:edit, :update, :destroy]
24 accept_api_auth :index
24 accept_api_auth :index
25
25
26 def index
26 def index
27 respond_to do |format|
27 respond_to do |format|
28 format.html {
28 format.html {
29 @custom_fields_by_type = CustomField.all.group_by {|f| f.class.name }
29 @custom_fields_by_type = CustomField.all.group_by {|f| f.class.name }
30 @tab = params[:tab] || 'IssueCustomField'
30 @tab = params[:tab] || 'IssueCustomField'
31 }
31 }
32 format.api {
32 format.api {
33 @custom_fields = CustomField.all
33 @custom_fields = CustomField.all
34 }
34 }
35 end
35 end
36 end
36 end
37
37
38 def new
38 def new
39 @custom_field.field_format = 'string' if @custom_field.field_format.blank?
39 @custom_field.field_format = 'string' if @custom_field.field_format.blank?
40 @custom_field.default_value = nil
40 @custom_field.default_value = nil
41 end
41 end
42
42
43 def create
43 def create
44 if @custom_field.save
44 if @custom_field.save
45 flash[:notice] = l(:notice_successful_create)
45 flash[:notice] = l(:notice_successful_create)
46 call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
46 call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
47 redirect_to custom_fields_path(:tab => @custom_field.class.name)
47 redirect_to custom_fields_path(:tab => @custom_field.class.name)
48 else
48 else
49 render :action => 'new'
49 render :action => 'new'
50 end
50 end
51 end
51 end
52
52
53 def edit
53 def edit
54 end
54 end
55
55
56 def update
56 def update
57 if @custom_field.update_attributes(params[:custom_field])
57 if @custom_field.update_attributes(params[:custom_field])
58 flash[:notice] = l(:notice_successful_update)
58 flash[:notice] = l(:notice_successful_update)
59 call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
59 call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
60 redirect_to custom_fields_path(:tab => @custom_field.class.name)
60 redirect_to custom_fields_path(:tab => @custom_field.class.name)
61 else
61 else
62 render :action => 'edit'
62 render :action => 'edit'
63 end
63 end
64 end
64 end
65
65
66 def destroy
66 def destroy
67 begin
67 begin
68 @custom_field.destroy
68 @custom_field.destroy
69 rescue
69 rescue
70 flash[:error] = l(:error_can_not_delete_custom_field)
70 flash[:error] = l(:error_can_not_delete_custom_field)
71 end
71 end
72 redirect_to custom_fields_path(:tab => @custom_field.class.name)
72 redirect_to custom_fields_path(:tab => @custom_field.class.name)
73 end
73 end
74
74
75 private
75 private
76
76
77 def build_new_custom_field
77 def build_new_custom_field
78 @custom_field = CustomField.new_subclass_instance(params[:type], params[:custom_field])
78 @custom_field = CustomField.new_subclass_instance(params[:type], params[:custom_field])
79 if @custom_field.nil?
79 if @custom_field.nil?
80 render_404
80 render :action => 'select_type'
81 end
81 end
82 end
82 end
83
83
84 def find_custom_field
84 def find_custom_field
85 @custom_field = CustomField.find(params[:id])
85 @custom_field = CustomField.find(params[:id])
86 rescue ActiveRecord::RecordNotFound
86 rescue ActiveRecord::RecordNotFound
87 render_404
87 render_404
88 end
88 end
89 end
89 end
@@ -1,1344 +1,1348
1 # encoding: utf-8
1 # encoding: utf-8
2 #
2 #
3 # Redmine - project management software
3 # Redmine - project management software
4 # Copyright (C) 2006-2014 Jean-Philippe Lang
4 # Copyright (C) 2006-2014 Jean-Philippe Lang
5 #
5 #
6 # This program is free software; you can redistribute it and/or
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
9 # of the License, or (at your option) any later version.
10 #
10 #
11 # This program is distributed in the hope that it will be useful,
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
14 # GNU General Public License for more details.
15 #
15 #
16 # You should have received a copy of the GNU General Public License
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
20 require 'forwardable'
20 require 'forwardable'
21 require 'cgi'
21 require 'cgi'
22
22
23 module ApplicationHelper
23 module ApplicationHelper
24 include Redmine::WikiFormatting::Macros::Definitions
24 include Redmine::WikiFormatting::Macros::Definitions
25 include Redmine::I18n
25 include Redmine::I18n
26 include GravatarHelper::PublicMethods
26 include GravatarHelper::PublicMethods
27 include Redmine::Pagination::Helper
27 include Redmine::Pagination::Helper
28
28
29 extend Forwardable
29 extend Forwardable
30 def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
30 def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
31
31
32 # Return true if user is authorized for controller/action, otherwise false
32 # Return true if user is authorized for controller/action, otherwise false
33 def authorize_for(controller, action)
33 def authorize_for(controller, action)
34 User.current.allowed_to?({:controller => controller, :action => action}, @project)
34 User.current.allowed_to?({:controller => controller, :action => action}, @project)
35 end
35 end
36
36
37 # Display a link if user is authorized
37 # Display a link if user is authorized
38 #
38 #
39 # @param [String] name Anchor text (passed to link_to)
39 # @param [String] name Anchor text (passed to link_to)
40 # @param [Hash] options Hash params. This will checked by authorize_for to see if the user is authorized
40 # @param [Hash] options Hash params. This will checked by authorize_for to see if the user is authorized
41 # @param [optional, Hash] html_options Options passed to link_to
41 # @param [optional, Hash] html_options Options passed to link_to
42 # @param [optional, Hash] parameters_for_method_reference Extra parameters for link_to
42 # @param [optional, Hash] parameters_for_method_reference Extra parameters for link_to
43 def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
43 def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
44 link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
44 link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
45 end
45 end
46
46
47 # Displays a link to user's account page if active
47 # Displays a link to user's account page if active
48 def link_to_user(user, options={})
48 def link_to_user(user, options={})
49 if user.is_a?(User)
49 if user.is_a?(User)
50 name = h(user.name(options[:format]))
50 name = h(user.name(options[:format]))
51 if user.active? || (User.current.admin? && user.logged?)
51 if user.active? || (User.current.admin? && user.logged?)
52 link_to name, user_path(user), :class => user.css_classes
52 link_to name, user_path(user), :class => user.css_classes
53 else
53 else
54 name
54 name
55 end
55 end
56 else
56 else
57 h(user.to_s)
57 h(user.to_s)
58 end
58 end
59 end
59 end
60
60
61 # Displays a link to +issue+ with its subject.
61 # Displays a link to +issue+ with its subject.
62 # Examples:
62 # Examples:
63 #
63 #
64 # link_to_issue(issue) # => Defect #6: This is the subject
64 # link_to_issue(issue) # => Defect #6: This is the subject
65 # link_to_issue(issue, :truncate => 6) # => Defect #6: This i...
65 # link_to_issue(issue, :truncate => 6) # => Defect #6: This i...
66 # link_to_issue(issue, :subject => false) # => Defect #6
66 # link_to_issue(issue, :subject => false) # => Defect #6
67 # link_to_issue(issue, :project => true) # => Foo - Defect #6
67 # link_to_issue(issue, :project => true) # => Foo - Defect #6
68 # link_to_issue(issue, :subject => false, :tracker => false) # => #6
68 # link_to_issue(issue, :subject => false, :tracker => false) # => #6
69 #
69 #
70 def link_to_issue(issue, options={})
70 def link_to_issue(issue, options={})
71 title = nil
71 title = nil
72 subject = nil
72 subject = nil
73 text = options[:tracker] == false ? "##{issue.id}" : "#{issue.tracker} ##{issue.id}"
73 text = options[:tracker] == false ? "##{issue.id}" : "#{issue.tracker} ##{issue.id}"
74 if options[:subject] == false
74 if options[:subject] == false
75 title = issue.subject.truncate(60)
75 title = issue.subject.truncate(60)
76 else
76 else
77 subject = issue.subject
77 subject = issue.subject
78 if truncate_length = options[:truncate]
78 if truncate_length = options[:truncate]
79 subject = subject.truncate(truncate_length)
79 subject = subject.truncate(truncate_length)
80 end
80 end
81 end
81 end
82 only_path = options[:only_path].nil? ? true : options[:only_path]
82 only_path = options[:only_path].nil? ? true : options[:only_path]
83 s = link_to(text, issue_path(issue, :only_path => only_path),
83 s = link_to(text, issue_path(issue, :only_path => only_path),
84 :class => issue.css_classes, :title => title)
84 :class => issue.css_classes, :title => title)
85 s << h(": #{subject}") if subject
85 s << h(": #{subject}") if subject
86 s = h("#{issue.project} - ") + s if options[:project]
86 s = h("#{issue.project} - ") + s if options[:project]
87 s
87 s
88 end
88 end
89
89
90 # Generates a link to an attachment.
90 # Generates a link to an attachment.
91 # Options:
91 # Options:
92 # * :text - Link text (default to attachment filename)
92 # * :text - Link text (default to attachment filename)
93 # * :download - Force download (default: false)
93 # * :download - Force download (default: false)
94 def link_to_attachment(attachment, options={})
94 def link_to_attachment(attachment, options={})
95 text = options.delete(:text) || attachment.filename
95 text = options.delete(:text) || attachment.filename
96 route_method = options.delete(:download) ? :download_named_attachment_path : :named_attachment_path
96 route_method = options.delete(:download) ? :download_named_attachment_path : :named_attachment_path
97 html_options = options.slice!(:only_path)
97 html_options = options.slice!(:only_path)
98 url = send(route_method, attachment, attachment.filename, options)
98 url = send(route_method, attachment, attachment.filename, options)
99 link_to text, url, html_options
99 link_to text, url, html_options
100 end
100 end
101
101
102 # Generates a link to a SCM revision
102 # Generates a link to a SCM revision
103 # Options:
103 # Options:
104 # * :text - Link text (default to the formatted revision)
104 # * :text - Link text (default to the formatted revision)
105 def link_to_revision(revision, repository, options={})
105 def link_to_revision(revision, repository, options={})
106 if repository.is_a?(Project)
106 if repository.is_a?(Project)
107 repository = repository.repository
107 repository = repository.repository
108 end
108 end
109 text = options.delete(:text) || format_revision(revision)
109 text = options.delete(:text) || format_revision(revision)
110 rev = revision.respond_to?(:identifier) ? revision.identifier : revision
110 rev = revision.respond_to?(:identifier) ? revision.identifier : revision
111 link_to(
111 link_to(
112 h(text),
112 h(text),
113 {:controller => 'repositories', :action => 'revision', :id => repository.project, :repository_id => repository.identifier_param, :rev => rev},
113 {:controller => 'repositories', :action => 'revision', :id => repository.project, :repository_id => repository.identifier_param, :rev => rev},
114 :title => l(:label_revision_id, format_revision(revision))
114 :title => l(:label_revision_id, format_revision(revision))
115 )
115 )
116 end
116 end
117
117
118 # Generates a link to a message
118 # Generates a link to a message
119 def link_to_message(message, options={}, html_options = nil)
119 def link_to_message(message, options={}, html_options = nil)
120 link_to(
120 link_to(
121 message.subject.truncate(60),
121 message.subject.truncate(60),
122 board_message_path(message.board_id, message.parent_id || message.id, {
122 board_message_path(message.board_id, message.parent_id || message.id, {
123 :r => (message.parent_id && message.id),
123 :r => (message.parent_id && message.id),
124 :anchor => (message.parent_id ? "message-#{message.id}" : nil)
124 :anchor => (message.parent_id ? "message-#{message.id}" : nil)
125 }.merge(options)),
125 }.merge(options)),
126 html_options
126 html_options
127 )
127 )
128 end
128 end
129
129
130 # Generates a link to a project if active
130 # Generates a link to a project if active
131 # Examples:
131 # Examples:
132 #
132 #
133 # link_to_project(project) # => link to the specified project overview
133 # link_to_project(project) # => link to the specified project overview
134 # link_to_project(project, {:only_path => false}, :class => "project") # => 3rd arg adds html options
134 # link_to_project(project, {:only_path => false}, :class => "project") # => 3rd arg adds html options
135 # link_to_project(project, {}, :class => "project") # => html options with default url (project overview)
135 # link_to_project(project, {}, :class => "project") # => html options with default url (project overview)
136 #
136 #
137 def link_to_project(project, options={}, html_options = nil)
137 def link_to_project(project, options={}, html_options = nil)
138 if project.archived?
138 if project.archived?
139 h(project.name)
139 h(project.name)
140 elsif options.key?(:action)
140 elsif options.key?(:action)
141 ActiveSupport::Deprecation.warn "#link_to_project with :action option is deprecated and will be removed in Redmine 3.0."
141 ActiveSupport::Deprecation.warn "#link_to_project with :action option is deprecated and will be removed in Redmine 3.0."
142 url = {:controller => 'projects', :action => 'show', :id => project}.merge(options)
142 url = {:controller => 'projects', :action => 'show', :id => project}.merge(options)
143 link_to project.name, url, html_options
143 link_to project.name, url, html_options
144 else
144 else
145 link_to project.name, project_path(project, options), html_options
145 link_to project.name, project_path(project, options), html_options
146 end
146 end
147 end
147 end
148
148
149 # Generates a link to a project settings if active
149 # Generates a link to a project settings if active
150 def link_to_project_settings(project, options={}, html_options=nil)
150 def link_to_project_settings(project, options={}, html_options=nil)
151 if project.active?
151 if project.active?
152 link_to project.name, settings_project_path(project, options), html_options
152 link_to project.name, settings_project_path(project, options), html_options
153 elsif project.archived?
153 elsif project.archived?
154 h(project.name)
154 h(project.name)
155 else
155 else
156 link_to project.name, project_path(project, options), html_options
156 link_to project.name, project_path(project, options), html_options
157 end
157 end
158 end
158 end
159
159
160 # Helper that formats object for html or text rendering
160 # Helper that formats object for html or text rendering
161 def format_object(object, html=true)
161 def format_object(object, html=true)
162 case object.class.name
162 case object.class.name
163 when 'Array'
163 when 'Array'
164 object.map {|o| format_object(o, html)}.join(', ').html_safe
164 object.map {|o| format_object(o, html)}.join(', ').html_safe
165 when 'Time'
165 when 'Time'
166 format_time(object)
166 format_time(object)
167 when 'Date'
167 when 'Date'
168 format_date(object)
168 format_date(object)
169 when 'Fixnum'
169 when 'Fixnum'
170 object.to_s
170 object.to_s
171 when 'Float'
171 when 'Float'
172 sprintf "%.2f", object
172 sprintf "%.2f", object
173 when 'User'
173 when 'User'
174 html ? link_to_user(object) : object.to_s
174 html ? link_to_user(object) : object.to_s
175 when 'Project'
175 when 'Project'
176 html ? link_to_project(object) : object.to_s
176 html ? link_to_project(object) : object.to_s
177 when 'Version'
177 when 'Version'
178 html ? link_to(object.name, version_path(object)) : object.to_s
178 html ? link_to(object.name, version_path(object)) : object.to_s
179 when 'TrueClass'
179 when 'TrueClass'
180 l(:general_text_Yes)
180 l(:general_text_Yes)
181 when 'FalseClass'
181 when 'FalseClass'
182 l(:general_text_No)
182 l(:general_text_No)
183 when 'Issue'
183 when 'Issue'
184 object.visible? && html ? link_to_issue(object) : "##{object.id}"
184 object.visible? && html ? link_to_issue(object) : "##{object.id}"
185 when 'CustomValue', 'CustomFieldValue'
185 when 'CustomValue', 'CustomFieldValue'
186 if object.custom_field
186 if object.custom_field
187 f = object.custom_field.format.formatted_custom_value(self, object, html)
187 f = object.custom_field.format.formatted_custom_value(self, object, html)
188 if f.nil? || f.is_a?(String)
188 if f.nil? || f.is_a?(String)
189 f
189 f
190 else
190 else
191 format_object(f, html)
191 format_object(f, html)
192 end
192 end
193 else
193 else
194 object.value.to_s
194 object.value.to_s
195 end
195 end
196 else
196 else
197 html ? h(object) : object.to_s
197 html ? h(object) : object.to_s
198 end
198 end
199 end
199 end
200
200
201 def wiki_page_path(page, options={})
201 def wiki_page_path(page, options={})
202 url_for({:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title}.merge(options))
202 url_for({:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title}.merge(options))
203 end
203 end
204
204
205 def thumbnail_tag(attachment)
205 def thumbnail_tag(attachment)
206 link_to image_tag(thumbnail_path(attachment)),
206 link_to image_tag(thumbnail_path(attachment)),
207 named_attachment_path(attachment, attachment.filename),
207 named_attachment_path(attachment, attachment.filename),
208 :title => attachment.filename
208 :title => attachment.filename
209 end
209 end
210
210
211 def toggle_link(name, id, options={})
211 def toggle_link(name, id, options={})
212 onclick = "$('##{id}').toggle(); "
212 onclick = "$('##{id}').toggle(); "
213 onclick << (options[:focus] ? "$('##{options[:focus]}').focus(); " : "this.blur(); ")
213 onclick << (options[:focus] ? "$('##{options[:focus]}').focus(); " : "this.blur(); ")
214 onclick << "return false;"
214 onclick << "return false;"
215 link_to(name, "#", :onclick => onclick)
215 link_to(name, "#", :onclick => onclick)
216 end
216 end
217
217
218 def image_to_function(name, function, html_options = {})
218 def image_to_function(name, function, html_options = {})
219 html_options.symbolize_keys!
219 html_options.symbolize_keys!
220 tag(:input, html_options.merge({
220 tag(:input, html_options.merge({
221 :type => "image", :src => image_path(name),
221 :type => "image", :src => image_path(name),
222 :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
222 :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
223 }))
223 }))
224 end
224 end
225
225
226 def format_activity_title(text)
226 def format_activity_title(text)
227 h(truncate_single_line_raw(text, 100))
227 h(truncate_single_line_raw(text, 100))
228 end
228 end
229
229
230 def format_activity_day(date)
230 def format_activity_day(date)
231 date == User.current.today ? l(:label_today).titleize : format_date(date)
231 date == User.current.today ? l(:label_today).titleize : format_date(date)
232 end
232 end
233
233
234 def format_activity_description(text)
234 def format_activity_description(text)
235 h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')
235 h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')
236 ).gsub(/[\r\n]+/, "<br />").html_safe
236 ).gsub(/[\r\n]+/, "<br />").html_safe
237 end
237 end
238
238
239 def format_version_name(version)
239 def format_version_name(version)
240 if version.project == @project
240 if version.project == @project
241 h(version)
241 h(version)
242 else
242 else
243 h("#{version.project} - #{version}")
243 h("#{version.project} - #{version}")
244 end
244 end
245 end
245 end
246
246
247 def due_date_distance_in_words(date)
247 def due_date_distance_in_words(date)
248 if date
248 if date
249 l((date < Date.today ? :label_roadmap_overdue : :label_roadmap_due_in), distance_of_date_in_words(Date.today, date))
249 l((date < Date.today ? :label_roadmap_overdue : :label_roadmap_due_in), distance_of_date_in_words(Date.today, date))
250 end
250 end
251 end
251 end
252
252
253 # Renders a tree of projects as a nested set of unordered lists
253 # Renders a tree of projects as a nested set of unordered lists
254 # The given collection may be a subset of the whole project tree
254 # The given collection may be a subset of the whole project tree
255 # (eg. some intermediate nodes are private and can not be seen)
255 # (eg. some intermediate nodes are private and can not be seen)
256 def render_project_nested_lists(projects)
256 def render_project_nested_lists(projects)
257 s = ''
257 s = ''
258 if projects.any?
258 if projects.any?
259 ancestors = []
259 ancestors = []
260 original_project = @project
260 original_project = @project
261 projects.sort_by(&:lft).each do |project|
261 projects.sort_by(&:lft).each do |project|
262 # set the project environment to please macros.
262 # set the project environment to please macros.
263 @project = project
263 @project = project
264 if (ancestors.empty? || project.is_descendant_of?(ancestors.last))
264 if (ancestors.empty? || project.is_descendant_of?(ancestors.last))
265 s << "<ul class='projects #{ ancestors.empty? ? 'root' : nil}'>\n"
265 s << "<ul class='projects #{ ancestors.empty? ? 'root' : nil}'>\n"
266 else
266 else
267 ancestors.pop
267 ancestors.pop
268 s << "</li>"
268 s << "</li>"
269 while (ancestors.any? && !project.is_descendant_of?(ancestors.last))
269 while (ancestors.any? && !project.is_descendant_of?(ancestors.last))
270 ancestors.pop
270 ancestors.pop
271 s << "</ul></li>\n"
271 s << "</ul></li>\n"
272 end
272 end
273 end
273 end
274 classes = (ancestors.empty? ? 'root' : 'child')
274 classes = (ancestors.empty? ? 'root' : 'child')
275 s << "<li class='#{classes}'><div class='#{classes}'>"
275 s << "<li class='#{classes}'><div class='#{classes}'>"
276 s << h(block_given? ? yield(project) : project.name)
276 s << h(block_given? ? yield(project) : project.name)
277 s << "</div>\n"
277 s << "</div>\n"
278 ancestors << project
278 ancestors << project
279 end
279 end
280 s << ("</li></ul>\n" * ancestors.size)
280 s << ("</li></ul>\n" * ancestors.size)
281 @project = original_project
281 @project = original_project
282 end
282 end
283 s.html_safe
283 s.html_safe
284 end
284 end
285
285
286 def render_page_hierarchy(pages, node=nil, options={})
286 def render_page_hierarchy(pages, node=nil, options={})
287 content = ''
287 content = ''
288 if pages[node]
288 if pages[node]
289 content << "<ul class=\"pages-hierarchy\">\n"
289 content << "<ul class=\"pages-hierarchy\">\n"
290 pages[node].each do |page|
290 pages[node].each do |page|
291 content << "<li>"
291 content << "<li>"
292 content << link_to(h(page.pretty_title), {:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title, :version => nil},
292 content << link_to(h(page.pretty_title), {:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title, :version => nil},
293 :title => (options[:timestamp] && page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil))
293 :title => (options[:timestamp] && page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil))
294 content << "\n" + render_page_hierarchy(pages, page.id, options) if pages[page.id]
294 content << "\n" + render_page_hierarchy(pages, page.id, options) if pages[page.id]
295 content << "</li>\n"
295 content << "</li>\n"
296 end
296 end
297 content << "</ul>\n"
297 content << "</ul>\n"
298 end
298 end
299 content.html_safe
299 content.html_safe
300 end
300 end
301
301
302 # Renders flash messages
302 # Renders flash messages
303 def render_flash_messages
303 def render_flash_messages
304 s = ''
304 s = ''
305 flash.each do |k,v|
305 flash.each do |k,v|
306 s << content_tag('div', v.html_safe, :class => "flash #{k}", :id => "flash_#{k}")
306 s << content_tag('div', v.html_safe, :class => "flash #{k}", :id => "flash_#{k}")
307 end
307 end
308 s.html_safe
308 s.html_safe
309 end
309 end
310
310
311 # Renders tabs and their content
311 # Renders tabs and their content
312 def render_tabs(tabs)
312 def render_tabs(tabs, selected=params[:tab])
313 if tabs.any?
313 if tabs.any?
314 render :partial => 'common/tabs', :locals => {:tabs => tabs}
314 unless tabs.detect {|tab| tab[:name] == selected}
315 selected = nil
316 end
317 selected ||= tabs.first[:name]
318 render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => selected}
315 else
319 else
316 content_tag 'p', l(:label_no_data), :class => "nodata"
320 content_tag 'p', l(:label_no_data), :class => "nodata"
317 end
321 end
318 end
322 end
319
323
320 # Renders the project quick-jump box
324 # Renders the project quick-jump box
321 def render_project_jump_box
325 def render_project_jump_box
322 return unless User.current.logged?
326 return unless User.current.logged?
323 projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq
327 projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq
324 if projects.any?
328 if projects.any?
325 options =
329 options =
326 ("<option value=''>#{ l(:label_jump_to_a_project) }</option>" +
330 ("<option value=''>#{ l(:label_jump_to_a_project) }</option>" +
327 '<option value="" disabled="disabled">---</option>').html_safe
331 '<option value="" disabled="disabled">---</option>').html_safe
328
332
329 options << project_tree_options_for_select(projects, :selected => @project) do |p|
333 options << project_tree_options_for_select(projects, :selected => @project) do |p|
330 { :value => project_path(:id => p, :jump => current_menu_item) }
334 { :value => project_path(:id => p, :jump => current_menu_item) }
331 end
335 end
332
336
333 select_tag('project_quick_jump_box', options, :onchange => 'if (this.value != \'\') { window.location = this.value; }')
337 select_tag('project_quick_jump_box', options, :onchange => 'if (this.value != \'\') { window.location = this.value; }')
334 end
338 end
335 end
339 end
336
340
337 def project_tree_options_for_select(projects, options = {})
341 def project_tree_options_for_select(projects, options = {})
338 s = ''
342 s = ''
339 project_tree(projects) do |project, level|
343 project_tree(projects) do |project, level|
340 name_prefix = (level > 0 ? '&nbsp;' * 2 * level + '&#187; ' : '').html_safe
344 name_prefix = (level > 0 ? '&nbsp;' * 2 * level + '&#187; ' : '').html_safe
341 tag_options = {:value => project.id}
345 tag_options = {:value => project.id}
342 if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project))
346 if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project))
343 tag_options[:selected] = 'selected'
347 tag_options[:selected] = 'selected'
344 else
348 else
345 tag_options[:selected] = nil
349 tag_options[:selected] = nil
346 end
350 end
347 tag_options.merge!(yield(project)) if block_given?
351 tag_options.merge!(yield(project)) if block_given?
348 s << content_tag('option', name_prefix + h(project), tag_options)
352 s << content_tag('option', name_prefix + h(project), tag_options)
349 end
353 end
350 s.html_safe
354 s.html_safe
351 end
355 end
352
356
353 # Yields the given block for each project with its level in the tree
357 # Yields the given block for each project with its level in the tree
354 #
358 #
355 # Wrapper for Project#project_tree
359 # Wrapper for Project#project_tree
356 def project_tree(projects, &block)
360 def project_tree(projects, &block)
357 Project.project_tree(projects, &block)
361 Project.project_tree(projects, &block)
358 end
362 end
359
363
360 def principals_check_box_tags(name, principals)
364 def principals_check_box_tags(name, principals)
361 s = ''
365 s = ''
362 principals.each do |principal|
366 principals.each do |principal|
363 s << "<label>#{ check_box_tag name, principal.id, false, :id => nil } #{h principal}</label>\n"
367 s << "<label>#{ check_box_tag name, principal.id, false, :id => nil } #{h principal}</label>\n"
364 end
368 end
365 s.html_safe
369 s.html_safe
366 end
370 end
367
371
368 # Returns a string for users/groups option tags
372 # Returns a string for users/groups option tags
369 def principals_options_for_select(collection, selected=nil)
373 def principals_options_for_select(collection, selected=nil)
370 s = ''
374 s = ''
371 if collection.include?(User.current)
375 if collection.include?(User.current)
372 s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id)
376 s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id)
373 end
377 end
374 groups = ''
378 groups = ''
375 collection.sort.each do |element|
379 collection.sort.each do |element|
376 selected_attribute = ' selected="selected"' if option_value_selected?(element, selected) || element.id.to_s == selected
380 selected_attribute = ' selected="selected"' if option_value_selected?(element, selected) || element.id.to_s == selected
377 (element.is_a?(Group) ? groups : s) << %(<option value="#{element.id}"#{selected_attribute}>#{h element.name}</option>)
381 (element.is_a?(Group) ? groups : s) << %(<option value="#{element.id}"#{selected_attribute}>#{h element.name}</option>)
378 end
382 end
379 unless groups.empty?
383 unless groups.empty?
380 s << %(<optgroup label="#{h(l(:label_group_plural))}">#{groups}</optgroup>)
384 s << %(<optgroup label="#{h(l(:label_group_plural))}">#{groups}</optgroup>)
381 end
385 end
382 s.html_safe
386 s.html_safe
383 end
387 end
384
388
385 # Options for the new membership projects combo-box
389 # Options for the new membership projects combo-box
386 def options_for_membership_project_select(principal, projects)
390 def options_for_membership_project_select(principal, projects)
387 options = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---")
391 options = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---")
388 options << project_tree_options_for_select(projects) do |p|
392 options << project_tree_options_for_select(projects) do |p|
389 {:disabled => principal.projects.to_a.include?(p)}
393 {:disabled => principal.projects.to_a.include?(p)}
390 end
394 end
391 options
395 options
392 end
396 end
393
397
394 def option_tag(name, text, value, selected=nil, options={})
398 def option_tag(name, text, value, selected=nil, options={})
395 content_tag 'option', value, options.merge(:value => value, :selected => (value == selected))
399 content_tag 'option', value, options.merge(:value => value, :selected => (value == selected))
396 end
400 end
397
401
398 # Truncates and returns the string as a single line
402 # Truncates and returns the string as a single line
399 def truncate_single_line(string, *args)
403 def truncate_single_line(string, *args)
400 ActiveSupport::Deprecation.warn(
404 ActiveSupport::Deprecation.warn(
401 "ApplicationHelper#truncate_single_line is deprecated and will be removed in Rails 4 poring")
405 "ApplicationHelper#truncate_single_line is deprecated and will be removed in Rails 4 poring")
402 # Rails 4 ActionView::Helpers::TextHelper#truncate escapes.
406 # Rails 4 ActionView::Helpers::TextHelper#truncate escapes.
403 # So, result is broken.
407 # So, result is broken.
404 truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
408 truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
405 end
409 end
406
410
407 def truncate_single_line_raw(string, length)
411 def truncate_single_line_raw(string, length)
408 string.truncate(length).gsub(%r{[\r\n]+}m, ' ')
412 string.truncate(length).gsub(%r{[\r\n]+}m, ' ')
409 end
413 end
410
414
411 # Truncates at line break after 250 characters or options[:length]
415 # Truncates at line break after 250 characters or options[:length]
412 def truncate_lines(string, options={})
416 def truncate_lines(string, options={})
413 length = options[:length] || 250
417 length = options[:length] || 250
414 if string.to_s =~ /\A(.{#{length}}.*?)$/m
418 if string.to_s =~ /\A(.{#{length}}.*?)$/m
415 "#{$1}..."
419 "#{$1}..."
416 else
420 else
417 string
421 string
418 end
422 end
419 end
423 end
420
424
421 def anchor(text)
425 def anchor(text)
422 text.to_s.gsub(' ', '_')
426 text.to_s.gsub(' ', '_')
423 end
427 end
424
428
425 def html_hours(text)
429 def html_hours(text)
426 text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>').html_safe
430 text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>').html_safe
427 end
431 end
428
432
429 def authoring(created, author, options={})
433 def authoring(created, author, options={})
430 l(options[:label] || :label_added_time_by, :author => link_to_user(author), :age => time_tag(created)).html_safe
434 l(options[:label] || :label_added_time_by, :author => link_to_user(author), :age => time_tag(created)).html_safe
431 end
435 end
432
436
433 def time_tag(time)
437 def time_tag(time)
434 text = distance_of_time_in_words(Time.now, time)
438 text = distance_of_time_in_words(Time.now, time)
435 if @project
439 if @project
436 link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)}, :title => format_time(time))
440 link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)}, :title => format_time(time))
437 else
441 else
438 content_tag('abbr', text, :title => format_time(time))
442 content_tag('abbr', text, :title => format_time(time))
439 end
443 end
440 end
444 end
441
445
442 def syntax_highlight_lines(name, content)
446 def syntax_highlight_lines(name, content)
443 lines = []
447 lines = []
444 syntax_highlight(name, content).each_line { |line| lines << line }
448 syntax_highlight(name, content).each_line { |line| lines << line }
445 lines
449 lines
446 end
450 end
447
451
448 def syntax_highlight(name, content)
452 def syntax_highlight(name, content)
449 Redmine::SyntaxHighlighting.highlight_by_filename(content, name)
453 Redmine::SyntaxHighlighting.highlight_by_filename(content, name)
450 end
454 end
451
455
452 def to_path_param(path)
456 def to_path_param(path)
453 str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
457 str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
454 str.blank? ? nil : str
458 str.blank? ? nil : str
455 end
459 end
456
460
457 def reorder_links(name, url, method = :post)
461 def reorder_links(name, url, method = :post)
458 link_to(image_tag('2uparrow.png', :alt => l(:label_sort_highest)),
462 link_to(image_tag('2uparrow.png', :alt => l(:label_sort_highest)),
459 url.merge({"#{name}[move_to]" => 'highest'}),
463 url.merge({"#{name}[move_to]" => 'highest'}),
460 :method => method, :title => l(:label_sort_highest)) +
464 :method => method, :title => l(:label_sort_highest)) +
461 link_to(image_tag('1uparrow.png', :alt => l(:label_sort_higher)),
465 link_to(image_tag('1uparrow.png', :alt => l(:label_sort_higher)),
462 url.merge({"#{name}[move_to]" => 'higher'}),
466 url.merge({"#{name}[move_to]" => 'higher'}),
463 :method => method, :title => l(:label_sort_higher)) +
467 :method => method, :title => l(:label_sort_higher)) +
464 link_to(image_tag('1downarrow.png', :alt => l(:label_sort_lower)),
468 link_to(image_tag('1downarrow.png', :alt => l(:label_sort_lower)),
465 url.merge({"#{name}[move_to]" => 'lower'}),
469 url.merge({"#{name}[move_to]" => 'lower'}),
466 :method => method, :title => l(:label_sort_lower)) +
470 :method => method, :title => l(:label_sort_lower)) +
467 link_to(image_tag('2downarrow.png', :alt => l(:label_sort_lowest)),
471 link_to(image_tag('2downarrow.png', :alt => l(:label_sort_lowest)),
468 url.merge({"#{name}[move_to]" => 'lowest'}),
472 url.merge({"#{name}[move_to]" => 'lowest'}),
469 :method => method, :title => l(:label_sort_lowest))
473 :method => method, :title => l(:label_sort_lowest))
470 end
474 end
471
475
472 def breadcrumb(*args)
476 def breadcrumb(*args)
473 elements = args.flatten
477 elements = args.flatten
474 elements.any? ? content_tag('p', (args.join(" \xc2\xbb ") + " \xc2\xbb ").html_safe, :class => 'breadcrumb') : nil
478 elements.any? ? content_tag('p', (args.join(" \xc2\xbb ") + " \xc2\xbb ").html_safe, :class => 'breadcrumb') : nil
475 end
479 end
476
480
477 def other_formats_links(&block)
481 def other_formats_links(&block)
478 concat('<p class="other-formats">'.html_safe + l(:label_export_to))
482 concat('<p class="other-formats">'.html_safe + l(:label_export_to))
479 yield Redmine::Views::OtherFormatsBuilder.new(self)
483 yield Redmine::Views::OtherFormatsBuilder.new(self)
480 concat('</p>'.html_safe)
484 concat('</p>'.html_safe)
481 end
485 end
482
486
483 def page_header_title
487 def page_header_title
484 if @project.nil? || @project.new_record?
488 if @project.nil? || @project.new_record?
485 h(Setting.app_title)
489 h(Setting.app_title)
486 else
490 else
487 b = []
491 b = []
488 ancestors = (@project.root? ? [] : @project.ancestors.visible.all)
492 ancestors = (@project.root? ? [] : @project.ancestors.visible.all)
489 if ancestors.any?
493 if ancestors.any?
490 root = ancestors.shift
494 root = ancestors.shift
491 b << link_to_project(root, {:jump => current_menu_item}, :class => 'root')
495 b << link_to_project(root, {:jump => current_menu_item}, :class => 'root')
492 if ancestors.size > 2
496 if ancestors.size > 2
493 b << "\xe2\x80\xa6"
497 b << "\xe2\x80\xa6"
494 ancestors = ancestors[-2, 2]
498 ancestors = ancestors[-2, 2]
495 end
499 end
496 b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') }
500 b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') }
497 end
501 end
498 b << h(@project)
502 b << h(@project)
499 b.join(" \xc2\xbb ").html_safe
503 b.join(" \xc2\xbb ").html_safe
500 end
504 end
501 end
505 end
502
506
503 # Returns a h2 tag and sets the html title with the given arguments
507 # Returns a h2 tag and sets the html title with the given arguments
504 def title(*args)
508 def title(*args)
505 strings = args.map do |arg|
509 strings = args.map do |arg|
506 if arg.is_a?(Array) && arg.size >= 2
510 if arg.is_a?(Array) && arg.size >= 2
507 link_to(*arg)
511 link_to(*arg)
508 else
512 else
509 h(arg.to_s)
513 h(arg.to_s)
510 end
514 end
511 end
515 end
512 html_title args.reverse.map {|s| (s.is_a?(Array) ? s.first : s).to_s}
516 html_title args.reverse.map {|s| (s.is_a?(Array) ? s.first : s).to_s}
513 content_tag('h2', strings.join(' &#187; ').html_safe)
517 content_tag('h2', strings.join(' &#187; ').html_safe)
514 end
518 end
515
519
516 # Sets the html title
520 # Sets the html title
517 # Returns the html title when called without arguments
521 # Returns the html title when called without arguments
518 # Current project name and app_title and automatically appended
522 # Current project name and app_title and automatically appended
519 # Exemples:
523 # Exemples:
520 # html_title 'Foo', 'Bar'
524 # html_title 'Foo', 'Bar'
521 # html_title # => 'Foo - Bar - My Project - Redmine'
525 # html_title # => 'Foo - Bar - My Project - Redmine'
522 def html_title(*args)
526 def html_title(*args)
523 if args.empty?
527 if args.empty?
524 title = @html_title || []
528 title = @html_title || []
525 title << @project.name if @project
529 title << @project.name if @project
526 title << Setting.app_title unless Setting.app_title == title.last
530 title << Setting.app_title unless Setting.app_title == title.last
527 title.reject(&:blank?).join(' - ')
531 title.reject(&:blank?).join(' - ')
528 else
532 else
529 @html_title ||= []
533 @html_title ||= []
530 @html_title += args
534 @html_title += args
531 end
535 end
532 end
536 end
533
537
534 # Returns the theme, controller name, and action as css classes for the
538 # Returns the theme, controller name, and action as css classes for the
535 # HTML body.
539 # HTML body.
536 def body_css_classes
540 def body_css_classes
537 css = []
541 css = []
538 if theme = Redmine::Themes.theme(Setting.ui_theme)
542 if theme = Redmine::Themes.theme(Setting.ui_theme)
539 css << 'theme-' + theme.name
543 css << 'theme-' + theme.name
540 end
544 end
541
545
542 css << 'project-' + @project.identifier if @project && @project.identifier.present?
546 css << 'project-' + @project.identifier if @project && @project.identifier.present?
543 css << 'controller-' + controller_name
547 css << 'controller-' + controller_name
544 css << 'action-' + action_name
548 css << 'action-' + action_name
545 css.join(' ')
549 css.join(' ')
546 end
550 end
547
551
548 def accesskey(s)
552 def accesskey(s)
549 @used_accesskeys ||= []
553 @used_accesskeys ||= []
550 key = Redmine::AccessKeys.key_for(s)
554 key = Redmine::AccessKeys.key_for(s)
551 return nil if @used_accesskeys.include?(key)
555 return nil if @used_accesskeys.include?(key)
552 @used_accesskeys << key
556 @used_accesskeys << key
553 key
557 key
554 end
558 end
555
559
556 # Formats text according to system settings.
560 # Formats text according to system settings.
557 # 2 ways to call this method:
561 # 2 ways to call this method:
558 # * with a String: textilizable(text, options)
562 # * with a String: textilizable(text, options)
559 # * with an object and one of its attribute: textilizable(issue, :description, options)
563 # * with an object and one of its attribute: textilizable(issue, :description, options)
560 def textilizable(*args)
564 def textilizable(*args)
561 options = args.last.is_a?(Hash) ? args.pop : {}
565 options = args.last.is_a?(Hash) ? args.pop : {}
562 case args.size
566 case args.size
563 when 1
567 when 1
564 obj = options[:object]
568 obj = options[:object]
565 text = args.shift
569 text = args.shift
566 when 2
570 when 2
567 obj = args.shift
571 obj = args.shift
568 attr = args.shift
572 attr = args.shift
569 text = obj.send(attr).to_s
573 text = obj.send(attr).to_s
570 else
574 else
571 raise ArgumentError, 'invalid arguments to textilizable'
575 raise ArgumentError, 'invalid arguments to textilizable'
572 end
576 end
573 return '' if text.blank?
577 return '' if text.blank?
574 project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil)
578 project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil)
575 only_path = options.delete(:only_path) == false ? false : true
579 only_path = options.delete(:only_path) == false ? false : true
576
580
577 text = text.dup
581 text = text.dup
578 macros = catch_macros(text)
582 macros = catch_macros(text)
579 text = Redmine::WikiFormatting.to_html(Setting.text_formatting, text, :object => obj, :attribute => attr)
583 text = Redmine::WikiFormatting.to_html(Setting.text_formatting, text, :object => obj, :attribute => attr)
580
584
581 @parsed_headings = []
585 @parsed_headings = []
582 @heading_anchors = {}
586 @heading_anchors = {}
583 @current_section = 0 if options[:edit_section_links]
587 @current_section = 0 if options[:edit_section_links]
584
588
585 parse_sections(text, project, obj, attr, only_path, options)
589 parse_sections(text, project, obj, attr, only_path, options)
586 text = parse_non_pre_blocks(text, obj, macros) do |text|
590 text = parse_non_pre_blocks(text, obj, macros) do |text|
587 [:parse_inline_attachments, :parse_wiki_links, :parse_redmine_links].each do |method_name|
591 [:parse_inline_attachments, :parse_wiki_links, :parse_redmine_links].each do |method_name|
588 send method_name, text, project, obj, attr, only_path, options
592 send method_name, text, project, obj, attr, only_path, options
589 end
593 end
590 end
594 end
591 parse_headings(text, project, obj, attr, only_path, options)
595 parse_headings(text, project, obj, attr, only_path, options)
592
596
593 if @parsed_headings.any?
597 if @parsed_headings.any?
594 replace_toc(text, @parsed_headings)
598 replace_toc(text, @parsed_headings)
595 end
599 end
596
600
597 text.html_safe
601 text.html_safe
598 end
602 end
599
603
600 def parse_non_pre_blocks(text, obj, macros)
604 def parse_non_pre_blocks(text, obj, macros)
601 s = StringScanner.new(text)
605 s = StringScanner.new(text)
602 tags = []
606 tags = []
603 parsed = ''
607 parsed = ''
604 while !s.eos?
608 while !s.eos?
605 s.scan(/(.*?)(<(\/)?(pre|code)(.*?)>|\z)/im)
609 s.scan(/(.*?)(<(\/)?(pre|code)(.*?)>|\z)/im)
606 text, full_tag, closing, tag = s[1], s[2], s[3], s[4]
610 text, full_tag, closing, tag = s[1], s[2], s[3], s[4]
607 if tags.empty?
611 if tags.empty?
608 yield text
612 yield text
609 inject_macros(text, obj, macros) if macros.any?
613 inject_macros(text, obj, macros) if macros.any?
610 else
614 else
611 inject_macros(text, obj, macros, false) if macros.any?
615 inject_macros(text, obj, macros, false) if macros.any?
612 end
616 end
613 parsed << text
617 parsed << text
614 if tag
618 if tag
615 if closing
619 if closing
616 if tags.last == tag.downcase
620 if tags.last == tag.downcase
617 tags.pop
621 tags.pop
618 end
622 end
619 else
623 else
620 tags << tag.downcase
624 tags << tag.downcase
621 end
625 end
622 parsed << full_tag
626 parsed << full_tag
623 end
627 end
624 end
628 end
625 # Close any non closing tags
629 # Close any non closing tags
626 while tag = tags.pop
630 while tag = tags.pop
627 parsed << "</#{tag}>"
631 parsed << "</#{tag}>"
628 end
632 end
629 parsed
633 parsed
630 end
634 end
631
635
632 def parse_inline_attachments(text, project, obj, attr, only_path, options)
636 def parse_inline_attachments(text, project, obj, attr, only_path, options)
633 # when using an image link, try to use an attachment, if possible
637 # when using an image link, try to use an attachment, if possible
634 attachments = options[:attachments] || []
638 attachments = options[:attachments] || []
635 attachments += obj.attachments if obj.respond_to?(:attachments)
639 attachments += obj.attachments if obj.respond_to?(:attachments)
636 if attachments.present?
640 if attachments.present?
637 text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m|
641 text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m|
638 filename, ext, alt, alttext = $1.downcase, $2, $3, $4
642 filename, ext, alt, alttext = $1.downcase, $2, $3, $4
639 # search for the picture in attachments
643 # search for the picture in attachments
640 if found = Attachment.latest_attach(attachments, filename)
644 if found = Attachment.latest_attach(attachments, filename)
641 image_url = download_named_attachment_path(found, found.filename, :only_path => only_path)
645 image_url = download_named_attachment_path(found, found.filename, :only_path => only_path)
642 desc = found.description.to_s.gsub('"', '')
646 desc = found.description.to_s.gsub('"', '')
643 if !desc.blank? && alttext.blank?
647 if !desc.blank? && alttext.blank?
644 alt = " title=\"#{desc}\" alt=\"#{desc}\""
648 alt = " title=\"#{desc}\" alt=\"#{desc}\""
645 end
649 end
646 "src=\"#{image_url}\"#{alt}"
650 "src=\"#{image_url}\"#{alt}"
647 else
651 else
648 m
652 m
649 end
653 end
650 end
654 end
651 end
655 end
652 end
656 end
653
657
654 # Wiki links
658 # Wiki links
655 #
659 #
656 # Examples:
660 # Examples:
657 # [[mypage]]
661 # [[mypage]]
658 # [[mypage|mytext]]
662 # [[mypage|mytext]]
659 # wiki links can refer other project wikis, using project name or identifier:
663 # wiki links can refer other project wikis, using project name or identifier:
660 # [[project:]] -> wiki starting page
664 # [[project:]] -> wiki starting page
661 # [[project:|mytext]]
665 # [[project:|mytext]]
662 # [[project:mypage]]
666 # [[project:mypage]]
663 # [[project:mypage|mytext]]
667 # [[project:mypage|mytext]]
664 def parse_wiki_links(text, project, obj, attr, only_path, options)
668 def parse_wiki_links(text, project, obj, attr, only_path, options)
665 text.gsub!(/(!)?(\[\[([^\]\n\|]+)(\|([^\]\n\|]+))?\]\])/) do |m|
669 text.gsub!(/(!)?(\[\[([^\]\n\|]+)(\|([^\]\n\|]+))?\]\])/) do |m|
666 link_project = project
670 link_project = project
667 esc, all, page, title = $1, $2, $3, $5
671 esc, all, page, title = $1, $2, $3, $5
668 if esc.nil?
672 if esc.nil?
669 if page =~ /^([^\:]+)\:(.*)$/
673 if page =~ /^([^\:]+)\:(.*)$/
670 identifier, page = $1, $2
674 identifier, page = $1, $2
671 link_project = Project.find_by_identifier(identifier) || Project.find_by_name(identifier)
675 link_project = Project.find_by_identifier(identifier) || Project.find_by_name(identifier)
672 title ||= identifier if page.blank?
676 title ||= identifier if page.blank?
673 end
677 end
674
678
675 if link_project && link_project.wiki
679 if link_project && link_project.wiki
676 # extract anchor
680 # extract anchor
677 anchor = nil
681 anchor = nil
678 if page =~ /^(.+?)\#(.+)$/
682 if page =~ /^(.+?)\#(.+)$/
679 page, anchor = $1, $2
683 page, anchor = $1, $2
680 end
684 end
681 anchor = sanitize_anchor_name(anchor) if anchor.present?
685 anchor = sanitize_anchor_name(anchor) if anchor.present?
682 # check if page exists
686 # check if page exists
683 wiki_page = link_project.wiki.find_page(page)
687 wiki_page = link_project.wiki.find_page(page)
684 url = if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) && obj.page == wiki_page
688 url = if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) && obj.page == wiki_page
685 "##{anchor}"
689 "##{anchor}"
686 else
690 else
687 case options[:wiki_links]
691 case options[:wiki_links]
688 when :local; "#{page.present? ? Wiki.titleize(page) : ''}.html" + (anchor.present? ? "##{anchor}" : '')
692 when :local; "#{page.present? ? Wiki.titleize(page) : ''}.html" + (anchor.present? ? "##{anchor}" : '')
689 when :anchor; "##{page.present? ? Wiki.titleize(page) : title}" + (anchor.present? ? "_#{anchor}" : '') # used for single-file wiki export
693 when :anchor; "##{page.present? ? Wiki.titleize(page) : title}" + (anchor.present? ? "_#{anchor}" : '') # used for single-file wiki export
690 else
694 else
691 wiki_page_id = page.present? ? Wiki.titleize(page) : nil
695 wiki_page_id = page.present? ? Wiki.titleize(page) : nil
692 parent = wiki_page.nil? && obj.is_a?(WikiContent) && obj.page && project == link_project ? obj.page.title : nil
696 parent = wiki_page.nil? && obj.is_a?(WikiContent) && obj.page && project == link_project ? obj.page.title : nil
693 url_for(:only_path => only_path, :controller => 'wiki', :action => 'show', :project_id => link_project,
697 url_for(:only_path => only_path, :controller => 'wiki', :action => 'show', :project_id => link_project,
694 :id => wiki_page_id, :version => nil, :anchor => anchor, :parent => parent)
698 :id => wiki_page_id, :version => nil, :anchor => anchor, :parent => parent)
695 end
699 end
696 end
700 end
697 link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new')))
701 link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new')))
698 else
702 else
699 # project or wiki doesn't exist
703 # project or wiki doesn't exist
700 all
704 all
701 end
705 end
702 else
706 else
703 all
707 all
704 end
708 end
705 end
709 end
706 end
710 end
707
711
708 # Redmine links
712 # Redmine links
709 #
713 #
710 # Examples:
714 # Examples:
711 # Issues:
715 # Issues:
712 # #52 -> Link to issue #52
716 # #52 -> Link to issue #52
713 # Changesets:
717 # Changesets:
714 # r52 -> Link to revision 52
718 # r52 -> Link to revision 52
715 # commit:a85130f -> Link to scmid starting with a85130f
719 # commit:a85130f -> Link to scmid starting with a85130f
716 # Documents:
720 # Documents:
717 # document#17 -> Link to document with id 17
721 # document#17 -> Link to document with id 17
718 # document:Greetings -> Link to the document with title "Greetings"
722 # document:Greetings -> Link to the document with title "Greetings"
719 # document:"Some document" -> Link to the document with title "Some document"
723 # document:"Some document" -> Link to the document with title "Some document"
720 # Versions:
724 # Versions:
721 # version#3 -> Link to version with id 3
725 # version#3 -> Link to version with id 3
722 # version:1.0.0 -> Link to version named "1.0.0"
726 # version:1.0.0 -> Link to version named "1.0.0"
723 # version:"1.0 beta 2" -> Link to version named "1.0 beta 2"
727 # version:"1.0 beta 2" -> Link to version named "1.0 beta 2"
724 # Attachments:
728 # Attachments:
725 # attachment:file.zip -> Link to the attachment of the current object named file.zip
729 # attachment:file.zip -> Link to the attachment of the current object named file.zip
726 # Source files:
730 # Source files:
727 # source:some/file -> Link to the file located at /some/file in the project's repository
731 # source:some/file -> Link to the file located at /some/file in the project's repository
728 # source:some/file@52 -> Link to the file's revision 52
732 # source:some/file@52 -> Link to the file's revision 52
729 # source:some/file#L120 -> Link to line 120 of the file
733 # source:some/file#L120 -> Link to line 120 of the file
730 # source:some/file@52#L120 -> Link to line 120 of the file's revision 52
734 # source:some/file@52#L120 -> Link to line 120 of the file's revision 52
731 # export:some/file -> Force the download of the file
735 # export:some/file -> Force the download of the file
732 # Forum messages:
736 # Forum messages:
733 # message#1218 -> Link to message with id 1218
737 # message#1218 -> Link to message with id 1218
734 # Projects:
738 # Projects:
735 # project:someproject -> Link to project named "someproject"
739 # project:someproject -> Link to project named "someproject"
736 # project#3 -> Link to project with id 3
740 # project#3 -> Link to project with id 3
737 #
741 #
738 # Links can refer other objects from other projects, using project identifier:
742 # Links can refer other objects from other projects, using project identifier:
739 # identifier:r52
743 # identifier:r52
740 # identifier:document:"Some document"
744 # identifier:document:"Some document"
741 # identifier:version:1.0.0
745 # identifier:version:1.0.0
742 # identifier:source:some/file
746 # identifier:source:some/file
743 def parse_redmine_links(text, default_project, obj, attr, only_path, options)
747 def parse_redmine_links(text, default_project, obj, attr, only_path, options)
744 text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(([a-z0-9\-_]+):)?(attachment|document|version|forum|news|message|project|commit|source|export)?(((#)|((([a-z0-9\-_]+)\|)?(r)))((\d+)((#note)?-(\d+))?)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]][^A-Za-z0-9_/])|,|\s|\]|<|$)}) do |m|
748 text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(([a-z0-9\-_]+):)?(attachment|document|version|forum|news|message|project|commit|source|export)?(((#)|((([a-z0-9\-_]+)\|)?(r)))((\d+)((#note)?-(\d+))?)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]][^A-Za-z0-9_/])|,|\s|\]|<|$)}) do |m|
745 leading, esc, project_prefix, project_identifier, prefix, repo_prefix, repo_identifier, sep, identifier, comment_suffix, comment_id = $1, $2, $3, $4, $5, $10, $11, $8 || $12 || $18, $14 || $19, $15, $17
749 leading, esc, project_prefix, project_identifier, prefix, repo_prefix, repo_identifier, sep, identifier, comment_suffix, comment_id = $1, $2, $3, $4, $5, $10, $11, $8 || $12 || $18, $14 || $19, $15, $17
746 link = nil
750 link = nil
747 project = default_project
751 project = default_project
748 if project_identifier
752 if project_identifier
749 project = Project.visible.find_by_identifier(project_identifier)
753 project = Project.visible.find_by_identifier(project_identifier)
750 end
754 end
751 if esc.nil?
755 if esc.nil?
752 if prefix.nil? && sep == 'r'
756 if prefix.nil? && sep == 'r'
753 if project
757 if project
754 repository = nil
758 repository = nil
755 if repo_identifier
759 if repo_identifier
756 repository = project.repositories.detect {|repo| repo.identifier == repo_identifier}
760 repository = project.repositories.detect {|repo| repo.identifier == repo_identifier}
757 else
761 else
758 repository = project.repository
762 repository = project.repository
759 end
763 end
760 # project.changesets.visible raises an SQL error because of a double join on repositories
764 # project.changesets.visible raises an SQL error because of a double join on repositories
761 if repository &&
765 if repository &&
762 (changeset = Changeset.visible.
766 (changeset = Changeset.visible.
763 find_by_repository_id_and_revision(repository.id, identifier))
767 find_by_repository_id_and_revision(repository.id, identifier))
764 link = link_to(h("#{project_prefix}#{repo_prefix}r#{identifier}"),
768 link = link_to(h("#{project_prefix}#{repo_prefix}r#{identifier}"),
765 {:only_path => only_path, :controller => 'repositories',
769 {:only_path => only_path, :controller => 'repositories',
766 :action => 'revision', :id => project,
770 :action => 'revision', :id => project,
767 :repository_id => repository.identifier_param,
771 :repository_id => repository.identifier_param,
768 :rev => changeset.revision},
772 :rev => changeset.revision},
769 :class => 'changeset',
773 :class => 'changeset',
770 :title => truncate_single_line_raw(changeset.comments, 100))
774 :title => truncate_single_line_raw(changeset.comments, 100))
771 end
775 end
772 end
776 end
773 elsif sep == '#'
777 elsif sep == '#'
774 oid = identifier.to_i
778 oid = identifier.to_i
775 case prefix
779 case prefix
776 when nil
780 when nil
777 if oid.to_s == identifier &&
781 if oid.to_s == identifier &&
778 issue = Issue.visible.includes(:status).find_by_id(oid)
782 issue = Issue.visible.includes(:status).find_by_id(oid)
779 anchor = comment_id ? "note-#{comment_id}" : nil
783 anchor = comment_id ? "note-#{comment_id}" : nil
780 link = link_to(h("##{oid}#{comment_suffix}"),
784 link = link_to(h("##{oid}#{comment_suffix}"),
781 {:only_path => only_path, :controller => 'issues',
785 {:only_path => only_path, :controller => 'issues',
782 :action => 'show', :id => oid, :anchor => anchor},
786 :action => 'show', :id => oid, :anchor => anchor},
783 :class => issue.css_classes,
787 :class => issue.css_classes,
784 :title => "#{issue.subject.truncate(100)} (#{issue.status.name})")
788 :title => "#{issue.subject.truncate(100)} (#{issue.status.name})")
785 end
789 end
786 when 'document'
790 when 'document'
787 if document = Document.visible.find_by_id(oid)
791 if document = Document.visible.find_by_id(oid)
788 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
792 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
789 :class => 'document'
793 :class => 'document'
790 end
794 end
791 when 'version'
795 when 'version'
792 if version = Version.visible.find_by_id(oid)
796 if version = Version.visible.find_by_id(oid)
793 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
797 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
794 :class => 'version'
798 :class => 'version'
795 end
799 end
796 when 'message'
800 when 'message'
797 if message = Message.visible.includes(:parent).find_by_id(oid)
801 if message = Message.visible.includes(:parent).find_by_id(oid)
798 link = link_to_message(message, {:only_path => only_path}, :class => 'message')
802 link = link_to_message(message, {:only_path => only_path}, :class => 'message')
799 end
803 end
800 when 'forum'
804 when 'forum'
801 if board = Board.visible.find_by_id(oid)
805 if board = Board.visible.find_by_id(oid)
802 link = link_to h(board.name), {:only_path => only_path, :controller => 'boards', :action => 'show', :id => board, :project_id => board.project},
806 link = link_to h(board.name), {:only_path => only_path, :controller => 'boards', :action => 'show', :id => board, :project_id => board.project},
803 :class => 'board'
807 :class => 'board'
804 end
808 end
805 when 'news'
809 when 'news'
806 if news = News.visible.find_by_id(oid)
810 if news = News.visible.find_by_id(oid)
807 link = link_to h(news.title), {:only_path => only_path, :controller => 'news', :action => 'show', :id => news},
811 link = link_to h(news.title), {:only_path => only_path, :controller => 'news', :action => 'show', :id => news},
808 :class => 'news'
812 :class => 'news'
809 end
813 end
810 when 'project'
814 when 'project'
811 if p = Project.visible.find_by_id(oid)
815 if p = Project.visible.find_by_id(oid)
812 link = link_to_project(p, {:only_path => only_path}, :class => 'project')
816 link = link_to_project(p, {:only_path => only_path}, :class => 'project')
813 end
817 end
814 end
818 end
815 elsif sep == ':'
819 elsif sep == ':'
816 # removes the double quotes if any
820 # removes the double quotes if any
817 name = identifier.gsub(%r{^"(.*)"$}, "\\1")
821 name = identifier.gsub(%r{^"(.*)"$}, "\\1")
818 case prefix
822 case prefix
819 when 'document'
823 when 'document'
820 if project && document = project.documents.visible.find_by_title(name)
824 if project && document = project.documents.visible.find_by_title(name)
821 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
825 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
822 :class => 'document'
826 :class => 'document'
823 end
827 end
824 when 'version'
828 when 'version'
825 if project && version = project.versions.visible.find_by_name(name)
829 if project && version = project.versions.visible.find_by_name(name)
826 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
830 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
827 :class => 'version'
831 :class => 'version'
828 end
832 end
829 when 'forum'
833 when 'forum'
830 if project && board = project.boards.visible.find_by_name(name)
834 if project && board = project.boards.visible.find_by_name(name)
831 link = link_to h(board.name), {:only_path => only_path, :controller => 'boards', :action => 'show', :id => board, :project_id => board.project},
835 link = link_to h(board.name), {:only_path => only_path, :controller => 'boards', :action => 'show', :id => board, :project_id => board.project},
832 :class => 'board'
836 :class => 'board'
833 end
837 end
834 when 'news'
838 when 'news'
835 if project && news = project.news.visible.find_by_title(name)
839 if project && news = project.news.visible.find_by_title(name)
836 link = link_to h(news.title), {:only_path => only_path, :controller => 'news', :action => 'show', :id => news},
840 link = link_to h(news.title), {:only_path => only_path, :controller => 'news', :action => 'show', :id => news},
837 :class => 'news'
841 :class => 'news'
838 end
842 end
839 when 'commit', 'source', 'export'
843 when 'commit', 'source', 'export'
840 if project
844 if project
841 repository = nil
845 repository = nil
842 if name =~ %r{^(([a-z0-9\-_]+)\|)(.+)$}
846 if name =~ %r{^(([a-z0-9\-_]+)\|)(.+)$}
843 repo_prefix, repo_identifier, name = $1, $2, $3
847 repo_prefix, repo_identifier, name = $1, $2, $3
844 repository = project.repositories.detect {|repo| repo.identifier == repo_identifier}
848 repository = project.repositories.detect {|repo| repo.identifier == repo_identifier}
845 else
849 else
846 repository = project.repository
850 repository = project.repository
847 end
851 end
848 if prefix == 'commit'
852 if prefix == 'commit'
849 if repository && (changeset = Changeset.visible.where("repository_id = ? AND scmid LIKE ?", repository.id, "#{name}%").first)
853 if repository && (changeset = Changeset.visible.where("repository_id = ? AND scmid LIKE ?", repository.id, "#{name}%").first)
850 link = link_to h("#{project_prefix}#{repo_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :repository_id => repository.identifier_param, :rev => changeset.identifier},
854 link = link_to h("#{project_prefix}#{repo_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :repository_id => repository.identifier_param, :rev => changeset.identifier},
851 :class => 'changeset',
855 :class => 'changeset',
852 :title => truncate_single_line_raw(changeset.comments, 100)
856 :title => truncate_single_line_raw(changeset.comments, 100)
853 end
857 end
854 else
858 else
855 if repository && User.current.allowed_to?(:browse_repository, project)
859 if repository && User.current.allowed_to?(:browse_repository, project)
856 name =~ %r{^[/\\]*(.*?)(@([^/\\@]+?))?(#(L\d+))?$}
860 name =~ %r{^[/\\]*(.*?)(@([^/\\@]+?))?(#(L\d+))?$}
857 path, rev, anchor = $1, $3, $5
861 path, rev, anchor = $1, $3, $5
858 link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param,
862 link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param,
859 :path => to_path_param(path),
863 :path => to_path_param(path),
860 :rev => rev,
864 :rev => rev,
861 :anchor => anchor},
865 :anchor => anchor},
862 :class => (prefix == 'export' ? 'source download' : 'source')
866 :class => (prefix == 'export' ? 'source download' : 'source')
863 end
867 end
864 end
868 end
865 repo_prefix = nil
869 repo_prefix = nil
866 end
870 end
867 when 'attachment'
871 when 'attachment'
868 attachments = options[:attachments] || []
872 attachments = options[:attachments] || []
869 attachments += obj.attachments if obj.respond_to?(:attachments)
873 attachments += obj.attachments if obj.respond_to?(:attachments)
870 if attachments && attachment = Attachment.latest_attach(attachments, name)
874 if attachments && attachment = Attachment.latest_attach(attachments, name)
871 link = link_to_attachment(attachment, :only_path => only_path, :download => true, :class => 'attachment')
875 link = link_to_attachment(attachment, :only_path => only_path, :download => true, :class => 'attachment')
872 end
876 end
873 when 'project'
877 when 'project'
874 if p = Project.visible.where("identifier = :s OR LOWER(name) = :s", :s => name.downcase).first
878 if p = Project.visible.where("identifier = :s OR LOWER(name) = :s", :s => name.downcase).first
875 link = link_to_project(p, {:only_path => only_path}, :class => 'project')
879 link = link_to_project(p, {:only_path => only_path}, :class => 'project')
876 end
880 end
877 end
881 end
878 end
882 end
879 end
883 end
880 (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}"))
884 (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}"))
881 end
885 end
882 end
886 end
883
887
884 HEADING_RE = /(<h(\d)( [^>]+)?>(.+?)<\/h(\d)>)/i unless const_defined?(:HEADING_RE)
888 HEADING_RE = /(<h(\d)( [^>]+)?>(.+?)<\/h(\d)>)/i unless const_defined?(:HEADING_RE)
885
889
886 def parse_sections(text, project, obj, attr, only_path, options)
890 def parse_sections(text, project, obj, attr, only_path, options)
887 return unless options[:edit_section_links]
891 return unless options[:edit_section_links]
888 text.gsub!(HEADING_RE) do
892 text.gsub!(HEADING_RE) do
889 heading = $1
893 heading = $1
890 @current_section += 1
894 @current_section += 1
891 if @current_section > 1
895 if @current_section > 1
892 content_tag('div',
896 content_tag('div',
893 link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)),
897 link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)),
894 :class => 'contextual',
898 :class => 'contextual',
895 :title => l(:button_edit_section),
899 :title => l(:button_edit_section),
896 :id => "section-#{@current_section}") + heading.html_safe
900 :id => "section-#{@current_section}") + heading.html_safe
897 else
901 else
898 heading
902 heading
899 end
903 end
900 end
904 end
901 end
905 end
902
906
903 # Headings and TOC
907 # Headings and TOC
904 # Adds ids and links to headings unless options[:headings] is set to false
908 # Adds ids and links to headings unless options[:headings] is set to false
905 def parse_headings(text, project, obj, attr, only_path, options)
909 def parse_headings(text, project, obj, attr, only_path, options)
906 return if options[:headings] == false
910 return if options[:headings] == false
907
911
908 text.gsub!(HEADING_RE) do
912 text.gsub!(HEADING_RE) do
909 level, attrs, content = $2.to_i, $3, $4
913 level, attrs, content = $2.to_i, $3, $4
910 item = strip_tags(content).strip
914 item = strip_tags(content).strip
911 anchor = sanitize_anchor_name(item)
915 anchor = sanitize_anchor_name(item)
912 # used for single-file wiki export
916 # used for single-file wiki export
913 anchor = "#{obj.page.title}_#{anchor}" if options[:wiki_links] == :anchor && (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version))
917 anchor = "#{obj.page.title}_#{anchor}" if options[:wiki_links] == :anchor && (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version))
914 @heading_anchors[anchor] ||= 0
918 @heading_anchors[anchor] ||= 0
915 idx = (@heading_anchors[anchor] += 1)
919 idx = (@heading_anchors[anchor] += 1)
916 if idx > 1
920 if idx > 1
917 anchor = "#{anchor}-#{idx}"
921 anchor = "#{anchor}-#{idx}"
918 end
922 end
919 @parsed_headings << [level, anchor, item]
923 @parsed_headings << [level, anchor, item]
920 "<a name=\"#{anchor}\"></a>\n<h#{level} #{attrs}>#{content}<a href=\"##{anchor}\" class=\"wiki-anchor\">&para;</a></h#{level}>"
924 "<a name=\"#{anchor}\"></a>\n<h#{level} #{attrs}>#{content}<a href=\"##{anchor}\" class=\"wiki-anchor\">&para;</a></h#{level}>"
921 end
925 end
922 end
926 end
923
927
924 MACROS_RE = /(
928 MACROS_RE = /(
925 (!)? # escaping
929 (!)? # escaping
926 (
930 (
927 \{\{ # opening tag
931 \{\{ # opening tag
928 ([\w]+) # macro name
932 ([\w]+) # macro name
929 (\(([^\n\r]*?)\))? # optional arguments
933 (\(([^\n\r]*?)\))? # optional arguments
930 ([\n\r].*?[\n\r])? # optional block of text
934 ([\n\r].*?[\n\r])? # optional block of text
931 \}\} # closing tag
935 \}\} # closing tag
932 )
936 )
933 )/mx unless const_defined?(:MACROS_RE)
937 )/mx unless const_defined?(:MACROS_RE)
934
938
935 MACRO_SUB_RE = /(
939 MACRO_SUB_RE = /(
936 \{\{
940 \{\{
937 macro\((\d+)\)
941 macro\((\d+)\)
938 \}\}
942 \}\}
939 )/x unless const_defined?(:MACRO_SUB_RE)
943 )/x unless const_defined?(:MACRO_SUB_RE)
940
944
941 # Extracts macros from text
945 # Extracts macros from text
942 def catch_macros(text)
946 def catch_macros(text)
943 macros = {}
947 macros = {}
944 text.gsub!(MACROS_RE) do
948 text.gsub!(MACROS_RE) do
945 all, macro = $1, $4.downcase
949 all, macro = $1, $4.downcase
946 if macro_exists?(macro) || all =~ MACRO_SUB_RE
950 if macro_exists?(macro) || all =~ MACRO_SUB_RE
947 index = macros.size
951 index = macros.size
948 macros[index] = all
952 macros[index] = all
949 "{{macro(#{index})}}"
953 "{{macro(#{index})}}"
950 else
954 else
951 all
955 all
952 end
956 end
953 end
957 end
954 macros
958 macros
955 end
959 end
956
960
957 # Executes and replaces macros in text
961 # Executes and replaces macros in text
958 def inject_macros(text, obj, macros, execute=true)
962 def inject_macros(text, obj, macros, execute=true)
959 text.gsub!(MACRO_SUB_RE) do
963 text.gsub!(MACRO_SUB_RE) do
960 all, index = $1, $2.to_i
964 all, index = $1, $2.to_i
961 orig = macros.delete(index)
965 orig = macros.delete(index)
962 if execute && orig && orig =~ MACROS_RE
966 if execute && orig && orig =~ MACROS_RE
963 esc, all, macro, args, block = $2, $3, $4.downcase, $6.to_s, $7.try(:strip)
967 esc, all, macro, args, block = $2, $3, $4.downcase, $6.to_s, $7.try(:strip)
964 if esc.nil?
968 if esc.nil?
965 h(exec_macro(macro, obj, args, block) || all)
969 h(exec_macro(macro, obj, args, block) || all)
966 else
970 else
967 h(all)
971 h(all)
968 end
972 end
969 elsif orig
973 elsif orig
970 h(orig)
974 h(orig)
971 else
975 else
972 h(all)
976 h(all)
973 end
977 end
974 end
978 end
975 end
979 end
976
980
977 TOC_RE = /<p>\{\{([<>]?)toc\}\}<\/p>/i unless const_defined?(:TOC_RE)
981 TOC_RE = /<p>\{\{([<>]?)toc\}\}<\/p>/i unless const_defined?(:TOC_RE)
978
982
979 # Renders the TOC with given headings
983 # Renders the TOC with given headings
980 def replace_toc(text, headings)
984 def replace_toc(text, headings)
981 text.gsub!(TOC_RE) do
985 text.gsub!(TOC_RE) do
982 # Keep only the 4 first levels
986 # Keep only the 4 first levels
983 headings = headings.select{|level, anchor, item| level <= 4}
987 headings = headings.select{|level, anchor, item| level <= 4}
984 if headings.empty?
988 if headings.empty?
985 ''
989 ''
986 else
990 else
987 div_class = 'toc'
991 div_class = 'toc'
988 div_class << ' right' if $1 == '>'
992 div_class << ' right' if $1 == '>'
989 div_class << ' left' if $1 == '<'
993 div_class << ' left' if $1 == '<'
990 out = "<ul class=\"#{div_class}\"><li>"
994 out = "<ul class=\"#{div_class}\"><li>"
991 root = headings.map(&:first).min
995 root = headings.map(&:first).min
992 current = root
996 current = root
993 started = false
997 started = false
994 headings.each do |level, anchor, item|
998 headings.each do |level, anchor, item|
995 if level > current
999 if level > current
996 out << '<ul><li>' * (level - current)
1000 out << '<ul><li>' * (level - current)
997 elsif level < current
1001 elsif level < current
998 out << "</li></ul>\n" * (current - level) + "</li><li>"
1002 out << "</li></ul>\n" * (current - level) + "</li><li>"
999 elsif started
1003 elsif started
1000 out << '</li><li>'
1004 out << '</li><li>'
1001 end
1005 end
1002 out << "<a href=\"##{anchor}\">#{item}</a>"
1006 out << "<a href=\"##{anchor}\">#{item}</a>"
1003 current = level
1007 current = level
1004 started = true
1008 started = true
1005 end
1009 end
1006 out << '</li></ul>' * (current - root)
1010 out << '</li></ul>' * (current - root)
1007 out << '</li></ul>'
1011 out << '</li></ul>'
1008 end
1012 end
1009 end
1013 end
1010 end
1014 end
1011
1015
1012 # Same as Rails' simple_format helper without using paragraphs
1016 # Same as Rails' simple_format helper without using paragraphs
1013 def simple_format_without_paragraph(text)
1017 def simple_format_without_paragraph(text)
1014 text.to_s.
1018 text.to_s.
1015 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
1019 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
1016 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
1020 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
1017 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />'). # 1 newline -> br
1021 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />'). # 1 newline -> br
1018 html_safe
1022 html_safe
1019 end
1023 end
1020
1024
1021 def lang_options_for_select(blank=true)
1025 def lang_options_for_select(blank=true)
1022 (blank ? [["(auto)", ""]] : []) + languages_options
1026 (blank ? [["(auto)", ""]] : []) + languages_options
1023 end
1027 end
1024
1028
1025 def label_tag_for(name, option_tags = nil, options = {})
1029 def label_tag_for(name, option_tags = nil, options = {})
1026 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
1030 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
1027 content_tag("label", label_text)
1031 content_tag("label", label_text)
1028 end
1032 end
1029
1033
1030 def labelled_form_for(*args, &proc)
1034 def labelled_form_for(*args, &proc)
1031 args << {} unless args.last.is_a?(Hash)
1035 args << {} unless args.last.is_a?(Hash)
1032 options = args.last
1036 options = args.last
1033 if args.first.is_a?(Symbol)
1037 if args.first.is_a?(Symbol)
1034 options.merge!(:as => args.shift)
1038 options.merge!(:as => args.shift)
1035 end
1039 end
1036 options.merge!({:builder => Redmine::Views::LabelledFormBuilder})
1040 options.merge!({:builder => Redmine::Views::LabelledFormBuilder})
1037 form_for(*args, &proc)
1041 form_for(*args, &proc)
1038 end
1042 end
1039
1043
1040 def labelled_fields_for(*args, &proc)
1044 def labelled_fields_for(*args, &proc)
1041 args << {} unless args.last.is_a?(Hash)
1045 args << {} unless args.last.is_a?(Hash)
1042 options = args.last
1046 options = args.last
1043 options.merge!({:builder => Redmine::Views::LabelledFormBuilder})
1047 options.merge!({:builder => Redmine::Views::LabelledFormBuilder})
1044 fields_for(*args, &proc)
1048 fields_for(*args, &proc)
1045 end
1049 end
1046
1050
1047 def labelled_remote_form_for(*args, &proc)
1051 def labelled_remote_form_for(*args, &proc)
1048 ActiveSupport::Deprecation.warn "ApplicationHelper#labelled_remote_form_for is deprecated and will be removed in Redmine 2.2."
1052 ActiveSupport::Deprecation.warn "ApplicationHelper#labelled_remote_form_for is deprecated and will be removed in Redmine 2.2."
1049 args << {} unless args.last.is_a?(Hash)
1053 args << {} unless args.last.is_a?(Hash)
1050 options = args.last
1054 options = args.last
1051 options.merge!({:builder => Redmine::Views::LabelledFormBuilder, :remote => true})
1055 options.merge!({:builder => Redmine::Views::LabelledFormBuilder, :remote => true})
1052 form_for(*args, &proc)
1056 form_for(*args, &proc)
1053 end
1057 end
1054
1058
1055 def error_messages_for(*objects)
1059 def error_messages_for(*objects)
1056 html = ""
1060 html = ""
1057 objects = objects.map {|o| o.is_a?(String) ? instance_variable_get("@#{o}") : o}.compact
1061 objects = objects.map {|o| o.is_a?(String) ? instance_variable_get("@#{o}") : o}.compact
1058 errors = objects.map {|o| o.errors.full_messages}.flatten
1062 errors = objects.map {|o| o.errors.full_messages}.flatten
1059 if errors.any?
1063 if errors.any?
1060 html << "<div id='errorExplanation'><ul>\n"
1064 html << "<div id='errorExplanation'><ul>\n"
1061 errors.each do |error|
1065 errors.each do |error|
1062 html << "<li>#{h error}</li>\n"
1066 html << "<li>#{h error}</li>\n"
1063 end
1067 end
1064 html << "</ul></div>\n"
1068 html << "</ul></div>\n"
1065 end
1069 end
1066 html.html_safe
1070 html.html_safe
1067 end
1071 end
1068
1072
1069 def delete_link(url, options={})
1073 def delete_link(url, options={})
1070 options = {
1074 options = {
1071 :method => :delete,
1075 :method => :delete,
1072 :data => {:confirm => l(:text_are_you_sure)},
1076 :data => {:confirm => l(:text_are_you_sure)},
1073 :class => 'icon icon-del'
1077 :class => 'icon icon-del'
1074 }.merge(options)
1078 }.merge(options)
1075
1079
1076 link_to l(:button_delete), url, options
1080 link_to l(:button_delete), url, options
1077 end
1081 end
1078
1082
1079 def preview_link(url, form, target='preview', options={})
1083 def preview_link(url, form, target='preview', options={})
1080 content_tag 'a', l(:label_preview), {
1084 content_tag 'a', l(:label_preview), {
1081 :href => "#",
1085 :href => "#",
1082 :onclick => %|submitPreview("#{escape_javascript url_for(url)}", "#{escape_javascript form}", "#{escape_javascript target}"); return false;|,
1086 :onclick => %|submitPreview("#{escape_javascript url_for(url)}", "#{escape_javascript form}", "#{escape_javascript target}"); return false;|,
1083 :accesskey => accesskey(:preview)
1087 :accesskey => accesskey(:preview)
1084 }.merge(options)
1088 }.merge(options)
1085 end
1089 end
1086
1090
1087 def link_to_function(name, function, html_options={})
1091 def link_to_function(name, function, html_options={})
1088 content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(html_options))
1092 content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(html_options))
1089 end
1093 end
1090
1094
1091 # Helper to render JSON in views
1095 # Helper to render JSON in views
1092 def raw_json(arg)
1096 def raw_json(arg)
1093 arg.to_json.to_s.gsub('/', '\/').html_safe
1097 arg.to_json.to_s.gsub('/', '\/').html_safe
1094 end
1098 end
1095
1099
1096 def back_url
1100 def back_url
1097 url = params[:back_url]
1101 url = params[:back_url]
1098 if url.nil? && referer = request.env['HTTP_REFERER']
1102 if url.nil? && referer = request.env['HTTP_REFERER']
1099 url = CGI.unescape(referer.to_s)
1103 url = CGI.unescape(referer.to_s)
1100 end
1104 end
1101 url
1105 url
1102 end
1106 end
1103
1107
1104 def back_url_hidden_field_tag
1108 def back_url_hidden_field_tag
1105 url = back_url
1109 url = back_url
1106 hidden_field_tag('back_url', url, :id => nil) unless url.blank?
1110 hidden_field_tag('back_url', url, :id => nil) unless url.blank?
1107 end
1111 end
1108
1112
1109 def check_all_links(form_name)
1113 def check_all_links(form_name)
1110 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
1114 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
1111 " | ".html_safe +
1115 " | ".html_safe +
1112 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
1116 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
1113 end
1117 end
1114
1118
1115 def progress_bar(pcts, options={})
1119 def progress_bar(pcts, options={})
1116 pcts = [pcts, pcts] unless pcts.is_a?(Array)
1120 pcts = [pcts, pcts] unless pcts.is_a?(Array)
1117 pcts = pcts.collect(&:round)
1121 pcts = pcts.collect(&:round)
1118 pcts[1] = pcts[1] - pcts[0]
1122 pcts[1] = pcts[1] - pcts[0]
1119 pcts << (100 - pcts[1] - pcts[0])
1123 pcts << (100 - pcts[1] - pcts[0])
1120 width = options[:width] || '100px;'
1124 width = options[:width] || '100px;'
1121 legend = options[:legend] || ''
1125 legend = options[:legend] || ''
1122 content_tag('table',
1126 content_tag('table',
1123 content_tag('tr',
1127 content_tag('tr',
1124 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) +
1128 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) +
1125 (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) +
1129 (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) +
1126 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe)
1130 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe)
1127 ), :class => "progress progress-#{pcts[0]}", :style => "width: #{width};").html_safe +
1131 ), :class => "progress progress-#{pcts[0]}", :style => "width: #{width};").html_safe +
1128 content_tag('p', legend, :class => 'percent').html_safe
1132 content_tag('p', legend, :class => 'percent').html_safe
1129 end
1133 end
1130
1134
1131 def checked_image(checked=true)
1135 def checked_image(checked=true)
1132 if checked
1136 if checked
1133 image_tag 'toggle_check.png'
1137 image_tag 'toggle_check.png'
1134 end
1138 end
1135 end
1139 end
1136
1140
1137 def context_menu(url)
1141 def context_menu(url)
1138 unless @context_menu_included
1142 unless @context_menu_included
1139 content_for :header_tags do
1143 content_for :header_tags do
1140 javascript_include_tag('context_menu') +
1144 javascript_include_tag('context_menu') +
1141 stylesheet_link_tag('context_menu')
1145 stylesheet_link_tag('context_menu')
1142 end
1146 end
1143 if l(:direction) == 'rtl'
1147 if l(:direction) == 'rtl'
1144 content_for :header_tags do
1148 content_for :header_tags do
1145 stylesheet_link_tag('context_menu_rtl')
1149 stylesheet_link_tag('context_menu_rtl')
1146 end
1150 end
1147 end
1151 end
1148 @context_menu_included = true
1152 @context_menu_included = true
1149 end
1153 end
1150 javascript_tag "contextMenuInit('#{ url_for(url) }')"
1154 javascript_tag "contextMenuInit('#{ url_for(url) }')"
1151 end
1155 end
1152
1156
1153 def calendar_for(field_id)
1157 def calendar_for(field_id)
1154 include_calendar_headers_tags
1158 include_calendar_headers_tags
1155 javascript_tag("$(function() { $('##{field_id}').datepicker(datepickerOptions); });")
1159 javascript_tag("$(function() { $('##{field_id}').datepicker(datepickerOptions); });")
1156 end
1160 end
1157
1161
1158 def include_calendar_headers_tags
1162 def include_calendar_headers_tags
1159 unless @calendar_headers_tags_included
1163 unless @calendar_headers_tags_included
1160 tags = javascript_include_tag("datepicker")
1164 tags = javascript_include_tag("datepicker")
1161 @calendar_headers_tags_included = true
1165 @calendar_headers_tags_included = true
1162 content_for :header_tags do
1166 content_for :header_tags do
1163 start_of_week = Setting.start_of_week
1167 start_of_week = Setting.start_of_week
1164 start_of_week = l(:general_first_day_of_week, :default => '1') if start_of_week.blank?
1168 start_of_week = l(:general_first_day_of_week, :default => '1') if start_of_week.blank?
1165 # Redmine uses 1..7 (monday..sunday) in settings and locales
1169 # Redmine uses 1..7 (monday..sunday) in settings and locales
1166 # JQuery uses 0..6 (sunday..saturday), 7 needs to be changed to 0
1170 # JQuery uses 0..6 (sunday..saturday), 7 needs to be changed to 0
1167 start_of_week = start_of_week.to_i % 7
1171 start_of_week = start_of_week.to_i % 7
1168 tags << javascript_tag(
1172 tags << javascript_tag(
1169 "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " +
1173 "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " +
1170 "showOn: 'button', buttonImageOnly: true, buttonImage: '" +
1174 "showOn: 'button', buttonImageOnly: true, buttonImage: '" +
1171 path_to_image('/images/calendar.png') +
1175 path_to_image('/images/calendar.png') +
1172 "', showButtonPanel: true, showWeek: true, showOtherMonths: true, " +
1176 "', showButtonPanel: true, showWeek: true, showOtherMonths: true, " +
1173 "selectOtherMonths: true, changeMonth: true, changeYear: true, " +
1177 "selectOtherMonths: true, changeMonth: true, changeYear: true, " +
1174 "beforeShow: beforeShowDatePicker};")
1178 "beforeShow: beforeShowDatePicker};")
1175 jquery_locale = l('jquery.locale', :default => current_language.to_s)
1179 jquery_locale = l('jquery.locale', :default => current_language.to_s)
1176 unless jquery_locale == 'en'
1180 unless jquery_locale == 'en'
1177 tags << javascript_include_tag("i18n/jquery.ui.datepicker-#{jquery_locale}.js")
1181 tags << javascript_include_tag("i18n/jquery.ui.datepicker-#{jquery_locale}.js")
1178 end
1182 end
1179 tags
1183 tags
1180 end
1184 end
1181 end
1185 end
1182 end
1186 end
1183
1187
1184 # Overrides Rails' stylesheet_link_tag with themes and plugins support.
1188 # Overrides Rails' stylesheet_link_tag with themes and plugins support.
1185 # Examples:
1189 # Examples:
1186 # stylesheet_link_tag('styles') # => picks styles.css from the current theme or defaults
1190 # stylesheet_link_tag('styles') # => picks styles.css from the current theme or defaults
1187 # stylesheet_link_tag('styles', :plugin => 'foo) # => picks styles.css from plugin's assets
1191 # stylesheet_link_tag('styles', :plugin => 'foo) # => picks styles.css from plugin's assets
1188 #
1192 #
1189 def stylesheet_link_tag(*sources)
1193 def stylesheet_link_tag(*sources)
1190 options = sources.last.is_a?(Hash) ? sources.pop : {}
1194 options = sources.last.is_a?(Hash) ? sources.pop : {}
1191 plugin = options.delete(:plugin)
1195 plugin = options.delete(:plugin)
1192 sources = sources.map do |source|
1196 sources = sources.map do |source|
1193 if plugin
1197 if plugin
1194 "/plugin_assets/#{plugin}/stylesheets/#{source}"
1198 "/plugin_assets/#{plugin}/stylesheets/#{source}"
1195 elsif current_theme && current_theme.stylesheets.include?(source)
1199 elsif current_theme && current_theme.stylesheets.include?(source)
1196 current_theme.stylesheet_path(source)
1200 current_theme.stylesheet_path(source)
1197 else
1201 else
1198 source
1202 source
1199 end
1203 end
1200 end
1204 end
1201 super sources, options
1205 super sources, options
1202 end
1206 end
1203
1207
1204 # Overrides Rails' image_tag with themes and plugins support.
1208 # Overrides Rails' image_tag with themes and plugins support.
1205 # Examples:
1209 # Examples:
1206 # image_tag('image.png') # => picks image.png from the current theme or defaults
1210 # image_tag('image.png') # => picks image.png from the current theme or defaults
1207 # image_tag('image.png', :plugin => 'foo) # => picks image.png from plugin's assets
1211 # image_tag('image.png', :plugin => 'foo) # => picks image.png from plugin's assets
1208 #
1212 #
1209 def image_tag(source, options={})
1213 def image_tag(source, options={})
1210 if plugin = options.delete(:plugin)
1214 if plugin = options.delete(:plugin)
1211 source = "/plugin_assets/#{plugin}/images/#{source}"
1215 source = "/plugin_assets/#{plugin}/images/#{source}"
1212 elsif current_theme && current_theme.images.include?(source)
1216 elsif current_theme && current_theme.images.include?(source)
1213 source = current_theme.image_path(source)
1217 source = current_theme.image_path(source)
1214 end
1218 end
1215 super source, options
1219 super source, options
1216 end
1220 end
1217
1221
1218 # Overrides Rails' javascript_include_tag with plugins support
1222 # Overrides Rails' javascript_include_tag with plugins support
1219 # Examples:
1223 # Examples:
1220 # javascript_include_tag('scripts') # => picks scripts.js from defaults
1224 # javascript_include_tag('scripts') # => picks scripts.js from defaults
1221 # javascript_include_tag('scripts', :plugin => 'foo) # => picks scripts.js from plugin's assets
1225 # javascript_include_tag('scripts', :plugin => 'foo) # => picks scripts.js from plugin's assets
1222 #
1226 #
1223 def javascript_include_tag(*sources)
1227 def javascript_include_tag(*sources)
1224 options = sources.last.is_a?(Hash) ? sources.pop : {}
1228 options = sources.last.is_a?(Hash) ? sources.pop : {}
1225 if plugin = options.delete(:plugin)
1229 if plugin = options.delete(:plugin)
1226 sources = sources.map do |source|
1230 sources = sources.map do |source|
1227 if plugin
1231 if plugin
1228 "/plugin_assets/#{plugin}/javascripts/#{source}"
1232 "/plugin_assets/#{plugin}/javascripts/#{source}"
1229 else
1233 else
1230 source
1234 source
1231 end
1235 end
1232 end
1236 end
1233 end
1237 end
1234 super sources, options
1238 super sources, options
1235 end
1239 end
1236
1240
1237 # TODO: remove this in 2.5.0
1241 # TODO: remove this in 2.5.0
1238 def has_content?(name)
1242 def has_content?(name)
1239 content_for?(name)
1243 content_for?(name)
1240 end
1244 end
1241
1245
1242 def sidebar_content?
1246 def sidebar_content?
1243 content_for?(:sidebar) || view_layouts_base_sidebar_hook_response.present?
1247 content_for?(:sidebar) || view_layouts_base_sidebar_hook_response.present?
1244 end
1248 end
1245
1249
1246 def view_layouts_base_sidebar_hook_response
1250 def view_layouts_base_sidebar_hook_response
1247 @view_layouts_base_sidebar_hook_response ||= call_hook(:view_layouts_base_sidebar)
1251 @view_layouts_base_sidebar_hook_response ||= call_hook(:view_layouts_base_sidebar)
1248 end
1252 end
1249
1253
1250 def email_delivery_enabled?
1254 def email_delivery_enabled?
1251 !!ActionMailer::Base.perform_deliveries
1255 !!ActionMailer::Base.perform_deliveries
1252 end
1256 end
1253
1257
1254 # Returns the avatar image tag for the given +user+ if avatars are enabled
1258 # Returns the avatar image tag for the given +user+ if avatars are enabled
1255 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
1259 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
1256 def avatar(user, options = { })
1260 def avatar(user, options = { })
1257 if Setting.gravatar_enabled?
1261 if Setting.gravatar_enabled?
1258 options.merge!({:ssl => (request && request.ssl?), :default => Setting.gravatar_default})
1262 options.merge!({:ssl => (request && request.ssl?), :default => Setting.gravatar_default})
1259 email = nil
1263 email = nil
1260 if user.respond_to?(:mail)
1264 if user.respond_to?(:mail)
1261 email = user.mail
1265 email = user.mail
1262 elsif user.to_s =~ %r{<(.+?)>}
1266 elsif user.to_s =~ %r{<(.+?)>}
1263 email = $1
1267 email = $1
1264 end
1268 end
1265 return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil
1269 return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil
1266 else
1270 else
1267 ''
1271 ''
1268 end
1272 end
1269 end
1273 end
1270
1274
1271 def sanitize_anchor_name(anchor)
1275 def sanitize_anchor_name(anchor)
1272 if ''.respond_to?(:encoding) || RUBY_PLATFORM == 'java'
1276 if ''.respond_to?(:encoding) || RUBY_PLATFORM == 'java'
1273 anchor.gsub(%r{[^\s\-\p{Word}]}, '').gsub(%r{\s+(\-+\s*)?}, '-')
1277 anchor.gsub(%r{[^\s\-\p{Word}]}, '').gsub(%r{\s+(\-+\s*)?}, '-')
1274 else
1278 else
1275 # TODO: remove when ruby1.8 is no longer supported
1279 # TODO: remove when ruby1.8 is no longer supported
1276 anchor.gsub(%r{[^\w\s\-]}, '').gsub(%r{\s+(\-+\s*)?}, '-')
1280 anchor.gsub(%r{[^\w\s\-]}, '').gsub(%r{\s+(\-+\s*)?}, '-')
1277 end
1281 end
1278 end
1282 end
1279
1283
1280 # Returns the javascript tags that are included in the html layout head
1284 # Returns the javascript tags that are included in the html layout head
1281 def javascript_heads
1285 def javascript_heads
1282 tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application')
1286 tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application')
1283 unless User.current.pref.warn_on_leaving_unsaved == '0'
1287 unless User.current.pref.warn_on_leaving_unsaved == '0'
1284 tags << "\n".html_safe + javascript_tag("$(window).load(function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
1288 tags << "\n".html_safe + javascript_tag("$(window).load(function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
1285 end
1289 end
1286 tags
1290 tags
1287 end
1291 end
1288
1292
1289 def favicon
1293 def favicon
1290 "<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
1294 "<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
1291 end
1295 end
1292
1296
1293 # Returns the path to the favicon
1297 # Returns the path to the favicon
1294 def favicon_path
1298 def favicon_path
1295 icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
1299 icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
1296 image_path(icon)
1300 image_path(icon)
1297 end
1301 end
1298
1302
1299 # Returns the full URL to the favicon
1303 # Returns the full URL to the favicon
1300 def favicon_url
1304 def favicon_url
1301 # TODO: use #image_url introduced in Rails4
1305 # TODO: use #image_url introduced in Rails4
1302 path = favicon_path
1306 path = favicon_path
1303 base = url_for(:controller => 'welcome', :action => 'index', :only_path => false)
1307 base = url_for(:controller => 'welcome', :action => 'index', :only_path => false)
1304 base.sub(%r{/+$},'') + '/' + path.sub(%r{^/+},'')
1308 base.sub(%r{/+$},'') + '/' + path.sub(%r{^/+},'')
1305 end
1309 end
1306
1310
1307 def robot_exclusion_tag
1311 def robot_exclusion_tag
1308 '<meta name="robots" content="noindex,follow,noarchive" />'.html_safe
1312 '<meta name="robots" content="noindex,follow,noarchive" />'.html_safe
1309 end
1313 end
1310
1314
1311 # Returns true if arg is expected in the API response
1315 # Returns true if arg is expected in the API response
1312 def include_in_api_response?(arg)
1316 def include_in_api_response?(arg)
1313 unless @included_in_api_response
1317 unless @included_in_api_response
1314 param = params[:include]
1318 param = params[:include]
1315 @included_in_api_response = param.is_a?(Array) ? param.collect(&:to_s) : param.to_s.split(',')
1319 @included_in_api_response = param.is_a?(Array) ? param.collect(&:to_s) : param.to_s.split(',')
1316 @included_in_api_response.collect!(&:strip)
1320 @included_in_api_response.collect!(&:strip)
1317 end
1321 end
1318 @included_in_api_response.include?(arg.to_s)
1322 @included_in_api_response.include?(arg.to_s)
1319 end
1323 end
1320
1324
1321 # Returns options or nil if nometa param or X-Redmine-Nometa header
1325 # Returns options or nil if nometa param or X-Redmine-Nometa header
1322 # was set in the request
1326 # was set in the request
1323 def api_meta(options)
1327 def api_meta(options)
1324 if params[:nometa].present? || request.headers['X-Redmine-Nometa']
1328 if params[:nometa].present? || request.headers['X-Redmine-Nometa']
1325 # compatibility mode for activeresource clients that raise
1329 # compatibility mode for activeresource clients that raise
1326 # an error when unserializing an array with attributes
1330 # an error when unserializing an array with attributes
1327 nil
1331 nil
1328 else
1332 else
1329 options
1333 options
1330 end
1334 end
1331 end
1335 end
1332
1336
1333 private
1337 private
1334
1338
1335 def wiki_helper
1339 def wiki_helper
1336 helper = Redmine::WikiFormatting.helper_for(Setting.text_formatting)
1340 helper = Redmine::WikiFormatting.helper_for(Setting.text_formatting)
1337 extend helper
1341 extend helper
1338 return self
1342 return self
1339 end
1343 end
1340
1344
1341 def link_to_content_update(text, url_params = {}, html_options = {})
1345 def link_to_content_update(text, url_params = {}, html_options = {})
1342 link_to(text, url_params, html_options)
1346 link_to(text, url_params, html_options)
1343 end
1347 end
1344 end
1348 end
@@ -1,139 +1,144
1 # encoding: utf-8
1 # encoding: utf-8
2 #
2 #
3 # Redmine - project management software
3 # Redmine - project management software
4 # Copyright (C) 2006-2014 Jean-Philippe Lang
4 # Copyright (C) 2006-2014 Jean-Philippe Lang
5 #
5 #
6 # This program is free software; you can redistribute it and/or
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
9 # of the License, or (at your option) any later version.
10 #
10 #
11 # This program is distributed in the hope that it will be useful,
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
14 # GNU General Public License for more details.
15 #
15 #
16 # You should have received a copy of the GNU General Public License
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
20 module CustomFieldsHelper
20 module CustomFieldsHelper
21
21
22 CUSTOM_FIELDS_TABS = [
22 CUSTOM_FIELDS_TABS = [
23 {:name => 'IssueCustomField', :partial => 'custom_fields/index',
23 {:name => 'IssueCustomField', :partial => 'custom_fields/index',
24 :label => :label_issue_plural},
24 :label => :label_issue_plural},
25 {:name => 'TimeEntryCustomField', :partial => 'custom_fields/index',
25 {:name => 'TimeEntryCustomField', :partial => 'custom_fields/index',
26 :label => :label_spent_time},
26 :label => :label_spent_time},
27 {:name => 'ProjectCustomField', :partial => 'custom_fields/index',
27 {:name => 'ProjectCustomField', :partial => 'custom_fields/index',
28 :label => :label_project_plural},
28 :label => :label_project_plural},
29 {:name => 'VersionCustomField', :partial => 'custom_fields/index',
29 {:name => 'VersionCustomField', :partial => 'custom_fields/index',
30 :label => :label_version_plural},
30 :label => :label_version_plural},
31 {:name => 'UserCustomField', :partial => 'custom_fields/index',
31 {:name => 'UserCustomField', :partial => 'custom_fields/index',
32 :label => :label_user_plural},
32 :label => :label_user_plural},
33 {:name => 'GroupCustomField', :partial => 'custom_fields/index',
33 {:name => 'GroupCustomField', :partial => 'custom_fields/index',
34 :label => :label_group_plural},
34 :label => :label_group_plural},
35 {:name => 'TimeEntryActivityCustomField', :partial => 'custom_fields/index',
35 {:name => 'TimeEntryActivityCustomField', :partial => 'custom_fields/index',
36 :label => TimeEntryActivity::OptionName},
36 :label => TimeEntryActivity::OptionName},
37 {:name => 'IssuePriorityCustomField', :partial => 'custom_fields/index',
37 {:name => 'IssuePriorityCustomField', :partial => 'custom_fields/index',
38 :label => IssuePriority::OptionName},
38 :label => IssuePriority::OptionName},
39 {:name => 'DocumentCategoryCustomField', :partial => 'custom_fields/index',
39 {:name => 'DocumentCategoryCustomField', :partial => 'custom_fields/index',
40 :label => DocumentCategory::OptionName}
40 :label => DocumentCategory::OptionName}
41 ]
41 ]
42
42
43 def custom_fields_tabs
43 def render_custom_fields_tabs(types)
44 CUSTOM_FIELDS_TABS
44 tabs = CUSTOM_FIELDS_TABS.select {|h| types.include?(h[:name]) }
45 render_tabs tabs
46 end
47
48 def custom_field_type_options
49 CUSTOM_FIELDS_TABS.map {|h| [l(h[:label]), h[:name]]}
45 end
50 end
46
51
47 def render_custom_field_format_partial(form, custom_field)
52 def render_custom_field_format_partial(form, custom_field)
48 partial = custom_field.format.form_partial
53 partial = custom_field.format.form_partial
49 if partial
54 if partial
50 render :partial => custom_field.format.form_partial, :locals => {:f => form, :custom_field => custom_field}
55 render :partial => custom_field.format.form_partial, :locals => {:f => form, :custom_field => custom_field}
51 end
56 end
52 end
57 end
53
58
54 def custom_field_tag_name(prefix, custom_field)
59 def custom_field_tag_name(prefix, custom_field)
55 name = "#{prefix}[custom_field_values][#{custom_field.id}]"
60 name = "#{prefix}[custom_field_values][#{custom_field.id}]"
56 name << "[]" if custom_field.multiple?
61 name << "[]" if custom_field.multiple?
57 name
62 name
58 end
63 end
59
64
60 def custom_field_tag_id(prefix, custom_field)
65 def custom_field_tag_id(prefix, custom_field)
61 "#{prefix}_custom_field_values_#{custom_field.id}"
66 "#{prefix}_custom_field_values_#{custom_field.id}"
62 end
67 end
63
68
64 # Return custom field html tag corresponding to its format
69 # Return custom field html tag corresponding to its format
65 def custom_field_tag(prefix, custom_value)
70 def custom_field_tag(prefix, custom_value)
66 custom_value.custom_field.format.edit_tag self,
71 custom_value.custom_field.format.edit_tag self,
67 custom_field_tag_id(prefix, custom_value.custom_field),
72 custom_field_tag_id(prefix, custom_value.custom_field),
68 custom_field_tag_name(prefix, custom_value.custom_field),
73 custom_field_tag_name(prefix, custom_value.custom_field),
69 custom_value,
74 custom_value,
70 :class => "#{custom_value.custom_field.field_format}_cf"
75 :class => "#{custom_value.custom_field.field_format}_cf"
71 end
76 end
72
77
73 # Return custom field label tag
78 # Return custom field label tag
74 def custom_field_label_tag(name, custom_value, options={})
79 def custom_field_label_tag(name, custom_value, options={})
75 required = options[:required] || custom_value.custom_field.is_required?
80 required = options[:required] || custom_value.custom_field.is_required?
76 title = custom_value.custom_field.description.presence
81 title = custom_value.custom_field.description.presence
77 content = content_tag 'span', custom_value.custom_field.name, :title => title
82 content = content_tag 'span', custom_value.custom_field.name, :title => title
78
83
79 content_tag "label", content +
84 content_tag "label", content +
80 (required ? " <span class=\"required\">*</span>".html_safe : ""),
85 (required ? " <span class=\"required\">*</span>".html_safe : ""),
81 :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}"
86 :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}"
82 end
87 end
83
88
84 # Return custom field tag with its label tag
89 # Return custom field tag with its label tag
85 def custom_field_tag_with_label(name, custom_value, options={})
90 def custom_field_tag_with_label(name, custom_value, options={})
86 custom_field_label_tag(name, custom_value, options) + custom_field_tag(name, custom_value)
91 custom_field_label_tag(name, custom_value, options) + custom_field_tag(name, custom_value)
87 end
92 end
88
93
89 # Returns the custom field tag for when bulk editing objects
94 # Returns the custom field tag for when bulk editing objects
90 def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='')
95 def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='')
91 custom_field.format.bulk_edit_tag self,
96 custom_field.format.bulk_edit_tag self,
92 custom_field_tag_id(prefix, custom_field),
97 custom_field_tag_id(prefix, custom_field),
93 custom_field_tag_name(prefix, custom_field),
98 custom_field_tag_name(prefix, custom_field),
94 custom_field,
99 custom_field,
95 objects,
100 objects,
96 value,
101 value,
97 :class => "#{custom_field.field_format}_cf"
102 :class => "#{custom_field.field_format}_cf"
98 end
103 end
99
104
100 # Return a string used to display a custom value
105 # Return a string used to display a custom value
101 def show_value(custom_value, html=true)
106 def show_value(custom_value, html=true)
102 format_object(custom_value, html)
107 format_object(custom_value, html)
103 end
108 end
104
109
105 # Return a string used to display a custom value
110 # Return a string used to display a custom value
106 def format_value(value, custom_field)
111 def format_value(value, custom_field)
107 format_object(custom_field.format.formatted_value(self, custom_field, value, false), false)
112 format_object(custom_field.format.formatted_value(self, custom_field, value, false), false)
108 end
113 end
109
114
110 # Return an array of custom field formats which can be used in select_tag
115 # Return an array of custom field formats which can be used in select_tag
111 def custom_field_formats_for_select(custom_field)
116 def custom_field_formats_for_select(custom_field)
112 Redmine::FieldFormat.as_select(custom_field.class.customized_class.name)
117 Redmine::FieldFormat.as_select(custom_field.class.customized_class.name)
113 end
118 end
114
119
115 # Renders the custom_values in api views
120 # Renders the custom_values in api views
116 def render_api_custom_values(custom_values, api)
121 def render_api_custom_values(custom_values, api)
117 api.array :custom_fields do
122 api.array :custom_fields do
118 custom_values.each do |custom_value|
123 custom_values.each do |custom_value|
119 attrs = {:id => custom_value.custom_field_id, :name => custom_value.custom_field.name}
124 attrs = {:id => custom_value.custom_field_id, :name => custom_value.custom_field.name}
120 attrs.merge!(:multiple => true) if custom_value.custom_field.multiple?
125 attrs.merge!(:multiple => true) if custom_value.custom_field.multiple?
121 api.custom_field attrs do
126 api.custom_field attrs do
122 if custom_value.value.is_a?(Array)
127 if custom_value.value.is_a?(Array)
123 api.array :value do
128 api.array :value do
124 custom_value.value.each do |value|
129 custom_value.value.each do |value|
125 api.value value unless value.blank?
130 api.value value unless value.blank?
126 end
131 end
127 end
132 end
128 else
133 else
129 api.value custom_value.value
134 api.value custom_value.value
130 end
135 end
131 end
136 end
132 end
137 end
133 end unless custom_values.empty?
138 end unless custom_values.empty?
134 end
139 end
135
140
136 def edit_tag_style_tag(form)
141 def edit_tag_style_tag(form)
137 form.select :edit_tag_style, [[l(:label_drop_down_list), ''], [l(:label_checkboxes), 'check_box']], :label => :label_display
142 form.select :edit_tag_style, [[l(:label_drop_down_list), ''], [l(:label_checkboxes), 'check_box']], :label => :label_display
138 end
143 end
139 end
144 end
@@ -1,28 +1,26
1 <% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
2
3 <div class="tabs">
1 <div class="tabs">
4 <ul>
2 <ul>
5 <% tabs.each do |tab| -%>
3 <% tabs.each do |tab| -%>
6 <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
4 <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
7 :id => "tab-#{tab[:name]}",
5 :id => "tab-#{tab[:name]}",
8 :class => (tab[:name] != selected_tab ? nil : 'selected'),
6 :class => (tab[:name] != selected_tab ? nil : 'selected'),
9 :onclick => "showTab('#{tab[:name]}', this.href); this.blur(); return false;" %></li>
7 :onclick => "showTab('#{tab[:name]}', this.href); this.blur(); return false;" %></li>
10 <% end -%>
8 <% end -%>
11 </ul>
9 </ul>
12 <div class="tabs-buttons" style="display:none;">
10 <div class="tabs-buttons" style="display:none;">
13 <button class="tab-left" onclick="moveTabLeft(this);"></button>
11 <button class="tab-left" onclick="moveTabLeft(this);"></button>
14 <button class="tab-right" onclick="moveTabRight(this);"></button>
12 <button class="tab-right" onclick="moveTabRight(this);"></button>
15 </div>
13 </div>
16 </div>
14 </div>
17
15
18 <script>
16 <script>
19 $(document).ready(displayTabsButtons);
17 $(document).ready(displayTabsButtons);
20 $(window).resize(displayTabsButtons);
18 $(window).resize(displayTabsButtons);
21 </script>
19 </script>
22
20
23 <% tabs.each do |tab| -%>
21 <% tabs.each do |tab| -%>
24 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
22 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
25 :id => "tab-content-#{tab[:name]}",
23 :id => "tab-content-#{tab[:name]}",
26 :style => (tab[:name] != selected_tab ? 'display:none' : nil),
24 :style => (tab[:name] != selected_tab ? 'display:none' : nil),
27 :class => 'tab-content') %>
25 :class => 'tab-content') %>
28 <% end -%>
26 <% end -%>
@@ -1,32 +1,30
1 <table class="list">
1 <table class="list">
2 <thead><tr>
2 <thead><tr>
3 <th><%=l(:field_name)%></th>
3 <th><%=l(:field_name)%></th>
4 <th><%=l(:field_field_format)%></th>
4 <th><%=l(:field_field_format)%></th>
5 <th><%=l(:field_is_required)%></th>
5 <th><%=l(:field_is_required)%></th>
6 <% if tab[:name] == 'IssueCustomField' %>
6 <% if tab[:name] == 'IssueCustomField' %>
7 <th><%=l(:field_is_for_all)%></th>
7 <th><%=l(:field_is_for_all)%></th>
8 <th><%=l(:label_used_by)%></th>
8 <th><%=l(:label_used_by)%></th>
9 <% end %>
9 <% end %>
10 <th><%=l(:button_sort)%></th>
10 <th><%=l(:button_sort)%></th>
11 <th></th>
11 <th></th>
12 </tr></thead>
12 </tr></thead>
13 <tbody>
13 <tbody>
14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
15 <tr class="<%= cycle("odd", "even") %>">
15 <tr class="<%= cycle("odd", "even") %>">
16 <td class="name"><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
16 <td class="name"><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
17 <td><%= l(custom_field.format.label) %></td>
17 <td><%= l(custom_field.format.label) %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
19 <% if tab[:name] == 'IssueCustomField' %>
19 <% if tab[:name] == 'IssueCustomField' %>
20 <td><%= checked_image custom_field.is_for_all? %></td>
20 <td><%= checked_image custom_field.is_for_all? %></td>
21 <td><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
21 <td><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
22 <% end %>
22 <% end %>
23 <td class="reorder"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
23 <td class="reorder"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
24 <td class="buttons">
24 <td class="buttons">
25 <%= delete_link custom_field_path(custom_field) %>
25 <%= delete_link custom_field_path(custom_field) %>
26 </td>
26 </td>
27 </tr>
27 </tr>
28 <% end; reset_cycle %>
28 <% end; reset_cycle %>
29 </tbody>
29 </tbody>
30 </table>
30 </table>
31
32 <p><%= link_to l(:label_custom_field_new), new_custom_field_path(:type => tab[:name]), :class => 'icon icon-add' %></p>
@@ -1,3 +1,11
1 <div class="contextual">
2 <%= link_to l(:label_custom_field_new), new_custom_field_path, :class => 'icon icon-add' %>
3 </div>
4
1 <%= title l(:label_custom_field_plural) %>
5 <%= title l(:label_custom_field_plural) %>
2
6
3 <%= render_tabs custom_fields_tabs %>
7 <% if @custom_fields_by_type.present? %>
8 <%= render_custom_fields_tabs(@custom_fields_by_type.keys) %>
9 <% else %>
10 <p class="nodata"><%= l(:label_no_data) %></p>
11 <% end %>
@@ -1,1103 +1,1104
1 en:
1 en:
2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
3 direction: ltr
3 direction: ltr
4 date:
4 date:
5 formats:
5 formats:
6 # Use the strftime parameters for formats.
6 # Use the strftime parameters for formats.
7 # When no format has been given, it uses default.
7 # When no format has been given, it uses default.
8 # You can provide other formats here if you like!
8 # You can provide other formats here if you like!
9 default: "%m/%d/%Y"
9 default: "%m/%d/%Y"
10 short: "%b %d"
10 short: "%b %d"
11 long: "%B %d, %Y"
11 long: "%B %d, %Y"
12
12
13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
15
15
16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
19 # Used in date_select and datime_select.
19 # Used in date_select and datime_select.
20 order:
20 order:
21 - :year
21 - :year
22 - :month
22 - :month
23 - :day
23 - :day
24
24
25 time:
25 time:
26 formats:
26 formats:
27 default: "%m/%d/%Y %I:%M %p"
27 default: "%m/%d/%Y %I:%M %p"
28 time: "%I:%M %p"
28 time: "%I:%M %p"
29 short: "%d %b %H:%M"
29 short: "%d %b %H:%M"
30 long: "%B %d, %Y %H:%M"
30 long: "%B %d, %Y %H:%M"
31 am: "am"
31 am: "am"
32 pm: "pm"
32 pm: "pm"
33
33
34 datetime:
34 datetime:
35 distance_in_words:
35 distance_in_words:
36 half_a_minute: "half a minute"
36 half_a_minute: "half a minute"
37 less_than_x_seconds:
37 less_than_x_seconds:
38 one: "less than 1 second"
38 one: "less than 1 second"
39 other: "less than %{count} seconds"
39 other: "less than %{count} seconds"
40 x_seconds:
40 x_seconds:
41 one: "1 second"
41 one: "1 second"
42 other: "%{count} seconds"
42 other: "%{count} seconds"
43 less_than_x_minutes:
43 less_than_x_minutes:
44 one: "less than a minute"
44 one: "less than a minute"
45 other: "less than %{count} minutes"
45 other: "less than %{count} minutes"
46 x_minutes:
46 x_minutes:
47 one: "1 minute"
47 one: "1 minute"
48 other: "%{count} minutes"
48 other: "%{count} minutes"
49 about_x_hours:
49 about_x_hours:
50 one: "about 1 hour"
50 one: "about 1 hour"
51 other: "about %{count} hours"
51 other: "about %{count} hours"
52 x_hours:
52 x_hours:
53 one: "1 hour"
53 one: "1 hour"
54 other: "%{count} hours"
54 other: "%{count} hours"
55 x_days:
55 x_days:
56 one: "1 day"
56 one: "1 day"
57 other: "%{count} days"
57 other: "%{count} days"
58 about_x_months:
58 about_x_months:
59 one: "about 1 month"
59 one: "about 1 month"
60 other: "about %{count} months"
60 other: "about %{count} months"
61 x_months:
61 x_months:
62 one: "1 month"
62 one: "1 month"
63 other: "%{count} months"
63 other: "%{count} months"
64 about_x_years:
64 about_x_years:
65 one: "about 1 year"
65 one: "about 1 year"
66 other: "about %{count} years"
66 other: "about %{count} years"
67 over_x_years:
67 over_x_years:
68 one: "over 1 year"
68 one: "over 1 year"
69 other: "over %{count} years"
69 other: "over %{count} years"
70 almost_x_years:
70 almost_x_years:
71 one: "almost 1 year"
71 one: "almost 1 year"
72 other: "almost %{count} years"
72 other: "almost %{count} years"
73
73
74 number:
74 number:
75 format:
75 format:
76 separator: "."
76 separator: "."
77 delimiter: ""
77 delimiter: ""
78 precision: 3
78 precision: 3
79
79
80 human:
80 human:
81 format:
81 format:
82 delimiter: ""
82 delimiter: ""
83 precision: 3
83 precision: 3
84 storage_units:
84 storage_units:
85 format: "%n %u"
85 format: "%n %u"
86 units:
86 units:
87 byte:
87 byte:
88 one: "Byte"
88 one: "Byte"
89 other: "Bytes"
89 other: "Bytes"
90 kb: "KB"
90 kb: "KB"
91 mb: "MB"
91 mb: "MB"
92 gb: "GB"
92 gb: "GB"
93 tb: "TB"
93 tb: "TB"
94
94
95 # Used in array.to_sentence.
95 # Used in array.to_sentence.
96 support:
96 support:
97 array:
97 array:
98 sentence_connector: "and"
98 sentence_connector: "and"
99 skip_last_comma: false
99 skip_last_comma: false
100
100
101 activerecord:
101 activerecord:
102 errors:
102 errors:
103 template:
103 template:
104 header:
104 header:
105 one: "1 error prohibited this %{model} from being saved"
105 one: "1 error prohibited this %{model} from being saved"
106 other: "%{count} errors prohibited this %{model} from being saved"
106 other: "%{count} errors prohibited this %{model} from being saved"
107 messages:
107 messages:
108 inclusion: "is not included in the list"
108 inclusion: "is not included in the list"
109 exclusion: "is reserved"
109 exclusion: "is reserved"
110 invalid: "is invalid"
110 invalid: "is invalid"
111 confirmation: "doesn't match confirmation"
111 confirmation: "doesn't match confirmation"
112 accepted: "must be accepted"
112 accepted: "must be accepted"
113 empty: "can't be empty"
113 empty: "can't be empty"
114 blank: "can't be blank"
114 blank: "can't be blank"
115 too_long: "is too long (maximum is %{count} characters)"
115 too_long: "is too long (maximum is %{count} characters)"
116 too_short: "is too short (minimum is %{count} characters)"
116 too_short: "is too short (minimum is %{count} characters)"
117 wrong_length: "is the wrong length (should be %{count} characters)"
117 wrong_length: "is the wrong length (should be %{count} characters)"
118 taken: "has already been taken"
118 taken: "has already been taken"
119 not_a_number: "is not a number"
119 not_a_number: "is not a number"
120 not_a_date: "is not a valid date"
120 not_a_date: "is not a valid date"
121 greater_than: "must be greater than %{count}"
121 greater_than: "must be greater than %{count}"
122 greater_than_or_equal_to: "must be greater than or equal to %{count}"
122 greater_than_or_equal_to: "must be greater than or equal to %{count}"
123 equal_to: "must be equal to %{count}"
123 equal_to: "must be equal to %{count}"
124 less_than: "must be less than %{count}"
124 less_than: "must be less than %{count}"
125 less_than_or_equal_to: "must be less than or equal to %{count}"
125 less_than_or_equal_to: "must be less than or equal to %{count}"
126 odd: "must be odd"
126 odd: "must be odd"
127 even: "must be even"
127 even: "must be even"
128 greater_than_start_date: "must be greater than start date"
128 greater_than_start_date: "must be greater than start date"
129 not_same_project: "doesn't belong to the same project"
129 not_same_project: "doesn't belong to the same project"
130 circular_dependency: "This relation would create a circular dependency"
130 circular_dependency: "This relation would create a circular dependency"
131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133
133
134 actionview_instancetag_blank_option: Please select
134 actionview_instancetag_blank_option: Please select
135
135
136 general_text_No: 'No'
136 general_text_No: 'No'
137 general_text_Yes: 'Yes'
137 general_text_Yes: 'Yes'
138 general_text_no: 'no'
138 general_text_no: 'no'
139 general_text_yes: 'yes'
139 general_text_yes: 'yes'
140 general_lang_name: 'English'
140 general_lang_name: 'English'
141 general_csv_separator: ','
141 general_csv_separator: ','
142 general_csv_decimal_separator: '.'
142 general_csv_decimal_separator: '.'
143 general_csv_encoding: ISO-8859-1
143 general_csv_encoding: ISO-8859-1
144 general_pdf_encoding: UTF-8
144 general_pdf_encoding: UTF-8
145 general_first_day_of_week: '7'
145 general_first_day_of_week: '7'
146
146
147 notice_account_updated: Account was successfully updated.
147 notice_account_updated: Account was successfully updated.
148 notice_account_invalid_creditentials: Invalid user or password
148 notice_account_invalid_creditentials: Invalid user or password
149 notice_account_password_updated: Password was successfully updated.
149 notice_account_password_updated: Password was successfully updated.
150 notice_account_wrong_password: Wrong password
150 notice_account_wrong_password: Wrong password
151 notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
151 notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
152 notice_account_unknown_email: Unknown user.
152 notice_account_unknown_email: Unknown user.
153 notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
153 notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
154 notice_account_locked: Your account is locked.
154 notice_account_locked: Your account is locked.
155 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
155 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
156 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
156 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
157 notice_account_activated: Your account has been activated. You can now log in.
157 notice_account_activated: Your account has been activated. You can now log in.
158 notice_successful_create: Successful creation.
158 notice_successful_create: Successful creation.
159 notice_successful_update: Successful update.
159 notice_successful_update: Successful update.
160 notice_successful_delete: Successful deletion.
160 notice_successful_delete: Successful deletion.
161 notice_successful_connection: Successful connection.
161 notice_successful_connection: Successful connection.
162 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
162 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
163 notice_locking_conflict: Data has been updated by another user.
163 notice_locking_conflict: Data has been updated by another user.
164 notice_not_authorized: You are not authorized to access this page.
164 notice_not_authorized: You are not authorized to access this page.
165 notice_not_authorized_archived_project: The project you're trying to access has been archived.
165 notice_not_authorized_archived_project: The project you're trying to access has been archived.
166 notice_email_sent: "An email was sent to %{value}"
166 notice_email_sent: "An email was sent to %{value}"
167 notice_email_error: "An error occurred while sending mail (%{value})"
167 notice_email_error: "An error occurred while sending mail (%{value})"
168 notice_feeds_access_key_reseted: Your Atom access key was reset.
168 notice_feeds_access_key_reseted: Your Atom access key was reset.
169 notice_api_access_key_reseted: Your API access key was reset.
169 notice_api_access_key_reseted: Your API access key was reset.
170 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
170 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
171 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
171 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
172 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
172 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
173 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
173 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
174 notice_account_pending: "Your account was created and is now pending administrator approval."
174 notice_account_pending: "Your account was created and is now pending administrator approval."
175 notice_default_data_loaded: Default configuration successfully loaded.
175 notice_default_data_loaded: Default configuration successfully loaded.
176 notice_unable_delete_version: Unable to delete version.
176 notice_unable_delete_version: Unable to delete version.
177 notice_unable_delete_time_entry: Unable to delete time log entry.
177 notice_unable_delete_time_entry: Unable to delete time log entry.
178 notice_issue_done_ratios_updated: Issue done ratios updated.
178 notice_issue_done_ratios_updated: Issue done ratios updated.
179 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
179 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
180 notice_issue_successful_create: "Issue %{id} created."
180 notice_issue_successful_create: "Issue %{id} created."
181 notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
181 notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
182 notice_account_deleted: "Your account has been permanently deleted."
182 notice_account_deleted: "Your account has been permanently deleted."
183 notice_user_successful_create: "User %{id} created."
183 notice_user_successful_create: "User %{id} created."
184 notice_new_password_must_be_different: The new password must be different from the current password
184 notice_new_password_must_be_different: The new password must be different from the current password
185
185
186 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
186 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
187 error_scm_not_found: "The entry or revision was not found in the repository."
187 error_scm_not_found: "The entry or revision was not found in the repository."
188 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
188 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
189 error_scm_annotate: "The entry does not exist or cannot be annotated."
189 error_scm_annotate: "The entry does not exist or cannot be annotated."
190 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
190 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
191 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
191 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
192 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
192 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
193 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
193 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
194 error_can_not_delete_custom_field: Unable to delete custom field
194 error_can_not_delete_custom_field: Unable to delete custom field
195 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
195 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
196 error_can_not_remove_role: "This role is in use and cannot be deleted."
196 error_can_not_remove_role: "This role is in use and cannot be deleted."
197 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
197 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
198 error_can_not_archive_project: This project cannot be archived
198 error_can_not_archive_project: This project cannot be archived
199 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
199 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
200 error_workflow_copy_source: 'Please select a source tracker or role'
200 error_workflow_copy_source: 'Please select a source tracker or role'
201 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
201 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
202 error_unable_delete_issue_status: 'Unable to delete issue status'
202 error_unable_delete_issue_status: 'Unable to delete issue status'
203 error_unable_to_connect: "Unable to connect (%{value})"
203 error_unable_to_connect: "Unable to connect (%{value})"
204 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
204 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
205 error_session_expired: "Your session has expired. Please login again."
205 error_session_expired: "Your session has expired. Please login again."
206 warning_attachments_not_saved: "%{count} file(s) could not be saved."
206 warning_attachments_not_saved: "%{count} file(s) could not be saved."
207
207
208 mail_subject_lost_password: "Your %{value} password"
208 mail_subject_lost_password: "Your %{value} password"
209 mail_body_lost_password: 'To change your password, click on the following link:'
209 mail_body_lost_password: 'To change your password, click on the following link:'
210 mail_subject_register: "Your %{value} account activation"
210 mail_subject_register: "Your %{value} account activation"
211 mail_body_register: 'To activate your account, click on the following link:'
211 mail_body_register: 'To activate your account, click on the following link:'
212 mail_body_account_information_external: "You can use your %{value} account to log in."
212 mail_body_account_information_external: "You can use your %{value} account to log in."
213 mail_body_account_information: Your account information
213 mail_body_account_information: Your account information
214 mail_subject_account_activation_request: "%{value} account activation request"
214 mail_subject_account_activation_request: "%{value} account activation request"
215 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
215 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
216 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
216 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
217 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
217 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
218 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
218 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
219 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
219 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
220 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
220 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
221 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
221 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
222
222
223 field_name: Name
223 field_name: Name
224 field_description: Description
224 field_description: Description
225 field_summary: Summary
225 field_summary: Summary
226 field_is_required: Required
226 field_is_required: Required
227 field_firstname: First name
227 field_firstname: First name
228 field_lastname: Last name
228 field_lastname: Last name
229 field_mail: Email
229 field_mail: Email
230 field_filename: File
230 field_filename: File
231 field_filesize: Size
231 field_filesize: Size
232 field_downloads: Downloads
232 field_downloads: Downloads
233 field_author: Author
233 field_author: Author
234 field_created_on: Created
234 field_created_on: Created
235 field_updated_on: Updated
235 field_updated_on: Updated
236 field_closed_on: Closed
236 field_closed_on: Closed
237 field_field_format: Format
237 field_field_format: Format
238 field_is_for_all: For all projects
238 field_is_for_all: For all projects
239 field_possible_values: Possible values
239 field_possible_values: Possible values
240 field_regexp: Regular expression
240 field_regexp: Regular expression
241 field_min_length: Minimum length
241 field_min_length: Minimum length
242 field_max_length: Maximum length
242 field_max_length: Maximum length
243 field_value: Value
243 field_value: Value
244 field_category: Category
244 field_category: Category
245 field_title: Title
245 field_title: Title
246 field_project: Project
246 field_project: Project
247 field_issue: Issue
247 field_issue: Issue
248 field_status: Status
248 field_status: Status
249 field_notes: Notes
249 field_notes: Notes
250 field_is_closed: Issue closed
250 field_is_closed: Issue closed
251 field_is_default: Default value
251 field_is_default: Default value
252 field_tracker: Tracker
252 field_tracker: Tracker
253 field_subject: Subject
253 field_subject: Subject
254 field_due_date: Due date
254 field_due_date: Due date
255 field_assigned_to: Assignee
255 field_assigned_to: Assignee
256 field_priority: Priority
256 field_priority: Priority
257 field_fixed_version: Target version
257 field_fixed_version: Target version
258 field_user: User
258 field_user: User
259 field_principal: Principal
259 field_principal: Principal
260 field_role: Role
260 field_role: Role
261 field_homepage: Homepage
261 field_homepage: Homepage
262 field_is_public: Public
262 field_is_public: Public
263 field_parent: Subproject of
263 field_parent: Subproject of
264 field_is_in_roadmap: Issues displayed in roadmap
264 field_is_in_roadmap: Issues displayed in roadmap
265 field_login: Login
265 field_login: Login
266 field_mail_notification: Email notifications
266 field_mail_notification: Email notifications
267 field_admin: Administrator
267 field_admin: Administrator
268 field_last_login_on: Last connection
268 field_last_login_on: Last connection
269 field_language: Language
269 field_language: Language
270 field_effective_date: Date
270 field_effective_date: Date
271 field_password: Password
271 field_password: Password
272 field_new_password: New password
272 field_new_password: New password
273 field_password_confirmation: Confirmation
273 field_password_confirmation: Confirmation
274 field_version: Version
274 field_version: Version
275 field_type: Type
275 field_type: Type
276 field_host: Host
276 field_host: Host
277 field_port: Port
277 field_port: Port
278 field_account: Account
278 field_account: Account
279 field_base_dn: Base DN
279 field_base_dn: Base DN
280 field_attr_login: Login attribute
280 field_attr_login: Login attribute
281 field_attr_firstname: Firstname attribute
281 field_attr_firstname: Firstname attribute
282 field_attr_lastname: Lastname attribute
282 field_attr_lastname: Lastname attribute
283 field_attr_mail: Email attribute
283 field_attr_mail: Email attribute
284 field_onthefly: On-the-fly user creation
284 field_onthefly: On-the-fly user creation
285 field_start_date: Start date
285 field_start_date: Start date
286 field_done_ratio: "% Done"
286 field_done_ratio: "% Done"
287 field_auth_source: Authentication mode
287 field_auth_source: Authentication mode
288 field_hide_mail: Hide my email address
288 field_hide_mail: Hide my email address
289 field_comments: Comment
289 field_comments: Comment
290 field_url: URL
290 field_url: URL
291 field_start_page: Start page
291 field_start_page: Start page
292 field_subproject: Subproject
292 field_subproject: Subproject
293 field_hours: Hours
293 field_hours: Hours
294 field_activity: Activity
294 field_activity: Activity
295 field_spent_on: Date
295 field_spent_on: Date
296 field_identifier: Identifier
296 field_identifier: Identifier
297 field_is_filter: Used as a filter
297 field_is_filter: Used as a filter
298 field_issue_to: Related issue
298 field_issue_to: Related issue
299 field_delay: Delay
299 field_delay: Delay
300 field_assignable: Issues can be assigned to this role
300 field_assignable: Issues can be assigned to this role
301 field_redirect_existing_links: Redirect existing links
301 field_redirect_existing_links: Redirect existing links
302 field_estimated_hours: Estimated time
302 field_estimated_hours: Estimated time
303 field_column_names: Columns
303 field_column_names: Columns
304 field_time_entries: Log time
304 field_time_entries: Log time
305 field_time_zone: Time zone
305 field_time_zone: Time zone
306 field_searchable: Searchable
306 field_searchable: Searchable
307 field_default_value: Default value
307 field_default_value: Default value
308 field_comments_sorting: Display comments
308 field_comments_sorting: Display comments
309 field_parent_title: Parent page
309 field_parent_title: Parent page
310 field_editable: Editable
310 field_editable: Editable
311 field_watcher: Watcher
311 field_watcher: Watcher
312 field_identity_url: OpenID URL
312 field_identity_url: OpenID URL
313 field_content: Content
313 field_content: Content
314 field_group_by: Group results by
314 field_group_by: Group results by
315 field_sharing: Sharing
315 field_sharing: Sharing
316 field_parent_issue: Parent task
316 field_parent_issue: Parent task
317 field_member_of_group: "Assignee's group"
317 field_member_of_group: "Assignee's group"
318 field_assigned_to_role: "Assignee's role"
318 field_assigned_to_role: "Assignee's role"
319 field_text: Text field
319 field_text: Text field
320 field_visible: Visible
320 field_visible: Visible
321 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
321 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
322 field_issues_visibility: Issues visibility
322 field_issues_visibility: Issues visibility
323 field_is_private: Private
323 field_is_private: Private
324 field_commit_logs_encoding: Commit messages encoding
324 field_commit_logs_encoding: Commit messages encoding
325 field_scm_path_encoding: Path encoding
325 field_scm_path_encoding: Path encoding
326 field_path_to_repository: Path to repository
326 field_path_to_repository: Path to repository
327 field_root_directory: Root directory
327 field_root_directory: Root directory
328 field_cvsroot: CVSROOT
328 field_cvsroot: CVSROOT
329 field_cvs_module: Module
329 field_cvs_module: Module
330 field_repository_is_default: Main repository
330 field_repository_is_default: Main repository
331 field_multiple: Multiple values
331 field_multiple: Multiple values
332 field_auth_source_ldap_filter: LDAP filter
332 field_auth_source_ldap_filter: LDAP filter
333 field_core_fields: Standard fields
333 field_core_fields: Standard fields
334 field_timeout: "Timeout (in seconds)"
334 field_timeout: "Timeout (in seconds)"
335 field_board_parent: Parent forum
335 field_board_parent: Parent forum
336 field_private_notes: Private notes
336 field_private_notes: Private notes
337 field_inherit_members: Inherit members
337 field_inherit_members: Inherit members
338 field_generate_password: Generate password
338 field_generate_password: Generate password
339 field_must_change_passwd: Must change password at next logon
339 field_must_change_passwd: Must change password at next logon
340
340
341 setting_app_title: Application title
341 setting_app_title: Application title
342 setting_app_subtitle: Application subtitle
342 setting_app_subtitle: Application subtitle
343 setting_welcome_text: Welcome text
343 setting_welcome_text: Welcome text
344 setting_default_language: Default language
344 setting_default_language: Default language
345 setting_login_required: Authentication required
345 setting_login_required: Authentication required
346 setting_self_registration: Self-registration
346 setting_self_registration: Self-registration
347 setting_attachment_max_size: Maximum attachment size
347 setting_attachment_max_size: Maximum attachment size
348 setting_issues_export_limit: Issues export limit
348 setting_issues_export_limit: Issues export limit
349 setting_mail_from: Emission email address
349 setting_mail_from: Emission email address
350 setting_bcc_recipients: Blind carbon copy recipients (bcc)
350 setting_bcc_recipients: Blind carbon copy recipients (bcc)
351 setting_plain_text_mail: Plain text mail (no HTML)
351 setting_plain_text_mail: Plain text mail (no HTML)
352 setting_host_name: Host name and path
352 setting_host_name: Host name and path
353 setting_text_formatting: Text formatting
353 setting_text_formatting: Text formatting
354 setting_wiki_compression: Wiki history compression
354 setting_wiki_compression: Wiki history compression
355 setting_feeds_limit: Maximum number of items in Atom feeds
355 setting_feeds_limit: Maximum number of items in Atom feeds
356 setting_default_projects_public: New projects are public by default
356 setting_default_projects_public: New projects are public by default
357 setting_autofetch_changesets: Fetch commits automatically
357 setting_autofetch_changesets: Fetch commits automatically
358 setting_sys_api_enabled: Enable WS for repository management
358 setting_sys_api_enabled: Enable WS for repository management
359 setting_commit_ref_keywords: Referencing keywords
359 setting_commit_ref_keywords: Referencing keywords
360 setting_commit_fix_keywords: Fixing keywords
360 setting_commit_fix_keywords: Fixing keywords
361 setting_autologin: Autologin
361 setting_autologin: Autologin
362 setting_date_format: Date format
362 setting_date_format: Date format
363 setting_time_format: Time format
363 setting_time_format: Time format
364 setting_cross_project_issue_relations: Allow cross-project issue relations
364 setting_cross_project_issue_relations: Allow cross-project issue relations
365 setting_cross_project_subtasks: Allow cross-project subtasks
365 setting_cross_project_subtasks: Allow cross-project subtasks
366 setting_issue_list_default_columns: Default columns displayed on the issue list
366 setting_issue_list_default_columns: Default columns displayed on the issue list
367 setting_repositories_encodings: Attachments and repositories encodings
367 setting_repositories_encodings: Attachments and repositories encodings
368 setting_emails_header: Email header
368 setting_emails_header: Email header
369 setting_emails_footer: Email footer
369 setting_emails_footer: Email footer
370 setting_protocol: Protocol
370 setting_protocol: Protocol
371 setting_per_page_options: Objects per page options
371 setting_per_page_options: Objects per page options
372 setting_user_format: Users display format
372 setting_user_format: Users display format
373 setting_activity_days_default: Days displayed on project activity
373 setting_activity_days_default: Days displayed on project activity
374 setting_display_subprojects_issues: Display subprojects issues on main projects by default
374 setting_display_subprojects_issues: Display subprojects issues on main projects by default
375 setting_enabled_scm: Enabled SCM
375 setting_enabled_scm: Enabled SCM
376 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
376 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
377 setting_mail_handler_api_enabled: Enable WS for incoming emails
377 setting_mail_handler_api_enabled: Enable WS for incoming emails
378 setting_mail_handler_api_key: API key
378 setting_mail_handler_api_key: API key
379 setting_sequential_project_identifiers: Generate sequential project identifiers
379 setting_sequential_project_identifiers: Generate sequential project identifiers
380 setting_gravatar_enabled: Use Gravatar user icons
380 setting_gravatar_enabled: Use Gravatar user icons
381 setting_gravatar_default: Default Gravatar image
381 setting_gravatar_default: Default Gravatar image
382 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
382 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
383 setting_file_max_size_displayed: Maximum size of text files displayed inline
383 setting_file_max_size_displayed: Maximum size of text files displayed inline
384 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
384 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
385 setting_openid: Allow OpenID login and registration
385 setting_openid: Allow OpenID login and registration
386 setting_password_min_length: Minimum password length
386 setting_password_min_length: Minimum password length
387 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
387 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
388 setting_default_projects_modules: Default enabled modules for new projects
388 setting_default_projects_modules: Default enabled modules for new projects
389 setting_issue_done_ratio: Calculate the issue done ratio with
389 setting_issue_done_ratio: Calculate the issue done ratio with
390 setting_issue_done_ratio_issue_field: Use the issue field
390 setting_issue_done_ratio_issue_field: Use the issue field
391 setting_issue_done_ratio_issue_status: Use the issue status
391 setting_issue_done_ratio_issue_status: Use the issue status
392 setting_start_of_week: Start calendars on
392 setting_start_of_week: Start calendars on
393 setting_rest_api_enabled: Enable REST web service
393 setting_rest_api_enabled: Enable REST web service
394 setting_cache_formatted_text: Cache formatted text
394 setting_cache_formatted_text: Cache formatted text
395 setting_default_notification_option: Default notification option
395 setting_default_notification_option: Default notification option
396 setting_commit_logtime_enabled: Enable time logging
396 setting_commit_logtime_enabled: Enable time logging
397 setting_commit_logtime_activity_id: Activity for logged time
397 setting_commit_logtime_activity_id: Activity for logged time
398 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
398 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
399 setting_issue_group_assignment: Allow issue assignment to groups
399 setting_issue_group_assignment: Allow issue assignment to groups
400 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
400 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
401 setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
401 setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
402 setting_unsubscribe: Allow users to delete their own account
402 setting_unsubscribe: Allow users to delete their own account
403 setting_session_lifetime: Session maximum lifetime
403 setting_session_lifetime: Session maximum lifetime
404 setting_session_timeout: Session inactivity timeout
404 setting_session_timeout: Session inactivity timeout
405 setting_thumbnails_enabled: Display attachment thumbnails
405 setting_thumbnails_enabled: Display attachment thumbnails
406 setting_thumbnails_size: Thumbnails size (in pixels)
406 setting_thumbnails_size: Thumbnails size (in pixels)
407 setting_non_working_week_days: Non-working days
407 setting_non_working_week_days: Non-working days
408 setting_jsonp_enabled: Enable JSONP support
408 setting_jsonp_enabled: Enable JSONP support
409 setting_default_projects_tracker_ids: Default trackers for new projects
409 setting_default_projects_tracker_ids: Default trackers for new projects
410 setting_mail_handler_excluded_filenames: Exclude attachments by name
410 setting_mail_handler_excluded_filenames: Exclude attachments by name
411 setting_force_default_language_for_anonymous: Force default language for anonymous users
411 setting_force_default_language_for_anonymous: Force default language for anonymous users
412 setting_force_default_language_for_loggedin: Force default language for logged-in users
412 setting_force_default_language_for_loggedin: Force default language for logged-in users
413
413
414 permission_add_project: Create project
414 permission_add_project: Create project
415 permission_add_subprojects: Create subprojects
415 permission_add_subprojects: Create subprojects
416 permission_edit_project: Edit project
416 permission_edit_project: Edit project
417 permission_close_project: Close / reopen the project
417 permission_close_project: Close / reopen the project
418 permission_select_project_modules: Select project modules
418 permission_select_project_modules: Select project modules
419 permission_manage_members: Manage members
419 permission_manage_members: Manage members
420 permission_manage_project_activities: Manage project activities
420 permission_manage_project_activities: Manage project activities
421 permission_manage_versions: Manage versions
421 permission_manage_versions: Manage versions
422 permission_manage_categories: Manage issue categories
422 permission_manage_categories: Manage issue categories
423 permission_view_issues: View Issues
423 permission_view_issues: View Issues
424 permission_add_issues: Add issues
424 permission_add_issues: Add issues
425 permission_edit_issues: Edit issues
425 permission_edit_issues: Edit issues
426 permission_manage_issue_relations: Manage issue relations
426 permission_manage_issue_relations: Manage issue relations
427 permission_set_issues_private: Set issues public or private
427 permission_set_issues_private: Set issues public or private
428 permission_set_own_issues_private: Set own issues public or private
428 permission_set_own_issues_private: Set own issues public or private
429 permission_add_issue_notes: Add notes
429 permission_add_issue_notes: Add notes
430 permission_edit_issue_notes: Edit notes
430 permission_edit_issue_notes: Edit notes
431 permission_edit_own_issue_notes: Edit own notes
431 permission_edit_own_issue_notes: Edit own notes
432 permission_view_private_notes: View private notes
432 permission_view_private_notes: View private notes
433 permission_set_notes_private: Set notes as private
433 permission_set_notes_private: Set notes as private
434 permission_move_issues: Move issues
434 permission_move_issues: Move issues
435 permission_delete_issues: Delete issues
435 permission_delete_issues: Delete issues
436 permission_manage_public_queries: Manage public queries
436 permission_manage_public_queries: Manage public queries
437 permission_save_queries: Save queries
437 permission_save_queries: Save queries
438 permission_view_gantt: View gantt chart
438 permission_view_gantt: View gantt chart
439 permission_view_calendar: View calendar
439 permission_view_calendar: View calendar
440 permission_view_issue_watchers: View watchers list
440 permission_view_issue_watchers: View watchers list
441 permission_add_issue_watchers: Add watchers
441 permission_add_issue_watchers: Add watchers
442 permission_delete_issue_watchers: Delete watchers
442 permission_delete_issue_watchers: Delete watchers
443 permission_log_time: Log spent time
443 permission_log_time: Log spent time
444 permission_view_time_entries: View spent time
444 permission_view_time_entries: View spent time
445 permission_edit_time_entries: Edit time logs
445 permission_edit_time_entries: Edit time logs
446 permission_edit_own_time_entries: Edit own time logs
446 permission_edit_own_time_entries: Edit own time logs
447 permission_manage_news: Manage news
447 permission_manage_news: Manage news
448 permission_comment_news: Comment news
448 permission_comment_news: Comment news
449 permission_view_documents: View documents
449 permission_view_documents: View documents
450 permission_add_documents: Add documents
450 permission_add_documents: Add documents
451 permission_edit_documents: Edit documents
451 permission_edit_documents: Edit documents
452 permission_delete_documents: Delete documents
452 permission_delete_documents: Delete documents
453 permission_manage_files: Manage files
453 permission_manage_files: Manage files
454 permission_view_files: View files
454 permission_view_files: View files
455 permission_manage_wiki: Manage wiki
455 permission_manage_wiki: Manage wiki
456 permission_rename_wiki_pages: Rename wiki pages
456 permission_rename_wiki_pages: Rename wiki pages
457 permission_delete_wiki_pages: Delete wiki pages
457 permission_delete_wiki_pages: Delete wiki pages
458 permission_view_wiki_pages: View wiki
458 permission_view_wiki_pages: View wiki
459 permission_view_wiki_edits: View wiki history
459 permission_view_wiki_edits: View wiki history
460 permission_edit_wiki_pages: Edit wiki pages
460 permission_edit_wiki_pages: Edit wiki pages
461 permission_delete_wiki_pages_attachments: Delete attachments
461 permission_delete_wiki_pages_attachments: Delete attachments
462 permission_protect_wiki_pages: Protect wiki pages
462 permission_protect_wiki_pages: Protect wiki pages
463 permission_manage_repository: Manage repository
463 permission_manage_repository: Manage repository
464 permission_browse_repository: Browse repository
464 permission_browse_repository: Browse repository
465 permission_view_changesets: View changesets
465 permission_view_changesets: View changesets
466 permission_commit_access: Commit access
466 permission_commit_access: Commit access
467 permission_manage_boards: Manage forums
467 permission_manage_boards: Manage forums
468 permission_view_messages: View messages
468 permission_view_messages: View messages
469 permission_add_messages: Post messages
469 permission_add_messages: Post messages
470 permission_edit_messages: Edit messages
470 permission_edit_messages: Edit messages
471 permission_edit_own_messages: Edit own messages
471 permission_edit_own_messages: Edit own messages
472 permission_delete_messages: Delete messages
472 permission_delete_messages: Delete messages
473 permission_delete_own_messages: Delete own messages
473 permission_delete_own_messages: Delete own messages
474 permission_export_wiki_pages: Export wiki pages
474 permission_export_wiki_pages: Export wiki pages
475 permission_manage_subtasks: Manage subtasks
475 permission_manage_subtasks: Manage subtasks
476 permission_manage_related_issues: Manage related issues
476 permission_manage_related_issues: Manage related issues
477
477
478 project_module_issue_tracking: Issue tracking
478 project_module_issue_tracking: Issue tracking
479 project_module_time_tracking: Time tracking
479 project_module_time_tracking: Time tracking
480 project_module_news: News
480 project_module_news: News
481 project_module_documents: Documents
481 project_module_documents: Documents
482 project_module_files: Files
482 project_module_files: Files
483 project_module_wiki: Wiki
483 project_module_wiki: Wiki
484 project_module_repository: Repository
484 project_module_repository: Repository
485 project_module_boards: Forums
485 project_module_boards: Forums
486 project_module_calendar: Calendar
486 project_module_calendar: Calendar
487 project_module_gantt: Gantt
487 project_module_gantt: Gantt
488
488
489 label_user: User
489 label_user: User
490 label_user_plural: Users
490 label_user_plural: Users
491 label_user_new: New user
491 label_user_new: New user
492 label_user_anonymous: Anonymous
492 label_user_anonymous: Anonymous
493 label_project: Project
493 label_project: Project
494 label_project_new: New project
494 label_project_new: New project
495 label_project_plural: Projects
495 label_project_plural: Projects
496 label_x_projects:
496 label_x_projects:
497 zero: no projects
497 zero: no projects
498 one: 1 project
498 one: 1 project
499 other: "%{count} projects"
499 other: "%{count} projects"
500 label_project_all: All Projects
500 label_project_all: All Projects
501 label_project_latest: Latest projects
501 label_project_latest: Latest projects
502 label_issue: Issue
502 label_issue: Issue
503 label_issue_new: New issue
503 label_issue_new: New issue
504 label_issue_plural: Issues
504 label_issue_plural: Issues
505 label_issue_view_all: View all issues
505 label_issue_view_all: View all issues
506 label_issues_by: "Issues by %{value}"
506 label_issues_by: "Issues by %{value}"
507 label_issue_added: Issue added
507 label_issue_added: Issue added
508 label_issue_updated: Issue updated
508 label_issue_updated: Issue updated
509 label_issue_note_added: Note added
509 label_issue_note_added: Note added
510 label_issue_status_updated: Status updated
510 label_issue_status_updated: Status updated
511 label_issue_priority_updated: Priority updated
511 label_issue_priority_updated: Priority updated
512 label_document: Document
512 label_document: Document
513 label_document_new: New document
513 label_document_new: New document
514 label_document_plural: Documents
514 label_document_plural: Documents
515 label_document_added: Document added
515 label_document_added: Document added
516 label_role: Role
516 label_role: Role
517 label_role_plural: Roles
517 label_role_plural: Roles
518 label_role_new: New role
518 label_role_new: New role
519 label_role_and_permissions: Roles and permissions
519 label_role_and_permissions: Roles and permissions
520 label_role_anonymous: Anonymous
520 label_role_anonymous: Anonymous
521 label_role_non_member: Non member
521 label_role_non_member: Non member
522 label_member: Member
522 label_member: Member
523 label_member_new: New member
523 label_member_new: New member
524 label_member_plural: Members
524 label_member_plural: Members
525 label_tracker: Tracker
525 label_tracker: Tracker
526 label_tracker_plural: Trackers
526 label_tracker_plural: Trackers
527 label_tracker_new: New tracker
527 label_tracker_new: New tracker
528 label_workflow: Workflow
528 label_workflow: Workflow
529 label_issue_status: Issue status
529 label_issue_status: Issue status
530 label_issue_status_plural: Issue statuses
530 label_issue_status_plural: Issue statuses
531 label_issue_status_new: New status
531 label_issue_status_new: New status
532 label_issue_category: Issue category
532 label_issue_category: Issue category
533 label_issue_category_plural: Issue categories
533 label_issue_category_plural: Issue categories
534 label_issue_category_new: New category
534 label_issue_category_new: New category
535 label_custom_field: Custom field
535 label_custom_field: Custom field
536 label_custom_field_plural: Custom fields
536 label_custom_field_plural: Custom fields
537 label_custom_field_new: New custom field
537 label_custom_field_new: New custom field
538 label_enumerations: Enumerations
538 label_enumerations: Enumerations
539 label_enumeration_new: New value
539 label_enumeration_new: New value
540 label_information: Information
540 label_information: Information
541 label_information_plural: Information
541 label_information_plural: Information
542 label_please_login: Please log in
542 label_please_login: Please log in
543 label_register: Register
543 label_register: Register
544 label_login_with_open_id_option: or login with OpenID
544 label_login_with_open_id_option: or login with OpenID
545 label_password_lost: Lost password
545 label_password_lost: Lost password
546 label_home: Home
546 label_home: Home
547 label_my_page: My page
547 label_my_page: My page
548 label_my_account: My account
548 label_my_account: My account
549 label_my_projects: My projects
549 label_my_projects: My projects
550 label_my_page_block: My page block
550 label_my_page_block: My page block
551 label_administration: Administration
551 label_administration: Administration
552 label_login: Sign in
552 label_login: Sign in
553 label_logout: Sign out
553 label_logout: Sign out
554 label_help: Help
554 label_help: Help
555 label_reported_issues: Reported issues
555 label_reported_issues: Reported issues
556 label_assigned_to_me_issues: Issues assigned to me
556 label_assigned_to_me_issues: Issues assigned to me
557 label_last_login: Last connection
557 label_last_login: Last connection
558 label_registered_on: Registered on
558 label_registered_on: Registered on
559 label_activity: Activity
559 label_activity: Activity
560 label_overall_activity: Overall activity
560 label_overall_activity: Overall activity
561 label_user_activity: "%{value}'s activity"
561 label_user_activity: "%{value}'s activity"
562 label_new: New
562 label_new: New
563 label_logged_as: Logged in as
563 label_logged_as: Logged in as
564 label_environment: Environment
564 label_environment: Environment
565 label_authentication: Authentication
565 label_authentication: Authentication
566 label_auth_source: Authentication mode
566 label_auth_source: Authentication mode
567 label_auth_source_new: New authentication mode
567 label_auth_source_new: New authentication mode
568 label_auth_source_plural: Authentication modes
568 label_auth_source_plural: Authentication modes
569 label_subproject_plural: Subprojects
569 label_subproject_plural: Subprojects
570 label_subproject_new: New subproject
570 label_subproject_new: New subproject
571 label_and_its_subprojects: "%{value} and its subprojects"
571 label_and_its_subprojects: "%{value} and its subprojects"
572 label_min_max_length: Min - Max length
572 label_min_max_length: Min - Max length
573 label_list: List
573 label_list: List
574 label_date: Date
574 label_date: Date
575 label_integer: Integer
575 label_integer: Integer
576 label_float: Float
576 label_float: Float
577 label_boolean: Boolean
577 label_boolean: Boolean
578 label_string: Text
578 label_string: Text
579 label_text: Long text
579 label_text: Long text
580 label_attribute: Attribute
580 label_attribute: Attribute
581 label_attribute_plural: Attributes
581 label_attribute_plural: Attributes
582 label_no_data: No data to display
582 label_no_data: No data to display
583 label_change_status: Change status
583 label_change_status: Change status
584 label_history: History
584 label_history: History
585 label_attachment: File
585 label_attachment: File
586 label_attachment_new: New file
586 label_attachment_new: New file
587 label_attachment_delete: Delete file
587 label_attachment_delete: Delete file
588 label_attachment_plural: Files
588 label_attachment_plural: Files
589 label_file_added: File added
589 label_file_added: File added
590 label_report: Report
590 label_report: Report
591 label_report_plural: Reports
591 label_report_plural: Reports
592 label_news: News
592 label_news: News
593 label_news_new: Add news
593 label_news_new: Add news
594 label_news_plural: News
594 label_news_plural: News
595 label_news_latest: Latest news
595 label_news_latest: Latest news
596 label_news_view_all: View all news
596 label_news_view_all: View all news
597 label_news_added: News added
597 label_news_added: News added
598 label_news_comment_added: Comment added to a news
598 label_news_comment_added: Comment added to a news
599 label_settings: Settings
599 label_settings: Settings
600 label_overview: Overview
600 label_overview: Overview
601 label_version: Version
601 label_version: Version
602 label_version_new: New version
602 label_version_new: New version
603 label_version_plural: Versions
603 label_version_plural: Versions
604 label_close_versions: Close completed versions
604 label_close_versions: Close completed versions
605 label_confirmation: Confirmation
605 label_confirmation: Confirmation
606 label_export_to: 'Also available in:'
606 label_export_to: 'Also available in:'
607 label_read: Read...
607 label_read: Read...
608 label_public_projects: Public projects
608 label_public_projects: Public projects
609 label_open_issues: open
609 label_open_issues: open
610 label_open_issues_plural: open
610 label_open_issues_plural: open
611 label_closed_issues: closed
611 label_closed_issues: closed
612 label_closed_issues_plural: closed
612 label_closed_issues_plural: closed
613 label_x_open_issues_abbr_on_total:
613 label_x_open_issues_abbr_on_total:
614 zero: 0 open / %{total}
614 zero: 0 open / %{total}
615 one: 1 open / %{total}
615 one: 1 open / %{total}
616 other: "%{count} open / %{total}"
616 other: "%{count} open / %{total}"
617 label_x_open_issues_abbr:
617 label_x_open_issues_abbr:
618 zero: 0 open
618 zero: 0 open
619 one: 1 open
619 one: 1 open
620 other: "%{count} open"
620 other: "%{count} open"
621 label_x_closed_issues_abbr:
621 label_x_closed_issues_abbr:
622 zero: 0 closed
622 zero: 0 closed
623 one: 1 closed
623 one: 1 closed
624 other: "%{count} closed"
624 other: "%{count} closed"
625 label_x_issues:
625 label_x_issues:
626 zero: 0 issues
626 zero: 0 issues
627 one: 1 issue
627 one: 1 issue
628 other: "%{count} issues"
628 other: "%{count} issues"
629 label_total: Total
629 label_total: Total
630 label_total_time: Total time
630 label_total_time: Total time
631 label_permissions: Permissions
631 label_permissions: Permissions
632 label_current_status: Current status
632 label_current_status: Current status
633 label_new_statuses_allowed: New statuses allowed
633 label_new_statuses_allowed: New statuses allowed
634 label_all: all
634 label_all: all
635 label_any: any
635 label_any: any
636 label_none: none
636 label_none: none
637 label_nobody: nobody
637 label_nobody: nobody
638 label_next: Next
638 label_next: Next
639 label_previous: Previous
639 label_previous: Previous
640 label_used_by: Used by
640 label_used_by: Used by
641 label_details: Details
641 label_details: Details
642 label_add_note: Add a note
642 label_add_note: Add a note
643 label_per_page: Per page
643 label_per_page: Per page
644 label_calendar: Calendar
644 label_calendar: Calendar
645 label_months_from: months from
645 label_months_from: months from
646 label_gantt: Gantt
646 label_gantt: Gantt
647 label_internal: Internal
647 label_internal: Internal
648 label_last_changes: "last %{count} changes"
648 label_last_changes: "last %{count} changes"
649 label_change_view_all: View all changes
649 label_change_view_all: View all changes
650 label_personalize_page: Personalize this page
650 label_personalize_page: Personalize this page
651 label_comment: Comment
651 label_comment: Comment
652 label_comment_plural: Comments
652 label_comment_plural: Comments
653 label_x_comments:
653 label_x_comments:
654 zero: no comments
654 zero: no comments
655 one: 1 comment
655 one: 1 comment
656 other: "%{count} comments"
656 other: "%{count} comments"
657 label_comment_add: Add a comment
657 label_comment_add: Add a comment
658 label_comment_added: Comment added
658 label_comment_added: Comment added
659 label_comment_delete: Delete comments
659 label_comment_delete: Delete comments
660 label_query: Custom query
660 label_query: Custom query
661 label_query_plural: Custom queries
661 label_query_plural: Custom queries
662 label_query_new: New query
662 label_query_new: New query
663 label_my_queries: My custom queries
663 label_my_queries: My custom queries
664 label_filter_add: Add filter
664 label_filter_add: Add filter
665 label_filter_plural: Filters
665 label_filter_plural: Filters
666 label_equals: is
666 label_equals: is
667 label_not_equals: is not
667 label_not_equals: is not
668 label_in_less_than: in less than
668 label_in_less_than: in less than
669 label_in_more_than: in more than
669 label_in_more_than: in more than
670 label_in_the_next_days: in the next
670 label_in_the_next_days: in the next
671 label_in_the_past_days: in the past
671 label_in_the_past_days: in the past
672 label_greater_or_equal: '>='
672 label_greater_or_equal: '>='
673 label_less_or_equal: '<='
673 label_less_or_equal: '<='
674 label_between: between
674 label_between: between
675 label_in: in
675 label_in: in
676 label_today: today
676 label_today: today
677 label_all_time: all time
677 label_all_time: all time
678 label_yesterday: yesterday
678 label_yesterday: yesterday
679 label_this_week: this week
679 label_this_week: this week
680 label_last_week: last week
680 label_last_week: last week
681 label_last_n_weeks: "last %{count} weeks"
681 label_last_n_weeks: "last %{count} weeks"
682 label_last_n_days: "last %{count} days"
682 label_last_n_days: "last %{count} days"
683 label_this_month: this month
683 label_this_month: this month
684 label_last_month: last month
684 label_last_month: last month
685 label_this_year: this year
685 label_this_year: this year
686 label_date_range: Date range
686 label_date_range: Date range
687 label_less_than_ago: less than days ago
687 label_less_than_ago: less than days ago
688 label_more_than_ago: more than days ago
688 label_more_than_ago: more than days ago
689 label_ago: days ago
689 label_ago: days ago
690 label_contains: contains
690 label_contains: contains
691 label_not_contains: doesn't contain
691 label_not_contains: doesn't contain
692 label_any_issues_in_project: any issues in project
692 label_any_issues_in_project: any issues in project
693 label_any_issues_not_in_project: any issues not in project
693 label_any_issues_not_in_project: any issues not in project
694 label_no_issues_in_project: no issues in project
694 label_no_issues_in_project: no issues in project
695 label_day_plural: days
695 label_day_plural: days
696 label_repository: Repository
696 label_repository: Repository
697 label_repository_new: New repository
697 label_repository_new: New repository
698 label_repository_plural: Repositories
698 label_repository_plural: Repositories
699 label_browse: Browse
699 label_browse: Browse
700 label_branch: Branch
700 label_branch: Branch
701 label_tag: Tag
701 label_tag: Tag
702 label_revision: Revision
702 label_revision: Revision
703 label_revision_plural: Revisions
703 label_revision_plural: Revisions
704 label_revision_id: "Revision %{value}"
704 label_revision_id: "Revision %{value}"
705 label_associated_revisions: Associated revisions
705 label_associated_revisions: Associated revisions
706 label_added: added
706 label_added: added
707 label_modified: modified
707 label_modified: modified
708 label_copied: copied
708 label_copied: copied
709 label_renamed: renamed
709 label_renamed: renamed
710 label_deleted: deleted
710 label_deleted: deleted
711 label_latest_revision: Latest revision
711 label_latest_revision: Latest revision
712 label_latest_revision_plural: Latest revisions
712 label_latest_revision_plural: Latest revisions
713 label_view_revisions: View revisions
713 label_view_revisions: View revisions
714 label_view_all_revisions: View all revisions
714 label_view_all_revisions: View all revisions
715 label_max_size: Maximum size
715 label_max_size: Maximum size
716 label_sort_highest: Move to top
716 label_sort_highest: Move to top
717 label_sort_higher: Move up
717 label_sort_higher: Move up
718 label_sort_lower: Move down
718 label_sort_lower: Move down
719 label_sort_lowest: Move to bottom
719 label_sort_lowest: Move to bottom
720 label_roadmap: Roadmap
720 label_roadmap: Roadmap
721 label_roadmap_due_in: "Due in %{value}"
721 label_roadmap_due_in: "Due in %{value}"
722 label_roadmap_overdue: "%{value} late"
722 label_roadmap_overdue: "%{value} late"
723 label_roadmap_no_issues: No issues for this version
723 label_roadmap_no_issues: No issues for this version
724 label_search: Search
724 label_search: Search
725 label_result_plural: Results
725 label_result_plural: Results
726 label_all_words: All words
726 label_all_words: All words
727 label_wiki: Wiki
727 label_wiki: Wiki
728 label_wiki_edit: Wiki edit
728 label_wiki_edit: Wiki edit
729 label_wiki_edit_plural: Wiki edits
729 label_wiki_edit_plural: Wiki edits
730 label_wiki_page: Wiki page
730 label_wiki_page: Wiki page
731 label_wiki_page_plural: Wiki pages
731 label_wiki_page_plural: Wiki pages
732 label_index_by_title: Index by title
732 label_index_by_title: Index by title
733 label_index_by_date: Index by date
733 label_index_by_date: Index by date
734 label_current_version: Current version
734 label_current_version: Current version
735 label_preview: Preview
735 label_preview: Preview
736 label_feed_plural: Feeds
736 label_feed_plural: Feeds
737 label_changes_details: Details of all changes
737 label_changes_details: Details of all changes
738 label_issue_tracking: Issue tracking
738 label_issue_tracking: Issue tracking
739 label_spent_time: Spent time
739 label_spent_time: Spent time
740 label_overall_spent_time: Overall spent time
740 label_overall_spent_time: Overall spent time
741 label_f_hour: "%{value} hour"
741 label_f_hour: "%{value} hour"
742 label_f_hour_plural: "%{value} hours"
742 label_f_hour_plural: "%{value} hours"
743 label_time_tracking: Time tracking
743 label_time_tracking: Time tracking
744 label_change_plural: Changes
744 label_change_plural: Changes
745 label_statistics: Statistics
745 label_statistics: Statistics
746 label_commits_per_month: Commits per month
746 label_commits_per_month: Commits per month
747 label_commits_per_author: Commits per author
747 label_commits_per_author: Commits per author
748 label_diff: diff
748 label_diff: diff
749 label_view_diff: View differences
749 label_view_diff: View differences
750 label_diff_inline: inline
750 label_diff_inline: inline
751 label_diff_side_by_side: side by side
751 label_diff_side_by_side: side by side
752 label_options: Options
752 label_options: Options
753 label_copy_workflow_from: Copy workflow from
753 label_copy_workflow_from: Copy workflow from
754 label_permissions_report: Permissions report
754 label_permissions_report: Permissions report
755 label_watched_issues: Watched issues
755 label_watched_issues: Watched issues
756 label_related_issues: Related issues
756 label_related_issues: Related issues
757 label_applied_status: Applied status
757 label_applied_status: Applied status
758 label_loading: Loading...
758 label_loading: Loading...
759 label_relation_new: New relation
759 label_relation_new: New relation
760 label_relation_delete: Delete relation
760 label_relation_delete: Delete relation
761 label_relates_to: Related to
761 label_relates_to: Related to
762 label_duplicates: Duplicates
762 label_duplicates: Duplicates
763 label_duplicated_by: Duplicated by
763 label_duplicated_by: Duplicated by
764 label_blocks: Blocks
764 label_blocks: Blocks
765 label_blocked_by: Blocked by
765 label_blocked_by: Blocked by
766 label_precedes: Precedes
766 label_precedes: Precedes
767 label_follows: Follows
767 label_follows: Follows
768 label_copied_to: Copied to
768 label_copied_to: Copied to
769 label_copied_from: Copied from
769 label_copied_from: Copied from
770 label_end_to_start: end to start
770 label_end_to_start: end to start
771 label_end_to_end: end to end
771 label_end_to_end: end to end
772 label_start_to_start: start to start
772 label_start_to_start: start to start
773 label_start_to_end: start to end
773 label_start_to_end: start to end
774 label_stay_logged_in: Stay logged in
774 label_stay_logged_in: Stay logged in
775 label_disabled: disabled
775 label_disabled: disabled
776 label_show_completed_versions: Show completed versions
776 label_show_completed_versions: Show completed versions
777 label_me: me
777 label_me: me
778 label_board: Forum
778 label_board: Forum
779 label_board_new: New forum
779 label_board_new: New forum
780 label_board_plural: Forums
780 label_board_plural: Forums
781 label_board_locked: Locked
781 label_board_locked: Locked
782 label_board_sticky: Sticky
782 label_board_sticky: Sticky
783 label_topic_plural: Topics
783 label_topic_plural: Topics
784 label_message_plural: Messages
784 label_message_plural: Messages
785 label_message_last: Last message
785 label_message_last: Last message
786 label_message_new: New message
786 label_message_new: New message
787 label_message_posted: Message added
787 label_message_posted: Message added
788 label_reply_plural: Replies
788 label_reply_plural: Replies
789 label_send_information: Send account information to the user
789 label_send_information: Send account information to the user
790 label_year: Year
790 label_year: Year
791 label_month: Month
791 label_month: Month
792 label_week: Week
792 label_week: Week
793 label_date_from: From
793 label_date_from: From
794 label_date_to: To
794 label_date_to: To
795 label_language_based: Based on user's language
795 label_language_based: Based on user's language
796 label_sort_by: "Sort by %{value}"
796 label_sort_by: "Sort by %{value}"
797 label_send_test_email: Send a test email
797 label_send_test_email: Send a test email
798 label_feeds_access_key: Atom access key
798 label_feeds_access_key: Atom access key
799 label_missing_feeds_access_key: Missing a Atom access key
799 label_missing_feeds_access_key: Missing a Atom access key
800 label_feeds_access_key_created_on: "Atom access key created %{value} ago"
800 label_feeds_access_key_created_on: "Atom access key created %{value} ago"
801 label_module_plural: Modules
801 label_module_plural: Modules
802 label_added_time_by: "Added by %{author} %{age} ago"
802 label_added_time_by: "Added by %{author} %{age} ago"
803 label_updated_time_by: "Updated by %{author} %{age} ago"
803 label_updated_time_by: "Updated by %{author} %{age} ago"
804 label_updated_time: "Updated %{value} ago"
804 label_updated_time: "Updated %{value} ago"
805 label_jump_to_a_project: Jump to a project...
805 label_jump_to_a_project: Jump to a project...
806 label_file_plural: Files
806 label_file_plural: Files
807 label_changeset_plural: Changesets
807 label_changeset_plural: Changesets
808 label_default_columns: Default columns
808 label_default_columns: Default columns
809 label_no_change_option: (No change)
809 label_no_change_option: (No change)
810 label_bulk_edit_selected_issues: Bulk edit selected issues
810 label_bulk_edit_selected_issues: Bulk edit selected issues
811 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
811 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
812 label_theme: Theme
812 label_theme: Theme
813 label_default: Default
813 label_default: Default
814 label_search_titles_only: Search titles only
814 label_search_titles_only: Search titles only
815 label_user_mail_option_all: "For any event on all my projects"
815 label_user_mail_option_all: "For any event on all my projects"
816 label_user_mail_option_selected: "For any event on the selected projects only..."
816 label_user_mail_option_selected: "For any event on the selected projects only..."
817 label_user_mail_option_none: "No events"
817 label_user_mail_option_none: "No events"
818 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
818 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
819 label_user_mail_option_only_assigned: "Only for things I am assigned to"
819 label_user_mail_option_only_assigned: "Only for things I am assigned to"
820 label_user_mail_option_only_owner: "Only for things I am the owner of"
820 label_user_mail_option_only_owner: "Only for things I am the owner of"
821 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
821 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
822 label_registration_activation_by_email: account activation by email
822 label_registration_activation_by_email: account activation by email
823 label_registration_manual_activation: manual account activation
823 label_registration_manual_activation: manual account activation
824 label_registration_automatic_activation: automatic account activation
824 label_registration_automatic_activation: automatic account activation
825 label_display_per_page: "Per page: %{value}"
825 label_display_per_page: "Per page: %{value}"
826 label_age: Age
826 label_age: Age
827 label_change_properties: Change properties
827 label_change_properties: Change properties
828 label_general: General
828 label_general: General
829 label_more: More
829 label_more: More
830 label_scm: SCM
830 label_scm: SCM
831 label_plugins: Plugins
831 label_plugins: Plugins
832 label_ldap_authentication: LDAP authentication
832 label_ldap_authentication: LDAP authentication
833 label_downloads_abbr: D/L
833 label_downloads_abbr: D/L
834 label_optional_description: Optional description
834 label_optional_description: Optional description
835 label_add_another_file: Add another file
835 label_add_another_file: Add another file
836 label_preferences: Preferences
836 label_preferences: Preferences
837 label_chronological_order: In chronological order
837 label_chronological_order: In chronological order
838 label_reverse_chronological_order: In reverse chronological order
838 label_reverse_chronological_order: In reverse chronological order
839 label_planning: Planning
839 label_planning: Planning
840 label_incoming_emails: Incoming emails
840 label_incoming_emails: Incoming emails
841 label_generate_key: Generate a key
841 label_generate_key: Generate a key
842 label_issue_watchers: Watchers
842 label_issue_watchers: Watchers
843 label_example: Example
843 label_example: Example
844 label_display: Display
844 label_display: Display
845 label_sort: Sort
845 label_sort: Sort
846 label_ascending: Ascending
846 label_ascending: Ascending
847 label_descending: Descending
847 label_descending: Descending
848 label_date_from_to: From %{start} to %{end}
848 label_date_from_to: From %{start} to %{end}
849 label_wiki_content_added: Wiki page added
849 label_wiki_content_added: Wiki page added
850 label_wiki_content_updated: Wiki page updated
850 label_wiki_content_updated: Wiki page updated
851 label_group: Group
851 label_group: Group
852 label_group_plural: Groups
852 label_group_plural: Groups
853 label_group_new: New group
853 label_group_new: New group
854 label_time_entry_plural: Spent time
854 label_time_entry_plural: Spent time
855 label_version_sharing_none: Not shared
855 label_version_sharing_none: Not shared
856 label_version_sharing_descendants: With subprojects
856 label_version_sharing_descendants: With subprojects
857 label_version_sharing_hierarchy: With project hierarchy
857 label_version_sharing_hierarchy: With project hierarchy
858 label_version_sharing_tree: With project tree
858 label_version_sharing_tree: With project tree
859 label_version_sharing_system: With all projects
859 label_version_sharing_system: With all projects
860 label_update_issue_done_ratios: Update issue done ratios
860 label_update_issue_done_ratios: Update issue done ratios
861 label_copy_source: Source
861 label_copy_source: Source
862 label_copy_target: Target
862 label_copy_target: Target
863 label_copy_same_as_target: Same as target
863 label_copy_same_as_target: Same as target
864 label_display_used_statuses_only: Only display statuses that are used by this tracker
864 label_display_used_statuses_only: Only display statuses that are used by this tracker
865 label_api_access_key: API access key
865 label_api_access_key: API access key
866 label_missing_api_access_key: Missing an API access key
866 label_missing_api_access_key: Missing an API access key
867 label_api_access_key_created_on: "API access key created %{value} ago"
867 label_api_access_key_created_on: "API access key created %{value} ago"
868 label_profile: Profile
868 label_profile: Profile
869 label_subtask_plural: Subtasks
869 label_subtask_plural: Subtasks
870 label_project_copy_notifications: Send email notifications during the project copy
870 label_project_copy_notifications: Send email notifications during the project copy
871 label_principal_search: "Search for user or group:"
871 label_principal_search: "Search for user or group:"
872 label_user_search: "Search for user:"
872 label_user_search: "Search for user:"
873 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
873 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
874 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
874 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
875 label_issues_visibility_all: All issues
875 label_issues_visibility_all: All issues
876 label_issues_visibility_public: All non private issues
876 label_issues_visibility_public: All non private issues
877 label_issues_visibility_own: Issues created by or assigned to the user
877 label_issues_visibility_own: Issues created by or assigned to the user
878 label_git_report_last_commit: Report last commit for files and directories
878 label_git_report_last_commit: Report last commit for files and directories
879 label_parent_revision: Parent
879 label_parent_revision: Parent
880 label_child_revision: Child
880 label_child_revision: Child
881 label_export_options: "%{export_format} export options"
881 label_export_options: "%{export_format} export options"
882 label_copy_attachments: Copy attachments
882 label_copy_attachments: Copy attachments
883 label_copy_subtasks: Copy subtasks
883 label_copy_subtasks: Copy subtasks
884 label_item_position: "%{position} of %{count}"
884 label_item_position: "%{position} of %{count}"
885 label_completed_versions: Completed versions
885 label_completed_versions: Completed versions
886 label_search_for_watchers: Search for watchers to add
886 label_search_for_watchers: Search for watchers to add
887 label_session_expiration: Session expiration
887 label_session_expiration: Session expiration
888 label_show_closed_projects: View closed projects
888 label_show_closed_projects: View closed projects
889 label_status_transitions: Status transitions
889 label_status_transitions: Status transitions
890 label_fields_permissions: Fields permissions
890 label_fields_permissions: Fields permissions
891 label_readonly: Read-only
891 label_readonly: Read-only
892 label_required: Required
892 label_required: Required
893 label_hidden: Hidden
893 label_hidden: Hidden
894 label_attribute_of_project: "Project's %{name}"
894 label_attribute_of_project: "Project's %{name}"
895 label_attribute_of_issue: "Issue's %{name}"
895 label_attribute_of_issue: "Issue's %{name}"
896 label_attribute_of_author: "Author's %{name}"
896 label_attribute_of_author: "Author's %{name}"
897 label_attribute_of_assigned_to: "Assignee's %{name}"
897 label_attribute_of_assigned_to: "Assignee's %{name}"
898 label_attribute_of_user: "User's %{name}"
898 label_attribute_of_user: "User's %{name}"
899 label_attribute_of_fixed_version: "Target version's %{name}"
899 label_attribute_of_fixed_version: "Target version's %{name}"
900 label_cross_project_descendants: With subprojects
900 label_cross_project_descendants: With subprojects
901 label_cross_project_tree: With project tree
901 label_cross_project_tree: With project tree
902 label_cross_project_hierarchy: With project hierarchy
902 label_cross_project_hierarchy: With project hierarchy
903 label_cross_project_system: With all projects
903 label_cross_project_system: With all projects
904 label_gantt_progress_line: Progress line
904 label_gantt_progress_line: Progress line
905 label_visibility_private: to me only
905 label_visibility_private: to me only
906 label_visibility_roles: to these roles only
906 label_visibility_roles: to these roles only
907 label_visibility_public: to any users
907 label_visibility_public: to any users
908 label_link: Link
908 label_link: Link
909 label_only: only
909 label_only: only
910 label_drop_down_list: drop-down list
910 label_drop_down_list: drop-down list
911 label_checkboxes: checkboxes
911 label_checkboxes: checkboxes
912 label_link_values_to: Link values to URL
912 label_link_values_to: Link values to URL
913 label_custom_field_select_type: Select the type of object to which the custom field is to be attached
913
914
914 button_login: Login
915 button_login: Login
915 button_submit: Submit
916 button_submit: Submit
916 button_save: Save
917 button_save: Save
917 button_check_all: Check all
918 button_check_all: Check all
918 button_uncheck_all: Uncheck all
919 button_uncheck_all: Uncheck all
919 button_collapse_all: Collapse all
920 button_collapse_all: Collapse all
920 button_expand_all: Expand all
921 button_expand_all: Expand all
921 button_delete: Delete
922 button_delete: Delete
922 button_create: Create
923 button_create: Create
923 button_create_and_continue: Create and continue
924 button_create_and_continue: Create and continue
924 button_test: Test
925 button_test: Test
925 button_edit: Edit
926 button_edit: Edit
926 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
927 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
927 button_add: Add
928 button_add: Add
928 button_change: Change
929 button_change: Change
929 button_apply: Apply
930 button_apply: Apply
930 button_clear: Clear
931 button_clear: Clear
931 button_lock: Lock
932 button_lock: Lock
932 button_unlock: Unlock
933 button_unlock: Unlock
933 button_download: Download
934 button_download: Download
934 button_list: List
935 button_list: List
935 button_view: View
936 button_view: View
936 button_move: Move
937 button_move: Move
937 button_move_and_follow: Move and follow
938 button_move_and_follow: Move and follow
938 button_back: Back
939 button_back: Back
939 button_cancel: Cancel
940 button_cancel: Cancel
940 button_activate: Activate
941 button_activate: Activate
941 button_sort: Sort
942 button_sort: Sort
942 button_log_time: Log time
943 button_log_time: Log time
943 button_rollback: Rollback to this version
944 button_rollback: Rollback to this version
944 button_watch: Watch
945 button_watch: Watch
945 button_unwatch: Unwatch
946 button_unwatch: Unwatch
946 button_reply: Reply
947 button_reply: Reply
947 button_archive: Archive
948 button_archive: Archive
948 button_unarchive: Unarchive
949 button_unarchive: Unarchive
949 button_reset: Reset
950 button_reset: Reset
950 button_rename: Rename
951 button_rename: Rename
951 button_change_password: Change password
952 button_change_password: Change password
952 button_copy: Copy
953 button_copy: Copy
953 button_copy_and_follow: Copy and follow
954 button_copy_and_follow: Copy and follow
954 button_annotate: Annotate
955 button_annotate: Annotate
955 button_update: Update
956 button_update: Update
956 button_configure: Configure
957 button_configure: Configure
957 button_quote: Quote
958 button_quote: Quote
958 button_duplicate: Duplicate
959 button_duplicate: Duplicate
959 button_show: Show
960 button_show: Show
960 button_hide: Hide
961 button_hide: Hide
961 button_edit_section: Edit this section
962 button_edit_section: Edit this section
962 button_export: Export
963 button_export: Export
963 button_delete_my_account: Delete my account
964 button_delete_my_account: Delete my account
964 button_close: Close
965 button_close: Close
965 button_reopen: Reopen
966 button_reopen: Reopen
966
967
967 status_active: active
968 status_active: active
968 status_registered: registered
969 status_registered: registered
969 status_locked: locked
970 status_locked: locked
970
971
971 project_status_active: active
972 project_status_active: active
972 project_status_closed: closed
973 project_status_closed: closed
973 project_status_archived: archived
974 project_status_archived: archived
974
975
975 version_status_open: open
976 version_status_open: open
976 version_status_locked: locked
977 version_status_locked: locked
977 version_status_closed: closed
978 version_status_closed: closed
978
979
979 field_active: Active
980 field_active: Active
980
981
981 text_select_mail_notifications: Select actions for which email notifications should be sent.
982 text_select_mail_notifications: Select actions for which email notifications should be sent.
982 text_regexp_info: eg. ^[A-Z0-9]+$
983 text_regexp_info: eg. ^[A-Z0-9]+$
983 text_min_max_length_info: 0 means no restriction
984 text_min_max_length_info: 0 means no restriction
984 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
985 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
985 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
986 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
986 text_workflow_edit: Select a role and a tracker to edit the workflow
987 text_workflow_edit: Select a role and a tracker to edit the workflow
987 text_are_you_sure: Are you sure?
988 text_are_you_sure: Are you sure?
988 text_journal_changed: "%{label} changed from %{old} to %{new}"
989 text_journal_changed: "%{label} changed from %{old} to %{new}"
989 text_journal_changed_no_detail: "%{label} updated"
990 text_journal_changed_no_detail: "%{label} updated"
990 text_journal_set_to: "%{label} set to %{value}"
991 text_journal_set_to: "%{label} set to %{value}"
991 text_journal_deleted: "%{label} deleted (%{old})"
992 text_journal_deleted: "%{label} deleted (%{old})"
992 text_journal_added: "%{label} %{value} added"
993 text_journal_added: "%{label} %{value} added"
993 text_tip_issue_begin_day: issue beginning this day
994 text_tip_issue_begin_day: issue beginning this day
994 text_tip_issue_end_day: issue ending this day
995 text_tip_issue_end_day: issue ending this day
995 text_tip_issue_begin_end_day: issue beginning and ending this day
996 text_tip_issue_begin_end_day: issue beginning and ending this day
996 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter.<br />Once saved, the identifier cannot be changed.'
997 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter.<br />Once saved, the identifier cannot be changed.'
997 text_caracters_maximum: "%{count} characters maximum."
998 text_caracters_maximum: "%{count} characters maximum."
998 text_caracters_minimum: "Must be at least %{count} characters long."
999 text_caracters_minimum: "Must be at least %{count} characters long."
999 text_length_between: "Length between %{min} and %{max} characters."
1000 text_length_between: "Length between %{min} and %{max} characters."
1000 text_tracker_no_workflow: No workflow defined for this tracker
1001 text_tracker_no_workflow: No workflow defined for this tracker
1001 text_unallowed_characters: Unallowed characters
1002 text_unallowed_characters: Unallowed characters
1002 text_comma_separated: Multiple values allowed (comma separated).
1003 text_comma_separated: Multiple values allowed (comma separated).
1003 text_line_separated: Multiple values allowed (one line for each value).
1004 text_line_separated: Multiple values allowed (one line for each value).
1004 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
1005 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
1005 text_issue_added: "Issue %{id} has been reported by %{author}."
1006 text_issue_added: "Issue %{id} has been reported by %{author}."
1006 text_issue_updated: "Issue %{id} has been updated by %{author}."
1007 text_issue_updated: "Issue %{id} has been updated by %{author}."
1007 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
1008 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
1008 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
1009 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
1009 text_issue_category_destroy_assignments: Remove category assignments
1010 text_issue_category_destroy_assignments: Remove category assignments
1010 text_issue_category_reassign_to: Reassign issues to this category
1011 text_issue_category_reassign_to: Reassign issues to this category
1011 text_user_mail_option: "For unselected projects, you will only receive notifications about things you watch or you're involved in (eg. issues you're the author or assignee)."
1012 text_user_mail_option: "For unselected projects, you will only receive notifications about things you watch or you're involved in (eg. issues you're the author or assignee)."
1012 text_no_configuration_data: "Roles, trackers, issue statuses and workflow have not been configured yet.\nIt is highly recommended to load the default configuration. You will be able to modify it once loaded."
1013 text_no_configuration_data: "Roles, trackers, issue statuses and workflow have not been configured yet.\nIt is highly recommended to load the default configuration. You will be able to modify it once loaded."
1013 text_load_default_configuration: Load the default configuration
1014 text_load_default_configuration: Load the default configuration
1014 text_status_changed_by_changeset: "Applied in changeset %{value}."
1015 text_status_changed_by_changeset: "Applied in changeset %{value}."
1015 text_time_logged_by_changeset: "Applied in changeset %{value}."
1016 text_time_logged_by_changeset: "Applied in changeset %{value}."
1016 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1017 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1017 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
1018 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
1018 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
1019 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
1019 text_select_project_modules: 'Select modules to enable for this project:'
1020 text_select_project_modules: 'Select modules to enable for this project:'
1020 text_default_administrator_account_changed: Default administrator account changed
1021 text_default_administrator_account_changed: Default administrator account changed
1021 text_file_repository_writable: Attachments directory writable
1022 text_file_repository_writable: Attachments directory writable
1022 text_plugin_assets_writable: Plugin assets directory writable
1023 text_plugin_assets_writable: Plugin assets directory writable
1023 text_rmagick_available: RMagick available (optional)
1024 text_rmagick_available: RMagick available (optional)
1024 text_convert_available: ImageMagick convert available (optional)
1025 text_convert_available: ImageMagick convert available (optional)
1025 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
1026 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
1026 text_destroy_time_entries: Delete reported hours
1027 text_destroy_time_entries: Delete reported hours
1027 text_assign_time_entries_to_project: Assign reported hours to the project
1028 text_assign_time_entries_to_project: Assign reported hours to the project
1028 text_reassign_time_entries: 'Reassign reported hours to this issue:'
1029 text_reassign_time_entries: 'Reassign reported hours to this issue:'
1029 text_user_wrote: "%{value} wrote:"
1030 text_user_wrote: "%{value} wrote:"
1030 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
1031 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
1031 text_enumeration_category_reassign_to: 'Reassign them to this value:'
1032 text_enumeration_category_reassign_to: 'Reassign them to this value:'
1032 text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/configuration.yml and restart the application to enable them."
1033 text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/configuration.yml and restart the application to enable them."
1033 text_repository_usernames_mapping: "Select or update the Redmine user mapped to each username found in the repository log.\nUsers with the same Redmine and repository username or email are automatically mapped."
1034 text_repository_usernames_mapping: "Select or update the Redmine user mapped to each username found in the repository log.\nUsers with the same Redmine and repository username or email are automatically mapped."
1034 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
1035 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
1035 text_custom_field_possible_values_info: 'One line for each value'
1036 text_custom_field_possible_values_info: 'One line for each value'
1036 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
1037 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
1037 text_wiki_page_nullify_children: "Keep child pages as root pages"
1038 text_wiki_page_nullify_children: "Keep child pages as root pages"
1038 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
1039 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
1039 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
1040 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
1040 text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
1041 text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
1041 text_zoom_in: Zoom in
1042 text_zoom_in: Zoom in
1042 text_zoom_out: Zoom out
1043 text_zoom_out: Zoom out
1043 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
1044 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
1044 text_scm_path_encoding_note: "Default: UTF-8"
1045 text_scm_path_encoding_note: "Default: UTF-8"
1045 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1046 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1046 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
1047 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
1047 text_scm_command: Command
1048 text_scm_command: Command
1048 text_scm_command_version: Version
1049 text_scm_command_version: Version
1049 text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
1050 text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
1050 text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
1051 text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
1051 text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
1052 text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
1052 text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
1053 text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
1053 text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
1054 text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
1054 text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
1055 text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
1055 text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1056 text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1056 text_project_closed: This project is closed and read-only.
1057 text_project_closed: This project is closed and read-only.
1057 text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1058 text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1058
1059
1059 default_role_manager: Manager
1060 default_role_manager: Manager
1060 default_role_developer: Developer
1061 default_role_developer: Developer
1061 default_role_reporter: Reporter
1062 default_role_reporter: Reporter
1062 default_tracker_bug: Bug
1063 default_tracker_bug: Bug
1063 default_tracker_feature: Feature
1064 default_tracker_feature: Feature
1064 default_tracker_support: Support
1065 default_tracker_support: Support
1065 default_issue_status_new: New
1066 default_issue_status_new: New
1066 default_issue_status_in_progress: In Progress
1067 default_issue_status_in_progress: In Progress
1067 default_issue_status_resolved: Resolved
1068 default_issue_status_resolved: Resolved
1068 default_issue_status_feedback: Feedback
1069 default_issue_status_feedback: Feedback
1069 default_issue_status_closed: Closed
1070 default_issue_status_closed: Closed
1070 default_issue_status_rejected: Rejected
1071 default_issue_status_rejected: Rejected
1071 default_doc_category_user: User documentation
1072 default_doc_category_user: User documentation
1072 default_doc_category_tech: Technical documentation
1073 default_doc_category_tech: Technical documentation
1073 default_priority_low: Low
1074 default_priority_low: Low
1074 default_priority_normal: Normal
1075 default_priority_normal: Normal
1075 default_priority_high: High
1076 default_priority_high: High
1076 default_priority_urgent: Urgent
1077 default_priority_urgent: Urgent
1077 default_priority_immediate: Immediate
1078 default_priority_immediate: Immediate
1078 default_activity_design: Design
1079 default_activity_design: Design
1079 default_activity_development: Development
1080 default_activity_development: Development
1080
1081
1081 enumeration_issue_priorities: Issue priorities
1082 enumeration_issue_priorities: Issue priorities
1082 enumeration_doc_categories: Document categories
1083 enumeration_doc_categories: Document categories
1083 enumeration_activities: Activities (time tracking)
1084 enumeration_activities: Activities (time tracking)
1084 enumeration_system_activity: System Activity
1085 enumeration_system_activity: System Activity
1085 description_filter: Filter
1086 description_filter: Filter
1086 description_search: Searchfield
1087 description_search: Searchfield
1087 description_choose_project: Projects
1088 description_choose_project: Projects
1088 description_project_scope: Search scope
1089 description_project_scope: Search scope
1089 description_notes: Notes
1090 description_notes: Notes
1090 description_message_content: Message content
1091 description_message_content: Message content
1091 description_query_sort_criteria_attribute: Sort attribute
1092 description_query_sort_criteria_attribute: Sort attribute
1092 description_query_sort_criteria_direction: Sort direction
1093 description_query_sort_criteria_direction: Sort direction
1093 description_user_mail_notification: Mail notification settings
1094 description_user_mail_notification: Mail notification settings
1094 description_available_columns: Available Columns
1095 description_available_columns: Available Columns
1095 description_selected_columns: Selected Columns
1096 description_selected_columns: Selected Columns
1096 description_all_columns: All Columns
1097 description_all_columns: All Columns
1097 description_issue_category_reassign: Choose issue category
1098 description_issue_category_reassign: Choose issue category
1098 description_wiki_subpages_reassign: Choose new parent page
1099 description_wiki_subpages_reassign: Choose new parent page
1099 description_date_range_list: Choose range from list
1100 description_date_range_list: Choose range from list
1100 description_date_range_interval: Choose range by selecting start and end date
1101 description_date_range_interval: Choose range by selecting start and end date
1101 description_date_from: Enter start date
1102 description_date_from: Enter start date
1102 description_date_to: Enter end date
1103 description_date_to: Enter end date
1103 text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
1104 text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
@@ -1,1121 +1,1122
1 # French translations for Ruby on Rails
1 # French translations for Ruby on Rails
2 # by Christian Lescuyer (christian@flyingcoders.com)
2 # by Christian Lescuyer (christian@flyingcoders.com)
3 # contributor: Sebastien Grosjean - ZenCocoon.com
3 # contributor: Sebastien Grosjean - ZenCocoon.com
4 # contributor: Thibaut Cuvelier - Developpez.com
4 # contributor: Thibaut Cuvelier - Developpez.com
5
5
6 fr:
6 fr:
7 direction: ltr
7 direction: ltr
8 date:
8 date:
9 formats:
9 formats:
10 default: "%d/%m/%Y"
10 default: "%d/%m/%Y"
11 short: "%e %b"
11 short: "%e %b"
12 long: "%e %B %Y"
12 long: "%e %B %Y"
13 long_ordinal: "%e %B %Y"
13 long_ordinal: "%e %B %Y"
14 only_day: "%e"
14 only_day: "%e"
15
15
16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
18 month_names: [~, janvier, fΓ©vrier, mars, avril, mai, juin, juillet, aoΓ»t, septembre, octobre, novembre, dΓ©cembre]
18 month_names: [~, janvier, fΓ©vrier, mars, avril, mai, juin, juillet, aoΓ»t, septembre, octobre, novembre, dΓ©cembre]
19 abbr_month_names: [~, jan., fΓ©v., mar., avr., mai, juin, juil., aoΓ»t, sept., oct., nov., dΓ©c.]
19 abbr_month_names: [~, jan., fΓ©v., mar., avr., mai, juin, juil., aoΓ»t, sept., oct., nov., dΓ©c.]
20 order:
20 order:
21 - :day
21 - :day
22 - :month
22 - :month
23 - :year
23 - :year
24
24
25 time:
25 time:
26 formats:
26 formats:
27 default: "%d/%m/%Y %H:%M"
27 default: "%d/%m/%Y %H:%M"
28 time: "%H:%M"
28 time: "%H:%M"
29 short: "%d %b %H:%M"
29 short: "%d %b %H:%M"
30 long: "%A %d %B %Y %H:%M:%S %Z"
30 long: "%A %d %B %Y %H:%M:%S %Z"
31 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
31 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
32 only_second: "%S"
32 only_second: "%S"
33 am: 'am'
33 am: 'am'
34 pm: 'pm'
34 pm: 'pm'
35
35
36 datetime:
36 datetime:
37 distance_in_words:
37 distance_in_words:
38 half_a_minute: "30 secondes"
38 half_a_minute: "30 secondes"
39 less_than_x_seconds:
39 less_than_x_seconds:
40 zero: "moins d'une seconde"
40 zero: "moins d'une seconde"
41 one: "moins d'uneΒ seconde"
41 one: "moins d'uneΒ seconde"
42 other: "moins de %{count}Β secondes"
42 other: "moins de %{count}Β secondes"
43 x_seconds:
43 x_seconds:
44 one: "1Β seconde"
44 one: "1Β seconde"
45 other: "%{count}Β secondes"
45 other: "%{count}Β secondes"
46 less_than_x_minutes:
46 less_than_x_minutes:
47 zero: "moins d'une minute"
47 zero: "moins d'une minute"
48 one: "moins d'uneΒ minute"
48 one: "moins d'uneΒ minute"
49 other: "moins de %{count}Β minutes"
49 other: "moins de %{count}Β minutes"
50 x_minutes:
50 x_minutes:
51 one: "1Β minute"
51 one: "1Β minute"
52 other: "%{count}Β minutes"
52 other: "%{count}Β minutes"
53 about_x_hours:
53 about_x_hours:
54 one: "environ une heure"
54 one: "environ une heure"
55 other: "environ %{count}Β heures"
55 other: "environ %{count}Β heures"
56 x_hours:
56 x_hours:
57 one: "une heure"
57 one: "une heure"
58 other: "%{count}Β heures"
58 other: "%{count}Β heures"
59 x_days:
59 x_days:
60 one: "unΒ jour"
60 one: "unΒ jour"
61 other: "%{count}Β jours"
61 other: "%{count}Β jours"
62 about_x_months:
62 about_x_months:
63 one: "environ un mois"
63 one: "environ un mois"
64 other: "environ %{count}Β mois"
64 other: "environ %{count}Β mois"
65 x_months:
65 x_months:
66 one: "unΒ mois"
66 one: "unΒ mois"
67 other: "%{count}Β mois"
67 other: "%{count}Β mois"
68 about_x_years:
68 about_x_years:
69 one: "environ un an"
69 one: "environ un an"
70 other: "environ %{count}Β ans"
70 other: "environ %{count}Β ans"
71 over_x_years:
71 over_x_years:
72 one: "plus d'un an"
72 one: "plus d'un an"
73 other: "plus de %{count}Β ans"
73 other: "plus de %{count}Β ans"
74 almost_x_years:
74 almost_x_years:
75 one: "presqu'un an"
75 one: "presqu'un an"
76 other: "presque %{count} ans"
76 other: "presque %{count} ans"
77 prompts:
77 prompts:
78 year: "AnnΓ©e"
78 year: "AnnΓ©e"
79 month: "Mois"
79 month: "Mois"
80 day: "Jour"
80 day: "Jour"
81 hour: "Heure"
81 hour: "Heure"
82 minute: "Minute"
82 minute: "Minute"
83 second: "Seconde"
83 second: "Seconde"
84
84
85 number:
85 number:
86 format:
86 format:
87 precision: 3
87 precision: 3
88 separator: ','
88 separator: ','
89 delimiter: 'Β '
89 delimiter: 'Β '
90 currency:
90 currency:
91 format:
91 format:
92 unit: '€'
92 unit: '€'
93 precision: 2
93 precision: 2
94 format: '%nΒ %u'
94 format: '%nΒ %u'
95 human:
95 human:
96 format:
96 format:
97 precision: 3
97 precision: 3
98 storage_units:
98 storage_units:
99 format: "%n %u"
99 format: "%n %u"
100 units:
100 units:
101 byte:
101 byte:
102 one: "octet"
102 one: "octet"
103 other: "octet"
103 other: "octet"
104 kb: "ko"
104 kb: "ko"
105 mb: "Mo"
105 mb: "Mo"
106 gb: "Go"
106 gb: "Go"
107 tb: "To"
107 tb: "To"
108
108
109 support:
109 support:
110 array:
110 array:
111 sentence_connector: 'et'
111 sentence_connector: 'et'
112 skip_last_comma: true
112 skip_last_comma: true
113 word_connector: ", "
113 word_connector: ", "
114 two_words_connector: " et "
114 two_words_connector: " et "
115 last_word_connector: " et "
115 last_word_connector: " et "
116
116
117 activerecord:
117 activerecord:
118 errors:
118 errors:
119 template:
119 template:
120 header:
120 header:
121 one: "Impossible d'enregistrer %{model} : une erreur"
121 one: "Impossible d'enregistrer %{model} : une erreur"
122 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
122 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
123 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
123 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
124 messages:
124 messages:
125 inclusion: "n'est pas inclus(e) dans la liste"
125 inclusion: "n'est pas inclus(e) dans la liste"
126 exclusion: "n'est pas disponible"
126 exclusion: "n'est pas disponible"
127 invalid: "n'est pas valide"
127 invalid: "n'est pas valide"
128 confirmation: "ne concorde pas avec la confirmation"
128 confirmation: "ne concorde pas avec la confirmation"
129 accepted: "doit Γͺtre acceptΓ©(e)"
129 accepted: "doit Γͺtre acceptΓ©(e)"
130 empty: "doit Γͺtre renseignΓ©(e)"
130 empty: "doit Γͺtre renseignΓ©(e)"
131 blank: "doit Γͺtre renseignΓ©(e)"
131 blank: "doit Γͺtre renseignΓ©(e)"
132 too_long: "est trop long (pas plus de %{count} caractères)"
132 too_long: "est trop long (pas plus de %{count} caractères)"
133 too_short: "est trop court (au moins %{count} caractères)"
133 too_short: "est trop court (au moins %{count} caractères)"
134 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
134 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
135 taken: "est dΓ©jΓ  utilisΓ©"
135 taken: "est dΓ©jΓ  utilisΓ©"
136 not_a_number: "n'est pas un nombre"
136 not_a_number: "n'est pas un nombre"
137 not_a_date: "n'est pas une date valide"
137 not_a_date: "n'est pas une date valide"
138 greater_than: "doit Γͺtre supΓ©rieur Γ  %{count}"
138 greater_than: "doit Γͺtre supΓ©rieur Γ  %{count}"
139 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  %{count}"
139 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  %{count}"
140 equal_to: "doit Γͺtre Γ©gal Γ  %{count}"
140 equal_to: "doit Γͺtre Γ©gal Γ  %{count}"
141 less_than: "doit Γͺtre infΓ©rieur Γ  %{count}"
141 less_than: "doit Γͺtre infΓ©rieur Γ  %{count}"
142 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  %{count}"
142 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  %{count}"
143 odd: "doit Γͺtre impair"
143 odd: "doit Γͺtre impair"
144 even: "doit Γͺtre pair"
144 even: "doit Γͺtre pair"
145 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
145 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
146 not_same_project: "n'appartient pas au mΓͺme projet"
146 not_same_project: "n'appartient pas au mΓͺme projet"
147 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
147 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
148 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
148 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
149 earlier_than_minimum_start_date: "ne peut pas Γͺtre antΓ©rieure au %{date} Γ  cause des demandes qui prΓ©cΓ©dent"
149 earlier_than_minimum_start_date: "ne peut pas Γͺtre antΓ©rieure au %{date} Γ  cause des demandes qui prΓ©cΓ©dent"
150
150
151 actionview_instancetag_blank_option: Choisir
151 actionview_instancetag_blank_option: Choisir
152
152
153 general_text_No: 'Non'
153 general_text_No: 'Non'
154 general_text_Yes: 'Oui'
154 general_text_Yes: 'Oui'
155 general_text_no: 'non'
155 general_text_no: 'non'
156 general_text_yes: 'oui'
156 general_text_yes: 'oui'
157 general_lang_name: 'FranΓ§ais'
157 general_lang_name: 'FranΓ§ais'
158 general_csv_separator: ';'
158 general_csv_separator: ';'
159 general_csv_decimal_separator: ','
159 general_csv_decimal_separator: ','
160 general_csv_encoding: ISO-8859-1
160 general_csv_encoding: ISO-8859-1
161 general_pdf_encoding: UTF-8
161 general_pdf_encoding: UTF-8
162 general_first_day_of_week: '1'
162 general_first_day_of_week: '1'
163
163
164 notice_account_updated: Le compte a été mis à jour avec succès.
164 notice_account_updated: Le compte a été mis à jour avec succès.
165 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
165 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
166 notice_account_password_updated: Mot de passe mis à jour avec succès.
166 notice_account_password_updated: Mot de passe mis à jour avec succès.
167 notice_account_wrong_password: Mot de passe incorrect
167 notice_account_wrong_password: Mot de passe incorrect
168 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ© Γ  l'adresse %{email}.
168 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ© Γ  l'adresse %{email}.
169 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
169 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
170 notice_account_not_activated_yet: Vous n'avez pas encore activΓ© votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez <a href="%{url}">cliquer sur ce lien</a>.
170 notice_account_not_activated_yet: Vous n'avez pas encore activΓ© votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez <a href="%{url}">cliquer sur ce lien</a>.
171 notice_account_locked: Votre compte est verrouillΓ©.
171 notice_account_locked: Votre compte est verrouillΓ©.
172 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
172 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
173 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
173 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
174 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
174 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
175 notice_successful_create: Création effectuée avec succès.
175 notice_successful_create: Création effectuée avec succès.
176 notice_successful_update: Mise à jour effectuée avec succès.
176 notice_successful_update: Mise à jour effectuée avec succès.
177 notice_successful_delete: Suppression effectuée avec succès.
177 notice_successful_delete: Suppression effectuée avec succès.
178 notice_successful_connection: Connexion rΓ©ussie.
178 notice_successful_connection: Connexion rΓ©ussie.
179 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
179 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
180 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
180 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
181 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ  accΓ©der Γ  cette page."
181 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ  accΓ©der Γ  cette page."
182 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
182 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
183 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  %{value}"
183 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  %{value}"
184 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
184 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
185 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux Atom a été réinitialisée."
185 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux Atom a été réinitialisée."
186 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : %{ids}."
186 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : %{ids}."
187 notice_failed_to_save_time_entries: "%{count} temps passΓ©(s) sur les %{total} sΓ©lectionnΓ©s n'ont pas pu Γͺtre mis Γ  jour: %{ids}."
187 notice_failed_to_save_time_entries: "%{count} temps passΓ©(s) sur les %{total} sΓ©lectionnΓ©s n'ont pas pu Γͺtre mis Γ  jour: %{ids}."
188 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
188 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
189 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
189 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
190 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
190 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
191 notice_unable_delete_version: Impossible de supprimer cette version.
191 notice_unable_delete_version: Impossible de supprimer cette version.
192 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
192 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
193 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
193 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
194 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})"
194 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})"
195 notice_issue_successful_create: "Demande %{id} créée."
195 notice_issue_successful_create: "Demande %{id} créée."
196 notice_issue_update_conflict: "La demande a Γ©tΓ© mise Γ  jour par un autre utilisateur pendant que vous la modifiez."
196 notice_issue_update_conflict: "La demande a Γ©tΓ© mise Γ  jour par un autre utilisateur pendant que vous la modifiez."
197 notice_account_deleted: "Votre compte a Γ©tΓ© dΓ©finitivement supprimΓ©."
197 notice_account_deleted: "Votre compte a Γ©tΓ© dΓ©finitivement supprimΓ©."
198 notice_user_successful_create: "Utilisateur %{id} créé."
198 notice_user_successful_create: "Utilisateur %{id} créé."
199 notice_new_password_must_be_different: Votre nouveau mot de passe doit Γͺtre diffΓ©rent de votre mot de passe actuel
199 notice_new_password_must_be_different: Votre nouveau mot de passe doit Γͺtre diffΓ©rent de votre mot de passe actuel
200
200
201 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}"
201 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}"
202 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
202 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
203 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
203 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
204 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
204 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
205 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
205 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
206 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
206 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
207 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
207 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
208 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
208 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
209 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
209 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
210 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
210 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
211 error_attachment_too_big: Ce fichier ne peut pas Γͺtre attachΓ© car il excΓ¨de la taille maximale autorisΓ©e (%{max_size})
211 error_attachment_too_big: Ce fichier ne peut pas Γͺtre attachΓ© car il excΓ¨de la taille maximale autorisΓ©e (%{max_size})
212 error_session_expired: "Votre session a expirΓ©. Veuillez vous reconnecter."
212 error_session_expired: "Votre session a expirΓ©. Veuillez vous reconnecter."
213
213
214 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
214 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
215
215
216 mail_subject_lost_password: "Votre mot de passe %{value}"
216 mail_subject_lost_password: "Votre mot de passe %{value}"
217 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
217 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
218 mail_subject_register: "Activation de votre compte %{value}"
218 mail_subject_register: "Activation de votre compte %{value}"
219 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
219 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
220 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
220 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
221 mail_body_account_information: Paramètres de connexion de votre compte
221 mail_body_account_information: Paramètres de connexion de votre compte
222 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
222 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
223 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
223 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
224 mail_subject_reminder: "%{count} demande(s) arrivent Γ  Γ©chΓ©ance (%{days})"
224 mail_subject_reminder: "%{count} demande(s) arrivent Γ  Γ©chΓ©ance (%{days})"
225 mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les %{days} prochains jours :"
225 mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les %{days} prochains jours :"
226 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e"
226 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e"
227 mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}."
227 mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}."
228 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ  jour"
228 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ  jour"
229 mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ  jour par %{author}."
229 mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ  jour par %{author}."
230
230
231
231
232 field_name: Nom
232 field_name: Nom
233 field_description: Description
233 field_description: Description
234 field_summary: RΓ©sumΓ©
234 field_summary: RΓ©sumΓ©
235 field_is_required: Obligatoire
235 field_is_required: Obligatoire
236 field_firstname: PrΓ©nom
236 field_firstname: PrΓ©nom
237 field_lastname: Nom
237 field_lastname: Nom
238 field_mail: "Email "
238 field_mail: "Email "
239 field_filename: Fichier
239 field_filename: Fichier
240 field_filesize: Taille
240 field_filesize: Taille
241 field_downloads: TΓ©lΓ©chargements
241 field_downloads: TΓ©lΓ©chargements
242 field_author: Auteur
242 field_author: Auteur
243 field_created_on: "Créé "
243 field_created_on: "Créé "
244 field_updated_on: "Mis-Γ -jour "
244 field_updated_on: "Mis-Γ -jour "
245 field_closed_on: FermΓ©
245 field_closed_on: FermΓ©
246 field_field_format: Format
246 field_field_format: Format
247 field_is_for_all: Pour tous les projets
247 field_is_for_all: Pour tous les projets
248 field_possible_values: Valeurs possibles
248 field_possible_values: Valeurs possibles
249 field_regexp: Expression régulière
249 field_regexp: Expression régulière
250 field_min_length: Longueur minimum
250 field_min_length: Longueur minimum
251 field_max_length: Longueur maximum
251 field_max_length: Longueur maximum
252 field_value: Valeur
252 field_value: Valeur
253 field_category: CatΓ©gorie
253 field_category: CatΓ©gorie
254 field_title: Titre
254 field_title: Titre
255 field_project: Projet
255 field_project: Projet
256 field_issue: Demande
256 field_issue: Demande
257 field_status: Statut
257 field_status: Statut
258 field_notes: Notes
258 field_notes: Notes
259 field_is_closed: Demande fermΓ©e
259 field_is_closed: Demande fermΓ©e
260 field_is_default: Valeur par dΓ©faut
260 field_is_default: Valeur par dΓ©faut
261 field_tracker: Tracker
261 field_tracker: Tracker
262 field_subject: Sujet
262 field_subject: Sujet
263 field_due_date: EchΓ©ance
263 field_due_date: EchΓ©ance
264 field_assigned_to: AssignΓ© Γ 
264 field_assigned_to: AssignΓ© Γ 
265 field_priority: PrioritΓ©
265 field_priority: PrioritΓ©
266 field_fixed_version: Version cible
266 field_fixed_version: Version cible
267 field_user: Utilisateur
267 field_user: Utilisateur
268 field_role: RΓ΄le
268 field_role: RΓ΄le
269 field_homepage: "Site web "
269 field_homepage: "Site web "
270 field_is_public: Public
270 field_is_public: Public
271 field_parent: Sous-projet de
271 field_parent: Sous-projet de
272 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
272 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
273 field_login: "Identifiant "
273 field_login: "Identifiant "
274 field_mail_notification: Notifications par mail
274 field_mail_notification: Notifications par mail
275 field_admin: Administrateur
275 field_admin: Administrateur
276 field_last_login_on: "Dernière connexion "
276 field_last_login_on: "Dernière connexion "
277 field_language: Langue
277 field_language: Langue
278 field_effective_date: Date
278 field_effective_date: Date
279 field_password: Mot de passe
279 field_password: Mot de passe
280 field_new_password: Nouveau mot de passe
280 field_new_password: Nouveau mot de passe
281 field_password_confirmation: Confirmation
281 field_password_confirmation: Confirmation
282 field_version: Version
282 field_version: Version
283 field_type: Type
283 field_type: Type
284 field_host: HΓ΄te
284 field_host: HΓ΄te
285 field_port: Port
285 field_port: Port
286 field_account: Compte
286 field_account: Compte
287 field_base_dn: Base DN
287 field_base_dn: Base DN
288 field_attr_login: Attribut Identifiant
288 field_attr_login: Attribut Identifiant
289 field_attr_firstname: Attribut PrΓ©nom
289 field_attr_firstname: Attribut PrΓ©nom
290 field_attr_lastname: Attribut Nom
290 field_attr_lastname: Attribut Nom
291 field_attr_mail: Attribut Email
291 field_attr_mail: Attribut Email
292 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
292 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
293 field_start_date: DΓ©but
293 field_start_date: DΓ©but
294 field_done_ratio: "% rΓ©alisΓ©"
294 field_done_ratio: "% rΓ©alisΓ©"
295 field_auth_source: Mode d'authentification
295 field_auth_source: Mode d'authentification
296 field_hide_mail: Cacher mon adresse mail
296 field_hide_mail: Cacher mon adresse mail
297 field_comments: Commentaire
297 field_comments: Commentaire
298 field_url: URL
298 field_url: URL
299 field_start_page: Page de dΓ©marrage
299 field_start_page: Page de dΓ©marrage
300 field_subproject: Sous-projet
300 field_subproject: Sous-projet
301 field_hours: Heures
301 field_hours: Heures
302 field_activity: ActivitΓ©
302 field_activity: ActivitΓ©
303 field_spent_on: Date
303 field_spent_on: Date
304 field_identifier: Identifiant
304 field_identifier: Identifiant
305 field_is_filter: UtilisΓ© comme filtre
305 field_is_filter: UtilisΓ© comme filtre
306 field_issue_to: Demande liΓ©e
306 field_issue_to: Demande liΓ©e
307 field_delay: Retard
307 field_delay: Retard
308 field_assignable: Demandes assignables Γ  ce rΓ΄le
308 field_assignable: Demandes assignables Γ  ce rΓ΄le
309 field_redirect_existing_links: Rediriger les liens existants
309 field_redirect_existing_links: Rediriger les liens existants
310 field_estimated_hours: Temps estimΓ©
310 field_estimated_hours: Temps estimΓ©
311 field_column_names: Colonnes
311 field_column_names: Colonnes
312 field_time_zone: Fuseau horaire
312 field_time_zone: Fuseau horaire
313 field_searchable: UtilisΓ© pour les recherches
313 field_searchable: UtilisΓ© pour les recherches
314 field_default_value: Valeur par dΓ©faut
314 field_default_value: Valeur par dΓ©faut
315 field_comments_sorting: Afficher les commentaires
315 field_comments_sorting: Afficher les commentaires
316 field_parent_title: Page parent
316 field_parent_title: Page parent
317 field_editable: Modifiable
317 field_editable: Modifiable
318 field_watcher: Observateur
318 field_watcher: Observateur
319 field_identity_url: URL OpenID
319 field_identity_url: URL OpenID
320 field_content: Contenu
320 field_content: Contenu
321 field_group_by: Grouper par
321 field_group_by: Grouper par
322 field_sharing: Partage
322 field_sharing: Partage
323 field_active: Actif
323 field_active: Actif
324 field_parent_issue: TΓ’che parente
324 field_parent_issue: TΓ’che parente
325 field_visible: Visible
325 field_visible: Visible
326 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
326 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
327 field_issues_visibility: VisibilitΓ© des demandes
327 field_issues_visibility: VisibilitΓ© des demandes
328 field_is_private: PrivΓ©e
328 field_is_private: PrivΓ©e
329 field_commit_logs_encoding: Encodage des messages de commit
329 field_commit_logs_encoding: Encodage des messages de commit
330 field_repository_is_default: DΓ©pΓ΄t principal
330 field_repository_is_default: DΓ©pΓ΄t principal
331 field_multiple: Valeurs multiples
331 field_multiple: Valeurs multiples
332 field_auth_source_ldap_filter: Filtre LDAP
332 field_auth_source_ldap_filter: Filtre LDAP
333 field_core_fields: Champs standards
333 field_core_fields: Champs standards
334 field_timeout: "Timeout (en secondes)"
334 field_timeout: "Timeout (en secondes)"
335 field_board_parent: Forum parent
335 field_board_parent: Forum parent
336 field_private_notes: Notes privΓ©es
336 field_private_notes: Notes privΓ©es
337 field_inherit_members: HΓ©riter les membres
337 field_inherit_members: HΓ©riter les membres
338 field_generate_password: GΓ©nΓ©rer un mot de passe
338 field_generate_password: GΓ©nΓ©rer un mot de passe
339 field_must_change_passwd: Doit changer de mot de passe Γ  la prochaine connexion
339 field_must_change_passwd: Doit changer de mot de passe Γ  la prochaine connexion
340
340
341 setting_app_title: Titre de l'application
341 setting_app_title: Titre de l'application
342 setting_app_subtitle: Sous-titre de l'application
342 setting_app_subtitle: Sous-titre de l'application
343 setting_welcome_text: Texte d'accueil
343 setting_welcome_text: Texte d'accueil
344 setting_default_language: Langue par dΓ©faut
344 setting_default_language: Langue par dΓ©faut
345 setting_login_required: Authentification obligatoire
345 setting_login_required: Authentification obligatoire
346 setting_self_registration: Inscription des nouveaux utilisateurs
346 setting_self_registration: Inscription des nouveaux utilisateurs
347 setting_attachment_max_size: Taille maximale des fichiers
347 setting_attachment_max_size: Taille maximale des fichiers
348 setting_issues_export_limit: Limite d'exportation des demandes
348 setting_issues_export_limit: Limite d'exportation des demandes
349 setting_mail_from: Adresse d'Γ©mission
349 setting_mail_from: Adresse d'Γ©mission
350 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
350 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
351 setting_plain_text_mail: Mail en texte brut (non HTML)
351 setting_plain_text_mail: Mail en texte brut (non HTML)
352 setting_host_name: Nom d'hΓ΄te et chemin
352 setting_host_name: Nom d'hΓ΄te et chemin
353 setting_text_formatting: Formatage du texte
353 setting_text_formatting: Formatage du texte
354 setting_wiki_compression: Compression de l'historique des pages wiki
354 setting_wiki_compression: Compression de l'historique des pages wiki
355 setting_feeds_limit: Nombre maximal d'Γ©lΓ©ments dans les flux Atom
355 setting_feeds_limit: Nombre maximal d'Γ©lΓ©ments dans les flux Atom
356 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
356 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
357 setting_autofetch_changesets: RΓ©cupΓ©ration automatique des commits
357 setting_autofetch_changesets: RΓ©cupΓ©ration automatique des commits
358 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
358 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
359 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
359 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
360 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
360 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
361 setting_autologin: DurΓ©e maximale de connexion automatique
361 setting_autologin: DurΓ©e maximale de connexion automatique
362 setting_date_format: Format de date
362 setting_date_format: Format de date
363 setting_time_format: Format d'heure
363 setting_time_format: Format d'heure
364 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
364 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
365 setting_cross_project_subtasks: Autoriser les sous-tΓ’ches dans des projets diffΓ©rents
365 setting_cross_project_subtasks: Autoriser les sous-tΓ’ches dans des projets diffΓ©rents
366 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
366 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
367 setting_emails_footer: Pied-de-page des emails
367 setting_emails_footer: Pied-de-page des emails
368 setting_protocol: Protocole
368 setting_protocol: Protocole
369 setting_per_page_options: Options d'objets affichΓ©s par page
369 setting_per_page_options: Options d'objets affichΓ©s par page
370 setting_user_format: Format d'affichage des utilisateurs
370 setting_user_format: Format d'affichage des utilisateurs
371 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
371 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
372 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
372 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
373 setting_enabled_scm: SCM activΓ©s
373 setting_enabled_scm: SCM activΓ©s
374 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
374 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
375 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
375 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
376 setting_mail_handler_api_key: ClΓ© de protection de l'API
376 setting_mail_handler_api_key: ClΓ© de protection de l'API
377 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
377 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
378 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
378 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
379 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
379 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
380 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
380 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
381 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
381 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
382 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
382 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
383 setting_password_min_length: Longueur minimum des mots de passe
383 setting_password_min_length: Longueur minimum des mots de passe
384 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
384 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
385 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
385 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
386 setting_issue_done_ratio: Calcul de l'avancement des demandes
386 setting_issue_done_ratio: Calcul de l'avancement des demandes
387 setting_issue_done_ratio_issue_status: Utiliser le statut
387 setting_issue_done_ratio_issue_status: Utiliser le statut
388 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
388 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
389 setting_rest_api_enabled: Activer l'API REST
389 setting_rest_api_enabled: Activer l'API REST
390 setting_gravatar_default: Image Gravatar par dΓ©faut
390 setting_gravatar_default: Image Gravatar par dΓ©faut
391 setting_start_of_week: Jour de dΓ©but des calendriers
391 setting_start_of_week: Jour de dΓ©but des calendriers
392 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
392 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
393 setting_commit_logtime_enabled: Permettre la saisie de temps
393 setting_commit_logtime_enabled: Permettre la saisie de temps
394 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
394 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
395 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
395 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
396 setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
396 setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
397 setting_default_issue_start_date_to_creation_date: Donner Γ  la date de dΓ©but d'une nouvelle demande la valeur de la date du jour
397 setting_default_issue_start_date_to_creation_date: Donner Γ  la date de dΓ©but d'une nouvelle demande la valeur de la date du jour
398 setting_commit_cross_project_ref: Permettre le rΓ©fΓ©rencement et la rΓ©solution des demandes de tous les autres projets
398 setting_commit_cross_project_ref: Permettre le rΓ©fΓ©rencement et la rΓ©solution des demandes de tous les autres projets
399 setting_unsubscribe: Permettre aux utilisateurs de supprimer leur propre compte
399 setting_unsubscribe: Permettre aux utilisateurs de supprimer leur propre compte
400 setting_session_lifetime: DurΓ©e de vie maximale des sessions
400 setting_session_lifetime: DurΓ©e de vie maximale des sessions
401 setting_session_timeout: DurΓ©e maximale d'inactivitΓ©
401 setting_session_timeout: DurΓ©e maximale d'inactivitΓ©
402 setting_thumbnails_enabled: Afficher les vignettes des images
402 setting_thumbnails_enabled: Afficher les vignettes des images
403 setting_thumbnails_size: Taille des vignettes (en pixels)
403 setting_thumbnails_size: Taille des vignettes (en pixels)
404 setting_non_working_week_days: Jours non travaillΓ©s
404 setting_non_working_week_days: Jours non travaillΓ©s
405 setting_jsonp_enabled: Activer le support JSONP
405 setting_jsonp_enabled: Activer le support JSONP
406 setting_default_projects_tracker_ids: Trackers par dΓ©faut pour les nouveaux projets
406 setting_default_projects_tracker_ids: Trackers par dΓ©faut pour les nouveaux projets
407 setting_mail_handler_excluded_filenames: Exclure les fichiers attachΓ©s par leur nom
407 setting_mail_handler_excluded_filenames: Exclure les fichiers attachΓ©s par leur nom
408 setting_force_default_language_for_anonymous: Forcer la langue par dΓ©fault pour les utilisateurs anonymes
408 setting_force_default_language_for_anonymous: Forcer la langue par dΓ©fault pour les utilisateurs anonymes
409 setting_force_default_language_for_loggedin: Forcer la langue par dΓ©fault pour les utilisateurs identifiΓ©s
409 setting_force_default_language_for_loggedin: Forcer la langue par dΓ©fault pour les utilisateurs identifiΓ©s
410
410
411 permission_add_project: CrΓ©er un projet
411 permission_add_project: CrΓ©er un projet
412 permission_add_subprojects: CrΓ©er des sous-projets
412 permission_add_subprojects: CrΓ©er des sous-projets
413 permission_edit_project: Modifier le projet
413 permission_edit_project: Modifier le projet
414 permission_close_project: Fermer / rΓ©ouvrir le projet
414 permission_close_project: Fermer / rΓ©ouvrir le projet
415 permission_select_project_modules: Choisir les modules
415 permission_select_project_modules: Choisir les modules
416 permission_manage_members: GΓ©rer les membres
416 permission_manage_members: GΓ©rer les membres
417 permission_manage_versions: GΓ©rer les versions
417 permission_manage_versions: GΓ©rer les versions
418 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
418 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
419 permission_view_issues: Voir les demandes
419 permission_view_issues: Voir les demandes
420 permission_add_issues: CrΓ©er des demandes
420 permission_add_issues: CrΓ©er des demandes
421 permission_edit_issues: Modifier les demandes
421 permission_edit_issues: Modifier les demandes
422 permission_manage_issue_relations: GΓ©rer les relations
422 permission_manage_issue_relations: GΓ©rer les relations
423 permission_set_issues_private: Rendre les demandes publiques ou privΓ©es
423 permission_set_issues_private: Rendre les demandes publiques ou privΓ©es
424 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privΓ©es
424 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privΓ©es
425 permission_add_issue_notes: Ajouter des notes
425 permission_add_issue_notes: Ajouter des notes
426 permission_edit_issue_notes: Modifier les notes
426 permission_edit_issue_notes: Modifier les notes
427 permission_edit_own_issue_notes: Modifier ses propres notes
427 permission_edit_own_issue_notes: Modifier ses propres notes
428 permission_view_private_notes: Voir les notes privΓ©es
428 permission_view_private_notes: Voir les notes privΓ©es
429 permission_set_notes_private: Rendre les notes privΓ©es
429 permission_set_notes_private: Rendre les notes privΓ©es
430 permission_move_issues: DΓ©placer les demandes
430 permission_move_issues: DΓ©placer les demandes
431 permission_delete_issues: Supprimer les demandes
431 permission_delete_issues: Supprimer les demandes
432 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
432 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
433 permission_save_queries: Sauvegarder les requΓͺtes
433 permission_save_queries: Sauvegarder les requΓͺtes
434 permission_view_gantt: Voir le gantt
434 permission_view_gantt: Voir le gantt
435 permission_view_calendar: Voir le calendrier
435 permission_view_calendar: Voir le calendrier
436 permission_view_issue_watchers: Voir la liste des observateurs
436 permission_view_issue_watchers: Voir la liste des observateurs
437 permission_add_issue_watchers: Ajouter des observateurs
437 permission_add_issue_watchers: Ajouter des observateurs
438 permission_delete_issue_watchers: Supprimer des observateurs
438 permission_delete_issue_watchers: Supprimer des observateurs
439 permission_log_time: Saisir le temps passΓ©
439 permission_log_time: Saisir le temps passΓ©
440 permission_view_time_entries: Voir le temps passΓ©
440 permission_view_time_entries: Voir le temps passΓ©
441 permission_edit_time_entries: Modifier les temps passΓ©s
441 permission_edit_time_entries: Modifier les temps passΓ©s
442 permission_edit_own_time_entries: Modifier son propre temps passΓ©
442 permission_edit_own_time_entries: Modifier son propre temps passΓ©
443 permission_manage_news: GΓ©rer les annonces
443 permission_manage_news: GΓ©rer les annonces
444 permission_comment_news: Commenter les annonces
444 permission_comment_news: Commenter les annonces
445 permission_view_documents: Voir les documents
445 permission_view_documents: Voir les documents
446 permission_add_documents: Ajouter des documents
446 permission_add_documents: Ajouter des documents
447 permission_edit_documents: Modifier les documents
447 permission_edit_documents: Modifier les documents
448 permission_delete_documents: Supprimer les documents
448 permission_delete_documents: Supprimer les documents
449 permission_manage_files: GΓ©rer les fichiers
449 permission_manage_files: GΓ©rer les fichiers
450 permission_view_files: Voir les fichiers
450 permission_view_files: Voir les fichiers
451 permission_manage_wiki: GΓ©rer le wiki
451 permission_manage_wiki: GΓ©rer le wiki
452 permission_rename_wiki_pages: Renommer les pages
452 permission_rename_wiki_pages: Renommer les pages
453 permission_delete_wiki_pages: Supprimer les pages
453 permission_delete_wiki_pages: Supprimer les pages
454 permission_view_wiki_pages: Voir le wiki
454 permission_view_wiki_pages: Voir le wiki
455 permission_view_wiki_edits: "Voir l'historique des modifications"
455 permission_view_wiki_edits: "Voir l'historique des modifications"
456 permission_edit_wiki_pages: Modifier les pages
456 permission_edit_wiki_pages: Modifier les pages
457 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
457 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
458 permission_protect_wiki_pages: ProtΓ©ger les pages
458 permission_protect_wiki_pages: ProtΓ©ger les pages
459 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
459 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
460 permission_browse_repository: Parcourir les sources
460 permission_browse_repository: Parcourir les sources
461 permission_view_changesets: Voir les rΓ©visions
461 permission_view_changesets: Voir les rΓ©visions
462 permission_commit_access: Droit de commit
462 permission_commit_access: Droit de commit
463 permission_manage_boards: GΓ©rer les forums
463 permission_manage_boards: GΓ©rer les forums
464 permission_view_messages: Voir les messages
464 permission_view_messages: Voir les messages
465 permission_add_messages: Poster un message
465 permission_add_messages: Poster un message
466 permission_edit_messages: Modifier les messages
466 permission_edit_messages: Modifier les messages
467 permission_edit_own_messages: Modifier ses propres messages
467 permission_edit_own_messages: Modifier ses propres messages
468 permission_delete_messages: Supprimer les messages
468 permission_delete_messages: Supprimer les messages
469 permission_delete_own_messages: Supprimer ses propres messages
469 permission_delete_own_messages: Supprimer ses propres messages
470 permission_export_wiki_pages: Exporter les pages
470 permission_export_wiki_pages: Exporter les pages
471 permission_manage_project_activities: GΓ©rer les activitΓ©s
471 permission_manage_project_activities: GΓ©rer les activitΓ©s
472 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
472 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
473 permission_manage_related_issues: GΓ©rer les demandes associΓ©es
473 permission_manage_related_issues: GΓ©rer les demandes associΓ©es
474
474
475 project_module_issue_tracking: Suivi des demandes
475 project_module_issue_tracking: Suivi des demandes
476 project_module_time_tracking: Suivi du temps passΓ©
476 project_module_time_tracking: Suivi du temps passΓ©
477 project_module_news: Publication d'annonces
477 project_module_news: Publication d'annonces
478 project_module_documents: Publication de documents
478 project_module_documents: Publication de documents
479 project_module_files: Publication de fichiers
479 project_module_files: Publication de fichiers
480 project_module_wiki: Wiki
480 project_module_wiki: Wiki
481 project_module_repository: DΓ©pΓ΄t de sources
481 project_module_repository: DΓ©pΓ΄t de sources
482 project_module_boards: Forums de discussion
482 project_module_boards: Forums de discussion
483
483
484 label_user: Utilisateur
484 label_user: Utilisateur
485 label_user_plural: Utilisateurs
485 label_user_plural: Utilisateurs
486 label_user_new: Nouvel utilisateur
486 label_user_new: Nouvel utilisateur
487 label_user_anonymous: Anonyme
487 label_user_anonymous: Anonyme
488 label_project: Projet
488 label_project: Projet
489 label_project_new: Nouveau projet
489 label_project_new: Nouveau projet
490 label_project_plural: Projets
490 label_project_plural: Projets
491 label_x_projects:
491 label_x_projects:
492 zero: aucun projet
492 zero: aucun projet
493 one: un projet
493 one: un projet
494 other: "%{count} projets"
494 other: "%{count} projets"
495 label_project_all: Tous les projets
495 label_project_all: Tous les projets
496 label_project_latest: Derniers projets
496 label_project_latest: Derniers projets
497 label_issue: Demande
497 label_issue: Demande
498 label_issue_new: Nouvelle demande
498 label_issue_new: Nouvelle demande
499 label_issue_plural: Demandes
499 label_issue_plural: Demandes
500 label_issue_view_all: Voir toutes les demandes
500 label_issue_view_all: Voir toutes les demandes
501 label_issue_added: Demande ajoutΓ©e
501 label_issue_added: Demande ajoutΓ©e
502 label_issue_updated: Demande mise Γ  jour
502 label_issue_updated: Demande mise Γ  jour
503 label_issue_note_added: Note ajoutΓ©e
503 label_issue_note_added: Note ajoutΓ©e
504 label_issue_status_updated: Statut changΓ©
504 label_issue_status_updated: Statut changΓ©
505 label_issue_priority_updated: PrioritΓ© changΓ©e
505 label_issue_priority_updated: PrioritΓ© changΓ©e
506 label_issues_by: "Demandes par %{value}"
506 label_issues_by: "Demandes par %{value}"
507 label_document: Document
507 label_document: Document
508 label_document_new: Nouveau document
508 label_document_new: Nouveau document
509 label_document_plural: Documents
509 label_document_plural: Documents
510 label_document_added: Document ajoutΓ©
510 label_document_added: Document ajoutΓ©
511 label_role: RΓ΄le
511 label_role: RΓ΄le
512 label_role_plural: RΓ΄les
512 label_role_plural: RΓ΄les
513 label_role_new: Nouveau rΓ΄le
513 label_role_new: Nouveau rΓ΄le
514 label_role_and_permissions: RΓ΄les et permissions
514 label_role_and_permissions: RΓ΄les et permissions
515 label_role_anonymous: Anonyme
515 label_role_anonymous: Anonyme
516 label_role_non_member: Non membre
516 label_role_non_member: Non membre
517 label_member: Membre
517 label_member: Membre
518 label_member_new: Nouveau membre
518 label_member_new: Nouveau membre
519 label_member_plural: Membres
519 label_member_plural: Membres
520 label_tracker: Tracker
520 label_tracker: Tracker
521 label_tracker_plural: Trackers
521 label_tracker_plural: Trackers
522 label_tracker_new: Nouveau tracker
522 label_tracker_new: Nouveau tracker
523 label_workflow: Workflow
523 label_workflow: Workflow
524 label_issue_status: Statut de demandes
524 label_issue_status: Statut de demandes
525 label_issue_status_plural: Statuts de demandes
525 label_issue_status_plural: Statuts de demandes
526 label_issue_status_new: Nouveau statut
526 label_issue_status_new: Nouveau statut
527 label_issue_category: CatΓ©gorie de demandes
527 label_issue_category: CatΓ©gorie de demandes
528 label_issue_category_plural: CatΓ©gories de demandes
528 label_issue_category_plural: CatΓ©gories de demandes
529 label_issue_category_new: Nouvelle catΓ©gorie
529 label_issue_category_new: Nouvelle catΓ©gorie
530 label_custom_field: Champ personnalisΓ©
530 label_custom_field: Champ personnalisΓ©
531 label_custom_field_plural: Champs personnalisΓ©s
531 label_custom_field_plural: Champs personnalisΓ©s
532 label_custom_field_new: Nouveau champ personnalisΓ©
532 label_custom_field_new: Nouveau champ personnalisΓ©
533 label_enumerations: Listes de valeurs
533 label_enumerations: Listes de valeurs
534 label_enumeration_new: Nouvelle valeur
534 label_enumeration_new: Nouvelle valeur
535 label_information: Information
535 label_information: Information
536 label_information_plural: Informations
536 label_information_plural: Informations
537 label_please_login: Identification
537 label_please_login: Identification
538 label_register: S'enregistrer
538 label_register: S'enregistrer
539 label_login_with_open_id_option: S'authentifier avec OpenID
539 label_login_with_open_id_option: S'authentifier avec OpenID
540 label_password_lost: Mot de passe perdu
540 label_password_lost: Mot de passe perdu
541 label_home: Accueil
541 label_home: Accueil
542 label_my_page: Ma page
542 label_my_page: Ma page
543 label_my_account: Mon compte
543 label_my_account: Mon compte
544 label_my_projects: Mes projets
544 label_my_projects: Mes projets
545 label_my_page_block: Blocs disponibles
545 label_my_page_block: Blocs disponibles
546 label_administration: Administration
546 label_administration: Administration
547 label_login: Connexion
547 label_login: Connexion
548 label_logout: DΓ©connexion
548 label_logout: DΓ©connexion
549 label_help: Aide
549 label_help: Aide
550 label_reported_issues: "Demandes soumises "
550 label_reported_issues: "Demandes soumises "
551 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
551 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
552 label_last_login: "Dernière connexion "
552 label_last_login: "Dernière connexion "
553 label_registered_on: "Inscrit le "
553 label_registered_on: "Inscrit le "
554 label_activity: ActivitΓ©
554 label_activity: ActivitΓ©
555 label_overall_activity: ActivitΓ© globale
555 label_overall_activity: ActivitΓ© globale
556 label_user_activity: "ActivitΓ© de %{value}"
556 label_user_activity: "ActivitΓ© de %{value}"
557 label_new: Nouveau
557 label_new: Nouveau
558 label_logged_as: ConnectΓ© en tant que
558 label_logged_as: ConnectΓ© en tant que
559 label_environment: Environnement
559 label_environment: Environnement
560 label_authentication: Authentification
560 label_authentication: Authentification
561 label_auth_source: Mode d'authentification
561 label_auth_source: Mode d'authentification
562 label_auth_source_new: Nouveau mode d'authentification
562 label_auth_source_new: Nouveau mode d'authentification
563 label_auth_source_plural: Modes d'authentification
563 label_auth_source_plural: Modes d'authentification
564 label_subproject_plural: Sous-projets
564 label_subproject_plural: Sous-projets
565 label_subproject_new: Nouveau sous-projet
565 label_subproject_new: Nouveau sous-projet
566 label_and_its_subprojects: "%{value} et ses sous-projets"
566 label_and_its_subprojects: "%{value} et ses sous-projets"
567 label_min_max_length: Longueurs mini - maxi
567 label_min_max_length: Longueurs mini - maxi
568 label_list: Liste
568 label_list: Liste
569 label_date: Date
569 label_date: Date
570 label_integer: Entier
570 label_integer: Entier
571 label_float: Nombre dΓ©cimal
571 label_float: Nombre dΓ©cimal
572 label_boolean: BoolΓ©en
572 label_boolean: BoolΓ©en
573 label_string: Texte
573 label_string: Texte
574 label_text: Texte long
574 label_text: Texte long
575 label_attribute: Attribut
575 label_attribute: Attribut
576 label_attribute_plural: Attributs
576 label_attribute_plural: Attributs
577 label_no_data: Aucune donnΓ©e Γ  afficher
577 label_no_data: Aucune donnΓ©e Γ  afficher
578 label_change_status: Changer le statut
578 label_change_status: Changer le statut
579 label_history: Historique
579 label_history: Historique
580 label_attachment: Fichier
580 label_attachment: Fichier
581 label_attachment_new: Nouveau fichier
581 label_attachment_new: Nouveau fichier
582 label_attachment_delete: Supprimer le fichier
582 label_attachment_delete: Supprimer le fichier
583 label_attachment_plural: Fichiers
583 label_attachment_plural: Fichiers
584 label_file_added: Fichier ajoutΓ©
584 label_file_added: Fichier ajoutΓ©
585 label_report: Rapport
585 label_report: Rapport
586 label_report_plural: Rapports
586 label_report_plural: Rapports
587 label_news: Annonce
587 label_news: Annonce
588 label_news_new: Nouvelle annonce
588 label_news_new: Nouvelle annonce
589 label_news_plural: Annonces
589 label_news_plural: Annonces
590 label_news_latest: Dernières annonces
590 label_news_latest: Dernières annonces
591 label_news_view_all: Voir toutes les annonces
591 label_news_view_all: Voir toutes les annonces
592 label_news_added: Annonce ajoutΓ©e
592 label_news_added: Annonce ajoutΓ©e
593 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
593 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
594 label_settings: Configuration
594 label_settings: Configuration
595 label_overview: AperΓ§u
595 label_overview: AperΓ§u
596 label_version: Version
596 label_version: Version
597 label_version_new: Nouvelle version
597 label_version_new: Nouvelle version
598 label_version_plural: Versions
598 label_version_plural: Versions
599 label_confirmation: Confirmation
599 label_confirmation: Confirmation
600 label_export_to: 'Formats disponibles :'
600 label_export_to: 'Formats disponibles :'
601 label_read: Lire...
601 label_read: Lire...
602 label_public_projects: Projets publics
602 label_public_projects: Projets publics
603 label_open_issues: ouvert
603 label_open_issues: ouvert
604 label_open_issues_plural: ouverts
604 label_open_issues_plural: ouverts
605 label_closed_issues: fermΓ©
605 label_closed_issues: fermΓ©
606 label_closed_issues_plural: fermΓ©s
606 label_closed_issues_plural: fermΓ©s
607 label_x_open_issues_abbr_on_total:
607 label_x_open_issues_abbr_on_total:
608 zero: 0 ouverte sur %{total}
608 zero: 0 ouverte sur %{total}
609 one: 1 ouverte sur %{total}
609 one: 1 ouverte sur %{total}
610 other: "%{count} ouvertes sur %{total}"
610 other: "%{count} ouvertes sur %{total}"
611 label_x_open_issues_abbr:
611 label_x_open_issues_abbr:
612 zero: 0 ouverte
612 zero: 0 ouverte
613 one: 1 ouverte
613 one: 1 ouverte
614 other: "%{count} ouvertes"
614 other: "%{count} ouvertes"
615 label_x_closed_issues_abbr:
615 label_x_closed_issues_abbr:
616 zero: 0 fermΓ©e
616 zero: 0 fermΓ©e
617 one: 1 fermΓ©e
617 one: 1 fermΓ©e
618 other: "%{count} fermΓ©es"
618 other: "%{count} fermΓ©es"
619 label_x_issues:
619 label_x_issues:
620 zero: 0 demande
620 zero: 0 demande
621 one: 1 demande
621 one: 1 demande
622 other: "%{count} demandes"
622 other: "%{count} demandes"
623 label_total: Total
623 label_total: Total
624 label_total_time: Temps total
624 label_total_time: Temps total
625 label_permissions: Permissions
625 label_permissions: Permissions
626 label_current_status: Statut actuel
626 label_current_status: Statut actuel
627 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
627 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
628 label_all: tous
628 label_all: tous
629 label_any: tous
629 label_any: tous
630 label_none: aucun
630 label_none: aucun
631 label_nobody: personne
631 label_nobody: personne
632 label_next: Suivant
632 label_next: Suivant
633 label_previous: PrΓ©cΓ©dent
633 label_previous: PrΓ©cΓ©dent
634 label_used_by: UtilisΓ© par
634 label_used_by: UtilisΓ© par
635 label_details: DΓ©tails
635 label_details: DΓ©tails
636 label_add_note: Ajouter une note
636 label_add_note: Ajouter une note
637 label_per_page: Par page
637 label_per_page: Par page
638 label_calendar: Calendrier
638 label_calendar: Calendrier
639 label_months_from: mois depuis
639 label_months_from: mois depuis
640 label_gantt: Gantt
640 label_gantt: Gantt
641 label_internal: Interne
641 label_internal: Interne
642 label_last_changes: "%{count} derniers changements"
642 label_last_changes: "%{count} derniers changements"
643 label_change_view_all: Voir tous les changements
643 label_change_view_all: Voir tous les changements
644 label_personalize_page: Personnaliser cette page
644 label_personalize_page: Personnaliser cette page
645 label_comment: Commentaire
645 label_comment: Commentaire
646 label_comment_plural: Commentaires
646 label_comment_plural: Commentaires
647 label_x_comments:
647 label_x_comments:
648 zero: aucun commentaire
648 zero: aucun commentaire
649 one: un commentaire
649 one: un commentaire
650 other: "%{count} commentaires"
650 other: "%{count} commentaires"
651 label_comment_add: Ajouter un commentaire
651 label_comment_add: Ajouter un commentaire
652 label_comment_added: Commentaire ajoutΓ©
652 label_comment_added: Commentaire ajoutΓ©
653 label_comment_delete: Supprimer les commentaires
653 label_comment_delete: Supprimer les commentaires
654 label_query: Rapport personnalisΓ©
654 label_query: Rapport personnalisΓ©
655 label_query_plural: Rapports personnalisΓ©s
655 label_query_plural: Rapports personnalisΓ©s
656 label_query_new: Nouveau rapport
656 label_query_new: Nouveau rapport
657 label_my_queries: Mes rapports personnalisΓ©s
657 label_my_queries: Mes rapports personnalisΓ©s
658 label_filter_add: "Ajouter le filtre "
658 label_filter_add: "Ajouter le filtre "
659 label_filter_plural: Filtres
659 label_filter_plural: Filtres
660 label_equals: Γ©gal
660 label_equals: Γ©gal
661 label_not_equals: diffΓ©rent
661 label_not_equals: diffΓ©rent
662 label_in_less_than: dans moins de
662 label_in_less_than: dans moins de
663 label_in_more_than: dans plus de
663 label_in_more_than: dans plus de
664 label_in_the_next_days: dans les prochains jours
664 label_in_the_next_days: dans les prochains jours
665 label_in_the_past_days: dans les derniers jours
665 label_in_the_past_days: dans les derniers jours
666 label_in: dans
666 label_in: dans
667 label_today: aujourd'hui
667 label_today: aujourd'hui
668 label_all_time: toute la pΓ©riode
668 label_all_time: toute la pΓ©riode
669 label_yesterday: hier
669 label_yesterday: hier
670 label_this_week: cette semaine
670 label_this_week: cette semaine
671 label_last_week: la semaine dernière
671 label_last_week: la semaine dernière
672 label_last_n_weeks: "les %{count} dernières semaines"
672 label_last_n_weeks: "les %{count} dernières semaines"
673 label_last_n_days: "les %{count} derniers jours"
673 label_last_n_days: "les %{count} derniers jours"
674 label_this_month: ce mois-ci
674 label_this_month: ce mois-ci
675 label_last_month: le mois dernier
675 label_last_month: le mois dernier
676 label_this_year: cette annΓ©e
676 label_this_year: cette annΓ©e
677 label_date_range: PΓ©riode
677 label_date_range: PΓ©riode
678 label_less_than_ago: il y a moins de
678 label_less_than_ago: il y a moins de
679 label_more_than_ago: il y a plus de
679 label_more_than_ago: il y a plus de
680 label_ago: il y a
680 label_ago: il y a
681 label_contains: contient
681 label_contains: contient
682 label_not_contains: ne contient pas
682 label_not_contains: ne contient pas
683 label_any_issues_in_project: une demande du projet
683 label_any_issues_in_project: une demande du projet
684 label_any_issues_not_in_project: une demande hors du projet
684 label_any_issues_not_in_project: une demande hors du projet
685 label_no_issues_in_project: aucune demande du projet
685 label_no_issues_in_project: aucune demande du projet
686 label_day_plural: jours
686 label_day_plural: jours
687 label_repository: DΓ©pΓ΄t
687 label_repository: DΓ©pΓ΄t
688 label_repository_new: Nouveau dΓ©pΓ΄t
688 label_repository_new: Nouveau dΓ©pΓ΄t
689 label_repository_plural: DΓ©pΓ΄ts
689 label_repository_plural: DΓ©pΓ΄ts
690 label_browse: Parcourir
690 label_browse: Parcourir
691 label_revision: "RΓ©vision "
691 label_revision: "RΓ©vision "
692 label_revision_plural: RΓ©visions
692 label_revision_plural: RΓ©visions
693 label_associated_revisions: RΓ©visions associΓ©es
693 label_associated_revisions: RΓ©visions associΓ©es
694 label_added: ajoutΓ©
694 label_added: ajoutΓ©
695 label_modified: modifiΓ©
695 label_modified: modifiΓ©
696 label_copied: copiΓ©
696 label_copied: copiΓ©
697 label_renamed: renommΓ©
697 label_renamed: renommΓ©
698 label_deleted: supprimΓ©
698 label_deleted: supprimΓ©
699 label_latest_revision: Dernière révision
699 label_latest_revision: Dernière révision
700 label_latest_revision_plural: Dernières révisions
700 label_latest_revision_plural: Dernières révisions
701 label_view_revisions: Voir les rΓ©visions
701 label_view_revisions: Voir les rΓ©visions
702 label_max_size: Taille maximale
702 label_max_size: Taille maximale
703 label_sort_highest: Remonter en premier
703 label_sort_highest: Remonter en premier
704 label_sort_higher: Remonter
704 label_sort_higher: Remonter
705 label_sort_lower: Descendre
705 label_sort_lower: Descendre
706 label_sort_lowest: Descendre en dernier
706 label_sort_lowest: Descendre en dernier
707 label_roadmap: Roadmap
707 label_roadmap: Roadmap
708 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
708 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
709 label_roadmap_overdue: "En retard de %{value}"
709 label_roadmap_overdue: "En retard de %{value}"
710 label_roadmap_no_issues: Aucune demande pour cette version
710 label_roadmap_no_issues: Aucune demande pour cette version
711 label_search: "Recherche "
711 label_search: "Recherche "
712 label_result_plural: RΓ©sultats
712 label_result_plural: RΓ©sultats
713 label_all_words: Tous les mots
713 label_all_words: Tous les mots
714 label_wiki: Wiki
714 label_wiki: Wiki
715 label_wiki_edit: RΓ©vision wiki
715 label_wiki_edit: RΓ©vision wiki
716 label_wiki_edit_plural: RΓ©visions wiki
716 label_wiki_edit_plural: RΓ©visions wiki
717 label_wiki_page: Page wiki
717 label_wiki_page: Page wiki
718 label_wiki_page_plural: Pages wiki
718 label_wiki_page_plural: Pages wiki
719 label_index_by_title: Index par titre
719 label_index_by_title: Index par titre
720 label_index_by_date: Index par date
720 label_index_by_date: Index par date
721 label_current_version: Version actuelle
721 label_current_version: Version actuelle
722 label_preview: PrΓ©visualisation
722 label_preview: PrΓ©visualisation
723 label_feed_plural: Flux Atom
723 label_feed_plural: Flux Atom
724 label_changes_details: DΓ©tails de tous les changements
724 label_changes_details: DΓ©tails de tous les changements
725 label_issue_tracking: Suivi des demandes
725 label_issue_tracking: Suivi des demandes
726 label_spent_time: Temps passΓ©
726 label_spent_time: Temps passΓ©
727 label_f_hour: "%{value} heure"
727 label_f_hour: "%{value} heure"
728 label_f_hour_plural: "%{value} heures"
728 label_f_hour_plural: "%{value} heures"
729 label_time_tracking: Suivi du temps
729 label_time_tracking: Suivi du temps
730 label_change_plural: Changements
730 label_change_plural: Changements
731 label_statistics: Statistiques
731 label_statistics: Statistiques
732 label_commits_per_month: Commits par mois
732 label_commits_per_month: Commits par mois
733 label_commits_per_author: Commits par auteur
733 label_commits_per_author: Commits par auteur
734 label_view_diff: Voir les diffΓ©rences
734 label_view_diff: Voir les diffΓ©rences
735 label_diff_inline: en ligne
735 label_diff_inline: en ligne
736 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
736 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
737 label_options: Options
737 label_options: Options
738 label_copy_workflow_from: Copier le workflow de
738 label_copy_workflow_from: Copier le workflow de
739 label_permissions_report: Synthèse des permissions
739 label_permissions_report: Synthèse des permissions
740 label_watched_issues: Demandes surveillΓ©es
740 label_watched_issues: Demandes surveillΓ©es
741 label_related_issues: Demandes liΓ©es
741 label_related_issues: Demandes liΓ©es
742 label_applied_status: Statut appliquΓ©
742 label_applied_status: Statut appliquΓ©
743 label_loading: Chargement...
743 label_loading: Chargement...
744 label_relation_new: Nouvelle relation
744 label_relation_new: Nouvelle relation
745 label_relation_delete: Supprimer la relation
745 label_relation_delete: Supprimer la relation
746 label_relates_to: LiΓ© Γ 
746 label_relates_to: LiΓ© Γ 
747 label_duplicates: Duplique
747 label_duplicates: Duplique
748 label_duplicated_by: DupliquΓ© par
748 label_duplicated_by: DupliquΓ© par
749 label_blocks: Bloque
749 label_blocks: Bloque
750 label_blocked_by: BloquΓ© par
750 label_blocked_by: BloquΓ© par
751 label_precedes: Précède
751 label_precedes: Précède
752 label_follows: Suit
752 label_follows: Suit
753 label_copied_to: CopiΓ© vers
753 label_copied_to: CopiΓ© vers
754 label_copied_from: CopiΓ© depuis
754 label_copied_from: CopiΓ© depuis
755 label_end_to_start: fin Γ  dΓ©but
755 label_end_to_start: fin Γ  dΓ©but
756 label_end_to_end: fin Γ  fin
756 label_end_to_end: fin Γ  fin
757 label_start_to_start: dΓ©but Γ  dΓ©but
757 label_start_to_start: dΓ©but Γ  dΓ©but
758 label_start_to_end: dΓ©but Γ  fin
758 label_start_to_end: dΓ©but Γ  fin
759 label_stay_logged_in: Rester connectΓ©
759 label_stay_logged_in: Rester connectΓ©
760 label_disabled: dΓ©sactivΓ©
760 label_disabled: dΓ©sactivΓ©
761 label_show_completed_versions: Voir les versions passΓ©es
761 label_show_completed_versions: Voir les versions passΓ©es
762 label_me: moi
762 label_me: moi
763 label_board: Forum
763 label_board: Forum
764 label_board_new: Nouveau forum
764 label_board_new: Nouveau forum
765 label_board_plural: Forums
765 label_board_plural: Forums
766 label_topic_plural: Discussions
766 label_topic_plural: Discussions
767 label_message_plural: Messages
767 label_message_plural: Messages
768 label_message_last: Dernier message
768 label_message_last: Dernier message
769 label_message_new: Nouveau message
769 label_message_new: Nouveau message
770 label_message_posted: Message ajoutΓ©
770 label_message_posted: Message ajoutΓ©
771 label_reply_plural: RΓ©ponses
771 label_reply_plural: RΓ©ponses
772 label_send_information: Envoyer les informations Γ  l'utilisateur
772 label_send_information: Envoyer les informations Γ  l'utilisateur
773 label_year: AnnΓ©e
773 label_year: AnnΓ©e
774 label_month: Mois
774 label_month: Mois
775 label_week: Semaine
775 label_week: Semaine
776 label_date_from: Du
776 label_date_from: Du
777 label_date_to: Au
777 label_date_to: Au
778 label_language_based: BasΓ© sur la langue de l'utilisateur
778 label_language_based: BasΓ© sur la langue de l'utilisateur
779 label_sort_by: "Trier par %{value}"
779 label_sort_by: "Trier par %{value}"
780 label_send_test_email: Envoyer un email de test
780 label_send_test_email: Envoyer un email de test
781 label_feeds_access_key_created_on: "Clé d'accès Atom créée il y a %{value}"
781 label_feeds_access_key_created_on: "Clé d'accès Atom créée il y a %{value}"
782 label_module_plural: Modules
782 label_module_plural: Modules
783 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
783 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
784 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
784 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
785 label_updated_time: "Mis Γ  jour il y a %{value}"
785 label_updated_time: "Mis Γ  jour il y a %{value}"
786 label_jump_to_a_project: Aller Γ  un projet...
786 label_jump_to_a_project: Aller Γ  un projet...
787 label_file_plural: Fichiers
787 label_file_plural: Fichiers
788 label_changeset_plural: RΓ©visions
788 label_changeset_plural: RΓ©visions
789 label_default_columns: Colonnes par dΓ©faut
789 label_default_columns: Colonnes par dΓ©faut
790 label_no_change_option: (Pas de changement)
790 label_no_change_option: (Pas de changement)
791 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
791 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
792 label_theme: Thème
792 label_theme: Thème
793 label_default: DΓ©faut
793 label_default: DΓ©faut
794 label_search_titles_only: Uniquement dans les titres
794 label_search_titles_only: Uniquement dans les titres
795 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
795 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
796 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
796 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
797 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
797 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
798 label_registration_activation_by_email: activation du compte par email
798 label_registration_activation_by_email: activation du compte par email
799 label_registration_manual_activation: activation manuelle du compte
799 label_registration_manual_activation: activation manuelle du compte
800 label_registration_automatic_activation: activation automatique du compte
800 label_registration_automatic_activation: activation automatique du compte
801 label_display_per_page: "Par page : %{value}"
801 label_display_per_page: "Par page : %{value}"
802 label_age: Γ‚ge
802 label_age: Γ‚ge
803 label_change_properties: Changer les propriΓ©tΓ©s
803 label_change_properties: Changer les propriΓ©tΓ©s
804 label_general: GΓ©nΓ©ral
804 label_general: GΓ©nΓ©ral
805 label_more: Plus
805 label_more: Plus
806 label_scm: SCM
806 label_scm: SCM
807 label_plugins: Plugins
807 label_plugins: Plugins
808 label_ldap_authentication: Authentification LDAP
808 label_ldap_authentication: Authentification LDAP
809 label_downloads_abbr: D/L
809 label_downloads_abbr: D/L
810 label_optional_description: Description facultative
810 label_optional_description: Description facultative
811 label_add_another_file: Ajouter un autre fichier
811 label_add_another_file: Ajouter un autre fichier
812 label_preferences: PrΓ©fΓ©rences
812 label_preferences: PrΓ©fΓ©rences
813 label_chronological_order: Dans l'ordre chronologique
813 label_chronological_order: Dans l'ordre chronologique
814 label_reverse_chronological_order: Dans l'ordre chronologique inverse
814 label_reverse_chronological_order: Dans l'ordre chronologique inverse
815 label_planning: Planning
815 label_planning: Planning
816 label_incoming_emails: Emails entrants
816 label_incoming_emails: Emails entrants
817 label_generate_key: GΓ©nΓ©rer une clΓ©
817 label_generate_key: GΓ©nΓ©rer une clΓ©
818 label_issue_watchers: Observateurs
818 label_issue_watchers: Observateurs
819 label_example: Exemple
819 label_example: Exemple
820 label_display: Affichage
820 label_display: Affichage
821 label_sort: Tri
821 label_sort: Tri
822 label_ascending: Croissant
822 label_ascending: Croissant
823 label_descending: DΓ©croissant
823 label_descending: DΓ©croissant
824 label_date_from_to: Du %{start} au %{end}
824 label_date_from_to: Du %{start} au %{end}
825 label_wiki_content_added: Page wiki ajoutΓ©e
825 label_wiki_content_added: Page wiki ajoutΓ©e
826 label_wiki_content_updated: Page wiki mise Γ  jour
826 label_wiki_content_updated: Page wiki mise Γ  jour
827 label_group_plural: Groupes
827 label_group_plural: Groupes
828 label_group: Groupe
828 label_group: Groupe
829 label_group_new: Nouveau groupe
829 label_group_new: Nouveau groupe
830 label_time_entry_plural: Temps passΓ©
830 label_time_entry_plural: Temps passΓ©
831 label_version_sharing_none: Non partagΓ©
831 label_version_sharing_none: Non partagΓ©
832 label_version_sharing_descendants: Avec les sous-projets
832 label_version_sharing_descendants: Avec les sous-projets
833 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
833 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
834 label_version_sharing_tree: Avec tout l'arbre
834 label_version_sharing_tree: Avec tout l'arbre
835 label_version_sharing_system: Avec tous les projets
835 label_version_sharing_system: Avec tous les projets
836 label_copy_source: Source
836 label_copy_source: Source
837 label_copy_target: Cible
837 label_copy_target: Cible
838 label_copy_same_as_target: Comme la cible
838 label_copy_same_as_target: Comme la cible
839 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
839 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
840 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
840 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
841 label_api_access_key: Clé d'accès API
841 label_api_access_key: Clé d'accès API
842 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
842 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
843 label_feeds_access_key: Clé d'accès Atom
843 label_feeds_access_key: Clé d'accès Atom
844 label_missing_api_access_key: Clé d'accès API manquante
844 label_missing_api_access_key: Clé d'accès API manquante
845 label_missing_feeds_access_key: Clé d'accès Atom manquante
845 label_missing_feeds_access_key: Clé d'accès Atom manquante
846 label_close_versions: Fermer les versions terminΓ©es
846 label_close_versions: Fermer les versions terminΓ©es
847 label_revision_id: RΓ©vision %{value}
847 label_revision_id: RΓ©vision %{value}
848 label_profile: Profil
848 label_profile: Profil
849 label_subtask_plural: Sous-tΓ’ches
849 label_subtask_plural: Sous-tΓ’ches
850 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
850 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
851 label_principal_search: "Rechercher un utilisateur ou un groupe :"
851 label_principal_search: "Rechercher un utilisateur ou un groupe :"
852 label_user_search: "Rechercher un utilisateur :"
852 label_user_search: "Rechercher un utilisateur :"
853 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
853 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
854 label_additional_workflow_transitions_for_assignee: Autorisations supplΓ©mentaires lorsque la demande est assignΓ©e Γ  l'utilisateur
854 label_additional_workflow_transitions_for_assignee: Autorisations supplΓ©mentaires lorsque la demande est assignΓ©e Γ  l'utilisateur
855 label_issues_visibility_all: Toutes les demandes
855 label_issues_visibility_all: Toutes les demandes
856 label_issues_visibility_public: Toutes les demandes non privΓ©es
856 label_issues_visibility_public: Toutes les demandes non privΓ©es
857 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
857 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
858 label_export_options: Options d'exportation %{export_format}
858 label_export_options: Options d'exportation %{export_format}
859 label_copy_attachments: Copier les fichiers
859 label_copy_attachments: Copier les fichiers
860 label_copy_subtasks: Copier les sous-tΓ’ches
860 label_copy_subtasks: Copier les sous-tΓ’ches
861 label_item_position: "%{position} sur %{count}"
861 label_item_position: "%{position} sur %{count}"
862 label_completed_versions: Versions passΓ©es
862 label_completed_versions: Versions passΓ©es
863 label_session_expiration: Expiration des sessions
863 label_session_expiration: Expiration des sessions
864 label_show_closed_projects: Voir les projets fermΓ©s
864 label_show_closed_projects: Voir les projets fermΓ©s
865 label_status_transitions: Changements de statut
865 label_status_transitions: Changements de statut
866 label_fields_permissions: Permissions sur les champs
866 label_fields_permissions: Permissions sur les champs
867 label_readonly: Lecture
867 label_readonly: Lecture
868 label_required: Obligatoire
868 label_required: Obligatoire
869 label_hidden: CachΓ©
869 label_hidden: CachΓ©
870 label_attribute_of_project: "%{name} du projet"
870 label_attribute_of_project: "%{name} du projet"
871 label_attribute_of_issue: "%{name} de la demande"
871 label_attribute_of_issue: "%{name} de la demande"
872 label_attribute_of_author: "%{name} de l'auteur"
872 label_attribute_of_author: "%{name} de l'auteur"
873 label_attribute_of_assigned_to: "%{name} de l'assignΓ©"
873 label_attribute_of_assigned_to: "%{name} de l'assignΓ©"
874 label_attribute_of_user: "%{name} de l'utilisateur"
874 label_attribute_of_user: "%{name} de l'utilisateur"
875 label_attribute_of_fixed_version: "%{name} de la version cible"
875 label_attribute_of_fixed_version: "%{name} de la version cible"
876 label_cross_project_descendants: Avec les sous-projets
876 label_cross_project_descendants: Avec les sous-projets
877 label_cross_project_tree: Avec tout l'arbre
877 label_cross_project_tree: Avec tout l'arbre
878 label_cross_project_hierarchy: Avec toute la hiΓ©rarchie
878 label_cross_project_hierarchy: Avec toute la hiΓ©rarchie
879 label_cross_project_system: Avec tous les projets
879 label_cross_project_system: Avec tous les projets
880 label_gantt_progress_line: Ligne de progression
880 label_gantt_progress_line: Ligne de progression
881 label_visibility_private: par moi uniquement
881 label_visibility_private: par moi uniquement
882 label_visibility_roles: par ces roles uniquement
882 label_visibility_roles: par ces roles uniquement
883 label_visibility_public: par tout le monde
883 label_visibility_public: par tout le monde
884 label_link: Lien
884 label_link: Lien
885 label_only: seulement
885 label_only: seulement
886 label_drop_down_list: liste dΓ©roulante
886 label_drop_down_list: liste dΓ©roulante
887 label_checkboxes: cases Γ  cocher
887 label_checkboxes: cases Γ  cocher
888 label_link_values_to: Lier les valeurs vers l'URL
888 label_link_values_to: Lier les valeurs vers l'URL
889 label_custom_field_select_type: Selectionner le type d'objet auquel attacher le champ personnalisΓ©
889
890
890 button_login: Connexion
891 button_login: Connexion
891 button_submit: Soumettre
892 button_submit: Soumettre
892 button_save: Sauvegarder
893 button_save: Sauvegarder
893 button_check_all: Tout cocher
894 button_check_all: Tout cocher
894 button_uncheck_all: Tout dΓ©cocher
895 button_uncheck_all: Tout dΓ©cocher
895 button_collapse_all: Plier tout
896 button_collapse_all: Plier tout
896 button_expand_all: DΓ©plier tout
897 button_expand_all: DΓ©plier tout
897 button_delete: Supprimer
898 button_delete: Supprimer
898 button_create: CrΓ©er
899 button_create: CrΓ©er
899 button_create_and_continue: CrΓ©er et continuer
900 button_create_and_continue: CrΓ©er et continuer
900 button_test: Tester
901 button_test: Tester
901 button_edit: Modifier
902 button_edit: Modifier
902 button_add: Ajouter
903 button_add: Ajouter
903 button_change: Changer
904 button_change: Changer
904 button_apply: Appliquer
905 button_apply: Appliquer
905 button_clear: Effacer
906 button_clear: Effacer
906 button_lock: Verrouiller
907 button_lock: Verrouiller
907 button_unlock: DΓ©verrouiller
908 button_unlock: DΓ©verrouiller
908 button_download: TΓ©lΓ©charger
909 button_download: TΓ©lΓ©charger
909 button_list: Lister
910 button_list: Lister
910 button_view: Voir
911 button_view: Voir
911 button_move: DΓ©placer
912 button_move: DΓ©placer
912 button_move_and_follow: DΓ©placer et suivre
913 button_move_and_follow: DΓ©placer et suivre
913 button_back: Retour
914 button_back: Retour
914 button_cancel: Annuler
915 button_cancel: Annuler
915 button_activate: Activer
916 button_activate: Activer
916 button_sort: Trier
917 button_sort: Trier
917 button_log_time: Saisir temps
918 button_log_time: Saisir temps
918 button_rollback: Revenir Γ  cette version
919 button_rollback: Revenir Γ  cette version
919 button_watch: Surveiller
920 button_watch: Surveiller
920 button_unwatch: Ne plus surveiller
921 button_unwatch: Ne plus surveiller
921 button_reply: RΓ©pondre
922 button_reply: RΓ©pondre
922 button_archive: Archiver
923 button_archive: Archiver
923 button_unarchive: DΓ©sarchiver
924 button_unarchive: DΓ©sarchiver
924 button_reset: RΓ©initialiser
925 button_reset: RΓ©initialiser
925 button_rename: Renommer
926 button_rename: Renommer
926 button_change_password: Changer de mot de passe
927 button_change_password: Changer de mot de passe
927 button_copy: Copier
928 button_copy: Copier
928 button_copy_and_follow: Copier et suivre
929 button_copy_and_follow: Copier et suivre
929 button_annotate: Annoter
930 button_annotate: Annoter
930 button_update: Mettre Γ  jour
931 button_update: Mettre Γ  jour
931 button_configure: Configurer
932 button_configure: Configurer
932 button_quote: Citer
933 button_quote: Citer
933 button_duplicate: Dupliquer
934 button_duplicate: Dupliquer
934 button_show: Afficher
935 button_show: Afficher
935 button_hide: Cacher
936 button_hide: Cacher
936 button_edit_section: Modifier cette section
937 button_edit_section: Modifier cette section
937 button_export: Exporter
938 button_export: Exporter
938 button_delete_my_account: Supprimer mon compte
939 button_delete_my_account: Supprimer mon compte
939 button_close: Fermer
940 button_close: Fermer
940 button_reopen: RΓ©ouvrir
941 button_reopen: RΓ©ouvrir
941
942
942 status_active: actif
943 status_active: actif
943 status_registered: enregistrΓ©
944 status_registered: enregistrΓ©
944 status_locked: verrouillΓ©
945 status_locked: verrouillΓ©
945
946
946 project_status_active: actif
947 project_status_active: actif
947 project_status_closed: fermΓ©
948 project_status_closed: fermΓ©
948 project_status_archived: archivΓ©
949 project_status_archived: archivΓ©
949
950
950 version_status_open: ouvert
951 version_status_open: ouvert
951 version_status_locked: verrouillΓ©
952 version_status_locked: verrouillΓ©
952 version_status_closed: fermΓ©
953 version_status_closed: fermΓ©
953
954
954 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
955 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
955 text_regexp_info: ex. ^[A-Z0-9]+$
956 text_regexp_info: ex. ^[A-Z0-9]+$
956 text_min_max_length_info: 0 pour aucune restriction
957 text_min_max_length_info: 0 pour aucune restriction
957 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
958 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
958 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
959 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
959 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
960 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
960 text_are_you_sure: Êtes-vous sûr ?
961 text_are_you_sure: Êtes-vous sûr ?
961 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
962 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
962 text_tip_issue_end_day: tΓ’che finissant ce jour
963 text_tip_issue_end_day: tΓ’che finissant ce jour
963 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
964 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
964 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s, doit commencer par une minuscule.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
965 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s, doit commencer par une minuscule.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
965 text_caracters_maximum: "%{count} caractères maximum."
966 text_caracters_maximum: "%{count} caractères maximum."
966 text_caracters_minimum: "%{count} caractères minimum."
967 text_caracters_minimum: "%{count} caractères minimum."
967 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
968 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
968 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
969 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
969 text_unallowed_characters: Caractères non autorisés
970 text_unallowed_characters: Caractères non autorisés
970 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
971 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
971 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
972 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
972 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
973 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
973 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
974 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
974 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
975 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
975 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
976 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
976 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
977 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
977 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
978 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
978 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
979 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
979 text_user_mail_option: "Pour les projets non sΓ©lectionnΓ©s, vous recevrez seulement des notifications pour ce que vous surveillez ou Γ  quoi vous participez (exemple: demandes dont vous Γͺtes l'auteur ou la personne assignΓ©e)."
980 text_user_mail_option: "Pour les projets non sΓ©lectionnΓ©s, vous recevrez seulement des notifications pour ce que vous surveillez ou Γ  quoi vous participez (exemple: demandes dont vous Γͺtes l'auteur ou la personne assignΓ©e)."
980 text_no_configuration_data: "Les rΓ΄les, trackers, statuts et le workflow ne sont pas encore paramΓ©trΓ©s.\nIl est vivement recommandΓ© de charger le paramΓ©trage par defaut. Vous pourrez le modifier une fois chargΓ©."
981 text_no_configuration_data: "Les rΓ΄les, trackers, statuts et le workflow ne sont pas encore paramΓ©trΓ©s.\nIl est vivement recommandΓ© de charger le paramΓ©trage par defaut. Vous pourrez le modifier une fois chargΓ©."
981 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
982 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
982 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
983 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
983 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
984 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
984 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
985 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
985 text_issues_destroy_descendants_confirmation: "Cela entrainera Γ©galement la suppression de %{count} sous-tΓ’che(s)."
986 text_issues_destroy_descendants_confirmation: "Cela entrainera Γ©galement la suppression de %{count} sous-tΓ’che(s)."
986 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
987 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
987 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
988 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
988 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
989 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
989 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
990 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
990 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
991 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
991 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
992 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
992 text_destroy_time_entries: Supprimer les heures
993 text_destroy_time_entries: Supprimer les heures
993 text_assign_time_entries_to_project: Reporter les heures sur le projet
994 text_assign_time_entries_to_project: Reporter les heures sur le projet
994 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
995 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
995 text_user_wrote: "%{value} a Γ©crit :"
996 text_user_wrote: "%{value} a Γ©crit :"
996 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
997 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
997 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
998 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
998 text_email_delivery_not_configured: "L'envoi de mail n'est pas configurΓ©, les notifications sont dΓ©sactivΓ©es.\nConfigurez votre serveur SMTP dans config/configuration.yml et redΓ©marrez l'application pour les activer."
999 text_email_delivery_not_configured: "L'envoi de mail n'est pas configurΓ©, les notifications sont dΓ©sactivΓ©es.\nConfigurez votre serveur SMTP dans config/configuration.yml et redΓ©marrez l'application pour les activer."
999 text_repository_usernames_mapping: "Vous pouvez sΓ©lectionner ou modifier l'utilisateur Redmine associΓ© Γ  chaque nom d'utilisateur figurant dans l'historique du dΓ©pΓ΄t.\nLes utilisateurs avec le mΓͺme identifiant ou la mΓͺme adresse mail seront automatiquement associΓ©s."
1000 text_repository_usernames_mapping: "Vous pouvez sΓ©lectionner ou modifier l'utilisateur Redmine associΓ© Γ  chaque nom d'utilisateur figurant dans l'historique du dΓ©pΓ΄t.\nLes utilisateurs avec le mΓͺme identifiant ou la mΓͺme adresse mail seront automatiquement associΓ©s."
1000 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
1001 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
1001 text_custom_field_possible_values_info: 'Une ligne par valeur'
1002 text_custom_field_possible_values_info: 'Une ligne par valeur'
1002 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
1003 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
1003 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
1004 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
1004 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
1005 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
1005 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
1006 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
1006 text_own_membership_delete_confirmation: "Vous allez supprimer tout ou partie de vos permissions sur ce projet et ne serez peut-Γͺtre plus autorisΓ© Γ  modifier ce projet.\nEtes-vous sΓ»r de vouloir continuer ?"
1007 text_own_membership_delete_confirmation: "Vous allez supprimer tout ou partie de vos permissions sur ce projet et ne serez peut-Γͺtre plus autorisΓ© Γ  modifier ce projet.\nEtes-vous sΓ»r de vouloir continuer ?"
1007 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
1008 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
1008 text_issue_conflict_resolution_overwrite: "Appliquer quand mΓͺme ma mise Γ  jour (les notes prΓ©cΓ©dentes seront conservΓ©es mais des changements pourront Γͺtre Γ©crasΓ©s)"
1009 text_issue_conflict_resolution_overwrite: "Appliquer quand mΓͺme ma mise Γ  jour (les notes prΓ©cΓ©dentes seront conservΓ©es mais des changements pourront Γͺtre Γ©crasΓ©s)"
1009 text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
1010 text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
1010 text_issue_conflict_resolution_cancel: "Annuler ma mise Γ  jour et rΓ©afficher %{link}"
1011 text_issue_conflict_resolution_cancel: "Annuler ma mise Γ  jour et rΓ©afficher %{link}"
1011 text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
1012 text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
1012 text_session_expiration_settings: "Attention : le changement de ces paramètres peut entrainer l'expiration des sessions utilisateurs en cours, y compris la vôtre."
1013 text_session_expiration_settings: "Attention : le changement de ces paramètres peut entrainer l'expiration des sessions utilisateurs en cours, y compris la vôtre."
1013 text_project_closed: Ce projet est fermΓ© et accessible en lecture seule.
1014 text_project_closed: Ce projet est fermΓ© et accessible en lecture seule.
1014 text_turning_multiple_off: "Si vous dΓ©sactivez les valeurs multiples, les valeurs multiples seront supprimΓ©es pour n'en conserver qu'une par objet."
1015 text_turning_multiple_off: "Si vous dΓ©sactivez les valeurs multiples, les valeurs multiples seront supprimΓ©es pour n'en conserver qu'une par objet."
1015
1016
1016 default_role_manager: "Manager "
1017 default_role_manager: "Manager "
1017 default_role_developer: "DΓ©veloppeur "
1018 default_role_developer: "DΓ©veloppeur "
1018 default_role_reporter: "Rapporteur "
1019 default_role_reporter: "Rapporteur "
1019 default_tracker_bug: Anomalie
1020 default_tracker_bug: Anomalie
1020 default_tracker_feature: Evolution
1021 default_tracker_feature: Evolution
1021 default_tracker_support: Assistance
1022 default_tracker_support: Assistance
1022 default_issue_status_new: Nouveau
1023 default_issue_status_new: Nouveau
1023 default_issue_status_in_progress: En cours
1024 default_issue_status_in_progress: En cours
1024 default_issue_status_resolved: RΓ©solu
1025 default_issue_status_resolved: RΓ©solu
1025 default_issue_status_feedback: Commentaire
1026 default_issue_status_feedback: Commentaire
1026 default_issue_status_closed: FermΓ©
1027 default_issue_status_closed: FermΓ©
1027 default_issue_status_rejected: RejetΓ©
1028 default_issue_status_rejected: RejetΓ©
1028 default_doc_category_user: Documentation utilisateur
1029 default_doc_category_user: Documentation utilisateur
1029 default_doc_category_tech: Documentation technique
1030 default_doc_category_tech: Documentation technique
1030 default_priority_low: Bas
1031 default_priority_low: Bas
1031 default_priority_normal: Normal
1032 default_priority_normal: Normal
1032 default_priority_high: Haut
1033 default_priority_high: Haut
1033 default_priority_urgent: Urgent
1034 default_priority_urgent: Urgent
1034 default_priority_immediate: ImmΓ©diat
1035 default_priority_immediate: ImmΓ©diat
1035 default_activity_design: Conception
1036 default_activity_design: Conception
1036 default_activity_development: DΓ©veloppement
1037 default_activity_development: DΓ©veloppement
1037
1038
1038 enumeration_issue_priorities: PrioritΓ©s des demandes
1039 enumeration_issue_priorities: PrioritΓ©s des demandes
1039 enumeration_doc_categories: CatΓ©gories des documents
1040 enumeration_doc_categories: CatΓ©gories des documents
1040 enumeration_activities: ActivitΓ©s (suivi du temps)
1041 enumeration_activities: ActivitΓ©s (suivi du temps)
1041 label_greater_or_equal: ">="
1042 label_greater_or_equal: ">="
1042 label_less_or_equal: "<="
1043 label_less_or_equal: "<="
1043 label_between: entre
1044 label_between: entre
1044 label_view_all_revisions: Voir toutes les rΓ©visions
1045 label_view_all_revisions: Voir toutes les rΓ©visions
1045 label_tag: Tag
1046 label_tag: Tag
1046 label_branch: Branche
1047 label_branch: Branche
1047 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
1048 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
1048 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
1049 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
1049 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
1050 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
1050 text_journal_changed_no_detail: "%{label} mis Γ  jour"
1051 text_journal_changed_no_detail: "%{label} mis Γ  jour"
1051 text_journal_set_to: "%{label} mis Γ  %{value}"
1052 text_journal_set_to: "%{label} mis Γ  %{value}"
1052 text_journal_deleted: "%{label} %{old} supprimΓ©"
1053 text_journal_deleted: "%{label} %{old} supprimΓ©"
1053 text_journal_added: "%{label} %{value} ajoutΓ©"
1054 text_journal_added: "%{label} %{value} ajoutΓ©"
1054 enumeration_system_activity: Activité système
1055 enumeration_system_activity: Activité système
1055 label_board_sticky: Sticky
1056 label_board_sticky: Sticky
1056 label_board_locked: VerrouillΓ©
1057 label_board_locked: VerrouillΓ©
1057 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
1058 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
1058 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
1059 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
1059 error_unable_to_connect: Connexion impossible (%{value})
1060 error_unable_to_connect: Connexion impossible (%{value})
1060 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
1061 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
1061 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
1062 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
1062 field_principal: Principal
1063 field_principal: Principal
1063 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
1064 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
1064 text_zoom_out: Zoom arrière
1065 text_zoom_out: Zoom arrière
1065 text_zoom_in: Zoom avant
1066 text_zoom_in: Zoom avant
1066 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
1067 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
1067 label_overall_spent_time: Temps passΓ© global
1068 label_overall_spent_time: Temps passΓ© global
1068 field_time_entries: Temps passΓ©
1069 field_time_entries: Temps passΓ©
1069 project_module_gantt: Gantt
1070 project_module_gantt: Gantt
1070 project_module_calendar: Calendrier
1071 project_module_calendar: Calendrier
1071 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
1072 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
1072 field_text: Champ texte
1073 field_text: Champ texte
1073 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
1074 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
1074 setting_default_notification_option: Option de notification par dΓ©faut
1075 setting_default_notification_option: Option de notification par dΓ©faut
1075 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
1076 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
1076 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
1077 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
1077 label_user_mail_option_none: Aucune notification
1078 label_user_mail_option_none: Aucune notification
1078 field_member_of_group: Groupe de l'assignΓ©
1079 field_member_of_group: Groupe de l'assignΓ©
1079 field_assigned_to_role: RΓ΄le de l'assignΓ©
1080 field_assigned_to_role: RΓ΄le de l'assignΓ©
1080 setting_emails_header: En-tΓͺte des emails
1081 setting_emails_header: En-tΓͺte des emails
1081 label_bulk_edit_selected_time_entries: Modifier les temps passΓ©s sΓ©lectionnΓ©s
1082 label_bulk_edit_selected_time_entries: Modifier les temps passΓ©s sΓ©lectionnΓ©s
1082 text_time_entries_destroy_confirmation: "Etes-vous sΓ»r de vouloir supprimer les temps passΓ©s sΓ©lectionnΓ©s ?"
1083 text_time_entries_destroy_confirmation: "Etes-vous sΓ»r de vouloir supprimer les temps passΓ©s sΓ©lectionnΓ©s ?"
1083 field_scm_path_encoding: Encodage des chemins
1084 field_scm_path_encoding: Encodage des chemins
1084 text_scm_path_encoding_note: "DΓ©faut : UTF-8"
1085 text_scm_path_encoding_note: "DΓ©faut : UTF-8"
1085 field_path_to_repository: Chemin du dΓ©pΓ΄t
1086 field_path_to_repository: Chemin du dΓ©pΓ΄t
1086 field_root_directory: RΓ©pertoire racine
1087 field_root_directory: RΓ©pertoire racine
1087 field_cvs_module: Module
1088 field_cvs_module: Module
1088 field_cvsroot: CVSROOT
1089 field_cvsroot: CVSROOT
1089 text_mercurial_repository_note: "DΓ©pΓ΄t local (exemples : /hgrepo, c:\\hgrepo)"
1090 text_mercurial_repository_note: "DΓ©pΓ΄t local (exemples : /hgrepo, c:\\hgrepo)"
1090 text_scm_command: Commande
1091 text_scm_command: Commande
1091 text_scm_command_version: Version
1092 text_scm_command_version: Version
1092 label_git_report_last_commit: Afficher le dernier commit des fichiers et rΓ©pertoires
1093 label_git_report_last_commit: Afficher le dernier commit des fichiers et rΓ©pertoires
1093 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1094 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1094 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1095 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1095 label_diff: diff
1096 label_diff: diff
1096 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1097 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1097 description_query_sort_criteria_direction: Ordre de tri
1098 description_query_sort_criteria_direction: Ordre de tri
1098 description_project_scope: Périmètre de recherche
1099 description_project_scope: Périmètre de recherche
1099 description_filter: Filtre
1100 description_filter: Filtre
1100 description_user_mail_notification: Option de notification
1101 description_user_mail_notification: Option de notification
1101 description_date_from: Date de dΓ©but
1102 description_date_from: Date de dΓ©but
1102 description_message_content: Contenu du message
1103 description_message_content: Contenu du message
1103 description_available_columns: Colonnes disponibles
1104 description_available_columns: Colonnes disponibles
1104 description_all_columns: Toutes les colonnes
1105 description_all_columns: Toutes les colonnes
1105 description_date_range_interval: Choisir une pΓ©riode
1106 description_date_range_interval: Choisir une pΓ©riode
1106 description_issue_category_reassign: Choisir une catΓ©gorie
1107 description_issue_category_reassign: Choisir une catΓ©gorie
1107 description_search: Champ de recherche
1108 description_search: Champ de recherche
1108 description_notes: Notes
1109 description_notes: Notes
1109 description_date_range_list: Choisir une pΓ©riode prΓ©dΓ©finie
1110 description_date_range_list: Choisir une pΓ©riode prΓ©dΓ©finie
1110 description_choose_project: Projets
1111 description_choose_project: Projets
1111 description_date_to: Date de fin
1112 description_date_to: Date de fin
1112 description_query_sort_criteria_attribute: Critère de tri
1113 description_query_sort_criteria_attribute: Critère de tri
1113 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1114 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1114 description_selected_columns: Colonnes sΓ©lectionnΓ©es
1115 description_selected_columns: Colonnes sΓ©lectionnΓ©es
1115 label_parent_revision: Parent
1116 label_parent_revision: Parent
1116 label_child_revision: Enfant
1117 label_child_revision: Enfant
1117 error_scm_annotate_big_text_file: Cette entrΓ©e ne peut pas Γͺtre annotΓ©e car elle excΓ¨de la taille maximale.
1118 error_scm_annotate_big_text_file: Cette entrΓ©e ne peut pas Γͺtre annotΓ©e car elle excΓ¨de la taille maximale.
1118 setting_repositories_encodings: Encodages des fichiers et des dΓ©pΓ΄ts
1119 setting_repositories_encodings: Encodages des fichiers et des dΓ©pΓ΄ts
1119 label_search_for_watchers: Rechercher des observateurs
1120 label_search_for_watchers: Rechercher des observateurs
1120 text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
1121 text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
1121 text_convert_available: Binaire convert de ImageMagick prΓ©sent (optionel)
1122 text_convert_available: Binaire convert de ImageMagick prΓ©sent (optionel)
@@ -1,210 +1,227
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2014 Jean-Philippe Lang
2 # Copyright (C) 2006-2014 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 require File.expand_path('../../test_helper', __FILE__)
18 require File.expand_path('../../test_helper', __FILE__)
19
19
20 class CustomFieldsControllerTest < ActionController::TestCase
20 class CustomFieldsControllerTest < ActionController::TestCase
21 fixtures :custom_fields, :custom_values, :trackers, :users, :projects
21 fixtures :custom_fields, :custom_values, :trackers, :users, :projects
22
22
23 def setup
23 def setup
24 @request.session[:user_id] = 1
24 @request.session[:user_id] = 1
25 end
25 end
26
26
27 def test_index
27 def test_index
28 get :index
28 get :index
29 assert_response :success
29 assert_response :success
30 assert_template 'index'
30 assert_template 'index'
31 end
31 end
32
32
33 def test_new_without_type_should_render_select_type
34 get :new
35 assert_response :success
36 assert_template 'select_type'
37 assert_select 'input[name=type]', CustomField.subclasses.size
38 assert_select 'input[name=type][checked=checked]', 1
39 end
40
33 def test_new_should_work_for_each_customized_class_and_format
41 def test_new_should_work_for_each_customized_class_and_format
34 custom_field_classes.each do |klass|
42 custom_field_classes.each do |klass|
35 Redmine::FieldFormat.available_formats.each do |format_name|
43 Redmine::FieldFormat.available_formats.each do |format_name|
36 get :new, :type => klass.name, :custom_field => {:field_format => format_name}
44 get :new, :type => klass.name, :custom_field => {:field_format => format_name}
37 assert_response :success
45 assert_response :success
38 assert_template 'new'
46 assert_template 'new'
39 assert_kind_of klass, assigns(:custom_field)
47 assert_kind_of klass, assigns(:custom_field)
40 assert_equal format_name, assigns(:custom_field).format.name
48 assert_equal format_name, assigns(:custom_field).format.name
41 assert_select 'form#custom_field_form' do
49 assert_select 'form#custom_field_form' do
42 assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]'
50 assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]'
43 assert_select 'input[type=hidden][name=type][value=?]', klass.name
51 assert_select 'input[type=hidden][name=type][value=?]', klass.name
44 end
52 end
45 end
53 end
46 end
54 end
47 end
55 end
48
56
49 def test_new_should_have_string_default_format
57 def test_new_should_have_string_default_format
50 get :new, :type => 'IssueCustomField'
58 get :new, :type => 'IssueCustomField'
51 assert_response :success
59 assert_response :success
52 assert_equal 'string', assigns(:custom_field).format.name
60 assert_equal 'string', assigns(:custom_field).format.name
53 end
61 end
54
62
55 def test_new_issue_custom_field
63 def test_new_issue_custom_field
56 get :new, :type => 'IssueCustomField'
64 get :new, :type => 'IssueCustomField'
57 assert_response :success
65 assert_response :success
58 assert_template 'new'
66 assert_template 'new'
59 assert_select 'form#custom_field_form' do
67 assert_select 'form#custom_field_form' do
60 assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' do
68 assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' do
61 assert_select 'option[value=user]', :text => 'User'
69 assert_select 'option[value=user]', :text => 'User'
62 assert_select 'option[value=version]', :text => 'Version'
70 assert_select 'option[value=version]', :text => 'Version'
63 end
71 end
64 assert_select 'input[type=checkbox][name=?]', 'custom_field[project_ids][]', Project.count
72 assert_select 'input[type=checkbox][name=?]', 'custom_field[project_ids][]', Project.count
65 assert_select 'input[type=hidden][name=?]', 'custom_field[project_ids][]', 1
73 assert_select 'input[type=hidden][name=?]', 'custom_field[project_ids][]', 1
66 assert_select 'input[type=hidden][name=type][value=IssueCustomField]'
74 assert_select 'input[type=hidden][name=type][value=IssueCustomField]'
67 end
75 end
68 end
76 end
69
77
70 def test_new_time_entry_custom_field_should_not_show_trackers_and_projects
78 def test_new_time_entry_custom_field_should_not_show_trackers_and_projects
71 get :new, :type => 'TimeEntryCustomField'
79 get :new, :type => 'TimeEntryCustomField'
72 assert_response :success
80 assert_response :success
73 assert_template 'new'
81 assert_template 'new'
74 assert_select 'form#custom_field_form' do
82 assert_select 'form#custom_field_form' do
75 assert_select 'input[name=?]', 'custom_field[tracker_ids][]', 0
83 assert_select 'input[name=?]', 'custom_field[tracker_ids][]', 0
76 assert_select 'input[name=?]', 'custom_field[project_ids][]', 0
84 assert_select 'input[name=?]', 'custom_field[project_ids][]', 0
77 end
85 end
78 end
86 end
79
87
80 def test_default_value_should_be_an_input_for_string_custom_field
88 def test_default_value_should_be_an_input_for_string_custom_field
81 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'string'}
89 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'string'}
82 assert_response :success
90 assert_response :success
83 assert_select 'input[name=?]', 'custom_field[default_value]'
91 assert_select 'input[name=?]', 'custom_field[default_value]'
84 end
92 end
85
93
86 def test_default_value_should_be_a_textarea_for_text_custom_field
94 def test_default_value_should_be_a_textarea_for_text_custom_field
87 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'}
95 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'}
88 assert_response :success
96 assert_response :success
89 assert_select 'textarea[name=?]', 'custom_field[default_value]'
97 assert_select 'textarea[name=?]', 'custom_field[default_value]'
90 end
98 end
91
99
92 def test_default_value_should_be_a_checkbox_for_bool_custom_field
100 def test_default_value_should_be_a_checkbox_for_bool_custom_field
93 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'bool'}
101 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'bool'}
94 assert_response :success
102 assert_response :success
95 assert_select 'select[name=?]', 'custom_field[default_value]' do
103 assert_select 'select[name=?]', 'custom_field[default_value]' do
96 assert_select 'option', 3
104 assert_select 'option', 3
97 end
105 end
98 end
106 end
99
107
100 def test_default_value_should_not_be_present_for_user_custom_field
108 def test_default_value_should_not_be_present_for_user_custom_field
101 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'user'}
109 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'user'}
102 assert_response :success
110 assert_response :success
103 assert_select '[name=?]', 'custom_field[default_value]', 0
111 assert_select '[name=?]', 'custom_field[default_value]', 0
104 end
112 end
105
113
106 def test_new_js
114 def test_new_js
107 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}, :format => 'js'
115 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}, :format => 'js'
108 assert_response :success
116 assert_response :success
109 assert_template 'new'
117 assert_template 'new'
110 assert_equal 'text/javascript', response.content_type
118 assert_equal 'text/javascript', response.content_type
111
119
112 field = assigns(:custom_field)
120 field = assigns(:custom_field)
113 assert_equal 'list', field.field_format
121 assert_equal 'list', field.field_format
114 end
122 end
115
123
116 def test_new_with_invalid_custom_field_class_should_render_404
124 def test_new_with_invalid_custom_field_class_should_render_select_type
117 get :new, :type => 'UnknownCustomField'
125 get :new, :type => 'UnknownCustomField'
118 assert_response 404
126 assert_response :success
127 assert_template 'select_type'
119 end
128 end
120
129
121 def test_create_list_custom_field
130 def test_create_list_custom_field
122 assert_difference 'CustomField.count' do
131 assert_difference 'CustomField.count' do
123 post :create, :type => "IssueCustomField",
132 post :create, :type => "IssueCustomField",
124 :custom_field => {:name => "test_post_new_list",
133 :custom_field => {:name => "test_post_new_list",
125 :default_value => "",
134 :default_value => "",
126 :min_length => "0",
135 :min_length => "0",
127 :searchable => "0",
136 :searchable => "0",
128 :regexp => "",
137 :regexp => "",
129 :is_for_all => "1",
138 :is_for_all => "1",
130 :possible_values => "0.1\n0.2\n",
139 :possible_values => "0.1\n0.2\n",
131 :max_length => "0",
140 :max_length => "0",
132 :is_filter => "0",
141 :is_filter => "0",
133 :is_required =>"0",
142 :is_required =>"0",
134 :field_format => "list",
143 :field_format => "list",
135 :tracker_ids => ["1", ""]}
144 :tracker_ids => ["1", ""]}
136 end
145 end
137 assert_redirected_to '/custom_fields?tab=IssueCustomField'
146 assert_redirected_to '/custom_fields?tab=IssueCustomField'
138 field = IssueCustomField.find_by_name('test_post_new_list')
147 field = IssueCustomField.find_by_name('test_post_new_list')
139 assert_not_nil field
148 assert_not_nil field
140 assert_equal ["0.1", "0.2"], field.possible_values
149 assert_equal ["0.1", "0.2"], field.possible_values
141 assert_equal 1, field.trackers.size
150 assert_equal 1, field.trackers.size
142 end
151 end
143
152
144 def test_create_with_project_ids
153 def test_create_with_project_ids
145 assert_difference 'CustomField.count' do
154 assert_difference 'CustomField.count' do
146 post :create, :type => "IssueCustomField", :custom_field => {
155 post :create, :type => "IssueCustomField", :custom_field => {
147 :name => "foo", :field_format => "string", :is_for_all => "0", :project_ids => ["1", "3", ""]
156 :name => "foo", :field_format => "string", :is_for_all => "0", :project_ids => ["1", "3", ""]
148 }
157 }
149 assert_response 302
158 assert_response 302
150 end
159 end
151 field = IssueCustomField.order("id desc").first
160 field = IssueCustomField.order("id desc").first
152 assert_equal [1, 3], field.projects.map(&:id).sort
161 assert_equal [1, 3], field.projects.map(&:id).sort
153 end
162 end
154
163
155 def test_create_with_failure
164 def test_create_with_failure
156 assert_no_difference 'CustomField.count' do
165 assert_no_difference 'CustomField.count' do
157 post :create, :type => "IssueCustomField", :custom_field => {:name => ''}
166 post :create, :type => "IssueCustomField", :custom_field => {:name => ''}
158 end
167 end
159 assert_response :success
168 assert_response :success
160 assert_template 'new'
169 assert_template 'new'
161 end
170 end
162
171
172 def test_create_without_type_should_render_select_type
173 assert_no_difference 'CustomField.count' do
174 post :create, :custom_field => {:name => ''}
175 end
176 assert_response :success
177 assert_template 'select_type'
178 end
179
163 def test_edit
180 def test_edit
164 get :edit, :id => 1
181 get :edit, :id => 1
165 assert_response :success
182 assert_response :success
166 assert_template 'edit'
183 assert_template 'edit'
167 assert_tag 'input', :attributes => {:name => 'custom_field[name]', :value => 'Database'}
184 assert_tag 'input', :attributes => {:name => 'custom_field[name]', :value => 'Database'}
168 end
185 end
169
186
170 def test_edit_invalid_custom_field_should_render_404
187 def test_edit_invalid_custom_field_should_render_404
171 get :edit, :id => 99
188 get :edit, :id => 99
172 assert_response 404
189 assert_response 404
173 end
190 end
174
191
175 def test_update
192 def test_update
176 put :update, :id => 1, :custom_field => {:name => 'New name'}
193 put :update, :id => 1, :custom_field => {:name => 'New name'}
177 assert_redirected_to '/custom_fields?tab=IssueCustomField'
194 assert_redirected_to '/custom_fields?tab=IssueCustomField'
178
195
179 field = CustomField.find(1)
196 field = CustomField.find(1)
180 assert_equal 'New name', field.name
197 assert_equal 'New name', field.name
181 end
198 end
182
199
183 def test_update_with_failure
200 def test_update_with_failure
184 put :update, :id => 1, :custom_field => {:name => ''}
201 put :update, :id => 1, :custom_field => {:name => ''}
185 assert_response :success
202 assert_response :success
186 assert_template 'edit'
203 assert_template 'edit'
187 end
204 end
188
205
189 def test_destroy
206 def test_destroy
190 custom_values_count = CustomValue.where(:custom_field_id => 1).count
207 custom_values_count = CustomValue.where(:custom_field_id => 1).count
191 assert custom_values_count > 0
208 assert custom_values_count > 0
192
209
193 assert_difference 'CustomField.count', -1 do
210 assert_difference 'CustomField.count', -1 do
194 assert_difference 'CustomValue.count', - custom_values_count do
211 assert_difference 'CustomValue.count', - custom_values_count do
195 delete :destroy, :id => 1
212 delete :destroy, :id => 1
196 end
213 end
197 end
214 end
198
215
199 assert_redirected_to '/custom_fields?tab=IssueCustomField'
216 assert_redirected_to '/custom_fields?tab=IssueCustomField'
200 assert_nil CustomField.find_by_id(1)
217 assert_nil CustomField.find_by_id(1)
201 assert_nil CustomValue.find_by_custom_field_id(1)
218 assert_nil CustomValue.find_by_custom_field_id(1)
202 end
219 end
203
220
204 def custom_field_classes
221 def custom_field_classes
205 files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') }
222 files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') }
206 classes = files.map(&:classify).map(&:constantize)
223 classes = files.map(&:classify).map(&:constantize)
207 assert classes.size > 0
224 assert classes.size > 0
208 classes
225 classes
209 end
226 end
210 end
227 end
General Comments 0
You need to be logged in to leave comments. Login now