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