##// END OF EJS Templates
Allow underscores in project identifiers (#1363)....
Jean-Philippe Lang -
r8588:9d372ce6f5b1
parent child
Show More
@@ -1,900 +1,900
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2011 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 Project < ActiveRecord::Base
19 19 include Redmine::SafeAttributes
20 20
21 21 # Project statuses
22 22 STATUS_ACTIVE = 1
23 23 STATUS_ARCHIVED = 9
24 24
25 25 # Maximum length for project identifiers
26 26 IDENTIFIER_MAX_LENGTH = 100
27 27
28 28 # Specific overidden Activities
29 29 has_many :time_entry_activities
30 30 has_many :members, :include => [:user, :roles], :conditions => "#{User.table_name}.type='User' AND #{User.table_name}.status=#{User::STATUS_ACTIVE}"
31 31 has_many :memberships, :class_name => 'Member'
32 32 has_many :member_principals, :class_name => 'Member',
33 33 :include => :principal,
34 34 :conditions => "#{Principal.table_name}.type='Group' OR (#{Principal.table_name}.type='User' AND #{Principal.table_name}.status=#{User::STATUS_ACTIVE})"
35 35 has_many :users, :through => :members
36 36 has_many :principals, :through => :member_principals, :source => :principal
37 37
38 38 has_many :enabled_modules, :dependent => :delete_all
39 39 has_and_belongs_to_many :trackers, :order => "#{Tracker.table_name}.position"
40 40 has_many :issues, :dependent => :destroy, :order => "#{Issue.table_name}.created_on DESC", :include => [:status, :tracker]
41 41 has_many :issue_changes, :through => :issues, :source => :journals
42 42 has_many :versions, :dependent => :destroy, :order => "#{Version.table_name}.effective_date DESC, #{Version.table_name}.name DESC"
43 43 has_many :time_entries, :dependent => :delete_all
44 44 has_many :queries, :dependent => :delete_all
45 45 has_many :documents, :dependent => :destroy
46 46 has_many :news, :dependent => :destroy, :include => :author
47 47 has_many :issue_categories, :dependent => :delete_all, :order => "#{IssueCategory.table_name}.name"
48 48 has_many :boards, :dependent => :destroy, :order => "position ASC"
49 49 has_one :repository, :conditions => ["is_default = ?", true]
50 50 has_many :repositories, :dependent => :destroy
51 51 has_many :changesets, :through => :repository
52 52 has_one :wiki, :dependent => :destroy
53 53 # Custom field for the project issues
54 54 has_and_belongs_to_many :issue_custom_fields,
55 55 :class_name => 'IssueCustomField',
56 56 :order => "#{CustomField.table_name}.position",
57 57 :join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}",
58 58 :association_foreign_key => 'custom_field_id'
59 59
60 60 acts_as_nested_set :order => 'name', :dependent => :destroy
61 61 acts_as_attachable :view_permission => :view_files,
62 62 :delete_permission => :manage_files
63 63
64 64 acts_as_customizable
65 65 acts_as_searchable :columns => ['name', 'identifier', 'description'], :project_key => 'id', :permission => nil
66 66 acts_as_event :title => Proc.new {|o| "#{l(:label_project)}: #{o.name}"},
67 67 :url => Proc.new {|o| {:controller => 'projects', :action => 'show', :id => o}},
68 68 :author => nil
69 69
70 70 attr_protected :status
71 71
72 72 validates_presence_of :name, :identifier
73 73 validates_uniqueness_of :identifier
74 74 validates_associated :repository, :wiki
75 75 validates_length_of :name, :maximum => 255
76 76 validates_length_of :homepage, :maximum => 255
77 77 validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH
78 78 # donwcase letters, digits, dashes but not digits only
79 validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-]*$/, :if => Proc.new { |p| p.identifier_changed? }
79 validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-_]*$/, :if => Proc.new { |p| p.identifier_changed? }
80 80 # reserved words
81 81 validates_exclusion_of :identifier, :in => %w( new )
82 82
83 83 before_destroy :delete_all_members
84 84
85 85 named_scope :has_module, lambda { |mod| { :conditions => ["#{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name=?)", mod.to_s] } }
86 86 named_scope :active, { :conditions => "#{Project.table_name}.status = #{STATUS_ACTIVE}"}
87 87 named_scope :status, lambda {|arg| arg.blank? ? {} : {:conditions => {:status => arg.to_i}} }
88 88 named_scope :all_public, { :conditions => { :is_public => true } }
89 89 named_scope :visible, lambda {|*args| {:conditions => Project.visible_condition(args.shift || User.current, *args) }}
90 90 named_scope :allowed_to, lambda {|*args|
91 91 user = User.current
92 92 permission = nil
93 93 if args.first.is_a?(Symbol)
94 94 permission = args.shift
95 95 else
96 96 user = args.shift
97 97 permission = args.shift
98 98 end
99 99 { :conditions => Project.allowed_to_condition(user, permission, *args) }
100 100 }
101 101 named_scope :like, lambda {|arg|
102 102 if arg.blank?
103 103 {}
104 104 else
105 105 pattern = "%#{arg.to_s.strip.downcase}%"
106 106 {:conditions => ["LOWER(identifier) LIKE :p OR LOWER(name) LIKE :p", {:p => pattern}]}
107 107 end
108 108 }
109 109
110 110 def initialize(attributes=nil, *args)
111 111 super
112 112
113 113 initialized = (attributes || {}).stringify_keys
114 114 if !initialized.key?('identifier') && Setting.sequential_project_identifiers?
115 115 self.identifier = Project.next_identifier
116 116 end
117 117 if !initialized.key?('is_public')
118 118 self.is_public = Setting.default_projects_public?
119 119 end
120 120 if !initialized.key?('enabled_module_names')
121 121 self.enabled_module_names = Setting.default_projects_modules
122 122 end
123 123 if !initialized.key?('trackers') && !initialized.key?('tracker_ids')
124 124 self.trackers = Tracker.all
125 125 end
126 126 end
127 127
128 128 def identifier=(identifier)
129 129 super unless identifier_frozen?
130 130 end
131 131
132 132 def identifier_frozen?
133 133 errors[:identifier].nil? && !(new_record? || identifier.blank?)
134 134 end
135 135
136 136 # returns latest created projects
137 137 # non public projects will be returned only if user is a member of those
138 138 def self.latest(user=nil, count=5)
139 139 visible(user).find(:all, :limit => count, :order => "created_on DESC")
140 140 end
141 141
142 142 # Returns true if the project is visible to +user+ or to the current user.
143 143 def visible?(user=User.current)
144 144 user.allowed_to?(:view_project, self)
145 145 end
146 146
147 147 # Returns a SQL conditions string used to find all projects visible by the specified user.
148 148 #
149 149 # Examples:
150 150 # Project.visible_condition(admin) => "projects.status = 1"
151 151 # Project.visible_condition(normal_user) => "((projects.status = 1) AND (projects.is_public = 1 OR projects.id IN (1,3,4)))"
152 152 # Project.visible_condition(anonymous) => "((projects.status = 1) AND (projects.is_public = 1))"
153 153 def self.visible_condition(user, options={})
154 154 allowed_to_condition(user, :view_project, options)
155 155 end
156 156
157 157 # Returns a SQL conditions string used to find all projects for which +user+ has the given +permission+
158 158 #
159 159 # Valid options:
160 160 # * :project => limit the condition to project
161 161 # * :with_subprojects => limit the condition to project and its subprojects
162 162 # * :member => limit the condition to the user projects
163 163 def self.allowed_to_condition(user, permission, options={})
164 164 base_statement = "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"
165 165 if perm = Redmine::AccessControl.permission(permission)
166 166 unless perm.project_module.nil?
167 167 # If the permission belongs to a project module, make sure the module is enabled
168 168 base_statement << " AND #{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name='#{perm.project_module}')"
169 169 end
170 170 end
171 171 if options[:project]
172 172 project_statement = "#{Project.table_name}.id = #{options[:project].id}"
173 173 project_statement << " OR (#{Project.table_name}.lft > #{options[:project].lft} AND #{Project.table_name}.rgt < #{options[:project].rgt})" if options[:with_subprojects]
174 174 base_statement = "(#{project_statement}) AND (#{base_statement})"
175 175 end
176 176
177 177 if user.admin?
178 178 base_statement
179 179 else
180 180 statement_by_role = {}
181 181 unless options[:member]
182 182 role = user.logged? ? Role.non_member : Role.anonymous
183 183 if role.allowed_to?(permission)
184 184 statement_by_role[role] = "#{Project.table_name}.is_public = #{connection.quoted_true}"
185 185 end
186 186 end
187 187 if user.logged?
188 188 user.projects_by_role.each do |role, projects|
189 189 if role.allowed_to?(permission)
190 190 statement_by_role[role] = "#{Project.table_name}.id IN (#{projects.collect(&:id).join(',')})"
191 191 end
192 192 end
193 193 end
194 194 if statement_by_role.empty?
195 195 "1=0"
196 196 else
197 197 if block_given?
198 198 statement_by_role.each do |role, statement|
199 199 if s = yield(role, user)
200 200 statement_by_role[role] = "(#{statement} AND (#{s}))"
201 201 end
202 202 end
203 203 end
204 204 "((#{base_statement}) AND (#{statement_by_role.values.join(' OR ')}))"
205 205 end
206 206 end
207 207 end
208 208
209 209 # Returns the Systemwide and project specific activities
210 210 def activities(include_inactive=false)
211 211 if include_inactive
212 212 return all_activities
213 213 else
214 214 return active_activities
215 215 end
216 216 end
217 217
218 218 # Will create a new Project specific Activity or update an existing one
219 219 #
220 220 # This will raise a ActiveRecord::Rollback if the TimeEntryActivity
221 221 # does not successfully save.
222 222 def update_or_create_time_entry_activity(id, activity_hash)
223 223 if activity_hash.respond_to?(:has_key?) && activity_hash.has_key?('parent_id')
224 224 self.create_time_entry_activity_if_needed(activity_hash)
225 225 else
226 226 activity = project.time_entry_activities.find_by_id(id.to_i)
227 227 activity.update_attributes(activity_hash) if activity
228 228 end
229 229 end
230 230
231 231 # Create a new TimeEntryActivity if it overrides a system TimeEntryActivity
232 232 #
233 233 # This will raise a ActiveRecord::Rollback if the TimeEntryActivity
234 234 # does not successfully save.
235 235 def create_time_entry_activity_if_needed(activity)
236 236 if activity['parent_id']
237 237
238 238 parent_activity = TimeEntryActivity.find(activity['parent_id'])
239 239 activity['name'] = parent_activity.name
240 240 activity['position'] = parent_activity.position
241 241
242 242 if Enumeration.overridding_change?(activity, parent_activity)
243 243 project_activity = self.time_entry_activities.create(activity)
244 244
245 245 if project_activity.new_record?
246 246 raise ActiveRecord::Rollback, "Overridding TimeEntryActivity was not successfully saved"
247 247 else
248 248 self.time_entries.update_all("activity_id = #{project_activity.id}", ["activity_id = ?", parent_activity.id])
249 249 end
250 250 end
251 251 end
252 252 end
253 253
254 254 # Returns a :conditions SQL string that can be used to find the issues associated with this project.
255 255 #
256 256 # Examples:
257 257 # project.project_condition(true) => "(projects.id = 1 OR (projects.lft > 1 AND projects.rgt < 10))"
258 258 # project.project_condition(false) => "projects.id = 1"
259 259 def project_condition(with_subprojects)
260 260 cond = "#{Project.table_name}.id = #{id}"
261 261 cond = "(#{cond} OR (#{Project.table_name}.lft > #{lft} AND #{Project.table_name}.rgt < #{rgt}))" if with_subprojects
262 262 cond
263 263 end
264 264
265 265 def self.find(*args)
266 266 if args.first && args.first.is_a?(String) && !args.first.match(/^\d*$/)
267 267 project = find_by_identifier(*args)
268 268 raise ActiveRecord::RecordNotFound, "Couldn't find Project with identifier=#{args.first}" if project.nil?
269 269 project
270 270 else
271 271 super
272 272 end
273 273 end
274 274
275 275 def to_param
276 276 # id is used for projects with a numeric identifier (compatibility)
277 277 @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id : identifier)
278 278 end
279 279
280 280 def active?
281 281 self.status == STATUS_ACTIVE
282 282 end
283 283
284 284 def archived?
285 285 self.status == STATUS_ARCHIVED
286 286 end
287 287
288 288 # Archives the project and its descendants
289 289 def archive
290 290 # Check that there is no issue of a non descendant project that is assigned
291 291 # to one of the project or descendant versions
292 292 v_ids = self_and_descendants.collect {|p| p.version_ids}.flatten
293 293 if v_ids.any? && Issue.find(:first, :include => :project,
294 294 :conditions => ["(#{Project.table_name}.lft < ? OR #{Project.table_name}.rgt > ?)" +
295 295 " AND #{Issue.table_name}.fixed_version_id IN (?)", lft, rgt, v_ids])
296 296 return false
297 297 end
298 298 Project.transaction do
299 299 archive!
300 300 end
301 301 true
302 302 end
303 303
304 304 # Unarchives the project
305 305 # All its ancestors must be active
306 306 def unarchive
307 307 return false if ancestors.detect {|a| !a.active?}
308 308 update_attribute :status, STATUS_ACTIVE
309 309 end
310 310
311 311 # Returns an array of projects the project can be moved to
312 312 # by the current user
313 313 def allowed_parents
314 314 return @allowed_parents if @allowed_parents
315 315 @allowed_parents = Project.find(:all, :conditions => Project.allowed_to_condition(User.current, :add_subprojects))
316 316 @allowed_parents = @allowed_parents - self_and_descendants
317 317 if User.current.allowed_to?(:add_project, nil, :global => true) || (!new_record? && parent.nil?)
318 318 @allowed_parents << nil
319 319 end
320 320 unless parent.nil? || @allowed_parents.empty? || @allowed_parents.include?(parent)
321 321 @allowed_parents << parent
322 322 end
323 323 @allowed_parents
324 324 end
325 325
326 326 # Sets the parent of the project with authorization check
327 327 def set_allowed_parent!(p)
328 328 unless p.nil? || p.is_a?(Project)
329 329 if p.to_s.blank?
330 330 p = nil
331 331 else
332 332 p = Project.find_by_id(p)
333 333 return false unless p
334 334 end
335 335 end
336 336 if p.nil?
337 337 if !new_record? && allowed_parents.empty?
338 338 return false
339 339 end
340 340 elsif !allowed_parents.include?(p)
341 341 return false
342 342 end
343 343 set_parent!(p)
344 344 end
345 345
346 346 # Sets the parent of the project
347 347 # Argument can be either a Project, a String, a Fixnum or nil
348 348 def set_parent!(p)
349 349 unless p.nil? || p.is_a?(Project)
350 350 if p.to_s.blank?
351 351 p = nil
352 352 else
353 353 p = Project.find_by_id(p)
354 354 return false unless p
355 355 end
356 356 end
357 357 if p == parent && !p.nil?
358 358 # Nothing to do
359 359 true
360 360 elsif p.nil? || (p.active? && move_possible?(p))
361 361 # Insert the project so that target's children or root projects stay alphabetically sorted
362 362 sibs = (p.nil? ? self.class.roots : p.children)
363 363 to_be_inserted_before = sibs.detect {|c| c.name.to_s.downcase > name.to_s.downcase }
364 364 if to_be_inserted_before
365 365 move_to_left_of(to_be_inserted_before)
366 366 elsif p.nil?
367 367 if sibs.empty?
368 368 # move_to_root adds the project in first (ie. left) position
369 369 move_to_root
370 370 else
371 371 move_to_right_of(sibs.last) unless self == sibs.last
372 372 end
373 373 else
374 374 # move_to_child_of adds the project in last (ie.right) position
375 375 move_to_child_of(p)
376 376 end
377 377 Issue.update_versions_from_hierarchy_change(self)
378 378 true
379 379 else
380 380 # Can not move to the given target
381 381 false
382 382 end
383 383 end
384 384
385 385 # Returns an array of the trackers used by the project and its active sub projects
386 386 def rolled_up_trackers
387 387 @rolled_up_trackers ||=
388 388 Tracker.find(:all, :joins => :projects,
389 389 :select => "DISTINCT #{Tracker.table_name}.*",
390 390 :conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status = #{STATUS_ACTIVE}", lft, rgt],
391 391 :order => "#{Tracker.table_name}.position")
392 392 end
393 393
394 394 # Closes open and locked project versions that are completed
395 395 def close_completed_versions
396 396 Version.transaction do
397 397 versions.find(:all, :conditions => {:status => %w(open locked)}).each do |version|
398 398 if version.completed?
399 399 version.update_attribute(:status, 'closed')
400 400 end
401 401 end
402 402 end
403 403 end
404 404
405 405 # Returns a scope of the Versions on subprojects
406 406 def rolled_up_versions
407 407 @rolled_up_versions ||=
408 408 Version.scoped(:include => :project,
409 409 :conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status = #{STATUS_ACTIVE}", lft, rgt])
410 410 end
411 411
412 412 # Returns a scope of the Versions used by the project
413 413 def shared_versions
414 414 @shared_versions ||= begin
415 415 r = root? ? self : root
416 416 Version.scoped(:include => :project,
417 417 :conditions => "#{Project.table_name}.id = #{id}" +
418 418 " OR (#{Project.table_name}.status = #{Project::STATUS_ACTIVE} AND (" +
419 419 " #{Version.table_name}.sharing = 'system'" +
420 420 " OR (#{Project.table_name}.lft >= #{r.lft} AND #{Project.table_name}.rgt <= #{r.rgt} AND #{Version.table_name}.sharing = 'tree')" +
421 421 " OR (#{Project.table_name}.lft < #{lft} AND #{Project.table_name}.rgt > #{rgt} AND #{Version.table_name}.sharing IN ('hierarchy', 'descendants'))" +
422 422 " OR (#{Project.table_name}.lft > #{lft} AND #{Project.table_name}.rgt < #{rgt} AND #{Version.table_name}.sharing = 'hierarchy')" +
423 423 "))")
424 424 end
425 425 end
426 426
427 427 # Returns a hash of project users grouped by role
428 428 def users_by_role
429 429 members.find(:all, :include => [:user, :roles]).inject({}) do |h, m|
430 430 m.roles.each do |r|
431 431 h[r] ||= []
432 432 h[r] << m.user
433 433 end
434 434 h
435 435 end
436 436 end
437 437
438 438 # Deletes all project's members
439 439 def delete_all_members
440 440 me, mr = Member.table_name, MemberRole.table_name
441 441 connection.delete("DELETE FROM #{mr} WHERE #{mr}.member_id IN (SELECT #{me}.id FROM #{me} WHERE #{me}.project_id = #{id})")
442 442 Member.delete_all(['project_id = ?', id])
443 443 end
444 444
445 445 # Users/groups issues can be assigned to
446 446 def assignable_users
447 447 assignable = Setting.issue_group_assignment? ? member_principals : members
448 448 assignable.select {|m| m.roles.detect {|role| role.assignable?}}.collect {|m| m.principal}.sort
449 449 end
450 450
451 451 # Returns the mail adresses of users that should be always notified on project events
452 452 def recipients
453 453 notified_users.collect {|user| user.mail}
454 454 end
455 455
456 456 # Returns the users that should be notified on project events
457 457 def notified_users
458 458 # TODO: User part should be extracted to User#notify_about?
459 459 members.select {|m| m.mail_notification? || m.user.mail_notification == 'all'}.collect {|m| m.user}
460 460 end
461 461
462 462 # Returns an array of all custom fields enabled for project issues
463 463 # (explictly associated custom fields and custom fields enabled for all projects)
464 464 def all_issue_custom_fields
465 465 @all_issue_custom_fields ||= (IssueCustomField.for_all + issue_custom_fields).uniq.sort
466 466 end
467 467
468 468 # Returns an array of all custom fields enabled for project time entries
469 469 # (explictly associated custom fields and custom fields enabled for all projects)
470 470 def all_time_entry_custom_fields
471 471 @all_time_entry_custom_fields ||= (TimeEntryCustomField.for_all + time_entry_custom_fields).uniq.sort
472 472 end
473 473
474 474 def project
475 475 self
476 476 end
477 477
478 478 def <=>(project)
479 479 name.downcase <=> project.name.downcase
480 480 end
481 481
482 482 def to_s
483 483 name
484 484 end
485 485
486 486 # Returns a short description of the projects (first lines)
487 487 def short_description(length = 255)
488 488 description.gsub(/^(.{#{length}}[^\n\r]*).*$/m, '\1...').strip if description
489 489 end
490 490
491 491 def css_classes
492 492 s = 'project'
493 493 s << ' root' if root?
494 494 s << ' child' if child?
495 495 s << (leaf? ? ' leaf' : ' parent')
496 496 s
497 497 end
498 498
499 499 # The earliest start date of a project, based on it's issues and versions
500 500 def start_date
501 501 [
502 502 issues.minimum('start_date'),
503 503 shared_versions.collect(&:effective_date),
504 504 shared_versions.collect(&:start_date)
505 505 ].flatten.compact.min
506 506 end
507 507
508 508 # The latest due date of an issue or version
509 509 def due_date
510 510 [
511 511 issues.maximum('due_date'),
512 512 shared_versions.collect(&:effective_date),
513 513 shared_versions.collect {|v| v.fixed_issues.maximum('due_date')}
514 514 ].flatten.compact.max
515 515 end
516 516
517 517 def overdue?
518 518 active? && !due_date.nil? && (due_date < Date.today)
519 519 end
520 520
521 521 # Returns the percent completed for this project, based on the
522 522 # progress on it's versions.
523 523 def completed_percent(options={:include_subprojects => false})
524 524 if options.delete(:include_subprojects)
525 525 total = self_and_descendants.collect(&:completed_percent).sum
526 526
527 527 total / self_and_descendants.count
528 528 else
529 529 if versions.count > 0
530 530 total = versions.collect(&:completed_pourcent).sum
531 531
532 532 total / versions.count
533 533 else
534 534 100
535 535 end
536 536 end
537 537 end
538 538
539 539 # Return true if this project is allowed to do the specified action.
540 540 # action can be:
541 541 # * a parameter-like Hash (eg. :controller => 'projects', :action => 'edit')
542 542 # * a permission Symbol (eg. :edit_project)
543 543 def allows_to?(action)
544 544 if action.is_a? Hash
545 545 allowed_actions.include? "#{action[:controller]}/#{action[:action]}"
546 546 else
547 547 allowed_permissions.include? action
548 548 end
549 549 end
550 550
551 551 def module_enabled?(module_name)
552 552 module_name = module_name.to_s
553 553 enabled_modules.detect {|m| m.name == module_name}
554 554 end
555 555
556 556 def enabled_module_names=(module_names)
557 557 if module_names && module_names.is_a?(Array)
558 558 module_names = module_names.collect(&:to_s).reject(&:blank?)
559 559 self.enabled_modules = module_names.collect {|name| enabled_modules.detect {|mod| mod.name == name} || EnabledModule.new(:name => name)}
560 560 else
561 561 enabled_modules.clear
562 562 end
563 563 end
564 564
565 565 # Returns an array of the enabled modules names
566 566 def enabled_module_names
567 567 enabled_modules.collect(&:name)
568 568 end
569 569
570 570 # Enable a specific module
571 571 #
572 572 # Examples:
573 573 # project.enable_module!(:issue_tracking)
574 574 # project.enable_module!("issue_tracking")
575 575 def enable_module!(name)
576 576 enabled_modules << EnabledModule.new(:name => name.to_s) unless module_enabled?(name)
577 577 end
578 578
579 579 # Disable a module if it exists
580 580 #
581 581 # Examples:
582 582 # project.disable_module!(:issue_tracking)
583 583 # project.disable_module!("issue_tracking")
584 584 # project.disable_module!(project.enabled_modules.first)
585 585 def disable_module!(target)
586 586 target = enabled_modules.detect{|mod| target.to_s == mod.name} unless enabled_modules.include?(target)
587 587 target.destroy unless target.blank?
588 588 end
589 589
590 590 safe_attributes 'name',
591 591 'description',
592 592 'homepage',
593 593 'is_public',
594 594 'identifier',
595 595 'custom_field_values',
596 596 'custom_fields',
597 597 'tracker_ids',
598 598 'issue_custom_field_ids'
599 599
600 600 safe_attributes 'enabled_module_names',
601 601 :if => lambda {|project, user| project.new_record? || user.allowed_to?(:select_project_modules, project) }
602 602
603 603 # Returns an array of projects that are in this project's hierarchy
604 604 #
605 605 # Example: parents, children, siblings
606 606 def hierarchy
607 607 parents = project.self_and_ancestors || []
608 608 descendants = project.descendants || []
609 609 project_hierarchy = parents | descendants # Set union
610 610 end
611 611
612 612 # Returns an auto-generated project identifier based on the last identifier used
613 613 def self.next_identifier
614 614 p = Project.find(:first, :order => 'created_on DESC')
615 615 p.nil? ? nil : p.identifier.to_s.succ
616 616 end
617 617
618 618 # Copies and saves the Project instance based on the +project+.
619 619 # Duplicates the source project's:
620 620 # * Wiki
621 621 # * Versions
622 622 # * Categories
623 623 # * Issues
624 624 # * Members
625 625 # * Queries
626 626 #
627 627 # Accepts an +options+ argument to specify what to copy
628 628 #
629 629 # Examples:
630 630 # project.copy(1) # => copies everything
631 631 # project.copy(1, :only => 'members') # => copies members only
632 632 # project.copy(1, :only => ['members', 'versions']) # => copies members and versions
633 633 def copy(project, options={})
634 634 project = project.is_a?(Project) ? project : Project.find(project)
635 635
636 636 to_be_copied = %w(wiki versions issue_categories issues members queries boards)
637 637 to_be_copied = to_be_copied & options[:only].to_a unless options[:only].nil?
638 638
639 639 Project.transaction do
640 640 if save
641 641 reload
642 642 to_be_copied.each do |name|
643 643 send "copy_#{name}", project
644 644 end
645 645 Redmine::Hook.call_hook(:model_project_copy_before_save, :source_project => project, :destination_project => self)
646 646 save
647 647 end
648 648 end
649 649 end
650 650
651 651
652 652 # Copies +project+ and returns the new instance. This will not save
653 653 # the copy
654 654 def self.copy_from(project)
655 655 begin
656 656 project = project.is_a?(Project) ? project : Project.find(project)
657 657 if project
658 658 # clear unique attributes
659 659 attributes = project.attributes.dup.except('id', 'name', 'identifier', 'status', 'parent_id', 'lft', 'rgt')
660 660 copy = Project.new(attributes)
661 661 copy.enabled_modules = project.enabled_modules
662 662 copy.trackers = project.trackers
663 663 copy.custom_values = project.custom_values.collect {|v| v.clone}
664 664 copy.issue_custom_fields = project.issue_custom_fields
665 665 return copy
666 666 else
667 667 return nil
668 668 end
669 669 rescue ActiveRecord::RecordNotFound
670 670 return nil
671 671 end
672 672 end
673 673
674 674 # Yields the given block for each project with its level in the tree
675 675 def self.project_tree(projects, &block)
676 676 ancestors = []
677 677 projects.sort_by(&:lft).each do |project|
678 678 while (ancestors.any? && !project.is_descendant_of?(ancestors.last))
679 679 ancestors.pop
680 680 end
681 681 yield project, ancestors.size
682 682 ancestors << project
683 683 end
684 684 end
685 685
686 686 private
687 687
688 688 # Copies wiki from +project+
689 689 def copy_wiki(project)
690 690 # Check that the source project has a wiki first
691 691 unless project.wiki.nil?
692 692 self.wiki ||= Wiki.new
693 693 wiki.attributes = project.wiki.attributes.dup.except("id", "project_id")
694 694 wiki_pages_map = {}
695 695 project.wiki.pages.each do |page|
696 696 # Skip pages without content
697 697 next if page.content.nil?
698 698 new_wiki_content = WikiContent.new(page.content.attributes.dup.except("id", "page_id", "updated_on"))
699 699 new_wiki_page = WikiPage.new(page.attributes.dup.except("id", "wiki_id", "created_on", "parent_id"))
700 700 new_wiki_page.content = new_wiki_content
701 701 wiki.pages << new_wiki_page
702 702 wiki_pages_map[page.id] = new_wiki_page
703 703 end
704 704 wiki.save
705 705 # Reproduce page hierarchy
706 706 project.wiki.pages.each do |page|
707 707 if page.parent_id && wiki_pages_map[page.id]
708 708 wiki_pages_map[page.id].parent = wiki_pages_map[page.parent_id]
709 709 wiki_pages_map[page.id].save
710 710 end
711 711 end
712 712 end
713 713 end
714 714
715 715 # Copies versions from +project+
716 716 def copy_versions(project)
717 717 project.versions.each do |version|
718 718 new_version = Version.new
719 719 new_version.attributes = version.attributes.dup.except("id", "project_id", "created_on", "updated_on")
720 720 self.versions << new_version
721 721 end
722 722 end
723 723
724 724 # Copies issue categories from +project+
725 725 def copy_issue_categories(project)
726 726 project.issue_categories.each do |issue_category|
727 727 new_issue_category = IssueCategory.new
728 728 new_issue_category.attributes = issue_category.attributes.dup.except("id", "project_id")
729 729 self.issue_categories << new_issue_category
730 730 end
731 731 end
732 732
733 733 # Copies issues from +project+
734 734 # Note: issues assigned to a closed version won't be copied due to validation rules
735 735 def copy_issues(project)
736 736 # Stores the source issue id as a key and the copied issues as the
737 737 # value. Used to map the two togeather for issue relations.
738 738 issues_map = {}
739 739
740 740 # Get issues sorted by root_id, lft so that parent issues
741 741 # get copied before their children
742 742 project.issues.find(:all, :order => 'root_id, lft').each do |issue|
743 743 new_issue = Issue.new
744 744 new_issue.copy_from(issue)
745 745 new_issue.project = self
746 746 # Reassign fixed_versions by name, since names are unique per
747 747 # project and the versions for self are not yet saved
748 748 if issue.fixed_version
749 749 new_issue.fixed_version = self.versions.select {|v| v.name == issue.fixed_version.name}.first
750 750 end
751 751 # Reassign the category by name, since names are unique per
752 752 # project and the categories for self are not yet saved
753 753 if issue.category
754 754 new_issue.category = self.issue_categories.select {|c| c.name == issue.category.name}.first
755 755 end
756 756 # Parent issue
757 757 if issue.parent_id
758 758 if copied_parent = issues_map[issue.parent_id]
759 759 new_issue.parent_issue_id = copied_parent.id
760 760 end
761 761 end
762 762
763 763 self.issues << new_issue
764 764 if new_issue.new_record?
765 765 logger.info "Project#copy_issues: issue ##{issue.id} could not be copied: #{new_issue.errors.full_messages}" if logger && logger.info
766 766 else
767 767 issues_map[issue.id] = new_issue unless new_issue.new_record?
768 768 end
769 769 end
770 770
771 771 # Relations after in case issues related each other
772 772 project.issues.each do |issue|
773 773 new_issue = issues_map[issue.id]
774 774 unless new_issue
775 775 # Issue was not copied
776 776 next
777 777 end
778 778
779 779 # Relations
780 780 issue.relations_from.each do |source_relation|
781 781 new_issue_relation = IssueRelation.new
782 782 new_issue_relation.attributes = source_relation.attributes.dup.except("id", "issue_from_id", "issue_to_id")
783 783 new_issue_relation.issue_to = issues_map[source_relation.issue_to_id]
784 784 if new_issue_relation.issue_to.nil? && Setting.cross_project_issue_relations?
785 785 new_issue_relation.issue_to = source_relation.issue_to
786 786 end
787 787 new_issue.relations_from << new_issue_relation
788 788 end
789 789
790 790 issue.relations_to.each do |source_relation|
791 791 new_issue_relation = IssueRelation.new
792 792 new_issue_relation.attributes = source_relation.attributes.dup.except("id", "issue_from_id", "issue_to_id")
793 793 new_issue_relation.issue_from = issues_map[source_relation.issue_from_id]
794 794 if new_issue_relation.issue_from.nil? && Setting.cross_project_issue_relations?
795 795 new_issue_relation.issue_from = source_relation.issue_from
796 796 end
797 797 new_issue.relations_to << new_issue_relation
798 798 end
799 799 end
800 800 end
801 801
802 802 # Copies members from +project+
803 803 def copy_members(project)
804 804 # Copy users first, then groups to handle members with inherited and given roles
805 805 members_to_copy = []
806 806 members_to_copy += project.memberships.select {|m| m.principal.is_a?(User)}
807 807 members_to_copy += project.memberships.select {|m| !m.principal.is_a?(User)}
808 808
809 809 members_to_copy.each do |member|
810 810 new_member = Member.new
811 811 new_member.attributes = member.attributes.dup.except("id", "project_id", "created_on")
812 812 # only copy non inherited roles
813 813 # inherited roles will be added when copying the group membership
814 814 role_ids = member.member_roles.reject(&:inherited?).collect(&:role_id)
815 815 next if role_ids.empty?
816 816 new_member.role_ids = role_ids
817 817 new_member.project = self
818 818 self.members << new_member
819 819 end
820 820 end
821 821
822 822 # Copies queries from +project+
823 823 def copy_queries(project)
824 824 project.queries.each do |query|
825 825 new_query = ::Query.new
826 826 new_query.attributes = query.attributes.dup.except("id", "project_id", "sort_criteria")
827 827 new_query.sort_criteria = query.sort_criteria if query.sort_criteria
828 828 new_query.project = self
829 829 new_query.user_id = query.user_id
830 830 self.queries << new_query
831 831 end
832 832 end
833 833
834 834 # Copies boards from +project+
835 835 def copy_boards(project)
836 836 project.boards.each do |board|
837 837 new_board = Board.new
838 838 new_board.attributes = board.attributes.dup.except("id", "project_id", "topics_count", "messages_count", "last_message_id")
839 839 new_board.project = self
840 840 self.boards << new_board
841 841 end
842 842 end
843 843
844 844 def allowed_permissions
845 845 @allowed_permissions ||= begin
846 846 module_names = enabled_modules.all(:select => :name).collect {|m| m.name}
847 847 Redmine::AccessControl.modules_permissions(module_names).collect {|p| p.name}
848 848 end
849 849 end
850 850
851 851 def allowed_actions
852 852 @actions_allowed ||= allowed_permissions.inject([]) { |actions, permission| actions += Redmine::AccessControl.allowed_actions(permission) }.flatten
853 853 end
854 854
855 855 # Returns all the active Systemwide and project specific activities
856 856 def active_activities
857 857 overridden_activity_ids = self.time_entry_activities.collect(&:parent_id)
858 858
859 859 if overridden_activity_ids.empty?
860 860 return TimeEntryActivity.shared.active
861 861 else
862 862 return system_activities_and_project_overrides
863 863 end
864 864 end
865 865
866 866 # Returns all the Systemwide and project specific activities
867 867 # (inactive and active)
868 868 def all_activities
869 869 overridden_activity_ids = self.time_entry_activities.collect(&:parent_id)
870 870
871 871 if overridden_activity_ids.empty?
872 872 return TimeEntryActivity.shared
873 873 else
874 874 return system_activities_and_project_overrides(true)
875 875 end
876 876 end
877 877
878 878 # Returns the systemwide active activities merged with the project specific overrides
879 879 def system_activities_and_project_overrides(include_inactive=false)
880 880 if include_inactive
881 881 return TimeEntryActivity.shared.
882 882 find(:all,
883 883 :conditions => ["id NOT IN (?)", self.time_entry_activities.collect(&:parent_id)]) +
884 884 self.time_entry_activities
885 885 else
886 886 return TimeEntryActivity.shared.active.
887 887 find(:all,
888 888 :conditions => ["id NOT IN (?)", self.time_entry_activities.collect(&:parent_id)]) +
889 889 self.time_entry_activities.active
890 890 end
891 891 end
892 892
893 893 # Archives subprojects recursively
894 894 def archive!
895 895 children.each do |subproject|
896 896 subproject.send :archive!
897 897 end
898 898 update_attribute :status, STATUS_ARCHIVED
899 899 end
900 900 end
@@ -1,1020 +1,1020
1 1 en-GB:
2 2 direction: ltr
3 3 date:
4 4 formats:
5 5 # Use the strftime parameters for formats.
6 6 # When no format has been given, it uses default.
7 7 # You can provide other formats here if you like!
8 8 default: "%d/%m/%Y"
9 9 short: "%d %b"
10 10 long: "%d %B, %Y"
11 11
12 12 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
13 13 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
14 14
15 15 # Don't forget the nil at the beginning; there's no such thing as a 0th month
16 16 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
17 17 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
18 18 # Used in date_select and datime_select.
19 19 order:
20 20 - :year
21 21 - :month
22 22 - :day
23 23
24 24 time:
25 25 formats:
26 26 default: "%d/%m/%Y %I:%M %p"
27 27 time: "%I:%M %p"
28 28 short: "%d %b %H:%M"
29 29 long: "%d %B, %Y %H:%M"
30 30 am: "am"
31 31 pm: "pm"
32 32
33 33 datetime:
34 34 distance_in_words:
35 35 half_a_minute: "half a minute"
36 36 less_than_x_seconds:
37 37 one: "less than 1 second"
38 38 other: "less than %{count} seconds"
39 39 x_seconds:
40 40 one: "1 second"
41 41 other: "%{count} seconds"
42 42 less_than_x_minutes:
43 43 one: "less than a minute"
44 44 other: "less than %{count} minutes"
45 45 x_minutes:
46 46 one: "1 minute"
47 47 other: "%{count} minutes"
48 48 about_x_hours:
49 49 one: "about 1 hour"
50 50 other: "about %{count} hours"
51 51 x_days:
52 52 one: "1 day"
53 53 other: "%{count} days"
54 54 about_x_months:
55 55 one: "about 1 month"
56 56 other: "about %{count} months"
57 57 x_months:
58 58 one: "1 month"
59 59 other: "%{count} months"
60 60 about_x_years:
61 61 one: "about 1 year"
62 62 other: "about %{count} years"
63 63 over_x_years:
64 64 one: "over 1 year"
65 65 other: "over %{count} years"
66 66 almost_x_years:
67 67 one: "almost 1 year"
68 68 other: "almost %{count} years"
69 69
70 70 number:
71 71 format:
72 72 separator: "."
73 73 delimiter: " "
74 74 precision: 3
75 75
76 76 currency:
77 77 format:
78 78 format: "%u%n"
79 79 unit: "Β£"
80 80
81 81 human:
82 82 format:
83 83 delimiter: ""
84 84 precision: 1
85 85 storage_units:
86 86 format: "%n %u"
87 87 units:
88 88 byte:
89 89 one: "Byte"
90 90 other: "Bytes"
91 91 kb: "kB"
92 92 mb: "MB"
93 93 gb: "GB"
94 94 tb: "TB"
95 95
96 96 # Used in array.to_sentence.
97 97 support:
98 98 array:
99 99 sentence_connector: "and"
100 100 skip_last_comma: false
101 101
102 102 activerecord:
103 103 errors:
104 104 template:
105 105 header:
106 106 one: "1 error prohibited this %{model} from being saved"
107 107 other: "%{count} errors prohibited this %{model} from being saved"
108 108 messages:
109 109 inclusion: "is not included in the list"
110 110 exclusion: "is reserved"
111 111 invalid: "is invalid"
112 112 confirmation: "doesn't match confirmation"
113 113 accepted: "must be accepted"
114 114 empty: "can't be empty"
115 115 blank: "can't be blank"
116 116 too_long: "is too long (maximum is %{count} characters)"
117 117 too_short: "is too short (minimum is %{count} characters)"
118 118 wrong_length: "is the wrong length (should be %{count} characters)"
119 119 taken: "has already been taken"
120 120 not_a_number: "is not a number"
121 121 not_a_date: "is not a valid date"
122 122 greater_than: "must be greater than %{count}"
123 123 greater_than_or_equal_to: "must be greater than or equal to %{count}"
124 124 equal_to: "must be equal to %{count}"
125 125 less_than: "must be less than %{count}"
126 126 less_than_or_equal_to: "must be less than or equal to %{count}"
127 127 odd: "must be odd"
128 128 even: "must be even"
129 129 greater_than_start_date: "must be greater than start date"
130 130 not_same_project: "doesn't belong to the same project"
131 131 circular_dependency: "This relation would create a circular dependency"
132 132 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
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 (British)'
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: '1'
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. To activate your account, click on the link that was emailed to you.
152 152 notice_account_unknown_email: Unknown user.
153 153 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
154 154 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
155 155 notice_account_activated: Your account has been activated. You can now log in.
156 156 notice_successful_create: Successful creation.
157 157 notice_successful_update: Successful update.
158 158 notice_successful_delete: Successful deletion.
159 159 notice_successful_connection: Successful connection.
160 160 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
161 161 notice_locking_conflict: Data has been updated by another user.
162 162 notice_not_authorized: You are not authorised to access this page.
163 163 notice_not_authorized_archived_project: The project you're trying to access has been archived.
164 164 notice_email_sent: "An email was sent to %{value}"
165 165 notice_email_error: "An error occurred while sending mail (%{value})"
166 166 notice_feeds_access_key_reseted: Your RSS access key was reset.
167 167 notice_api_access_key_reseted: Your API access key was reset.
168 168 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
169 169 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
170 170 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
171 171 notice_account_pending: "Your account was created and is now pending administrator approval."
172 172 notice_default_data_loaded: Default configuration successfully loaded.
173 173 notice_unable_delete_version: Unable to delete version.
174 174 notice_unable_delete_time_entry: Unable to delete time log entry.
175 175 notice_issue_done_ratios_updated: Issue done ratios updated.
176 176 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
177 177
178 178 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
179 179 error_scm_not_found: "The entry or revision was not found in the repository."
180 180 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
181 181 error_scm_annotate: "The entry does not exist or cannot be annotated."
182 182 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
183 183 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
184 184 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
185 185 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
186 186 error_can_not_delete_custom_field: Unable to delete custom field
187 187 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
188 188 error_can_not_remove_role: "This role is in use and cannot be deleted."
189 189 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
190 190 error_can_not_archive_project: This project cannot be archived
191 191 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
192 192 error_workflow_copy_source: 'Please select a source tracker or role'
193 193 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
194 194 error_unable_delete_issue_status: 'Unable to delete issue status'
195 195 error_unable_to_connect: "Unable to connect (%{value})"
196 196 warning_attachments_not_saved: "%{count} file(s) could not be saved."
197 197
198 198 mail_subject_lost_password: "Your %{value} password"
199 199 mail_body_lost_password: 'To change your password, click on the following link:'
200 200 mail_subject_register: "Your %{value} account activation"
201 201 mail_body_register: 'To activate your account, click on the following link:'
202 202 mail_body_account_information_external: "You can use your %{value} account to log in."
203 203 mail_body_account_information: Your account information
204 204 mail_subject_account_activation_request: "%{value} account activation request"
205 205 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
206 206 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
207 207 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
208 208 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
209 209 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
210 210 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
211 211 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
212 212
213 213 gui_validation_error: 1 error
214 214 gui_validation_error_plural: "%{count} errors"
215 215
216 216 field_name: Name
217 217 field_description: Description
218 218 field_summary: Summary
219 219 field_is_required: Required
220 220 field_firstname: First name
221 221 field_lastname: Last name
222 222 field_mail: Email
223 223 field_filename: File
224 224 field_filesize: Size
225 225 field_downloads: Downloads
226 226 field_author: Author
227 227 field_created_on: Created
228 228 field_updated_on: Updated
229 229 field_field_format: Format
230 230 field_is_for_all: For all projects
231 231 field_possible_values: Possible values
232 232 field_regexp: Regular expression
233 233 field_min_length: Minimum length
234 234 field_max_length: Maximum length
235 235 field_value: Value
236 236 field_category: Category
237 237 field_title: Title
238 238 field_project: Project
239 239 field_issue: Issue
240 240 field_status: Status
241 241 field_notes: Notes
242 242 field_is_closed: Issue closed
243 243 field_is_default: Default value
244 244 field_tracker: Tracker
245 245 field_subject: Subject
246 246 field_due_date: Due date
247 247 field_assigned_to: Assignee
248 248 field_priority: Priority
249 249 field_fixed_version: Target version
250 250 field_user: User
251 251 field_principal: Principal
252 252 field_role: Role
253 253 field_homepage: Homepage
254 254 field_is_public: Public
255 255 field_parent: Subproject of
256 256 field_is_in_roadmap: Issues displayed in roadmap
257 257 field_login: Login
258 258 field_mail_notification: Email notifications
259 259 field_admin: Administrator
260 260 field_last_login_on: Last connection
261 261 field_language: Language
262 262 field_effective_date: Date
263 263 field_password: Password
264 264 field_new_password: New password
265 265 field_password_confirmation: Confirmation
266 266 field_version: Version
267 267 field_type: Type
268 268 field_host: Host
269 269 field_port: Port
270 270 field_account: Account
271 271 field_base_dn: Base DN
272 272 field_attr_login: Login attribute
273 273 field_attr_firstname: Firstname attribute
274 274 field_attr_lastname: Lastname attribute
275 275 field_attr_mail: Email attribute
276 276 field_onthefly: On-the-fly user creation
277 277 field_start_date: Start date
278 278 field_done_ratio: "% Done"
279 279 field_auth_source: Authentication mode
280 280 field_hide_mail: Hide my email address
281 281 field_comments: Comment
282 282 field_url: URL
283 283 field_start_page: Start page
284 284 field_subproject: Subproject
285 285 field_hours: Hours
286 286 field_activity: Activity
287 287 field_spent_on: Date
288 288 field_identifier: Identifier
289 289 field_is_filter: Used as a filter
290 290 field_issue_to: Related issue
291 291 field_delay: Delay
292 292 field_assignable: Issues can be assigned to this role
293 293 field_redirect_existing_links: Redirect existing links
294 294 field_estimated_hours: Estimated time
295 295 field_column_names: Columns
296 296 field_time_entries: Log time
297 297 field_time_zone: Time zone
298 298 field_searchable: Searchable
299 299 field_default_value: Default value
300 300 field_comments_sorting: Display comments
301 301 field_parent_title: Parent page
302 302 field_editable: Editable
303 303 field_watcher: Watcher
304 304 field_identity_url: OpenID URL
305 305 field_content: Content
306 306 field_group_by: Group results by
307 307 field_sharing: Sharing
308 308 field_parent_issue: Parent task
309 309 field_member_of_group: "Assignee's group"
310 310 field_assigned_to_role: "Assignee's role"
311 311 field_text: Text field
312 312 field_visible: Visible
313 313 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
314 314
315 315 setting_app_title: Application title
316 316 setting_app_subtitle: Application subtitle
317 317 setting_welcome_text: Welcome text
318 318 setting_default_language: Default language
319 319 setting_login_required: Authentication required
320 320 setting_self_registration: Self-registration
321 321 setting_attachment_max_size: Attachment max. size
322 322 setting_issues_export_limit: Issues export limit
323 323 setting_mail_from: Emission email address
324 324 setting_bcc_recipients: Blind carbon copy recipients (bcc)
325 325 setting_plain_text_mail: Plain text mail (no HTML)
326 326 setting_host_name: Host name and path
327 327 setting_text_formatting: Text formatting
328 328 setting_wiki_compression: Wiki history compression
329 329 setting_feeds_limit: Feed content limit
330 330 setting_default_projects_public: New projects are public by default
331 331 setting_autofetch_changesets: Autofetch commits
332 332 setting_sys_api_enabled: Enable WS for repository management
333 333 setting_commit_ref_keywords: Referencing keywords
334 334 setting_commit_fix_keywords: Fixing keywords
335 335 setting_autologin: Autologin
336 336 setting_date_format: Date format
337 337 setting_time_format: Time format
338 338 setting_cross_project_issue_relations: Allow cross-project issue relations
339 339 setting_issue_list_default_columns: Default columns displayed on the issue list
340 340 setting_emails_header: Emails header
341 341 setting_emails_footer: Emails footer
342 342 setting_protocol: Protocol
343 343 setting_per_page_options: Objects per page options
344 344 setting_user_format: Users display format
345 345 setting_activity_days_default: Days displayed on project activity
346 346 setting_display_subprojects_issues: Display subprojects issues on main projects by default
347 347 setting_enabled_scm: Enabled SCM
348 348 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
349 349 setting_mail_handler_api_enabled: Enable WS for incoming emails
350 350 setting_mail_handler_api_key: API key
351 351 setting_sequential_project_identifiers: Generate sequential project identifiers
352 352 setting_gravatar_enabled: Use Gravatar user icons
353 353 setting_gravatar_default: Default Gravatar image
354 354 setting_diff_max_lines_displayed: Max number of diff lines displayed
355 355 setting_file_max_size_displayed: Max size of text files displayed inline
356 356 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
357 357 setting_openid: Allow OpenID login and registration
358 358 setting_password_min_length: Minimum password length
359 359 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
360 360 setting_default_projects_modules: Default enabled modules for new projects
361 361 setting_issue_done_ratio: Calculate the issue done ratio with
362 362 setting_issue_done_ratio_issue_field: Use the issue field
363 363 setting_issue_done_ratio_issue_status: Use the issue status
364 364 setting_start_of_week: Start calendars on
365 365 setting_rest_api_enabled: Enable REST web service
366 366 setting_cache_formatted_text: Cache formatted text
367 367 setting_default_notification_option: Default notification option
368 368 setting_commit_logtime_enabled: Enable time logging
369 369 setting_commit_logtime_activity_id: Activity for logged time
370 370 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
371 371 setting_issue_group_assignment: Allow issue assignment to groups
372 372 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
373 373
374 374 permission_add_project: Create project
375 375 permission_add_subprojects: Create subprojects
376 376 permission_edit_project: Edit project
377 377 permission_select_project_modules: Select project modules
378 378 permission_manage_members: Manage members
379 379 permission_manage_project_activities: Manage project activities
380 380 permission_manage_versions: Manage versions
381 381 permission_manage_categories: Manage issue categories
382 382 permission_view_issues: View Issues
383 383 permission_add_issues: Add issues
384 384 permission_edit_issues: Edit issues
385 385 permission_manage_issue_relations: Manage issue relations
386 386 permission_add_issue_notes: Add notes
387 387 permission_edit_issue_notes: Edit notes
388 388 permission_edit_own_issue_notes: Edit own notes
389 389 permission_move_issues: Move issues
390 390 permission_delete_issues: Delete issues
391 391 permission_manage_public_queries: Manage public queries
392 392 permission_save_queries: Save queries
393 393 permission_view_gantt: View gantt chart
394 394 permission_view_calendar: View calendar
395 395 permission_view_issue_watchers: View watchers list
396 396 permission_add_issue_watchers: Add watchers
397 397 permission_delete_issue_watchers: Delete watchers
398 398 permission_log_time: Log spent time
399 399 permission_view_time_entries: View spent time
400 400 permission_edit_time_entries: Edit time logs
401 401 permission_edit_own_time_entries: Edit own time logs
402 402 permission_manage_news: Manage news
403 403 permission_comment_news: Comment news
404 404 permission_manage_documents: Manage documents
405 405 permission_view_documents: View documents
406 406 permission_manage_files: Manage files
407 407 permission_view_files: View files
408 408 permission_manage_wiki: Manage wiki
409 409 permission_rename_wiki_pages: Rename wiki pages
410 410 permission_delete_wiki_pages: Delete wiki pages
411 411 permission_view_wiki_pages: View wiki
412 412 permission_view_wiki_edits: View wiki history
413 413 permission_edit_wiki_pages: Edit wiki pages
414 414 permission_delete_wiki_pages_attachments: Delete attachments
415 415 permission_protect_wiki_pages: Protect wiki pages
416 416 permission_manage_repository: Manage repository
417 417 permission_browse_repository: Browse repository
418 418 permission_view_changesets: View changesets
419 419 permission_commit_access: Commit access
420 420 permission_manage_boards: Manage forums
421 421 permission_view_messages: View messages
422 422 permission_add_messages: Post messages
423 423 permission_edit_messages: Edit messages
424 424 permission_edit_own_messages: Edit own messages
425 425 permission_delete_messages: Delete messages
426 426 permission_delete_own_messages: Delete own messages
427 427 permission_export_wiki_pages: Export wiki pages
428 428 permission_manage_subtasks: Manage subtasks
429 429
430 430 project_module_issue_tracking: Issue tracking
431 431 project_module_time_tracking: Time tracking
432 432 project_module_news: News
433 433 project_module_documents: Documents
434 434 project_module_files: Files
435 435 project_module_wiki: Wiki
436 436 project_module_repository: Repository
437 437 project_module_boards: Forums
438 438 project_module_calendar: Calendar
439 439 project_module_gantt: Gantt
440 440
441 441 label_user: User
442 442 label_user_plural: Users
443 443 label_user_new: New user
444 444 label_user_anonymous: Anonymous
445 445 label_project: Project
446 446 label_project_new: New project
447 447 label_project_plural: Projects
448 448 label_x_projects:
449 449 zero: no projects
450 450 one: 1 project
451 451 other: "%{count} projects"
452 452 label_project_all: All Projects
453 453 label_project_latest: Latest projects
454 454 label_issue: Issue
455 455 label_issue_new: New issue
456 456 label_issue_plural: Issues
457 457 label_issue_view_all: View all issues
458 458 label_issues_by: "Issues by %{value}"
459 459 label_issue_added: Issue added
460 460 label_issue_updated: Issue updated
461 461 label_document: Document
462 462 label_document_new: New document
463 463 label_document_plural: Documents
464 464 label_document_added: Document added
465 465 label_role: Role
466 466 label_role_plural: Roles
467 467 label_role_new: New role
468 468 label_role_and_permissions: Roles and permissions
469 469 label_role_anonymous: Anonymous
470 470 label_role_non_member: Non member
471 471 label_member: Member
472 472 label_member_new: New member
473 473 label_member_plural: Members
474 474 label_tracker: Tracker
475 475 label_tracker_plural: Trackers
476 476 label_tracker_new: New tracker
477 477 label_workflow: Workflow
478 478 label_issue_status: Issue status
479 479 label_issue_status_plural: Issue statuses
480 480 label_issue_status_new: New status
481 481 label_issue_category: Issue category
482 482 label_issue_category_plural: Issue categories
483 483 label_issue_category_new: New category
484 484 label_custom_field: Custom field
485 485 label_custom_field_plural: Custom fields
486 486 label_custom_field_new: New custom field
487 487 label_enumerations: Enumerations
488 488 label_enumeration_new: New value
489 489 label_information: Information
490 490 label_information_plural: Information
491 491 label_please_login: Please log in
492 492 label_register: Register
493 493 label_login_with_open_id_option: or login with OpenID
494 494 label_password_lost: Lost password
495 495 label_home: Home
496 496 label_my_page: My page
497 497 label_my_account: My account
498 498 label_my_projects: My projects
499 499 label_my_page_block: My page block
500 500 label_administration: Administration
501 501 label_login: Sign in
502 502 label_logout: Sign out
503 503 label_help: Help
504 504 label_reported_issues: Reported issues
505 505 label_assigned_to_me_issues: Issues assigned to me
506 506 label_last_login: Last connection
507 507 label_registered_on: Registered on
508 508 label_activity: Activity
509 509 label_overall_activity: Overall activity
510 510 label_user_activity: "%{value}'s activity"
511 511 label_new: New
512 512 label_logged_as: Logged in as
513 513 label_environment: Environment
514 514 label_authentication: Authentication
515 515 label_auth_source: Authentication mode
516 516 label_auth_source_new: New authentication mode
517 517 label_auth_source_plural: Authentication modes
518 518 label_subproject_plural: Subprojects
519 519 label_subproject_new: New subproject
520 520 label_and_its_subprojects: "%{value} and its subprojects"
521 521 label_min_max_length: Min - Max length
522 522 label_list: List
523 523 label_date: Date
524 524 label_integer: Integer
525 525 label_float: Float
526 526 label_boolean: Boolean
527 527 label_string: Text
528 528 label_text: Long text
529 529 label_attribute: Attribute
530 530 label_attribute_plural: Attributes
531 531 label_download: "%{count} Download"
532 532 label_download_plural: "%{count} Downloads"
533 533 label_no_data: No data to display
534 534 label_change_status: Change status
535 535 label_history: History
536 536 label_attachment: File
537 537 label_attachment_new: New file
538 538 label_attachment_delete: Delete file
539 539 label_attachment_plural: Files
540 540 label_file_added: File added
541 541 label_report: Report
542 542 label_report_plural: Reports
543 543 label_news: News
544 544 label_news_new: Add news
545 545 label_news_plural: News
546 546 label_news_latest: Latest news
547 547 label_news_view_all: View all news
548 548 label_news_added: News added
549 549 label_news_comment_added: Comment added to a news
550 550 label_settings: Settings
551 551 label_overview: Overview
552 552 label_version: Version
553 553 label_version_new: New version
554 554 label_version_plural: Versions
555 555 label_close_versions: Close completed versions
556 556 label_confirmation: Confirmation
557 557 label_export_to: 'Also available in:'
558 558 label_read: Read...
559 559 label_public_projects: Public projects
560 560 label_open_issues: open
561 561 label_open_issues_plural: open
562 562 label_closed_issues: closed
563 563 label_closed_issues_plural: closed
564 564 label_x_open_issues_abbr_on_total:
565 565 zero: 0 open / %{total}
566 566 one: 1 open / %{total}
567 567 other: "%{count} open / %{total}"
568 568 label_x_open_issues_abbr:
569 569 zero: 0 open
570 570 one: 1 open
571 571 other: "%{count} open"
572 572 label_x_closed_issues_abbr:
573 573 zero: 0 closed
574 574 one: 1 closed
575 575 other: "%{count} closed"
576 576 label_total: Total
577 577 label_permissions: Permissions
578 578 label_current_status: Current status
579 579 label_new_statuses_allowed: New statuses allowed
580 580 label_all: all
581 581 label_none: none
582 582 label_nobody: nobody
583 583 label_next: Next
584 584 label_previous: Previous
585 585 label_used_by: Used by
586 586 label_details: Details
587 587 label_add_note: Add a note
588 588 label_per_page: Per page
589 589 label_calendar: Calendar
590 590 label_months_from: months from
591 591 label_gantt: Gantt
592 592 label_internal: Internal
593 593 label_last_changes: "last %{count} changes"
594 594 label_change_view_all: View all changes
595 595 label_personalize_page: Personalise this page
596 596 label_comment: Comment
597 597 label_comment_plural: Comments
598 598 label_x_comments:
599 599 zero: no comments
600 600 one: 1 comment
601 601 other: "%{count} comments"
602 602 label_comment_add: Add a comment
603 603 label_comment_added: Comment added
604 604 label_comment_delete: Delete comments
605 605 label_query: Custom query
606 606 label_query_plural: Custom queries
607 607 label_query_new: New query
608 608 label_my_queries: My custom queries
609 609 label_filter_add: Add filter
610 610 label_filter_plural: Filters
611 611 label_equals: is
612 612 label_not_equals: is not
613 613 label_in_less_than: in less than
614 614 label_in_more_than: in more than
615 615 label_greater_or_equal: '>='
616 616 label_less_or_equal: '<='
617 617 label_in: in
618 618 label_today: today
619 619 label_all_time: all time
620 620 label_yesterday: yesterday
621 621 label_this_week: this week
622 622 label_last_week: last week
623 623 label_last_n_days: "last %{count} days"
624 624 label_this_month: this month
625 625 label_last_month: last month
626 626 label_this_year: this year
627 627 label_date_range: Date range
628 628 label_less_than_ago: less than days ago
629 629 label_more_than_ago: more than days ago
630 630 label_ago: days ago
631 631 label_contains: contains
632 632 label_not_contains: doesn't contain
633 633 label_day_plural: days
634 634 label_repository: Repository
635 635 label_repository_plural: Repositories
636 636 label_browse: Browse
637 637 label_modification: "%{count} change"
638 638 label_modification_plural: "%{count} changes"
639 639 label_branch: Branch
640 640 label_tag: Tag
641 641 label_revision: Revision
642 642 label_revision_plural: Revisions
643 643 label_revision_id: "Revision %{value}"
644 644 label_associated_revisions: Associated revisions
645 645 label_added: added
646 646 label_modified: modified
647 647 label_copied: copied
648 648 label_renamed: renamed
649 649 label_deleted: deleted
650 650 label_latest_revision: Latest revision
651 651 label_latest_revision_plural: Latest revisions
652 652 label_view_revisions: View revisions
653 653 label_view_all_revisions: View all revisions
654 654 label_max_size: Maximum size
655 655 label_sort_highest: Move to top
656 656 label_sort_higher: Move up
657 657 label_sort_lower: Move down
658 658 label_sort_lowest: Move to bottom
659 659 label_roadmap: Roadmap
660 660 label_roadmap_due_in: "Due in %{value}"
661 661 label_roadmap_overdue: "%{value} late"
662 662 label_roadmap_no_issues: No issues for this version
663 663 label_search: Search
664 664 label_result_plural: Results
665 665 label_all_words: All words
666 666 label_wiki: Wiki
667 667 label_wiki_edit: Wiki edit
668 668 label_wiki_edit_plural: Wiki edits
669 669 label_wiki_page: Wiki page
670 670 label_wiki_page_plural: Wiki pages
671 671 label_index_by_title: Index by title
672 672 label_index_by_date: Index by date
673 673 label_current_version: Current version
674 674 label_preview: Preview
675 675 label_feed_plural: Feeds
676 676 label_changes_details: Details of all changes
677 677 label_issue_tracking: Issue tracking
678 678 label_spent_time: Spent time
679 679 label_overall_spent_time: Overall spent time
680 680 label_f_hour: "%{value} hour"
681 681 label_f_hour_plural: "%{value} hours"
682 682 label_time_tracking: Time tracking
683 683 label_change_plural: Changes
684 684 label_statistics: Statistics
685 685 label_commits_per_month: Commits per month
686 686 label_commits_per_author: Commits per author
687 687 label_view_diff: View differences
688 688 label_diff_inline: inline
689 689 label_diff_side_by_side: side by side
690 690 label_options: Options
691 691 label_copy_workflow_from: Copy workflow from
692 692 label_permissions_report: Permissions report
693 693 label_watched_issues: Watched issues
694 694 label_related_issues: Related issues
695 695 label_applied_status: Applied status
696 696 label_loading: Loading...
697 697 label_relation_new: New relation
698 698 label_relation_delete: Delete relation
699 699 label_relates_to: related to
700 700 label_duplicates: duplicates
701 701 label_duplicated_by: duplicated by
702 702 label_blocks: blocks
703 703 label_blocked_by: blocked by
704 704 label_precedes: precedes
705 705 label_follows: follows
706 706 label_end_to_start: end to start
707 707 label_end_to_end: end to end
708 708 label_start_to_start: start to start
709 709 label_start_to_end: start to end
710 710 label_stay_logged_in: Stay logged in
711 711 label_disabled: disabled
712 712 label_show_completed_versions: Show completed versions
713 713 label_me: me
714 714 label_board: Forum
715 715 label_board_new: New forum
716 716 label_board_plural: Forums
717 717 label_board_locked: Locked
718 718 label_board_sticky: Sticky
719 719 label_topic_plural: Topics
720 720 label_message_plural: Messages
721 721 label_message_last: Last message
722 722 label_message_new: New message
723 723 label_message_posted: Message added
724 724 label_reply_plural: Replies
725 725 label_send_information: Send account information to the user
726 726 label_year: Year
727 727 label_month: Month
728 728 label_week: Week
729 729 label_date_from: From
730 730 label_date_to: To
731 731 label_language_based: Based on user's language
732 732 label_sort_by: "Sort by %{value}"
733 733 label_send_test_email: Send a test email
734 734 label_feeds_access_key: RSS access key
735 735 label_missing_feeds_access_key: Missing a RSS access key
736 736 label_feeds_access_key_created_on: "RSS access key created %{value} ago"
737 737 label_module_plural: Modules
738 738 label_added_time_by: "Added by %{author} %{age} ago"
739 739 label_updated_time_by: "Updated by %{author} %{age} ago"
740 740 label_updated_time: "Updated %{value} ago"
741 741 label_jump_to_a_project: Jump to a project...
742 742 label_file_plural: Files
743 743 label_changeset_plural: Changesets
744 744 label_default_columns: Default columns
745 745 label_no_change_option: (No change)
746 746 label_bulk_edit_selected_issues: Bulk edit selected issues
747 747 label_theme: Theme
748 748 label_default: Default
749 749 label_search_titles_only: Search titles only
750 750 label_user_mail_option_all: "For any event on all my projects"
751 751 label_user_mail_option_selected: "For any event on the selected projects only..."
752 752 label_user_mail_option_none: "No events"
753 753 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
754 754 label_user_mail_option_only_assigned: "Only for things I am assigned to"
755 755 label_user_mail_option_only_owner: "Only for things I am the owner of"
756 756 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
757 757 label_registration_activation_by_email: account activation by email
758 758 label_registration_manual_activation: manual account activation
759 759 label_registration_automatic_activation: automatic account activation
760 760 label_display_per_page: "Per page: %{value}"
761 761 label_age: Age
762 762 label_change_properties: Change properties
763 763 label_general: General
764 764 label_more: More
765 765 label_scm: SCM
766 766 label_plugins: Plugins
767 767 label_ldap_authentication: LDAP authentication
768 768 label_downloads_abbr: D/L
769 769 label_optional_description: Optional description
770 770 label_add_another_file: Add another file
771 771 label_preferences: Preferences
772 772 label_chronological_order: In chronological order
773 773 label_reverse_chronological_order: In reverse chronological order
774 774 label_planning: Planning
775 775 label_incoming_emails: Incoming emails
776 776 label_generate_key: Generate a key
777 777 label_issue_watchers: Watchers
778 778 label_example: Example
779 779 label_display: Display
780 780 label_sort: Sort
781 781 label_ascending: Ascending
782 782 label_descending: Descending
783 783 label_date_from_to: From %{start} to %{end}
784 784 label_wiki_content_added: Wiki page added
785 785 label_wiki_content_updated: Wiki page updated
786 786 label_group: Group
787 787 label_group_plural: Groups
788 788 label_group_new: New group
789 789 label_time_entry_plural: Spent time
790 790 label_version_sharing_none: Not shared
791 791 label_version_sharing_descendants: With subprojects
792 792 label_version_sharing_hierarchy: With project hierarchy
793 793 label_version_sharing_tree: With project tree
794 794 label_version_sharing_system: With all projects
795 795 label_update_issue_done_ratios: Update issue done ratios
796 796 label_copy_source: Source
797 797 label_copy_target: Target
798 798 label_copy_same_as_target: Same as target
799 799 label_display_used_statuses_only: Only display statuses that are used by this tracker
800 800 label_api_access_key: API access key
801 801 label_missing_api_access_key: Missing an API access key
802 802 label_api_access_key_created_on: "API access key created %{value} ago"
803 803 label_profile: Profile
804 804 label_subtask_plural: Subtasks
805 805 label_project_copy_notifications: Send email notifications during the project copy
806 806 label_principal_search: "Search for user or group:"
807 807 label_user_search: "Search for user:"
808 808
809 809 button_login: Login
810 810 button_submit: Submit
811 811 button_save: Save
812 812 button_check_all: Check all
813 813 button_uncheck_all: Uncheck all
814 814 button_collapse_all: Collapse all
815 815 button_expand_all: Expand all
816 816 button_delete: Delete
817 817 button_create: Create
818 818 button_create_and_continue: Create and continue
819 819 button_test: Test
820 820 button_edit: Edit
821 821 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
822 822 button_add: Add
823 823 button_change: Change
824 824 button_apply: Apply
825 825 button_clear: Clear
826 826 button_lock: Lock
827 827 button_unlock: Unlock
828 828 button_download: Download
829 829 button_list: List
830 830 button_view: View
831 831 button_move: Move
832 832 button_move_and_follow: Move and follow
833 833 button_back: Back
834 834 button_cancel: Cancel
835 835 button_activate: Activate
836 836 button_sort: Sort
837 837 button_log_time: Log time
838 838 button_rollback: Rollback to this version
839 839 button_watch: Watch
840 840 button_unwatch: Unwatch
841 841 button_reply: Reply
842 842 button_archive: Archive
843 843 button_unarchive: Unarchive
844 844 button_reset: Reset
845 845 button_rename: Rename
846 846 button_change_password: Change password
847 847 button_copy: Copy
848 848 button_copy_and_follow: Copy and follow
849 849 button_annotate: Annotate
850 850 button_update: Update
851 851 button_configure: Configure
852 852 button_quote: Quote
853 853 button_duplicate: Duplicate
854 854 button_show: Show
855 855
856 856 status_active: active
857 857 status_registered: registered
858 858 status_locked: locked
859 859
860 860 version_status_open: open
861 861 version_status_locked: locked
862 862 version_status_closed: closed
863 863
864 864 field_active: Active
865 865
866 866 text_select_mail_notifications: Select actions for which email notifications should be sent.
867 867 text_regexp_info: eg. ^[A-Z0-9]+$
868 868 text_min_max_length_info: 0 means no restriction
869 869 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
870 870 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
871 871 text_workflow_edit: Select a role and a tracker to edit the workflow
872 872 text_are_you_sure: Are you sure?
873 873 text_are_you_sure_with_children: "Delete issue and all child issues?"
874 874 text_journal_changed: "%{label} changed from %{old} to %{new}"
875 875 text_journal_changed_no_detail: "%{label} updated"
876 876 text_journal_set_to: "%{label} set to %{value}"
877 877 text_journal_deleted: "%{label} deleted (%{old})"
878 878 text_journal_added: "%{label} %{value} added"
879 879 text_tip_issue_begin_day: task beginning this day
880 880 text_tip_issue_end_day: task ending this day
881 881 text_tip_issue_begin_end_day: task beginning and ending this day
882 text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier cannot be changed.'
882 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
883 883 text_caracters_maximum: "%{count} characters maximum."
884 884 text_caracters_minimum: "Must be at least %{count} characters long."
885 885 text_length_between: "Length between %{min} and %{max} characters."
886 886 text_tracker_no_workflow: No workflow defined for this tracker
887 887 text_unallowed_characters: Unallowed characters
888 888 text_comma_separated: Multiple values allowed (comma separated).
889 889 text_line_separated: Multiple values allowed (one line for each value).
890 890 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
891 891 text_issue_added: "Issue %{id} has been reported by %{author}."
892 892 text_issue_updated: "Issue %{id} has been updated by %{author}."
893 893 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
894 894 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
895 895 text_issue_category_destroy_assignments: Remove category assignments
896 896 text_issue_category_reassign_to: Reassign issues to this category
897 897 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)."
898 898 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."
899 899 text_load_default_configuration: Load the default configuration
900 900 text_status_changed_by_changeset: "Applied in changeset %{value}."
901 901 text_time_logged_by_changeset: "Applied in changeset %{value}."
902 902 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
903 903 text_select_project_modules: 'Select modules to enable for this project:'
904 904 text_default_administrator_account_changed: Default administrator account changed
905 905 text_file_repository_writable: Attachments directory writable
906 906 text_plugin_assets_writable: Plugin assets directory writable
907 907 text_rmagick_available: RMagick available (optional)
908 908 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
909 909 text_destroy_time_entries: Delete reported hours
910 910 text_assign_time_entries_to_project: Assign reported hours to the project
911 911 text_reassign_time_entries: 'Reassign reported hours to this issue:'
912 912 text_user_wrote: "%{value} wrote:"
913 913 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
914 914 text_enumeration_category_reassign_to: 'Reassign them to this value:'
915 915 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."
916 916 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."
917 917 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
918 918 text_custom_field_possible_values_info: 'One line for each value'
919 919 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
920 920 text_wiki_page_nullify_children: "Keep child pages as root pages"
921 921 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
922 922 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
923 923 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?"
924 924 text_zoom_in: Zoom in
925 925 text_zoom_out: Zoom out
926 926 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
927 927
928 928 default_role_manager: Manager
929 929 default_role_developer: Developer
930 930 default_role_reporter: Reporter
931 931 default_tracker_bug: Bug
932 932 default_tracker_feature: Feature
933 933 default_tracker_support: Support
934 934 default_issue_status_new: New
935 935 default_issue_status_in_progress: In Progress
936 936 default_issue_status_resolved: Resolved
937 937 default_issue_status_feedback: Feedback
938 938 default_issue_status_closed: Closed
939 939 default_issue_status_rejected: Rejected
940 940 default_doc_category_user: User documentation
941 941 default_doc_category_tech: Technical documentation
942 942 default_priority_low: Low
943 943 default_priority_normal: Normal
944 944 default_priority_high: High
945 945 default_priority_urgent: Urgent
946 946 default_priority_immediate: Immediate
947 947 default_activity_design: Design
948 948 default_activity_development: Development
949 949
950 950 enumeration_issue_priorities: Issue priorities
951 951 enumeration_doc_categories: Document categories
952 952 enumeration_activities: Activities (time tracking)
953 953 enumeration_system_activity: System Activity
954 954 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
955 955 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
956 956 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
957 957 text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
958 958 label_issue_note_added: Note added
959 959 label_issue_status_updated: Status updated
960 960 label_issue_priority_updated: Priority updated
961 961 label_issues_visibility_own: Issues created by or assigned to the user
962 962 field_issues_visibility: Issues visibility
963 963 label_issues_visibility_all: All issues
964 964 permission_set_own_issues_private: Set own issues public or private
965 965 field_is_private: Private
966 966 permission_set_issues_private: Set issues public or private
967 967 label_issues_visibility_public: All non private issues
968 968 text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
969 969 field_commit_logs_encoding: Commit messages encoding
970 970 field_scm_path_encoding: Path encoding
971 971 text_scm_path_encoding_note: "Default: UTF-8"
972 972 field_path_to_repository: Path to repository
973 973 field_root_directory: Root directory
974 974 field_cvs_module: Module
975 975 field_cvsroot: CVSROOT
976 976 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
977 977 text_scm_command: Command
978 978 text_scm_command_version: Version
979 979 label_git_report_last_commit: Report last commit for files and directories
980 980 text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
981 981 text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
982 982 notice_issue_successful_create: Issue %{id} created.
983 983 label_between: between
984 984 label_diff: diff
985 985 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
986 986 description_query_sort_criteria_direction: Sort direction
987 987 description_project_scope: Search scope
988 988 description_filter: Filter
989 989 description_user_mail_notification: Mail notification settings
990 990 description_date_from: Enter start date
991 991 description_message_content: Message content
992 992 description_available_columns: Available Columns
993 993 description_date_range_interval: Choose range by selecting start and end date
994 994 description_issue_category_reassign: Choose issue category
995 995 description_search: Searchfield
996 996 description_notes: Notes
997 997 description_date_range_list: Choose range from list
998 998 description_choose_project: Projects
999 999 description_date_to: Enter end date
1000 1000 description_query_sort_criteria_attribute: Sort attribute
1001 1001 description_wiki_subpages_reassign: Choose new parent page
1002 1002 description_selected_columns: Selected Columns
1003 1003 label_parent_revision: Parent
1004 1004 label_child_revision: Child
1005 1005 button_edit_section: Edit this section
1006 1006 setting_repositories_encodings: Attachments and repositories encodings
1007 1007 description_all_columns: All Columns
1008 1008 button_export: Export
1009 1009 label_export_options: "%{export_format} export options"
1010 1010 error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
1011 1011 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
1012 1012 label_x_issues:
1013 1013 zero: 0 issue
1014 1014 one: 1 issue
1015 1015 other: "%{count} issues"
1016 1016 label_repository_new: New repository
1017 1017 field_repository_is_default: Main repository
1018 1018 label_copy_attachments: Copy attachments
1019 1019 label_item_position: "%{position} of %{count}"
1020 1020 label_completed_versions: Completed versions
@@ -1,1016 +1,1016
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_days:
53 53 one: "1 day"
54 54 other: "%{count} days"
55 55 about_x_months:
56 56 one: "about 1 month"
57 57 other: "about %{count} months"
58 58 x_months:
59 59 one: "1 month"
60 60 other: "%{count} months"
61 61 about_x_years:
62 62 one: "about 1 year"
63 63 other: "about %{count} years"
64 64 over_x_years:
65 65 one: "over 1 year"
66 66 other: "over %{count} years"
67 67 almost_x_years:
68 68 one: "almost 1 year"
69 69 other: "almost %{count} years"
70 70
71 71 number:
72 72 format:
73 73 separator: "."
74 74 delimiter: ""
75 75 precision: 3
76 76
77 77 human:
78 78 format:
79 79 delimiter: ""
80 80 precision: 1
81 81 storage_units:
82 82 format: "%n %u"
83 83 units:
84 84 byte:
85 85 one: "Byte"
86 86 other: "Bytes"
87 87 kb: "kB"
88 88 mb: "MB"
89 89 gb: "GB"
90 90 tb: "TB"
91 91
92 92 # Used in array.to_sentence.
93 93 support:
94 94 array:
95 95 sentence_connector: "and"
96 96 skip_last_comma: false
97 97
98 98 activerecord:
99 99 errors:
100 100 template:
101 101 header:
102 102 one: "1 error prohibited this %{model} from being saved"
103 103 other: "%{count} errors prohibited this %{model} from being saved"
104 104 messages:
105 105 inclusion: "is not included in the list"
106 106 exclusion: "is reserved"
107 107 invalid: "is invalid"
108 108 confirmation: "doesn't match confirmation"
109 109 accepted: "must be accepted"
110 110 empty: "can't be empty"
111 111 blank: "can't be blank"
112 112 too_long: "is too long (maximum is %{count} characters)"
113 113 too_short: "is too short (minimum is %{count} characters)"
114 114 wrong_length: "is the wrong length (should be %{count} characters)"
115 115 taken: "has already been taken"
116 116 not_a_number: "is not a number"
117 117 not_a_date: "is not a valid date"
118 118 greater_than: "must be greater than %{count}"
119 119 greater_than_or_equal_to: "must be greater than or equal to %{count}"
120 120 equal_to: "must be equal to %{count}"
121 121 less_than: "must be less than %{count}"
122 122 less_than_or_equal_to: "must be less than or equal to %{count}"
123 123 odd: "must be odd"
124 124 even: "must be even"
125 125 greater_than_start_date: "must be greater than start date"
126 126 not_same_project: "doesn't belong to the same project"
127 127 circular_dependency: "This relation would create a circular dependency"
128 128 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
129 129
130 130 actionview_instancetag_blank_option: Please select
131 131
132 132 general_text_No: 'No'
133 133 general_text_Yes: 'Yes'
134 134 general_text_no: 'no'
135 135 general_text_yes: 'yes'
136 136 general_lang_name: 'English'
137 137 general_csv_separator: ','
138 138 general_csv_decimal_separator: '.'
139 139 general_csv_encoding: ISO-8859-1
140 140 general_pdf_encoding: UTF-8
141 141 general_first_day_of_week: '7'
142 142
143 143 notice_account_updated: Account was successfully updated.
144 144 notice_account_invalid_creditentials: Invalid user or password
145 145 notice_account_password_updated: Password was successfully updated.
146 146 notice_account_wrong_password: Wrong password
147 147 notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you.
148 148 notice_account_unknown_email: Unknown user.
149 149 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
150 150 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
151 151 notice_account_activated: Your account has been activated. You can now log in.
152 152 notice_successful_create: Successful creation.
153 153 notice_successful_update: Successful update.
154 154 notice_successful_delete: Successful deletion.
155 155 notice_successful_connection: Successful connection.
156 156 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
157 157 notice_locking_conflict: Data has been updated by another user.
158 158 notice_not_authorized: You are not authorized to access this page.
159 159 notice_not_authorized_archived_project: The project you're trying to access has been archived.
160 160 notice_email_sent: "An email was sent to %{value}"
161 161 notice_email_error: "An error occurred while sending mail (%{value})"
162 162 notice_feeds_access_key_reseted: Your RSS access key was reset.
163 163 notice_api_access_key_reseted: Your API access key was reset.
164 164 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
165 165 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
166 166 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
167 167 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
168 168 notice_account_pending: "Your account was created and is now pending administrator approval."
169 169 notice_default_data_loaded: Default configuration successfully loaded.
170 170 notice_unable_delete_version: Unable to delete version.
171 171 notice_unable_delete_time_entry: Unable to delete time log entry.
172 172 notice_issue_done_ratios_updated: Issue done ratios updated.
173 173 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
174 174 notice_issue_successful_create: "Issue %{id} created."
175 175
176 176 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
177 177 error_scm_not_found: "The entry or revision was not found in the repository."
178 178 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
179 179 error_scm_annotate: "The entry does not exist or cannot be annotated."
180 180 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
181 181 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
182 182 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
183 183 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
184 184 error_can_not_delete_custom_field: Unable to delete custom field
185 185 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
186 186 error_can_not_remove_role: "This role is in use and cannot be deleted."
187 187 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
188 188 error_can_not_archive_project: This project cannot be archived
189 189 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
190 190 error_workflow_copy_source: 'Please select a source tracker or role'
191 191 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
192 192 error_unable_delete_issue_status: 'Unable to delete issue status'
193 193 error_unable_to_connect: "Unable to connect (%{value})"
194 194 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
195 195 warning_attachments_not_saved: "%{count} file(s) could not be saved."
196 196
197 197 mail_subject_lost_password: "Your %{value} password"
198 198 mail_body_lost_password: 'To change your password, click on the following link:'
199 199 mail_subject_register: "Your %{value} account activation"
200 200 mail_body_register: 'To activate your account, click on the following link:'
201 201 mail_body_account_information_external: "You can use your %{value} account to log in."
202 202 mail_body_account_information: Your account information
203 203 mail_subject_account_activation_request: "%{value} account activation request"
204 204 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
205 205 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
206 206 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
207 207 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
208 208 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
209 209 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
210 210 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
211 211
212 212 gui_validation_error: 1 error
213 213 gui_validation_error_plural: "%{count} errors"
214 214
215 215 field_name: Name
216 216 field_description: Description
217 217 field_summary: Summary
218 218 field_is_required: Required
219 219 field_firstname: First name
220 220 field_lastname: Last name
221 221 field_mail: Email
222 222 field_filename: File
223 223 field_filesize: Size
224 224 field_downloads: Downloads
225 225 field_author: Author
226 226 field_created_on: Created
227 227 field_updated_on: Updated
228 228 field_field_format: Format
229 229 field_is_for_all: For all projects
230 230 field_possible_values: Possible values
231 231 field_regexp: Regular expression
232 232 field_min_length: Minimum length
233 233 field_max_length: Maximum length
234 234 field_value: Value
235 235 field_category: Category
236 236 field_title: Title
237 237 field_project: Project
238 238 field_issue: Issue
239 239 field_status: Status
240 240 field_notes: Notes
241 241 field_is_closed: Issue closed
242 242 field_is_default: Default value
243 243 field_tracker: Tracker
244 244 field_subject: Subject
245 245 field_due_date: Due date
246 246 field_assigned_to: Assignee
247 247 field_priority: Priority
248 248 field_fixed_version: Target version
249 249 field_user: User
250 250 field_principal: Principal
251 251 field_role: Role
252 252 field_homepage: Homepage
253 253 field_is_public: Public
254 254 field_parent: Subproject of
255 255 field_is_in_roadmap: Issues displayed in roadmap
256 256 field_login: Login
257 257 field_mail_notification: Email notifications
258 258 field_admin: Administrator
259 259 field_last_login_on: Last connection
260 260 field_language: Language
261 261 field_effective_date: Date
262 262 field_password: Password
263 263 field_new_password: New password
264 264 field_password_confirmation: Confirmation
265 265 field_version: Version
266 266 field_type: Type
267 267 field_host: Host
268 268 field_port: Port
269 269 field_account: Account
270 270 field_base_dn: Base DN
271 271 field_attr_login: Login attribute
272 272 field_attr_firstname: Firstname attribute
273 273 field_attr_lastname: Lastname attribute
274 274 field_attr_mail: Email attribute
275 275 field_onthefly: On-the-fly user creation
276 276 field_start_date: Start date
277 277 field_done_ratio: "% Done"
278 278 field_auth_source: Authentication mode
279 279 field_hide_mail: Hide my email address
280 280 field_comments: Comment
281 281 field_url: URL
282 282 field_start_page: Start page
283 283 field_subproject: Subproject
284 284 field_hours: Hours
285 285 field_activity: Activity
286 286 field_spent_on: Date
287 287 field_identifier: Identifier
288 288 field_is_filter: Used as a filter
289 289 field_issue_to: Related issue
290 290 field_delay: Delay
291 291 field_assignable: Issues can be assigned to this role
292 292 field_redirect_existing_links: Redirect existing links
293 293 field_estimated_hours: Estimated time
294 294 field_column_names: Columns
295 295 field_time_entries: Log time
296 296 field_time_zone: Time zone
297 297 field_searchable: Searchable
298 298 field_default_value: Default value
299 299 field_comments_sorting: Display comments
300 300 field_parent_title: Parent page
301 301 field_editable: Editable
302 302 field_watcher: Watcher
303 303 field_identity_url: OpenID URL
304 304 field_content: Content
305 305 field_group_by: Group results by
306 306 field_sharing: Sharing
307 307 field_parent_issue: Parent task
308 308 field_member_of_group: "Assignee's group"
309 309 field_assigned_to_role: "Assignee's role"
310 310 field_text: Text field
311 311 field_visible: Visible
312 312 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
313 313 field_issues_visibility: Issues visibility
314 314 field_is_private: Private
315 315 field_commit_logs_encoding: Commit messages encoding
316 316 field_scm_path_encoding: Path encoding
317 317 field_path_to_repository: Path to repository
318 318 field_root_directory: Root directory
319 319 field_cvsroot: CVSROOT
320 320 field_cvs_module: Module
321 321 field_repository_is_default: Main repository
322 322
323 323 setting_app_title: Application title
324 324 setting_app_subtitle: Application subtitle
325 325 setting_welcome_text: Welcome text
326 326 setting_default_language: Default language
327 327 setting_login_required: Authentication required
328 328 setting_self_registration: Self-registration
329 329 setting_attachment_max_size: Maximum attachment size
330 330 setting_issues_export_limit: Issues export limit
331 331 setting_mail_from: Emission email address
332 332 setting_bcc_recipients: Blind carbon copy recipients (bcc)
333 333 setting_plain_text_mail: Plain text mail (no HTML)
334 334 setting_host_name: Host name and path
335 335 setting_text_formatting: Text formatting
336 336 setting_wiki_compression: Wiki history compression
337 337 setting_feeds_limit: Maximum number of items in Atom feeds
338 338 setting_default_projects_public: New projects are public by default
339 339 setting_autofetch_changesets: Fetch commits automatically
340 340 setting_sys_api_enabled: Enable WS for repository management
341 341 setting_commit_ref_keywords: Referencing keywords
342 342 setting_commit_fix_keywords: Fixing keywords
343 343 setting_autologin: Autologin
344 344 setting_date_format: Date format
345 345 setting_time_format: Time format
346 346 setting_cross_project_issue_relations: Allow cross-project issue relations
347 347 setting_issue_list_default_columns: Default columns displayed on the issue list
348 348 setting_repositories_encodings: Attachments and repositories encodings
349 349 setting_emails_header: Emails header
350 350 setting_emails_footer: Emails footer
351 351 setting_protocol: Protocol
352 352 setting_per_page_options: Objects per page options
353 353 setting_user_format: Users display format
354 354 setting_activity_days_default: Days displayed on project activity
355 355 setting_display_subprojects_issues: Display subprojects issues on main projects by default
356 356 setting_enabled_scm: Enabled SCM
357 357 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
358 358 setting_mail_handler_api_enabled: Enable WS for incoming emails
359 359 setting_mail_handler_api_key: API key
360 360 setting_sequential_project_identifiers: Generate sequential project identifiers
361 361 setting_gravatar_enabled: Use Gravatar user icons
362 362 setting_gravatar_default: Default Gravatar image
363 363 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
364 364 setting_file_max_size_displayed: Maximum size of text files displayed inline
365 365 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
366 366 setting_openid: Allow OpenID login and registration
367 367 setting_password_min_length: Minimum password length
368 368 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
369 369 setting_default_projects_modules: Default enabled modules for new projects
370 370 setting_issue_done_ratio: Calculate the issue done ratio with
371 371 setting_issue_done_ratio_issue_field: Use the issue field
372 372 setting_issue_done_ratio_issue_status: Use the issue status
373 373 setting_start_of_week: Start calendars on
374 374 setting_rest_api_enabled: Enable REST web service
375 375 setting_cache_formatted_text: Cache formatted text
376 376 setting_default_notification_option: Default notification option
377 377 setting_commit_logtime_enabled: Enable time logging
378 378 setting_commit_logtime_activity_id: Activity for logged time
379 379 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
380 380 setting_issue_group_assignment: Allow issue assignment to groups
381 381 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
382 382
383 383 permission_add_project: Create project
384 384 permission_add_subprojects: Create subprojects
385 385 permission_edit_project: Edit project
386 386 permission_select_project_modules: Select project modules
387 387 permission_manage_members: Manage members
388 388 permission_manage_project_activities: Manage project activities
389 389 permission_manage_versions: Manage versions
390 390 permission_manage_categories: Manage issue categories
391 391 permission_view_issues: View Issues
392 392 permission_add_issues: Add issues
393 393 permission_edit_issues: Edit issues
394 394 permission_manage_issue_relations: Manage issue relations
395 395 permission_set_issues_private: Set issues public or private
396 396 permission_set_own_issues_private: Set own issues public or private
397 397 permission_add_issue_notes: Add notes
398 398 permission_edit_issue_notes: Edit notes
399 399 permission_edit_own_issue_notes: Edit own notes
400 400 permission_move_issues: Move issues
401 401 permission_delete_issues: Delete issues
402 402 permission_manage_public_queries: Manage public queries
403 403 permission_save_queries: Save queries
404 404 permission_view_gantt: View gantt chart
405 405 permission_view_calendar: View calendar
406 406 permission_view_issue_watchers: View watchers list
407 407 permission_add_issue_watchers: Add watchers
408 408 permission_delete_issue_watchers: Delete watchers
409 409 permission_log_time: Log spent time
410 410 permission_view_time_entries: View spent time
411 411 permission_edit_time_entries: Edit time logs
412 412 permission_edit_own_time_entries: Edit own time logs
413 413 permission_manage_news: Manage news
414 414 permission_comment_news: Comment news
415 415 permission_manage_documents: Manage documents
416 416 permission_view_documents: View documents
417 417 permission_manage_files: Manage files
418 418 permission_view_files: View files
419 419 permission_manage_wiki: Manage wiki
420 420 permission_rename_wiki_pages: Rename wiki pages
421 421 permission_delete_wiki_pages: Delete wiki pages
422 422 permission_view_wiki_pages: View wiki
423 423 permission_view_wiki_edits: View wiki history
424 424 permission_edit_wiki_pages: Edit wiki pages
425 425 permission_delete_wiki_pages_attachments: Delete attachments
426 426 permission_protect_wiki_pages: Protect wiki pages
427 427 permission_manage_repository: Manage repository
428 428 permission_browse_repository: Browse repository
429 429 permission_view_changesets: View changesets
430 430 permission_commit_access: Commit access
431 431 permission_manage_boards: Manage forums
432 432 permission_view_messages: View messages
433 433 permission_add_messages: Post messages
434 434 permission_edit_messages: Edit messages
435 435 permission_edit_own_messages: Edit own messages
436 436 permission_delete_messages: Delete messages
437 437 permission_delete_own_messages: Delete own messages
438 438 permission_export_wiki_pages: Export wiki pages
439 439 permission_manage_subtasks: Manage subtasks
440 440
441 441 project_module_issue_tracking: Issue tracking
442 442 project_module_time_tracking: Time tracking
443 443 project_module_news: News
444 444 project_module_documents: Documents
445 445 project_module_files: Files
446 446 project_module_wiki: Wiki
447 447 project_module_repository: Repository
448 448 project_module_boards: Forums
449 449 project_module_calendar: Calendar
450 450 project_module_gantt: Gantt
451 451
452 452 label_user: User
453 453 label_user_plural: Users
454 454 label_user_new: New user
455 455 label_user_anonymous: Anonymous
456 456 label_project: Project
457 457 label_project_new: New project
458 458 label_project_plural: Projects
459 459 label_x_projects:
460 460 zero: no projects
461 461 one: 1 project
462 462 other: "%{count} projects"
463 463 label_project_all: All Projects
464 464 label_project_latest: Latest projects
465 465 label_issue: Issue
466 466 label_issue_new: New issue
467 467 label_issue_plural: Issues
468 468 label_issue_view_all: View all issues
469 469 label_issues_by: "Issues by %{value}"
470 470 label_issue_added: Issue added
471 471 label_issue_updated: Issue updated
472 472 label_issue_note_added: Note added
473 473 label_issue_status_updated: Status updated
474 474 label_issue_priority_updated: Priority updated
475 475 label_document: Document
476 476 label_document_new: New document
477 477 label_document_plural: Documents
478 478 label_document_added: Document added
479 479 label_role: Role
480 480 label_role_plural: Roles
481 481 label_role_new: New role
482 482 label_role_and_permissions: Roles and permissions
483 483 label_role_anonymous: Anonymous
484 484 label_role_non_member: Non member
485 485 label_member: Member
486 486 label_member_new: New member
487 487 label_member_plural: Members
488 488 label_tracker: Tracker
489 489 label_tracker_plural: Trackers
490 490 label_tracker_new: New tracker
491 491 label_workflow: Workflow
492 492 label_issue_status: Issue status
493 493 label_issue_status_plural: Issue statuses
494 494 label_issue_status_new: New status
495 495 label_issue_category: Issue category
496 496 label_issue_category_plural: Issue categories
497 497 label_issue_category_new: New category
498 498 label_custom_field: Custom field
499 499 label_custom_field_plural: Custom fields
500 500 label_custom_field_new: New custom field
501 501 label_enumerations: Enumerations
502 502 label_enumeration_new: New value
503 503 label_information: Information
504 504 label_information_plural: Information
505 505 label_please_login: Please log in
506 506 label_register: Register
507 507 label_login_with_open_id_option: or login with OpenID
508 508 label_password_lost: Lost password
509 509 label_home: Home
510 510 label_my_page: My page
511 511 label_my_account: My account
512 512 label_my_projects: My projects
513 513 label_my_page_block: My page block
514 514 label_administration: Administration
515 515 label_login: Sign in
516 516 label_logout: Sign out
517 517 label_help: Help
518 518 label_reported_issues: Reported issues
519 519 label_assigned_to_me_issues: Issues assigned to me
520 520 label_last_login: Last connection
521 521 label_registered_on: Registered on
522 522 label_activity: Activity
523 523 label_overall_activity: Overall activity
524 524 label_user_activity: "%{value}'s activity"
525 525 label_new: New
526 526 label_logged_as: Logged in as
527 527 label_environment: Environment
528 528 label_authentication: Authentication
529 529 label_auth_source: Authentication mode
530 530 label_auth_source_new: New authentication mode
531 531 label_auth_source_plural: Authentication modes
532 532 label_subproject_plural: Subprojects
533 533 label_subproject_new: New subproject
534 534 label_and_its_subprojects: "%{value} and its subprojects"
535 535 label_min_max_length: Min - Max length
536 536 label_list: List
537 537 label_date: Date
538 538 label_integer: Integer
539 539 label_float: Float
540 540 label_boolean: Boolean
541 541 label_string: Text
542 542 label_text: Long text
543 543 label_attribute: Attribute
544 544 label_attribute_plural: Attributes
545 545 label_download: "%{count} Download"
546 546 label_download_plural: "%{count} Downloads"
547 547 label_no_data: No data to display
548 548 label_change_status: Change status
549 549 label_history: History
550 550 label_attachment: File
551 551 label_attachment_new: New file
552 552 label_attachment_delete: Delete file
553 553 label_attachment_plural: Files
554 554 label_file_added: File added
555 555 label_report: Report
556 556 label_report_plural: Reports
557 557 label_news: News
558 558 label_news_new: Add news
559 559 label_news_plural: News
560 560 label_news_latest: Latest news
561 561 label_news_view_all: View all news
562 562 label_news_added: News added
563 563 label_news_comment_added: Comment added to a news
564 564 label_settings: Settings
565 565 label_overview: Overview
566 566 label_version: Version
567 567 label_version_new: New version
568 568 label_version_plural: Versions
569 569 label_close_versions: Close completed versions
570 570 label_confirmation: Confirmation
571 571 label_export_to: 'Also available in:'
572 572 label_read: Read...
573 573 label_public_projects: Public projects
574 574 label_open_issues: open
575 575 label_open_issues_plural: open
576 576 label_closed_issues: closed
577 577 label_closed_issues_plural: closed
578 578 label_x_open_issues_abbr_on_total:
579 579 zero: 0 open / %{total}
580 580 one: 1 open / %{total}
581 581 other: "%{count} open / %{total}"
582 582 label_x_open_issues_abbr:
583 583 zero: 0 open
584 584 one: 1 open
585 585 other: "%{count} open"
586 586 label_x_closed_issues_abbr:
587 587 zero: 0 closed
588 588 one: 1 closed
589 589 other: "%{count} closed"
590 590 label_x_issues:
591 591 zero: 0 issues
592 592 one: 1 issue
593 593 other: "%{count} issues"
594 594 label_total: Total
595 595 label_permissions: Permissions
596 596 label_current_status: Current status
597 597 label_new_statuses_allowed: New statuses allowed
598 598 label_all: all
599 599 label_none: none
600 600 label_nobody: nobody
601 601 label_next: Next
602 602 label_previous: Previous
603 603 label_used_by: Used by
604 604 label_details: Details
605 605 label_add_note: Add a note
606 606 label_per_page: Per page
607 607 label_calendar: Calendar
608 608 label_months_from: months from
609 609 label_gantt: Gantt
610 610 label_internal: Internal
611 611 label_last_changes: "last %{count} changes"
612 612 label_change_view_all: View all changes
613 613 label_personalize_page: Personalize this page
614 614 label_comment: Comment
615 615 label_comment_plural: Comments
616 616 label_x_comments:
617 617 zero: no comments
618 618 one: 1 comment
619 619 other: "%{count} comments"
620 620 label_comment_add: Add a comment
621 621 label_comment_added: Comment added
622 622 label_comment_delete: Delete comments
623 623 label_query: Custom query
624 624 label_query_plural: Custom queries
625 625 label_query_new: New query
626 626 label_my_queries: My custom queries
627 627 label_filter_add: Add filter
628 628 label_filter_plural: Filters
629 629 label_equals: is
630 630 label_not_equals: is not
631 631 label_in_less_than: in less than
632 632 label_in_more_than: in more than
633 633 label_greater_or_equal: '>='
634 634 label_less_or_equal: '<='
635 635 label_between: between
636 636 label_in: in
637 637 label_today: today
638 638 label_all_time: all time
639 639 label_yesterday: yesterday
640 640 label_this_week: this week
641 641 label_last_week: last week
642 642 label_last_n_days: "last %{count} days"
643 643 label_this_month: this month
644 644 label_last_month: last month
645 645 label_this_year: this year
646 646 label_date_range: Date range
647 647 label_less_than_ago: less than days ago
648 648 label_more_than_ago: more than days ago
649 649 label_ago: days ago
650 650 label_contains: contains
651 651 label_not_contains: doesn't contain
652 652 label_day_plural: days
653 653 label_repository: Repository
654 654 label_repository_new: New repository
655 655 label_repository_plural: Repositories
656 656 label_browse: Browse
657 657 label_modification: "%{count} change"
658 658 label_modification_plural: "%{count} changes"
659 659 label_branch: Branch
660 660 label_tag: Tag
661 661 label_revision: Revision
662 662 label_revision_plural: Revisions
663 663 label_revision_id: "Revision %{value}"
664 664 label_associated_revisions: Associated revisions
665 665 label_added: added
666 666 label_modified: modified
667 667 label_copied: copied
668 668 label_renamed: renamed
669 669 label_deleted: deleted
670 670 label_latest_revision: Latest revision
671 671 label_latest_revision_plural: Latest revisions
672 672 label_view_revisions: View revisions
673 673 label_view_all_revisions: View all revisions
674 674 label_max_size: Maximum size
675 675 label_sort_highest: Move to top
676 676 label_sort_higher: Move up
677 677 label_sort_lower: Move down
678 678 label_sort_lowest: Move to bottom
679 679 label_roadmap: Roadmap
680 680 label_roadmap_due_in: "Due in %{value}"
681 681 label_roadmap_overdue: "%{value} late"
682 682 label_roadmap_no_issues: No issues for this version
683 683 label_search: Search
684 684 label_result_plural: Results
685 685 label_all_words: All words
686 686 label_wiki: Wiki
687 687 label_wiki_edit: Wiki edit
688 688 label_wiki_edit_plural: Wiki edits
689 689 label_wiki_page: Wiki page
690 690 label_wiki_page_plural: Wiki pages
691 691 label_index_by_title: Index by title
692 692 label_index_by_date: Index by date
693 693 label_current_version: Current version
694 694 label_preview: Preview
695 695 label_feed_plural: Feeds
696 696 label_changes_details: Details of all changes
697 697 label_issue_tracking: Issue tracking
698 698 label_spent_time: Spent time
699 699 label_overall_spent_time: Overall spent time
700 700 label_f_hour: "%{value} hour"
701 701 label_f_hour_plural: "%{value} hours"
702 702 label_time_tracking: Time tracking
703 703 label_change_plural: Changes
704 704 label_statistics: Statistics
705 705 label_commits_per_month: Commits per month
706 706 label_commits_per_author: Commits per author
707 707 label_diff: diff
708 708 label_view_diff: View differences
709 709 label_diff_inline: inline
710 710 label_diff_side_by_side: side by side
711 711 label_options: Options
712 712 label_copy_workflow_from: Copy workflow from
713 713 label_permissions_report: Permissions report
714 714 label_watched_issues: Watched issues
715 715 label_related_issues: Related issues
716 716 label_applied_status: Applied status
717 717 label_loading: Loading...
718 718 label_relation_new: New relation
719 719 label_relation_delete: Delete relation
720 720 label_relates_to: related to
721 721 label_duplicates: duplicates
722 722 label_duplicated_by: duplicated by
723 723 label_blocks: blocks
724 724 label_blocked_by: blocked by
725 725 label_precedes: precedes
726 726 label_follows: follows
727 727 label_end_to_start: end to start
728 728 label_end_to_end: end to end
729 729 label_start_to_start: start to start
730 730 label_start_to_end: start to end
731 731 label_stay_logged_in: Stay logged in
732 732 label_disabled: disabled
733 733 label_show_completed_versions: Show completed versions
734 734 label_me: me
735 735 label_board: Forum
736 736 label_board_new: New forum
737 737 label_board_plural: Forums
738 738 label_board_locked: Locked
739 739 label_board_sticky: Sticky
740 740 label_topic_plural: Topics
741 741 label_message_plural: Messages
742 742 label_message_last: Last message
743 743 label_message_new: New message
744 744 label_message_posted: Message added
745 745 label_reply_plural: Replies
746 746 label_send_information: Send account information to the user
747 747 label_year: Year
748 748 label_month: Month
749 749 label_week: Week
750 750 label_date_from: From
751 751 label_date_to: To
752 752 label_language_based: Based on user's language
753 753 label_sort_by: "Sort by %{value}"
754 754 label_send_test_email: Send a test email
755 755 label_feeds_access_key: RSS access key
756 756 label_missing_feeds_access_key: Missing a RSS access key
757 757 label_feeds_access_key_created_on: "RSS access key created %{value} ago"
758 758 label_module_plural: Modules
759 759 label_added_time_by: "Added by %{author} %{age} ago"
760 760 label_updated_time_by: "Updated by %{author} %{age} ago"
761 761 label_updated_time: "Updated %{value} ago"
762 762 label_jump_to_a_project: Jump to a project...
763 763 label_file_plural: Files
764 764 label_changeset_plural: Changesets
765 765 label_default_columns: Default columns
766 766 label_no_change_option: (No change)
767 767 label_bulk_edit_selected_issues: Bulk edit selected issues
768 768 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
769 769 label_theme: Theme
770 770 label_default: Default
771 771 label_search_titles_only: Search titles only
772 772 label_user_mail_option_all: "For any event on all my projects"
773 773 label_user_mail_option_selected: "For any event on the selected projects only..."
774 774 label_user_mail_option_none: "No events"
775 775 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
776 776 label_user_mail_option_only_assigned: "Only for things I am assigned to"
777 777 label_user_mail_option_only_owner: "Only for things I am the owner of"
778 778 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
779 779 label_registration_activation_by_email: account activation by email
780 780 label_registration_manual_activation: manual account activation
781 781 label_registration_automatic_activation: automatic account activation
782 782 label_display_per_page: "Per page: %{value}"
783 783 label_age: Age
784 784 label_change_properties: Change properties
785 785 label_general: General
786 786 label_more: More
787 787 label_scm: SCM
788 788 label_plugins: Plugins
789 789 label_ldap_authentication: LDAP authentication
790 790 label_downloads_abbr: D/L
791 791 label_optional_description: Optional description
792 792 label_add_another_file: Add another file
793 793 label_preferences: Preferences
794 794 label_chronological_order: In chronological order
795 795 label_reverse_chronological_order: In reverse chronological order
796 796 label_planning: Planning
797 797 label_incoming_emails: Incoming emails
798 798 label_generate_key: Generate a key
799 799 label_issue_watchers: Watchers
800 800 label_example: Example
801 801 label_display: Display
802 802 label_sort: Sort
803 803 label_ascending: Ascending
804 804 label_descending: Descending
805 805 label_date_from_to: From %{start} to %{end}
806 806 label_wiki_content_added: Wiki page added
807 807 label_wiki_content_updated: Wiki page updated
808 808 label_group: Group
809 809 label_group_plural: Groups
810 810 label_group_new: New group
811 811 label_time_entry_plural: Spent time
812 812 label_version_sharing_none: Not shared
813 813 label_version_sharing_descendants: With subprojects
814 814 label_version_sharing_hierarchy: With project hierarchy
815 815 label_version_sharing_tree: With project tree
816 816 label_version_sharing_system: With all projects
817 817 label_update_issue_done_ratios: Update issue done ratios
818 818 label_copy_source: Source
819 819 label_copy_target: Target
820 820 label_copy_same_as_target: Same as target
821 821 label_display_used_statuses_only: Only display statuses that are used by this tracker
822 822 label_api_access_key: API access key
823 823 label_missing_api_access_key: Missing an API access key
824 824 label_api_access_key_created_on: "API access key created %{value} ago"
825 825 label_profile: Profile
826 826 label_subtask_plural: Subtasks
827 827 label_project_copy_notifications: Send email notifications during the project copy
828 828 label_principal_search: "Search for user or group:"
829 829 label_user_search: "Search for user:"
830 830 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
831 831 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
832 832 label_issues_visibility_all: All issues
833 833 label_issues_visibility_public: All non private issues
834 834 label_issues_visibility_own: Issues created by or assigned to the user
835 835 label_git_report_last_commit: Report last commit for files and directories
836 836 label_parent_revision: Parent
837 837 label_child_revision: Child
838 838 label_export_options: "%{export_format} export options"
839 839 label_copy_attachments: Copy attachments
840 840 label_item_position: %{position} of %{count}
841 841 label_completed_versions: Completed versions
842 842
843 843 button_login: Login
844 844 button_submit: Submit
845 845 button_save: Save
846 846 button_check_all: Check all
847 847 button_uncheck_all: Uncheck all
848 848 button_collapse_all: Collapse all
849 849 button_expand_all: Expand all
850 850 button_delete: Delete
851 851 button_create: Create
852 852 button_create_and_continue: Create and continue
853 853 button_test: Test
854 854 button_edit: Edit
855 855 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
856 856 button_add: Add
857 857 button_change: Change
858 858 button_apply: Apply
859 859 button_clear: Clear
860 860 button_lock: Lock
861 861 button_unlock: Unlock
862 862 button_download: Download
863 863 button_list: List
864 864 button_view: View
865 865 button_move: Move
866 866 button_move_and_follow: Move and follow
867 867 button_back: Back
868 868 button_cancel: Cancel
869 869 button_activate: Activate
870 870 button_sort: Sort
871 871 button_log_time: Log time
872 872 button_rollback: Rollback to this version
873 873 button_watch: Watch
874 874 button_unwatch: Unwatch
875 875 button_reply: Reply
876 876 button_archive: Archive
877 877 button_unarchive: Unarchive
878 878 button_reset: Reset
879 879 button_rename: Rename
880 880 button_change_password: Change password
881 881 button_copy: Copy
882 882 button_copy_and_follow: Copy and follow
883 883 button_annotate: Annotate
884 884 button_update: Update
885 885 button_configure: Configure
886 886 button_quote: Quote
887 887 button_duplicate: Duplicate
888 888 button_show: Show
889 889 button_edit_section: Edit this section
890 890 button_export: Export
891 891
892 892 status_active: active
893 893 status_registered: registered
894 894 status_locked: locked
895 895
896 896 version_status_open: open
897 897 version_status_locked: locked
898 898 version_status_closed: closed
899 899
900 900 field_active: Active
901 901
902 902 text_select_mail_notifications: Select actions for which email notifications should be sent.
903 903 text_regexp_info: eg. ^[A-Z0-9]+$
904 904 text_min_max_length_info: 0 means no restriction
905 905 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
906 906 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
907 907 text_workflow_edit: Select a role and a tracker to edit the workflow
908 908 text_are_you_sure: Are you sure?
909 909 text_are_you_sure_with_children: "Delete issue and all child issues?"
910 910 text_journal_changed: "%{label} changed from %{old} to %{new}"
911 911 text_journal_changed_no_detail: "%{label} updated"
912 912 text_journal_set_to: "%{label} set to %{value}"
913 913 text_journal_deleted: "%{label} deleted (%{old})"
914 914 text_journal_added: "%{label} %{value} added"
915 915 text_tip_issue_begin_day: issue beginning this day
916 916 text_tip_issue_end_day: issue ending this day
917 917 text_tip_issue_begin_end_day: issue beginning and ending this day
918 text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier cannot be changed.'
918 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
919 919 text_caracters_maximum: "%{count} characters maximum."
920 920 text_caracters_minimum: "Must be at least %{count} characters long."
921 921 text_length_between: "Length between %{min} and %{max} characters."
922 922 text_tracker_no_workflow: No workflow defined for this tracker
923 923 text_unallowed_characters: Unallowed characters
924 924 text_comma_separated: Multiple values allowed (comma separated).
925 925 text_line_separated: Multiple values allowed (one line for each value).
926 926 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
927 927 text_issue_added: "Issue %{id} has been reported by %{author}."
928 928 text_issue_updated: "Issue %{id} has been updated by %{author}."
929 929 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
930 930 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
931 931 text_issue_category_destroy_assignments: Remove category assignments
932 932 text_issue_category_reassign_to: Reassign issues to this category
933 933 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)."
934 934 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."
935 935 text_load_default_configuration: Load the default configuration
936 936 text_status_changed_by_changeset: "Applied in changeset %{value}."
937 937 text_time_logged_by_changeset: "Applied in changeset %{value}."
938 938 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
939 939 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
940 940 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
941 941 text_select_project_modules: 'Select modules to enable for this project:'
942 942 text_default_administrator_account_changed: Default administrator account changed
943 943 text_file_repository_writable: Attachments directory writable
944 944 text_plugin_assets_writable: Plugin assets directory writable
945 945 text_rmagick_available: RMagick available (optional)
946 946 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
947 947 text_destroy_time_entries: Delete reported hours
948 948 text_assign_time_entries_to_project: Assign reported hours to the project
949 949 text_reassign_time_entries: 'Reassign reported hours to this issue:'
950 950 text_user_wrote: "%{value} wrote:"
951 951 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
952 952 text_enumeration_category_reassign_to: 'Reassign them to this value:'
953 953 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."
954 954 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."
955 955 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
956 956 text_custom_field_possible_values_info: 'One line for each value'
957 957 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
958 958 text_wiki_page_nullify_children: "Keep child pages as root pages"
959 959 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
960 960 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
961 961 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?"
962 962 text_zoom_in: Zoom in
963 963 text_zoom_out: Zoom out
964 964 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
965 965 text_scm_path_encoding_note: "Default: UTF-8"
966 966 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
967 967 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
968 968 text_scm_command: Command
969 969 text_scm_command_version: Version
970 970 text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
971 971 text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
972 972
973 973 default_role_manager: Manager
974 974 default_role_developer: Developer
975 975 default_role_reporter: Reporter
976 976 default_tracker_bug: Bug
977 977 default_tracker_feature: Feature
978 978 default_tracker_support: Support
979 979 default_issue_status_new: New
980 980 default_issue_status_in_progress: In Progress
981 981 default_issue_status_resolved: Resolved
982 982 default_issue_status_feedback: Feedback
983 983 default_issue_status_closed: Closed
984 984 default_issue_status_rejected: Rejected
985 985 default_doc_category_user: User documentation
986 986 default_doc_category_tech: Technical documentation
987 987 default_priority_low: Low
988 988 default_priority_normal: Normal
989 989 default_priority_high: High
990 990 default_priority_urgent: Urgent
991 991 default_priority_immediate: Immediate
992 992 default_activity_design: Design
993 993 default_activity_development: Development
994 994
995 995 enumeration_issue_priorities: Issue priorities
996 996 enumeration_doc_categories: Document categories
997 997 enumeration_activities: Activities (time tracking)
998 998 enumeration_system_activity: System Activity
999 999 description_filter: Filter
1000 1000 description_search: Searchfield
1001 1001 description_choose_project: Projects
1002 1002 description_project_scope: Search scope
1003 1003 description_notes: Notes
1004 1004 description_message_content: Message content
1005 1005 description_query_sort_criteria_attribute: Sort attribute
1006 1006 description_query_sort_criteria_direction: Sort direction
1007 1007 description_user_mail_notification: Mail notification settings
1008 1008 description_available_columns: Available Columns
1009 1009 description_selected_columns: Selected Columns
1010 1010 description_all_columns: All Columns
1011 1011 description_issue_category_reassign: Choose issue category
1012 1012 description_wiki_subpages_reassign: Choose new parent page
1013 1013 description_date_range_list: Choose range from list
1014 1014 description_date_range_interval: Choose range by selecting start and end date
1015 1015 description_date_from: Enter start date
1016 1016 description_date_to: Enter end date
@@ -1,1033 +1,1033
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_days:
57 57 one: "unΒ jour"
58 58 other: "%{count}Β jours"
59 59 about_x_months:
60 60 one: "environ un mois"
61 61 other: "environ %{count}Β mois"
62 62 x_months:
63 63 one: "unΒ mois"
64 64 other: "%{count}Β mois"
65 65 about_x_years:
66 66 one: "environ un an"
67 67 other: "environ %{count}Β ans"
68 68 over_x_years:
69 69 one: "plus d'un an"
70 70 other: "plus de %{count}Β ans"
71 71 almost_x_years:
72 72 one: "presqu'un an"
73 73 other: "presque %{count} ans"
74 74 prompts:
75 75 year: "AnnΓ©e"
76 76 month: "Mois"
77 77 day: "Jour"
78 78 hour: "Heure"
79 79 minute: "Minute"
80 80 second: "Seconde"
81 81
82 82 number:
83 83 format:
84 84 precision: 3
85 85 separator: ','
86 86 delimiter: 'Β '
87 87 currency:
88 88 format:
89 89 unit: '€'
90 90 precision: 2
91 91 format: '%nΒ %u'
92 92 human:
93 93 format:
94 94 precision: 2
95 95 storage_units:
96 96 format: "%n %u"
97 97 units:
98 98 byte:
99 99 one: "octet"
100 100 other: "octet"
101 101 kb: "ko"
102 102 mb: "Mo"
103 103 gb: "Go"
104 104 tb: "To"
105 105
106 106 support:
107 107 array:
108 108 sentence_connector: 'et'
109 109 skip_last_comma: true
110 110 word_connector: ", "
111 111 two_words_connector: " et "
112 112 last_word_connector: " et "
113 113
114 114 activerecord:
115 115 errors:
116 116 template:
117 117 header:
118 118 one: "Impossible d'enregistrer %{model} : une erreur"
119 119 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
120 120 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
121 121 messages:
122 122 inclusion: "n'est pas inclus(e) dans la liste"
123 123 exclusion: "n'est pas disponible"
124 124 invalid: "n'est pas valide"
125 125 confirmation: "ne concorde pas avec la confirmation"
126 126 accepted: "doit Γͺtre acceptΓ©(e)"
127 127 empty: "doit Γͺtre renseignΓ©(e)"
128 128 blank: "doit Γͺtre renseignΓ©(e)"
129 129 too_long: "est trop long (pas plus de %{count} caractères)"
130 130 too_short: "est trop court (au moins %{count} caractères)"
131 131 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
132 132 taken: "est dΓ©jΓ  utilisΓ©"
133 133 not_a_number: "n'est pas un nombre"
134 134 not_a_date: "n'est pas une date valide"
135 135 greater_than: "doit Γͺtre supΓ©rieur Γ  %{count}"
136 136 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  %{count}"
137 137 equal_to: "doit Γͺtre Γ©gal Γ  %{count}"
138 138 less_than: "doit Γͺtre infΓ©rieur Γ  %{count}"
139 139 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  %{count}"
140 140 odd: "doit Γͺtre impair"
141 141 even: "doit Γͺtre pair"
142 142 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
143 143 not_same_project: "n'appartient pas au mΓͺme projet"
144 144 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
145 145 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
146 146
147 147 actionview_instancetag_blank_option: Choisir
148 148
149 149 general_text_No: 'Non'
150 150 general_text_Yes: 'Oui'
151 151 general_text_no: 'non'
152 152 general_text_yes: 'oui'
153 153 general_lang_name: 'FranΓ§ais'
154 154 general_csv_separator: ';'
155 155 general_csv_decimal_separator: ','
156 156 general_csv_encoding: ISO-8859-1
157 157 general_pdf_encoding: UTF-8
158 158 general_first_day_of_week: '1'
159 159
160 160 notice_account_updated: Le compte a été mis à jour avec succès.
161 161 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
162 162 notice_account_password_updated: Mot de passe mis à jour avec succès.
163 163 notice_account_wrong_password: Mot de passe incorrect
164 164 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ©.
165 165 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
166 166 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
167 167 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
168 168 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
169 169 notice_successful_create: Création effectuée avec succès.
170 170 notice_successful_update: Mise à jour effectuée avec succès.
171 171 notice_successful_delete: Suppression effectuée avec succès.
172 172 notice_successful_connection: Connexion rΓ©ussie.
173 173 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
174 174 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
175 175 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ  accΓ©der Γ  cette page."
176 176 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
177 177 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  %{value}"
178 178 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
179 179 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux RSS a été réinitialisée."
180 180 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : %{ids}."
181 181 notice_failed_to_save_time_entries: "%{count} temps passΓ©(s) sur les %{total} sΓ©lectionnΓ©s n'ont pas pu Γͺtre mis Γ  jour: %{ids}."
182 182 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
183 183 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
184 184 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
185 185 notice_unable_delete_version: Impossible de supprimer cette version.
186 186 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
187 187 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
188 188 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})"
189 189 notice_issue_successful_create: "La demande %{id} a été créée."
190 190
191 191 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}"
192 192 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
193 193 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
194 194 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
195 195 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
196 196 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
197 197 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
198 198 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
199 199 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
200 200 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
201 201 error_attachment_too_big: Ce fichier ne peut pas Γͺtre attachΓ© car il excΓ¨de la taille maximale autorisΓ©e (%{max_size})
202 202
203 203 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
204 204
205 205 mail_subject_lost_password: "Votre mot de passe %{value}"
206 206 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
207 207 mail_subject_register: "Activation de votre compte %{value}"
208 208 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
209 209 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
210 210 mail_body_account_information: Paramètres de connexion de votre compte
211 211 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
212 212 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
213 213 mail_subject_reminder: "%{count} demande(s) arrivent Γ  Γ©chΓ©ance (%{days})"
214 214 mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les %{days} prochains jours :"
215 215 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e"
216 216 mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}."
217 217 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ  jour"
218 218 mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ  jour par %{author}."
219 219
220 220 gui_validation_error: 1 erreur
221 221 gui_validation_error_plural: "%{count} erreurs"
222 222
223 223 field_name: Nom
224 224 field_description: Description
225 225 field_summary: RΓ©sumΓ©
226 226 field_is_required: Obligatoire
227 227 field_firstname: PrΓ©nom
228 228 field_lastname: Nom
229 229 field_mail: "Email "
230 230 field_filename: Fichier
231 231 field_filesize: Taille
232 232 field_downloads: TΓ©lΓ©chargements
233 233 field_author: Auteur
234 234 field_created_on: "Créé "
235 235 field_updated_on: "Mis-Γ -jour "
236 236 field_field_format: Format
237 237 field_is_for_all: Pour tous les projets
238 238 field_possible_values: Valeurs possibles
239 239 field_regexp: Expression régulière
240 240 field_min_length: Longueur minimum
241 241 field_max_length: Longueur maximum
242 242 field_value: Valeur
243 243 field_category: CatΓ©gorie
244 244 field_title: Titre
245 245 field_project: Projet
246 246 field_issue: Demande
247 247 field_status: Statut
248 248 field_notes: Notes
249 249 field_is_closed: Demande fermΓ©e
250 250 field_is_default: Valeur par dΓ©faut
251 251 field_tracker: Tracker
252 252 field_subject: Sujet
253 253 field_due_date: EchΓ©ance
254 254 field_assigned_to: AssignΓ© Γ 
255 255 field_priority: PrioritΓ©
256 256 field_fixed_version: Version cible
257 257 field_user: Utilisateur
258 258 field_role: RΓ΄le
259 259 field_homepage: "Site web "
260 260 field_is_public: Public
261 261 field_parent: Sous-projet de
262 262 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
263 263 field_login: "Identifiant "
264 264 field_mail_notification: Notifications par mail
265 265 field_admin: Administrateur
266 266 field_last_login_on: "Dernière connexion "
267 267 field_language: Langue
268 268 field_effective_date: Date
269 269 field_password: Mot de passe
270 270 field_new_password: Nouveau mot de passe
271 271 field_password_confirmation: Confirmation
272 272 field_version: Version
273 273 field_type: Type
274 274 field_host: HΓ΄te
275 275 field_port: Port
276 276 field_account: Compte
277 277 field_base_dn: Base DN
278 278 field_attr_login: Attribut Identifiant
279 279 field_attr_firstname: Attribut PrΓ©nom
280 280 field_attr_lastname: Attribut Nom
281 281 field_attr_mail: Attribut Email
282 282 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
283 283 field_start_date: DΓ©but
284 284 field_done_ratio: "% rΓ©alisΓ©"
285 285 field_auth_source: Mode d'authentification
286 286 field_hide_mail: Cacher mon adresse mail
287 287 field_comments: Commentaire
288 288 field_url: URL
289 289 field_start_page: Page de dΓ©marrage
290 290 field_subproject: Sous-projet
291 291 field_hours: Heures
292 292 field_activity: ActivitΓ©
293 293 field_spent_on: Date
294 294 field_identifier: Identifiant
295 295 field_is_filter: UtilisΓ© comme filtre
296 296 field_issue_to: Demande liΓ©e
297 297 field_delay: Retard
298 298 field_assignable: Demandes assignables Γ  ce rΓ΄le
299 299 field_redirect_existing_links: Rediriger les liens existants
300 300 field_estimated_hours: Temps estimΓ©
301 301 field_column_names: Colonnes
302 302 field_time_zone: Fuseau horaire
303 303 field_searchable: UtilisΓ© pour les recherches
304 304 field_default_value: Valeur par dΓ©faut
305 305 field_comments_sorting: Afficher les commentaires
306 306 field_parent_title: Page parent
307 307 field_editable: Modifiable
308 308 field_watcher: Observateur
309 309 field_identity_url: URL OpenID
310 310 field_content: Contenu
311 311 field_group_by: Grouper par
312 312 field_sharing: Partage
313 313 field_active: Actif
314 314 field_parent_issue: TΓ’che parente
315 315 field_visible: Visible
316 316 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
317 317 field_issues_visibility: VisibilitΓ© des demandes
318 318 field_is_private: PrivΓ©e
319 319 field_commit_logs_encoding: Encodage des messages de commit
320 320 field_repository_is_default: DΓ©pΓ΄t principal
321 321
322 322 setting_app_title: Titre de l'application
323 323 setting_app_subtitle: Sous-titre de l'application
324 324 setting_welcome_text: Texte d'accueil
325 325 setting_default_language: Langue par dΓ©faut
326 326 setting_login_required: Authentification obligatoire
327 327 setting_self_registration: Inscription des nouveaux utilisateurs
328 328 setting_attachment_max_size: Taille maximale des fichiers
329 329 setting_issues_export_limit: Limite d'exportation des demandes
330 330 setting_mail_from: Adresse d'Γ©mission
331 331 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
332 332 setting_plain_text_mail: Mail en texte brut (non HTML)
333 333 setting_host_name: Nom d'hΓ΄te et chemin
334 334 setting_text_formatting: Formatage du texte
335 335 setting_wiki_compression: Compression de l'historique des pages wiki
336 336 setting_feeds_limit: Nombre maximal d'Γ©lΓ©ments dans les flux Atom
337 337 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
338 338 setting_autofetch_changesets: RΓ©cupΓ©ration automatique des commits
339 339 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
340 340 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
341 341 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
342 342 setting_autologin: DurΓ©e maximale de connexion automatique
343 343 setting_date_format: Format de date
344 344 setting_time_format: Format d'heure
345 345 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
346 346 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
347 347 setting_emails_footer: Pied-de-page des emails
348 348 setting_protocol: Protocole
349 349 setting_per_page_options: Options d'objets affichΓ©s par page
350 350 setting_user_format: Format d'affichage des utilisateurs
351 351 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
352 352 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
353 353 setting_enabled_scm: SCM activΓ©s
354 354 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
355 355 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
356 356 setting_mail_handler_api_key: ClΓ© de protection de l'API
357 357 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
358 358 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
359 359 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
360 360 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
361 361 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
362 362 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
363 363 setting_password_min_length: Longueur minimum des mots de passe
364 364 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
365 365 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
366 366 setting_issue_done_ratio: Calcul de l'avancement des demandes
367 367 setting_issue_done_ratio_issue_status: Utiliser le statut
368 368 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
369 369 setting_rest_api_enabled: Activer l'API REST
370 370 setting_gravatar_default: Image Gravatar par dΓ©faut
371 371 setting_start_of_week: Jour de dΓ©but des calendriers
372 372 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
373 373 setting_commit_logtime_enabled: Permettre la saisie de temps
374 374 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
375 375 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
376 376 setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
377 377 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
378 378
379 379 permission_add_project: CrΓ©er un projet
380 380 permission_add_subprojects: CrΓ©er des sous-projets
381 381 permission_edit_project: Modifier le projet
382 382 permission_select_project_modules: Choisir les modules
383 383 permission_manage_members: GΓ©rer les membres
384 384 permission_manage_versions: GΓ©rer les versions
385 385 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
386 386 permission_view_issues: Voir les demandes
387 387 permission_add_issues: CrΓ©er des demandes
388 388 permission_edit_issues: Modifier les demandes
389 389 permission_manage_issue_relations: GΓ©rer les relations
390 390 permission_set_issues_private: Rendre les demandes publiques ou privΓ©es
391 391 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privΓ©es
392 392 permission_add_issue_notes: Ajouter des notes
393 393 permission_edit_issue_notes: Modifier les notes
394 394 permission_edit_own_issue_notes: Modifier ses propres notes
395 395 permission_move_issues: DΓ©placer les demandes
396 396 permission_delete_issues: Supprimer les demandes
397 397 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
398 398 permission_save_queries: Sauvegarder les requΓͺtes
399 399 permission_view_gantt: Voir le gantt
400 400 permission_view_calendar: Voir le calendrier
401 401 permission_view_issue_watchers: Voir la liste des observateurs
402 402 permission_add_issue_watchers: Ajouter des observateurs
403 403 permission_delete_issue_watchers: Supprimer des observateurs
404 404 permission_log_time: Saisir le temps passΓ©
405 405 permission_view_time_entries: Voir le temps passΓ©
406 406 permission_edit_time_entries: Modifier les temps passΓ©s
407 407 permission_edit_own_time_entries: Modifier son propre temps passΓ©
408 408 permission_manage_news: GΓ©rer les annonces
409 409 permission_comment_news: Commenter les annonces
410 410 permission_manage_documents: GΓ©rer les documents
411 411 permission_view_documents: Voir les documents
412 412 permission_manage_files: GΓ©rer les fichiers
413 413 permission_view_files: Voir les fichiers
414 414 permission_manage_wiki: GΓ©rer le wiki
415 415 permission_rename_wiki_pages: Renommer les pages
416 416 permission_delete_wiki_pages: Supprimer les pages
417 417 permission_view_wiki_pages: Voir le wiki
418 418 permission_view_wiki_edits: "Voir l'historique des modifications"
419 419 permission_edit_wiki_pages: Modifier les pages
420 420 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
421 421 permission_protect_wiki_pages: ProtΓ©ger les pages
422 422 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
423 423 permission_browse_repository: Parcourir les sources
424 424 permission_view_changesets: Voir les rΓ©visions
425 425 permission_commit_access: Droit de commit
426 426 permission_manage_boards: GΓ©rer les forums
427 427 permission_view_messages: Voir les messages
428 428 permission_add_messages: Poster un message
429 429 permission_edit_messages: Modifier les messages
430 430 permission_edit_own_messages: Modifier ses propres messages
431 431 permission_delete_messages: Supprimer les messages
432 432 permission_delete_own_messages: Supprimer ses propres messages
433 433 permission_export_wiki_pages: Exporter les pages
434 434 permission_manage_project_activities: GΓ©rer les activitΓ©s
435 435 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
436 436
437 437 project_module_issue_tracking: Suivi des demandes
438 438 project_module_time_tracking: Suivi du temps passΓ©
439 439 project_module_news: Publication d'annonces
440 440 project_module_documents: Publication de documents
441 441 project_module_files: Publication de fichiers
442 442 project_module_wiki: Wiki
443 443 project_module_repository: DΓ©pΓ΄t de sources
444 444 project_module_boards: Forums de discussion
445 445
446 446 label_user: Utilisateur
447 447 label_user_plural: Utilisateurs
448 448 label_user_new: Nouvel utilisateur
449 449 label_user_anonymous: Anonyme
450 450 label_project: Projet
451 451 label_project_new: Nouveau projet
452 452 label_project_plural: Projets
453 453 label_x_projects:
454 454 zero: aucun projet
455 455 one: un projet
456 456 other: "%{count} projets"
457 457 label_project_all: Tous les projets
458 458 label_project_latest: Derniers projets
459 459 label_issue: Demande
460 460 label_issue_new: Nouvelle demande
461 461 label_issue_plural: Demandes
462 462 label_issue_view_all: Voir toutes les demandes
463 463 label_issue_added: Demande ajoutΓ©e
464 464 label_issue_updated: Demande mise Γ  jour
465 465 label_issue_note_added: Note ajoutΓ©e
466 466 label_issue_status_updated: Statut changΓ©
467 467 label_issue_priority_updated: PrioritΓ© changΓ©e
468 468 label_issues_by: "Demandes par %{value}"
469 469 label_document: Document
470 470 label_document_new: Nouveau document
471 471 label_document_plural: Documents
472 472 label_document_added: Document ajoutΓ©
473 473 label_role: RΓ΄le
474 474 label_role_plural: RΓ΄les
475 475 label_role_new: Nouveau rΓ΄le
476 476 label_role_and_permissions: RΓ΄les et permissions
477 477 label_role_anonymous: Anonyme
478 478 label_role_non_member: Non membre
479 479 label_member: Membre
480 480 label_member_new: Nouveau membre
481 481 label_member_plural: Membres
482 482 label_tracker: Tracker
483 483 label_tracker_plural: Trackers
484 484 label_tracker_new: Nouveau tracker
485 485 label_workflow: Workflow
486 486 label_issue_status: Statut de demandes
487 487 label_issue_status_plural: Statuts de demandes
488 488 label_issue_status_new: Nouveau statut
489 489 label_issue_category: CatΓ©gorie de demandes
490 490 label_issue_category_plural: CatΓ©gories de demandes
491 491 label_issue_category_new: Nouvelle catΓ©gorie
492 492 label_custom_field: Champ personnalisΓ©
493 493 label_custom_field_plural: Champs personnalisΓ©s
494 494 label_custom_field_new: Nouveau champ personnalisΓ©
495 495 label_enumerations: Listes de valeurs
496 496 label_enumeration_new: Nouvelle valeur
497 497 label_information: Information
498 498 label_information_plural: Informations
499 499 label_please_login: Identification
500 500 label_register: S'enregistrer
501 501 label_login_with_open_id_option: S'authentifier avec OpenID
502 502 label_password_lost: Mot de passe perdu
503 503 label_home: Accueil
504 504 label_my_page: Ma page
505 505 label_my_account: Mon compte
506 506 label_my_projects: Mes projets
507 507 label_my_page_block: Blocs disponibles
508 508 label_administration: Administration
509 509 label_login: Connexion
510 510 label_logout: DΓ©connexion
511 511 label_help: Aide
512 512 label_reported_issues: "Demandes soumises "
513 513 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
514 514 label_last_login: "Dernière connexion "
515 515 label_registered_on: "Inscrit le "
516 516 label_activity: ActivitΓ©
517 517 label_overall_activity: ActivitΓ© globale
518 518 label_user_activity: "ActivitΓ© de %{value}"
519 519 label_new: Nouveau
520 520 label_logged_as: ConnectΓ© en tant que
521 521 label_environment: Environnement
522 522 label_authentication: Authentification
523 523 label_auth_source: Mode d'authentification
524 524 label_auth_source_new: Nouveau mode d'authentification
525 525 label_auth_source_plural: Modes d'authentification
526 526 label_subproject_plural: Sous-projets
527 527 label_subproject_new: Nouveau sous-projet
528 528 label_and_its_subprojects: "%{value} et ses sous-projets"
529 529 label_min_max_length: Longueurs mini - maxi
530 530 label_list: Liste
531 531 label_date: Date
532 532 label_integer: Entier
533 533 label_float: Nombre dΓ©cimal
534 534 label_boolean: BoolΓ©en
535 535 label_string: Texte
536 536 label_text: Texte long
537 537 label_attribute: Attribut
538 538 label_attribute_plural: Attributs
539 539 label_download: "%{count} tΓ©lΓ©chargement"
540 540 label_download_plural: "%{count} tΓ©lΓ©chargements"
541 541 label_no_data: Aucune donnΓ©e Γ  afficher
542 542 label_change_status: Changer le statut
543 543 label_history: Historique
544 544 label_attachment: Fichier
545 545 label_attachment_new: Nouveau fichier
546 546 label_attachment_delete: Supprimer le fichier
547 547 label_attachment_plural: Fichiers
548 548 label_file_added: Fichier ajoutΓ©
549 549 label_report: Rapport
550 550 label_report_plural: Rapports
551 551 label_news: Annonce
552 552 label_news_new: Nouvelle annonce
553 553 label_news_plural: Annonces
554 554 label_news_latest: Dernières annonces
555 555 label_news_view_all: Voir toutes les annonces
556 556 label_news_added: Annonce ajoutΓ©e
557 557 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
558 558 label_settings: Configuration
559 559 label_overview: AperΓ§u
560 560 label_version: Version
561 561 label_version_new: Nouvelle version
562 562 label_version_plural: Versions
563 563 label_confirmation: Confirmation
564 564 label_export_to: 'Formats disponibles :'
565 565 label_read: Lire...
566 566 label_public_projects: Projets publics
567 567 label_open_issues: ouvert
568 568 label_open_issues_plural: ouverts
569 569 label_closed_issues: fermΓ©
570 570 label_closed_issues_plural: fermΓ©s
571 571 label_x_open_issues_abbr_on_total:
572 572 zero: 0 ouverte sur %{total}
573 573 one: 1 ouverte sur %{total}
574 574 other: "%{count} ouvertes sur %{total}"
575 575 label_x_open_issues_abbr:
576 576 zero: 0 ouverte
577 577 one: 1 ouverte
578 578 other: "%{count} ouvertes"
579 579 label_x_closed_issues_abbr:
580 580 zero: 0 fermΓ©e
581 581 one: 1 fermΓ©e
582 582 other: "%{count} fermΓ©es"
583 583 label_x_issues:
584 584 zero: 0 demande
585 585 one: 1 demande
586 586 other: "%{count} demandes"
587 587 label_total: Total
588 588 label_permissions: Permissions
589 589 label_current_status: Statut actuel
590 590 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
591 591 label_all: tous
592 592 label_none: aucun
593 593 label_nobody: personne
594 594 label_next: Suivant
595 595 label_previous: PrΓ©cΓ©dent
596 596 label_used_by: UtilisΓ© par
597 597 label_details: DΓ©tails
598 598 label_add_note: Ajouter une note
599 599 label_per_page: Par page
600 600 label_calendar: Calendrier
601 601 label_months_from: mois depuis
602 602 label_gantt: Gantt
603 603 label_internal: Interne
604 604 label_last_changes: "%{count} derniers changements"
605 605 label_change_view_all: Voir tous les changements
606 606 label_personalize_page: Personnaliser cette page
607 607 label_comment: Commentaire
608 608 label_comment_plural: Commentaires
609 609 label_x_comments:
610 610 zero: aucun commentaire
611 611 one: un commentaire
612 612 other: "%{count} commentaires"
613 613 label_comment_add: Ajouter un commentaire
614 614 label_comment_added: Commentaire ajoutΓ©
615 615 label_comment_delete: Supprimer les commentaires
616 616 label_query: Rapport personnalisΓ©
617 617 label_query_plural: Rapports personnalisΓ©s
618 618 label_query_new: Nouveau rapport
619 619 label_my_queries: Mes rapports personnalisΓ©s
620 620 label_filter_add: "Ajouter le filtre "
621 621 label_filter_plural: Filtres
622 622 label_equals: Γ©gal
623 623 label_not_equals: diffΓ©rent
624 624 label_in_less_than: dans moins de
625 625 label_in_more_than: dans plus de
626 626 label_in: dans
627 627 label_today: aujourd'hui
628 628 label_all_time: toute la pΓ©riode
629 629 label_yesterday: hier
630 630 label_this_week: cette semaine
631 631 label_last_week: la semaine dernière
632 632 label_last_n_days: "les %{count} derniers jours"
633 633 label_this_month: ce mois-ci
634 634 label_last_month: le mois dernier
635 635 label_this_year: cette annΓ©e
636 636 label_date_range: PΓ©riode
637 637 label_less_than_ago: il y a moins de
638 638 label_more_than_ago: il y a plus de
639 639 label_ago: il y a
640 640 label_contains: contient
641 641 label_not_contains: ne contient pas
642 642 label_day_plural: jours
643 643 label_repository: DΓ©pΓ΄t
644 644 label_repository_new: Nouveau dΓ©pΓ΄t
645 645 label_repository_plural: DΓ©pΓ΄ts
646 646 label_browse: Parcourir
647 647 label_modification: "%{count} modification"
648 648 label_modification_plural: "%{count} modifications"
649 649 label_revision: "RΓ©vision "
650 650 label_revision_plural: RΓ©visions
651 651 label_associated_revisions: RΓ©visions associΓ©es
652 652 label_added: ajoutΓ©
653 653 label_modified: modifiΓ©
654 654 label_copied: copiΓ©
655 655 label_renamed: renommΓ©
656 656 label_deleted: supprimΓ©
657 657 label_latest_revision: Dernière révision
658 658 label_latest_revision_plural: Dernières révisions
659 659 label_view_revisions: Voir les rΓ©visions
660 660 label_max_size: Taille maximale
661 661 label_sort_highest: Remonter en premier
662 662 label_sort_higher: Remonter
663 663 label_sort_lower: Descendre
664 664 label_sort_lowest: Descendre en dernier
665 665 label_roadmap: Roadmap
666 666 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
667 667 label_roadmap_overdue: "En retard de %{value}"
668 668 label_roadmap_no_issues: Aucune demande pour cette version
669 669 label_search: "Recherche "
670 670 label_result_plural: RΓ©sultats
671 671 label_all_words: Tous les mots
672 672 label_wiki: Wiki
673 673 label_wiki_edit: RΓ©vision wiki
674 674 label_wiki_edit_plural: RΓ©visions wiki
675 675 label_wiki_page: Page wiki
676 676 label_wiki_page_plural: Pages wiki
677 677 label_index_by_title: Index par titre
678 678 label_index_by_date: Index par date
679 679 label_current_version: Version actuelle
680 680 label_preview: PrΓ©visualisation
681 681 label_feed_plural: Flux RSS
682 682 label_changes_details: DΓ©tails de tous les changements
683 683 label_issue_tracking: Suivi des demandes
684 684 label_spent_time: Temps passΓ©
685 685 label_f_hour: "%{value} heure"
686 686 label_f_hour_plural: "%{value} heures"
687 687 label_time_tracking: Suivi du temps
688 688 label_change_plural: Changements
689 689 label_statistics: Statistiques
690 690 label_commits_per_month: Commits par mois
691 691 label_commits_per_author: Commits par auteur
692 692 label_view_diff: Voir les diffΓ©rences
693 693 label_diff_inline: en ligne
694 694 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
695 695 label_options: Options
696 696 label_copy_workflow_from: Copier le workflow de
697 697 label_permissions_report: Synthèse des permissions
698 698 label_watched_issues: Demandes surveillΓ©es
699 699 label_related_issues: Demandes liΓ©es
700 700 label_applied_status: Statut appliquΓ©
701 701 label_loading: Chargement...
702 702 label_relation_new: Nouvelle relation
703 703 label_relation_delete: Supprimer la relation
704 704 label_relates_to: liΓ© Γ 
705 705 label_duplicates: duplique
706 706 label_duplicated_by: dupliquΓ© par
707 707 label_blocks: bloque
708 708 label_blocked_by: bloquΓ© par
709 709 label_precedes: précède
710 710 label_follows: suit
711 711 label_end_to_start: fin Γ  dΓ©but
712 712 label_end_to_end: fin Γ  fin
713 713 label_start_to_start: dΓ©but Γ  dΓ©but
714 714 label_start_to_end: dΓ©but Γ  fin
715 715 label_stay_logged_in: Rester connectΓ©
716 716 label_disabled: dΓ©sactivΓ©
717 717 label_show_completed_versions: Voir les versions passΓ©es
718 718 label_me: moi
719 719 label_board: Forum
720 720 label_board_new: Nouveau forum
721 721 label_board_plural: Forums
722 722 label_topic_plural: Discussions
723 723 label_message_plural: Messages
724 724 label_message_last: Dernier message
725 725 label_message_new: Nouveau message
726 726 label_message_posted: Message ajoutΓ©
727 727 label_reply_plural: RΓ©ponses
728 728 label_send_information: Envoyer les informations Γ  l'utilisateur
729 729 label_year: AnnΓ©e
730 730 label_month: Mois
731 731 label_week: Semaine
732 732 label_date_from: Du
733 733 label_date_to: Au
734 734 label_language_based: BasΓ© sur la langue de l'utilisateur
735 735 label_sort_by: "Trier par %{value}"
736 736 label_send_test_email: Envoyer un email de test
737 737 label_feeds_access_key_created_on: "Clé d'accès RSS créée il y a %{value}"
738 738 label_module_plural: Modules
739 739 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
740 740 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
741 741 label_updated_time: "Mis Γ  jour il y a %{value}"
742 742 label_jump_to_a_project: Aller Γ  un projet...
743 743 label_file_plural: Fichiers
744 744 label_changeset_plural: RΓ©visions
745 745 label_default_columns: Colonnes par dΓ©faut
746 746 label_no_change_option: (Pas de changement)
747 747 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
748 748 label_theme: Thème
749 749 label_default: DΓ©faut
750 750 label_search_titles_only: Uniquement dans les titres
751 751 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
752 752 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
753 753 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
754 754 label_registration_activation_by_email: activation du compte par email
755 755 label_registration_manual_activation: activation manuelle du compte
756 756 label_registration_automatic_activation: activation automatique du compte
757 757 label_display_per_page: "Par page : %{value}"
758 758 label_age: Γ‚ge
759 759 label_change_properties: Changer les propriΓ©tΓ©s
760 760 label_general: GΓ©nΓ©ral
761 761 label_more: Plus
762 762 label_scm: SCM
763 763 label_plugins: Plugins
764 764 label_ldap_authentication: Authentification LDAP
765 765 label_downloads_abbr: D/L
766 766 label_optional_description: Description facultative
767 767 label_add_another_file: Ajouter un autre fichier
768 768 label_preferences: PrΓ©fΓ©rences
769 769 label_chronological_order: Dans l'ordre chronologique
770 770 label_reverse_chronological_order: Dans l'ordre chronologique inverse
771 771 label_planning: Planning
772 772 label_incoming_emails: Emails entrants
773 773 label_generate_key: GΓ©nΓ©rer une clΓ©
774 774 label_issue_watchers: Observateurs
775 775 label_example: Exemple
776 776 label_display: Affichage
777 777 label_sort: Tri
778 778 label_ascending: Croissant
779 779 label_descending: DΓ©croissant
780 780 label_date_from_to: Du %{start} au %{end}
781 781 label_wiki_content_added: Page wiki ajoutΓ©e
782 782 label_wiki_content_updated: Page wiki mise Γ  jour
783 783 label_group_plural: Groupes
784 784 label_group: Groupe
785 785 label_group_new: Nouveau groupe
786 786 label_time_entry_plural: Temps passΓ©
787 787 label_version_sharing_none: Non partagΓ©
788 788 label_version_sharing_descendants: Avec les sous-projets
789 789 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
790 790 label_version_sharing_tree: Avec tout l'arbre
791 791 label_version_sharing_system: Avec tous les projets
792 792 label_copy_source: Source
793 793 label_copy_target: Cible
794 794 label_copy_same_as_target: Comme la cible
795 795 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
796 796 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
797 797 label_api_access_key: Clé d'accès API
798 798 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
799 799 label_feeds_access_key: Clé d'accès RSS
800 800 label_missing_api_access_key: Clé d'accès API manquante
801 801 label_missing_feeds_access_key: Clé d'accès RSS manquante
802 802 label_close_versions: Fermer les versions terminΓ©es
803 803 label_revision_id: RΓ©vision %{value}
804 804 label_profile: Profil
805 805 label_subtask_plural: Sous-tΓ’ches
806 806 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
807 807 label_principal_search: "Rechercher un utilisateur ou un groupe :"
808 808 label_user_search: "Rechercher un utilisateur :"
809 809 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
810 810 label_additional_workflow_transitions_for_assignee: Autorisations supplΓ©mentaires lorsque la demande est assignΓ©e Γ  l'utilisateur
811 811 label_issues_visibility_all: Toutes les demandes
812 812 label_issues_visibility_public: Toutes les demandes non privΓ©es
813 813 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
814 814 label_export_options: Options d'exportation %{export_format}
815 815 label_copy_attachments: Copier les fichiers
816 816 label_item_position: %{position} sur %{count}
817 817 label_completed_versions: Versions passΓ©es
818 818
819 819 button_login: Connexion
820 820 button_submit: Soumettre
821 821 button_save: Sauvegarder
822 822 button_check_all: Tout cocher
823 823 button_uncheck_all: Tout dΓ©cocher
824 824 button_collapse_all: Plier tout
825 825 button_expand_all: DΓ©plier tout
826 826 button_delete: Supprimer
827 827 button_create: CrΓ©er
828 828 button_create_and_continue: CrΓ©er et continuer
829 829 button_test: Tester
830 830 button_edit: Modifier
831 831 button_add: Ajouter
832 832 button_change: Changer
833 833 button_apply: Appliquer
834 834 button_clear: Effacer
835 835 button_lock: Verrouiller
836 836 button_unlock: DΓ©verrouiller
837 837 button_download: TΓ©lΓ©charger
838 838 button_list: Lister
839 839 button_view: Voir
840 840 button_move: DΓ©placer
841 841 button_move_and_follow: DΓ©placer et suivre
842 842 button_back: Retour
843 843 button_cancel: Annuler
844 844 button_activate: Activer
845 845 button_sort: Trier
846 846 button_log_time: Saisir temps
847 847 button_rollback: Revenir Γ  cette version
848 848 button_watch: Surveiller
849 849 button_unwatch: Ne plus surveiller
850 850 button_reply: RΓ©pondre
851 851 button_archive: Archiver
852 852 button_unarchive: DΓ©sarchiver
853 853 button_reset: RΓ©initialiser
854 854 button_rename: Renommer
855 855 button_change_password: Changer de mot de passe
856 856 button_copy: Copier
857 857 button_copy_and_follow: Copier et suivre
858 858 button_annotate: Annoter
859 859 button_update: Mettre Γ  jour
860 860 button_configure: Configurer
861 861 button_quote: Citer
862 862 button_duplicate: Dupliquer
863 863 button_show: Afficher
864 864 button_edit_section: Modifier cette section
865 865 button_export: Exporter
866 866
867 867 status_active: actif
868 868 status_registered: enregistrΓ©
869 869 status_locked: verrouillΓ©
870 870
871 871 version_status_open: ouvert
872 872 version_status_locked: verrouillΓ©
873 873 version_status_closed: fermΓ©
874 874
875 875 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
876 876 text_regexp_info: ex. ^[A-Z0-9]+$
877 877 text_min_max_length_info: 0 pour aucune restriction
878 878 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
879 879 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
880 880 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
881 881 text_are_you_sure: Êtes-vous sûr ?
882 882 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
883 883 text_tip_issue_end_day: tΓ’che finissant ce jour
884 884 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
885 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres et tirets sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
885 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
886 886 text_caracters_maximum: "%{count} caractères maximum."
887 887 text_caracters_minimum: "%{count} caractères minimum."
888 888 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
889 889 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
890 890 text_unallowed_characters: Caractères non autorisés
891 891 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
892 892 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
893 893 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
894 894 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
895 895 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
896 896 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
897 897 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
898 898 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
899 899 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
900 900 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)."
901 901 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Γ©."
902 902 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
903 903 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
904 904 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
905 905 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
906 906 text_issues_destroy_descendants_confirmation: "Cela entrainera Γ©galement la suppression de %{count} sous-tΓ’che(s)."
907 907 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
908 908 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
909 909 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
910 910 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
911 911 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
912 912 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
913 913 text_destroy_time_entries: Supprimer les heures
914 914 text_assign_time_entries_to_project: Reporter les heures sur le projet
915 915 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
916 916 text_user_wrote: "%{value} a Γ©crit :"
917 917 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
918 918 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
919 919 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."
920 920 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."
921 921 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
922 922 text_custom_field_possible_values_info: 'Une ligne par valeur'
923 923 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
924 924 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
925 925 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
926 926 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
927 927 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 ?"
928 928 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
929 929
930 930 default_role_manager: "Manager "
931 931 default_role_developer: "DΓ©veloppeur "
932 932 default_role_reporter: "Rapporteur "
933 933 default_tracker_bug: Anomalie
934 934 default_tracker_feature: Evolution
935 935 default_tracker_support: Assistance
936 936 default_issue_status_new: Nouveau
937 937 default_issue_status_in_progress: En cours
938 938 default_issue_status_resolved: RΓ©solu
939 939 default_issue_status_feedback: Commentaire
940 940 default_issue_status_closed: FermΓ©
941 941 default_issue_status_rejected: RejetΓ©
942 942 default_doc_category_user: Documentation utilisateur
943 943 default_doc_category_tech: Documentation technique
944 944 default_priority_low: Bas
945 945 default_priority_normal: Normal
946 946 default_priority_high: Haut
947 947 default_priority_urgent: Urgent
948 948 default_priority_immediate: ImmΓ©diat
949 949 default_activity_design: Conception
950 950 default_activity_development: DΓ©veloppement
951 951
952 952 enumeration_issue_priorities: PrioritΓ©s des demandes
953 953 enumeration_doc_categories: CatΓ©gories des documents
954 954 enumeration_activities: ActivitΓ©s (suivi du temps)
955 955 label_greater_or_equal: ">="
956 956 label_less_or_equal: "<="
957 957 label_between: entre
958 958 label_view_all_revisions: Voir toutes les rΓ©visions
959 959 label_tag: Tag
960 960 label_branch: Branche
961 961 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
962 962 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
963 963 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
964 964 text_journal_changed_no_detail: "%{label} mis Γ  jour"
965 965 text_journal_set_to: "%{label} mis Γ  %{value}"
966 966 text_journal_deleted: "%{label} %{old} supprimΓ©"
967 967 text_journal_added: "%{label} %{value} ajoutΓ©"
968 968 enumeration_system_activity: Activité système
969 969 label_board_sticky: Sticky
970 970 label_board_locked: VerrouillΓ©
971 971 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
972 972 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
973 973 error_unable_to_connect: Connexion impossible (%{value})
974 974 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
975 975 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
976 976 field_principal: Principal
977 977 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
978 978 text_zoom_out: Zoom arrière
979 979 text_zoom_in: Zoom avant
980 980 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
981 981 label_overall_spent_time: Temps passΓ© global
982 982 field_time_entries: Temps passΓ©
983 983 project_module_gantt: Gantt
984 984 project_module_calendar: Calendrier
985 985 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
986 986 text_are_you_sure_with_children: Supprimer la demande et toutes ses sous-demandes ?
987 987 field_text: Champ texte
988 988 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
989 989 setting_default_notification_option: Option de notification par dΓ©faut
990 990 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
991 991 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
992 992 label_user_mail_option_none: Aucune notification
993 993 field_member_of_group: Groupe de l'assignΓ©
994 994 field_assigned_to_role: RΓ΄le de l'assignΓ©
995 995 setting_emails_header: En-tΓͺte des emails
996 996 label_bulk_edit_selected_time_entries: Modifier les temps passΓ©s sΓ©lectionnΓ©s
997 997 text_time_entries_destroy_confirmation: "Etes-vous sΓ»r de vouloir supprimer les temps passΓ©s sΓ©lectionnΓ©s ?"
998 998 field_scm_path_encoding: Encodage des chemins
999 999 text_scm_path_encoding_note: "DΓ©faut : UTF-8"
1000 1000 field_path_to_repository: Chemin du dΓ©pΓ΄t
1001 1001 field_root_directory: RΓ©pertoire racine
1002 1002 field_cvs_module: Module
1003 1003 field_cvsroot: CVSROOT
1004 1004 text_mercurial_repository_note: "DΓ©pΓ΄t local (exemples : /hgrepo, c:\\hgrepo)"
1005 1005 text_scm_command: Commande
1006 1006 text_scm_command_version: Version
1007 1007 label_git_report_last_commit: Afficher le dernier commit des fichiers et rΓ©pertoires
1008 1008 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1009 1009 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1010 1010 label_diff: diff
1011 1011 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1012 1012 description_query_sort_criteria_direction: Ordre de tri
1013 1013 description_project_scope: Périmètre de recherche
1014 1014 description_filter: Filtre
1015 1015 description_user_mail_notification: Option de notification
1016 1016 description_date_from: Date de dΓ©but
1017 1017 description_message_content: Contenu du message
1018 1018 description_available_columns: Colonnes disponibles
1019 1019 description_all_columns: Toutes les colonnes
1020 1020 description_date_range_interval: Choisir une pΓ©riode
1021 1021 description_issue_category_reassign: Choisir une catΓ©gorie
1022 1022 description_search: Champ de recherche
1023 1023 description_notes: Notes
1024 1024 description_date_range_list: Choisir une pΓ©riode prΓ©dΓ©finie
1025 1025 description_choose_project: Projets
1026 1026 description_date_to: Date de fin
1027 1027 description_query_sort_criteria_attribute: Critère de tri
1028 1028 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1029 1029 description_selected_columns: Colonnes sΓ©lectionnΓ©es
1030 1030 label_parent_revision: Parent
1031 1031 label_child_revision: Enfant
1032 1032 error_scm_annotate_big_text_file: Cette entrΓ©e ne peut pas Γͺtre annotΓ©e car elle excΓ¨de la taille maximale.
1033 1033 setting_repositories_encodings: Encodages des fichiers et des dΓ©pΓ΄ts
@@ -1,1171 +1,1172
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2011 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 ProjectTest < ActiveSupport::TestCase
21 21 fixtures :projects, :trackers, :issue_statuses, :issues,
22 22 :journals, :journal_details,
23 23 :enumerations, :users, :issue_categories,
24 24 :projects_trackers,
25 25 :custom_fields,
26 26 :custom_fields_projects,
27 27 :custom_fields_trackers,
28 28 :custom_values,
29 29 :roles,
30 30 :member_roles,
31 31 :members,
32 32 :enabled_modules,
33 33 :workflows,
34 34 :versions,
35 35 :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
36 36 :groups_users,
37 37 :boards,
38 38 :repositories
39 39
40 40 def setup
41 41 @ecookbook = Project.find(1)
42 42 @ecookbook_sub1 = Project.find(3)
43 43 set_tmp_attachments_directory
44 44 User.current = nil
45 45 end
46 46
47 47 should_validate_presence_of :name
48 48 should_validate_presence_of :identifier
49 49
50 50 should_validate_uniqueness_of :identifier
51 51
52 52 context "associations" do
53 53 should_have_many :members
54 54 should_have_many :users, :through => :members
55 55 should_have_many :member_principals
56 56 should_have_many :principals, :through => :member_principals
57 57 should_have_many :enabled_modules
58 58 should_have_many :issues
59 59 should_have_many :issue_changes, :through => :issues
60 60 should_have_many :versions
61 61 should_have_many :time_entries
62 62 should_have_many :queries
63 63 should_have_many :documents
64 64 should_have_many :news
65 65 should_have_many :issue_categories
66 66 should_have_many :boards
67 67 should_have_many :changesets, :through => :repository
68 68
69 69 should_have_one :repository
70 70 should_have_one :wiki
71 71
72 72 should_have_and_belong_to_many :trackers
73 73 should_have_and_belong_to_many :issue_custom_fields
74 74 end
75 75
76 76 def test_truth
77 77 assert_kind_of Project, @ecookbook
78 78 assert_equal "eCookbook", @ecookbook.name
79 79 end
80 80
81 81 def test_default_attributes
82 82 with_settings :default_projects_public => '1' do
83 83 assert_equal true, Project.new.is_public
84 84 assert_equal false, Project.new(:is_public => false).is_public
85 85 end
86 86
87 87 with_settings :default_projects_public => '0' do
88 88 assert_equal false, Project.new.is_public
89 89 assert_equal true, Project.new(:is_public => true).is_public
90 90 end
91 91
92 92 with_settings :sequential_project_identifiers => '1' do
93 93 assert !Project.new.identifier.blank?
94 94 assert Project.new(:identifier => '').identifier.blank?
95 95 end
96 96
97 97 with_settings :sequential_project_identifiers => '0' do
98 98 assert Project.new.identifier.blank?
99 99 assert !Project.new(:identifier => 'test').blank?
100 100 end
101 101
102 102 with_settings :default_projects_modules => ['issue_tracking', 'repository'] do
103 103 assert_equal ['issue_tracking', 'repository'], Project.new.enabled_module_names
104 104 end
105 105
106 106 assert_equal Tracker.all, Project.new.trackers
107 107 assert_equal Tracker.find(1, 3), Project.new(:tracker_ids => [1, 3]).trackers
108 108 end
109 109
110 110 def test_update
111 111 assert_equal "eCookbook", @ecookbook.name
112 112 @ecookbook.name = "eCook"
113 113 assert @ecookbook.save, @ecookbook.errors.full_messages.join("; ")
114 114 @ecookbook.reload
115 115 assert_equal "eCook", @ecookbook.name
116 116 end
117 117
118 118 def test_validate_identifier
119 119 to_test = {"abc" => true,
120 120 "ab12" => true,
121 121 "ab-12" => true,
122 "ab_12" => true,
122 123 "12" => false,
123 124 "new" => false}
124 125
125 126 to_test.each do |identifier, valid|
126 127 p = Project.new
127 128 p.identifier = identifier
128 129 p.valid?
129 130 if valid
130 131 assert p.errors['identifier'].blank?, "identifier #{identifier} was not valid"
131 132 else
132 133 assert p.errors['identifier'].present?, "identifier #{identifier} was valid"
133 134 end
134 135 end
135 136 end
136 137
137 138 def test_members_should_be_active_users
138 139 Project.all.each do |project|
139 140 assert_nil project.members.detect {|m| !(m.user.is_a?(User) && m.user.active?) }
140 141 end
141 142 end
142 143
143 144 def test_users_should_be_active_users
144 145 Project.all.each do |project|
145 146 assert_nil project.users.detect {|u| !(u.is_a?(User) && u.active?) }
146 147 end
147 148 end
148 149
149 150 def test_archive
150 151 user = @ecookbook.members.first.user
151 152 @ecookbook.archive
152 153 @ecookbook.reload
153 154
154 155 assert !@ecookbook.active?
155 156 assert @ecookbook.archived?
156 157 assert !user.projects.include?(@ecookbook)
157 158 # Subproject are also archived
158 159 assert !@ecookbook.children.empty?
159 160 assert @ecookbook.descendants.active.empty?
160 161 end
161 162
162 163 def test_archive_should_fail_if_versions_are_used_by_non_descendant_projects
163 164 # Assign an issue of a project to a version of a child project
164 165 Issue.find(4).update_attribute :fixed_version_id, 4
165 166
166 167 assert_no_difference "Project.count(:all, :conditions => 'status = #{Project::STATUS_ARCHIVED}')" do
167 168 assert_equal false, @ecookbook.archive
168 169 end
169 170 @ecookbook.reload
170 171 assert @ecookbook.active?
171 172 end
172 173
173 174 def test_unarchive
174 175 user = @ecookbook.members.first.user
175 176 @ecookbook.archive
176 177 # A subproject of an archived project can not be unarchived
177 178 assert !@ecookbook_sub1.unarchive
178 179
179 180 # Unarchive project
180 181 assert @ecookbook.unarchive
181 182 @ecookbook.reload
182 183 assert @ecookbook.active?
183 184 assert !@ecookbook.archived?
184 185 assert user.projects.include?(@ecookbook)
185 186 # Subproject can now be unarchived
186 187 @ecookbook_sub1.reload
187 188 assert @ecookbook_sub1.unarchive
188 189 end
189 190
190 191 def test_destroy
191 192 # 2 active members
192 193 assert_equal 2, @ecookbook.members.size
193 194 # and 1 is locked
194 195 assert_equal 3, Member.find(:all, :conditions => ['project_id = ?', @ecookbook.id]).size
195 196 # some boards
196 197 assert @ecookbook.boards.any?
197 198
198 199 @ecookbook.destroy
199 200 # make sure that the project non longer exists
200 201 assert_raise(ActiveRecord::RecordNotFound) { Project.find(@ecookbook.id) }
201 202 # make sure related data was removed
202 203 assert_nil Member.first(:conditions => {:project_id => @ecookbook.id})
203 204 assert_nil Board.first(:conditions => {:project_id => @ecookbook.id})
204 205 assert_nil Issue.first(:conditions => {:project_id => @ecookbook.id})
205 206 end
206 207
207 208 def test_destroying_root_projects_should_clear_data
208 209 Project.roots.each do |root|
209 210 root.destroy
210 211 end
211 212
212 213 assert_equal 0, Project.count, "Projects were not deleted: #{Project.all.inspect}"
213 214 assert_equal 0, Member.count, "Members were not deleted: #{Member.all.inspect}"
214 215 assert_equal 0, MemberRole.count
215 216 assert_equal 0, Issue.count
216 217 assert_equal 0, Journal.count
217 218 assert_equal 0, JournalDetail.count
218 219 assert_equal 0, Attachment.count
219 220 assert_equal 0, EnabledModule.count
220 221 assert_equal 0, IssueCategory.count
221 222 assert_equal 0, IssueRelation.count
222 223 assert_equal 0, Board.count
223 224 assert_equal 0, Message.count
224 225 assert_equal 0, News.count
225 226 assert_equal 0, Query.count(:conditions => "project_id IS NOT NULL")
226 227 assert_equal 0, Repository.count
227 228 assert_equal 0, Changeset.count
228 229 assert_equal 0, Change.count
229 230 assert_equal 0, Comment.count
230 231 assert_equal 0, TimeEntry.count
231 232 assert_equal 0, Version.count
232 233 assert_equal 0, Watcher.count
233 234 assert_equal 0, Wiki.count
234 235 assert_equal 0, WikiPage.count
235 236 assert_equal 0, WikiContent.count
236 237 assert_equal 0, WikiContent::Version.count
237 238 assert_equal 0, Project.connection.select_all("SELECT * FROM projects_trackers").size
238 239 assert_equal 0, Project.connection.select_all("SELECT * FROM custom_fields_projects").size
239 240 assert_equal 0, CustomValue.count(:conditions => {:customized_type => ['Project', 'Issue', 'TimeEntry', 'Version']})
240 241 end
241 242
242 243 def test_move_an_orphan_project_to_a_root_project
243 244 sub = Project.find(2)
244 245 sub.set_parent! @ecookbook
245 246 assert_equal @ecookbook.id, sub.parent.id
246 247 @ecookbook.reload
247 248 assert_equal 4, @ecookbook.children.size
248 249 end
249 250
250 251 def test_move_an_orphan_project_to_a_subproject
251 252 sub = Project.find(2)
252 253 assert sub.set_parent!(@ecookbook_sub1)
253 254 end
254 255
255 256 def test_move_a_root_project_to_a_project
256 257 sub = @ecookbook
257 258 assert sub.set_parent!(Project.find(2))
258 259 end
259 260
260 261 def test_should_not_move_a_project_to_its_children
261 262 sub = @ecookbook
262 263 assert !(sub.set_parent!(Project.find(3)))
263 264 end
264 265
265 266 def test_set_parent_should_add_roots_in_alphabetical_order
266 267 ProjectCustomField.delete_all
267 268 Project.delete_all
268 269 Project.create!(:name => 'Project C', :identifier => 'project-c').set_parent!(nil)
269 270 Project.create!(:name => 'Project B', :identifier => 'project-b').set_parent!(nil)
270 271 Project.create!(:name => 'Project D', :identifier => 'project-d').set_parent!(nil)
271 272 Project.create!(:name => 'Project A', :identifier => 'project-a').set_parent!(nil)
272 273
273 274 assert_equal 4, Project.count
274 275 assert_equal Project.all.sort_by(&:name), Project.all.sort_by(&:lft)
275 276 end
276 277
277 278 def test_set_parent_should_add_children_in_alphabetical_order
278 279 ProjectCustomField.delete_all
279 280 parent = Project.create!(:name => 'Parent', :identifier => 'parent')
280 281 Project.create!(:name => 'Project C', :identifier => 'project-c').set_parent!(parent)
281 282 Project.create!(:name => 'Project B', :identifier => 'project-b').set_parent!(parent)
282 283 Project.create!(:name => 'Project D', :identifier => 'project-d').set_parent!(parent)
283 284 Project.create!(:name => 'Project A', :identifier => 'project-a').set_parent!(parent)
284 285
285 286 parent.reload
286 287 assert_equal 4, parent.children.size
287 288 assert_equal parent.children.all.sort_by(&:name), parent.children.all
288 289 end
289 290
290 291 def test_rebuild_should_sort_children_alphabetically
291 292 ProjectCustomField.delete_all
292 293 parent = Project.create!(:name => 'Parent', :identifier => 'parent')
293 294 Project.create!(:name => 'Project C', :identifier => 'project-c').move_to_child_of(parent)
294 295 Project.create!(:name => 'Project B', :identifier => 'project-b').move_to_child_of(parent)
295 296 Project.create!(:name => 'Project D', :identifier => 'project-d').move_to_child_of(parent)
296 297 Project.create!(:name => 'Project A', :identifier => 'project-a').move_to_child_of(parent)
297 298
298 299 Project.update_all("lft = NULL, rgt = NULL")
299 300 Project.rebuild!
300 301
301 302 parent.reload
302 303 assert_equal 4, parent.children.size
303 304 assert_equal parent.children.all.sort_by(&:name), parent.children.all
304 305 end
305 306
306 307
307 308 def test_set_parent_should_update_issue_fixed_version_associations_when_a_fixed_version_is_moved_out_of_the_hierarchy
308 309 # Parent issue with a hierarchy project's fixed version
309 310 parent_issue = Issue.find(1)
310 311 parent_issue.update_attribute(:fixed_version_id, 4)
311 312 parent_issue.reload
312 313 assert_equal 4, parent_issue.fixed_version_id
313 314
314 315 # Should keep fixed versions for the issues
315 316 issue_with_local_fixed_version = Issue.find(5)
316 317 issue_with_local_fixed_version.update_attribute(:fixed_version_id, 4)
317 318 issue_with_local_fixed_version.reload
318 319 assert_equal 4, issue_with_local_fixed_version.fixed_version_id
319 320
320 321 # Local issue with hierarchy fixed_version
321 322 issue_with_hierarchy_fixed_version = Issue.find(13)
322 323 issue_with_hierarchy_fixed_version.update_attribute(:fixed_version_id, 6)
323 324 issue_with_hierarchy_fixed_version.reload
324 325 assert_equal 6, issue_with_hierarchy_fixed_version.fixed_version_id
325 326
326 327 # Move project out of the issue's hierarchy
327 328 moved_project = Project.find(3)
328 329 moved_project.set_parent!(Project.find(2))
329 330 parent_issue.reload
330 331 issue_with_local_fixed_version.reload
331 332 issue_with_hierarchy_fixed_version.reload
332 333
333 334 assert_equal 4, issue_with_local_fixed_version.fixed_version_id, "Fixed version was not keep on an issue local to the moved project"
334 335 assert_equal nil, issue_with_hierarchy_fixed_version.fixed_version_id, "Fixed version is still set after moving the Project out of the hierarchy where the version is defined in"
335 336 assert_equal nil, parent_issue.fixed_version_id, "Fixed version is still set after moving the Version out of the hierarchy for the issue."
336 337 end
337 338
338 339 def test_parent
339 340 p = Project.find(6).parent
340 341 assert p.is_a?(Project)
341 342 assert_equal 5, p.id
342 343 end
343 344
344 345 def test_ancestors
345 346 a = Project.find(6).ancestors
346 347 assert a.first.is_a?(Project)
347 348 assert_equal [1, 5], a.collect(&:id)
348 349 end
349 350
350 351 def test_root
351 352 r = Project.find(6).root
352 353 assert r.is_a?(Project)
353 354 assert_equal 1, r.id
354 355 end
355 356
356 357 def test_children
357 358 c = Project.find(1).children
358 359 assert c.first.is_a?(Project)
359 360 assert_equal [5, 3, 4], c.collect(&:id)
360 361 end
361 362
362 363 def test_descendants
363 364 d = Project.find(1).descendants
364 365 assert d.first.is_a?(Project)
365 366 assert_equal [5, 6, 3, 4], d.collect(&:id)
366 367 end
367 368
368 369 def test_allowed_parents_should_be_empty_for_non_member_user
369 370 Role.non_member.add_permission!(:add_project)
370 371 user = User.find(9)
371 372 assert user.memberships.empty?
372 373 User.current = user
373 374 assert Project.new.allowed_parents.compact.empty?
374 375 end
375 376
376 377 def test_allowed_parents_with_add_subprojects_permission
377 378 Role.find(1).remove_permission!(:add_project)
378 379 Role.find(1).add_permission!(:add_subprojects)
379 380 User.current = User.find(2)
380 381 # new project
381 382 assert !Project.new.allowed_parents.include?(nil)
382 383 assert Project.new.allowed_parents.include?(Project.find(1))
383 384 # existing root project
384 385 assert Project.find(1).allowed_parents.include?(nil)
385 386 # existing child
386 387 assert Project.find(3).allowed_parents.include?(Project.find(1))
387 388 assert !Project.find(3).allowed_parents.include?(nil)
388 389 end
389 390
390 391 def test_allowed_parents_with_add_project_permission
391 392 Role.find(1).add_permission!(:add_project)
392 393 Role.find(1).remove_permission!(:add_subprojects)
393 394 User.current = User.find(2)
394 395 # new project
395 396 assert Project.new.allowed_parents.include?(nil)
396 397 assert !Project.new.allowed_parents.include?(Project.find(1))
397 398 # existing root project
398 399 assert Project.find(1).allowed_parents.include?(nil)
399 400 # existing child
400 401 assert Project.find(3).allowed_parents.include?(Project.find(1))
401 402 assert Project.find(3).allowed_parents.include?(nil)
402 403 end
403 404
404 405 def test_allowed_parents_with_add_project_and_subprojects_permission
405 406 Role.find(1).add_permission!(:add_project)
406 407 Role.find(1).add_permission!(:add_subprojects)
407 408 User.current = User.find(2)
408 409 # new project
409 410 assert Project.new.allowed_parents.include?(nil)
410 411 assert Project.new.allowed_parents.include?(Project.find(1))
411 412 # existing root project
412 413 assert Project.find(1).allowed_parents.include?(nil)
413 414 # existing child
414 415 assert Project.find(3).allowed_parents.include?(Project.find(1))
415 416 assert Project.find(3).allowed_parents.include?(nil)
416 417 end
417 418
418 419 def test_users_by_role
419 420 users_by_role = Project.find(1).users_by_role
420 421 assert_kind_of Hash, users_by_role
421 422 role = Role.find(1)
422 423 assert_kind_of Array, users_by_role[role]
423 424 assert users_by_role[role].include?(User.find(2))
424 425 end
425 426
426 427 def test_rolled_up_trackers
427 428 parent = Project.find(1)
428 429 parent.trackers = Tracker.find([1,2])
429 430 child = parent.children.find(3)
430 431
431 432 assert_equal [1, 2], parent.tracker_ids
432 433 assert_equal [2, 3], child.trackers.collect(&:id)
433 434
434 435 assert_kind_of Tracker, parent.rolled_up_trackers.first
435 436 assert_equal Tracker.find(1), parent.rolled_up_trackers.first
436 437
437 438 assert_equal [1, 2, 3], parent.rolled_up_trackers.collect(&:id)
438 439 assert_equal [2, 3], child.rolled_up_trackers.collect(&:id)
439 440 end
440 441
441 442 def test_rolled_up_trackers_should_ignore_archived_subprojects
442 443 parent = Project.find(1)
443 444 parent.trackers = Tracker.find([1,2])
444 445 child = parent.children.find(3)
445 446 child.trackers = Tracker.find([1,3])
446 447 parent.children.each(&:archive)
447 448
448 449 assert_equal [1,2], parent.rolled_up_trackers.collect(&:id)
449 450 end
450 451
451 452 context "#rolled_up_versions" do
452 453 setup do
453 454 @project = Project.generate!
454 455 @parent_version_1 = Version.generate!(:project => @project)
455 456 @parent_version_2 = Version.generate!(:project => @project)
456 457 end
457 458
458 459 should "include the versions for the current project" do
459 460 assert_same_elements [@parent_version_1, @parent_version_2], @project.rolled_up_versions
460 461 end
461 462
462 463 should "include versions for a subproject" do
463 464 @subproject = Project.generate!
464 465 @subproject.set_parent!(@project)
465 466 @subproject_version = Version.generate!(:project => @subproject)
466 467
467 468 assert_same_elements [
468 469 @parent_version_1,
469 470 @parent_version_2,
470 471 @subproject_version
471 472 ], @project.rolled_up_versions
472 473 end
473 474
474 475 should "include versions for a sub-subproject" do
475 476 @subproject = Project.generate!
476 477 @subproject.set_parent!(@project)
477 478 @sub_subproject = Project.generate!
478 479 @sub_subproject.set_parent!(@subproject)
479 480 @sub_subproject_version = Version.generate!(:project => @sub_subproject)
480 481
481 482 @project.reload
482 483
483 484 assert_same_elements [
484 485 @parent_version_1,
485 486 @parent_version_2,
486 487 @sub_subproject_version
487 488 ], @project.rolled_up_versions
488 489 end
489 490
490 491 should "only check active projects" do
491 492 @subproject = Project.generate!
492 493 @subproject.set_parent!(@project)
493 494 @subproject_version = Version.generate!(:project => @subproject)
494 495 assert @subproject.archive
495 496
496 497 @project.reload
497 498
498 499 assert !@subproject.active?
499 500 assert_same_elements [@parent_version_1, @parent_version_2], @project.rolled_up_versions
500 501 end
501 502 end
502 503
503 504 def test_shared_versions_none_sharing
504 505 p = Project.find(5)
505 506 v = Version.create!(:name => 'none_sharing', :project => p, :sharing => 'none')
506 507 assert p.shared_versions.include?(v)
507 508 assert !p.children.first.shared_versions.include?(v)
508 509 assert !p.root.shared_versions.include?(v)
509 510 assert !p.siblings.first.shared_versions.include?(v)
510 511 assert !p.root.siblings.first.shared_versions.include?(v)
511 512 end
512 513
513 514 def test_shared_versions_descendants_sharing
514 515 p = Project.find(5)
515 516 v = Version.create!(:name => 'descendants_sharing', :project => p, :sharing => 'descendants')
516 517 assert p.shared_versions.include?(v)
517 518 assert p.children.first.shared_versions.include?(v)
518 519 assert !p.root.shared_versions.include?(v)
519 520 assert !p.siblings.first.shared_versions.include?(v)
520 521 assert !p.root.siblings.first.shared_versions.include?(v)
521 522 end
522 523
523 524 def test_shared_versions_hierarchy_sharing
524 525 p = Project.find(5)
525 526 v = Version.create!(:name => 'hierarchy_sharing', :project => p, :sharing => 'hierarchy')
526 527 assert p.shared_versions.include?(v)
527 528 assert p.children.first.shared_versions.include?(v)
528 529 assert p.root.shared_versions.include?(v)
529 530 assert !p.siblings.first.shared_versions.include?(v)
530 531 assert !p.root.siblings.first.shared_versions.include?(v)
531 532 end
532 533
533 534 def test_shared_versions_tree_sharing
534 535 p = Project.find(5)
535 536 v = Version.create!(:name => 'tree_sharing', :project => p, :sharing => 'tree')
536 537 assert p.shared_versions.include?(v)
537 538 assert p.children.first.shared_versions.include?(v)
538 539 assert p.root.shared_versions.include?(v)
539 540 assert p.siblings.first.shared_versions.include?(v)
540 541 assert !p.root.siblings.first.shared_versions.include?(v)
541 542 end
542 543
543 544 def test_shared_versions_system_sharing
544 545 p = Project.find(5)
545 546 v = Version.create!(:name => 'system_sharing', :project => p, :sharing => 'system')
546 547 assert p.shared_versions.include?(v)
547 548 assert p.children.first.shared_versions.include?(v)
548 549 assert p.root.shared_versions.include?(v)
549 550 assert p.siblings.first.shared_versions.include?(v)
550 551 assert p.root.siblings.first.shared_versions.include?(v)
551 552 end
552 553
553 554 def test_shared_versions
554 555 parent = Project.find(1)
555 556 child = parent.children.find(3)
556 557 private_child = parent.children.find(5)
557 558
558 559 assert_equal [1,2,3], parent.version_ids.sort
559 560 assert_equal [4], child.version_ids
560 561 assert_equal [6], private_child.version_ids
561 562 assert_equal [7], Version.find_all_by_sharing('system').collect(&:id)
562 563
563 564 assert_equal 6, parent.shared_versions.size
564 565 parent.shared_versions.each do |version|
565 566 assert_kind_of Version, version
566 567 end
567 568
568 569 assert_equal [1,2,3,4,6,7], parent.shared_versions.collect(&:id).sort
569 570 end
570 571
571 572 def test_shared_versions_should_ignore_archived_subprojects
572 573 parent = Project.find(1)
573 574 child = parent.children.find(3)
574 575 child.archive
575 576 parent.reload
576 577
577 578 assert_equal [1,2,3], parent.version_ids.sort
578 579 assert_equal [4], child.version_ids
579 580 assert !parent.shared_versions.collect(&:id).include?(4)
580 581 end
581 582
582 583 def test_shared_versions_visible_to_user
583 584 user = User.find(3)
584 585 parent = Project.find(1)
585 586 child = parent.children.find(5)
586 587
587 588 assert_equal [1,2,3], parent.version_ids.sort
588 589 assert_equal [6], child.version_ids
589 590
590 591 versions = parent.shared_versions.visible(user)
591 592
592 593 assert_equal 4, versions.size
593 594 versions.each do |version|
594 595 assert_kind_of Version, version
595 596 end
596 597
597 598 assert !versions.collect(&:id).include?(6)
598 599 end
599 600
600 601 def test_next_identifier
601 602 ProjectCustomField.delete_all
602 603 Project.create!(:name => 'last', :identifier => 'p2008040')
603 604 assert_equal 'p2008041', Project.next_identifier
604 605 end
605 606
606 607 def test_next_identifier_first_project
607 608 Project.delete_all
608 609 assert_nil Project.next_identifier
609 610 end
610 611
611 612 def test_enabled_module_names
612 613 with_settings :default_projects_modules => ['issue_tracking', 'repository'] do
613 614 project = Project.new
614 615
615 616 project.enabled_module_names = %w(issue_tracking news)
616 617 assert_equal %w(issue_tracking news), project.enabled_module_names.sort
617 618 end
618 619 end
619 620
620 621 context "enabled_modules" do
621 622 setup do
622 623 @project = Project.find(1)
623 624 end
624 625
625 626 should "define module by names and preserve ids" do
626 627 # Remove one module
627 628 modules = @project.enabled_modules.slice(0..-2)
628 629 assert modules.any?
629 630 assert_difference 'EnabledModule.count', -1 do
630 631 @project.enabled_module_names = modules.collect(&:name)
631 632 end
632 633 @project.reload
633 634 # Ids should be preserved
634 635 assert_equal @project.enabled_module_ids.sort, modules.collect(&:id).sort
635 636 end
636 637
637 638 should "enable a module" do
638 639 @project.enabled_module_names = []
639 640 @project.reload
640 641 assert_equal [], @project.enabled_module_names
641 642 #with string
642 643 @project.enable_module!("issue_tracking")
643 644 assert_equal ["issue_tracking"], @project.enabled_module_names
644 645 #with symbol
645 646 @project.enable_module!(:gantt)
646 647 assert_equal ["issue_tracking", "gantt"], @project.enabled_module_names
647 648 #don't add a module twice
648 649 @project.enable_module!("issue_tracking")
649 650 assert_equal ["issue_tracking", "gantt"], @project.enabled_module_names
650 651 end
651 652
652 653 should "disable a module" do
653 654 #with string
654 655 assert @project.enabled_module_names.include?("issue_tracking")
655 656 @project.disable_module!("issue_tracking")
656 657 assert ! @project.reload.enabled_module_names.include?("issue_tracking")
657 658 #with symbol
658 659 assert @project.enabled_module_names.include?("gantt")
659 660 @project.disable_module!(:gantt)
660 661 assert ! @project.reload.enabled_module_names.include?("gantt")
661 662 #with EnabledModule object
662 663 first_module = @project.enabled_modules.first
663 664 @project.disable_module!(first_module)
664 665 assert ! @project.reload.enabled_module_names.include?(first_module.name)
665 666 end
666 667 end
667 668
668 669 def test_enabled_module_names_should_not_recreate_enabled_modules
669 670 project = Project.find(1)
670 671 # Remove one module
671 672 modules = project.enabled_modules.slice(0..-2)
672 673 assert modules.any?
673 674 assert_difference 'EnabledModule.count', -1 do
674 675 project.enabled_module_names = modules.collect(&:name)
675 676 end
676 677 project.reload
677 678 # Ids should be preserved
678 679 assert_equal project.enabled_module_ids.sort, modules.collect(&:id).sort
679 680 end
680 681
681 682 def test_copy_from_existing_project
682 683 source_project = Project.find(1)
683 684 copied_project = Project.copy_from(1)
684 685
685 686 assert copied_project
686 687 # Cleared attributes
687 688 assert copied_project.id.blank?
688 689 assert copied_project.name.blank?
689 690 assert copied_project.identifier.blank?
690 691
691 692 # Duplicated attributes
692 693 assert_equal source_project.description, copied_project.description
693 694 assert_equal source_project.enabled_modules, copied_project.enabled_modules
694 695 assert_equal source_project.trackers, copied_project.trackers
695 696
696 697 # Default attributes
697 698 assert_equal 1, copied_project.status
698 699 end
699 700
700 701 def test_activities_should_use_the_system_activities
701 702 project = Project.find(1)
702 703 assert_equal project.activities, TimeEntryActivity.find(:all, :conditions => {:active => true} )
703 704 end
704 705
705 706
706 707 def test_activities_should_use_the_project_specific_activities
707 708 project = Project.find(1)
708 709 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project})
709 710 assert overridden_activity.save!
710 711
711 712 assert project.activities.include?(overridden_activity), "Project specific Activity not found"
712 713 end
713 714
714 715 def test_activities_should_not_include_the_inactive_project_specific_activities
715 716 project = Project.find(1)
716 717 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project, :parent => TimeEntryActivity.find(:first), :active => false})
717 718 assert overridden_activity.save!
718 719
719 720 assert !project.activities.include?(overridden_activity), "Inactive Project specific Activity found"
720 721 end
721 722
722 723 def test_activities_should_not_include_project_specific_activities_from_other_projects
723 724 project = Project.find(1)
724 725 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => Project.find(2)})
725 726 assert overridden_activity.save!
726 727
727 728 assert !project.activities.include?(overridden_activity), "Project specific Activity found on a different project"
728 729 end
729 730
730 731 def test_activities_should_handle_nils
731 732 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => Project.find(1), :parent => TimeEntryActivity.find(:first)})
732 733 TimeEntryActivity.delete_all
733 734
734 735 # No activities
735 736 project = Project.find(1)
736 737 assert project.activities.empty?
737 738
738 739 # No system, one overridden
739 740 assert overridden_activity.save!
740 741 project.reload
741 742 assert_equal [overridden_activity], project.activities
742 743 end
743 744
744 745 def test_activities_should_override_system_activities_with_project_activities
745 746 project = Project.find(1)
746 747 parent_activity = TimeEntryActivity.find(:first)
747 748 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project, :parent => parent_activity})
748 749 assert overridden_activity.save!
749 750
750 751 assert project.activities.include?(overridden_activity), "Project specific Activity not found"
751 752 assert !project.activities.include?(parent_activity), "System Activity found when it should have been overridden"
752 753 end
753 754
754 755 def test_activities_should_include_inactive_activities_if_specified
755 756 project = Project.find(1)
756 757 overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project, :parent => TimeEntryActivity.find(:first), :active => false})
757 758 assert overridden_activity.save!
758 759
759 760 assert project.activities(true).include?(overridden_activity), "Inactive Project specific Activity not found"
760 761 end
761 762
762 763 test 'activities should not include active System activities if the project has an override that is inactive' do
763 764 project = Project.find(1)
764 765 system_activity = TimeEntryActivity.find_by_name('Design')
765 766 assert system_activity.active?
766 767 overridden_activity = TimeEntryActivity.generate!(:project => project, :parent => system_activity, :active => false)
767 768 assert overridden_activity.save!
768 769
769 770 assert !project.activities.include?(overridden_activity), "Inactive Project specific Activity not found"
770 771 assert !project.activities.include?(system_activity), "System activity found when the project has an inactive override"
771 772 end
772 773
773 774 def test_close_completed_versions
774 775 Version.update_all("status = 'open'")
775 776 project = Project.find(1)
776 777 assert_not_nil project.versions.detect {|v| v.completed? && v.status == 'open'}
777 778 assert_not_nil project.versions.detect {|v| !v.completed? && v.status == 'open'}
778 779 project.close_completed_versions
779 780 project.reload
780 781 assert_nil project.versions.detect {|v| v.completed? && v.status != 'closed'}
781 782 assert_not_nil project.versions.detect {|v| !v.completed? && v.status == 'open'}
782 783 end
783 784
784 785 context "Project#copy" do
785 786 setup do
786 787 ProjectCustomField.destroy_all # Custom values are a mess to isolate in tests
787 788 Project.destroy_all :identifier => "copy-test"
788 789 @source_project = Project.find(2)
789 790 @project = Project.new(:name => 'Copy Test', :identifier => 'copy-test')
790 791 @project.trackers = @source_project.trackers
791 792 @project.enabled_module_names = @source_project.enabled_modules.collect(&:name)
792 793 end
793 794
794 795 should "copy issues" do
795 796 @source_project.issues << Issue.generate!(:status => IssueStatus.find_by_name('Closed'),
796 797 :subject => "copy issue status",
797 798 :tracker_id => 1,
798 799 :assigned_to_id => 2,
799 800 :project_id => @source_project.id)
800 801 assert @project.valid?
801 802 assert @project.issues.empty?
802 803 assert @project.copy(@source_project)
803 804
804 805 assert_equal @source_project.issues.size, @project.issues.size
805 806 @project.issues.each do |issue|
806 807 assert issue.valid?
807 808 assert ! issue.assigned_to.blank?
808 809 assert_equal @project, issue.project
809 810 end
810 811
811 812 copied_issue = @project.issues.first(:conditions => {:subject => "copy issue status"})
812 813 assert copied_issue
813 814 assert copied_issue.status
814 815 assert_equal "Closed", copied_issue.status.name
815 816 end
816 817
817 818 should "change the new issues to use the copied version" do
818 819 User.current = User.find(1)
819 820 assigned_version = Version.generate!(:name => "Assigned Issues", :status => 'open')
820 821 @source_project.versions << assigned_version
821 822 assert_equal 3, @source_project.versions.size
822 823 Issue.generate_for_project!(@source_project,
823 824 :fixed_version_id => assigned_version.id,
824 825 :subject => "change the new issues to use the copied version",
825 826 :tracker_id => 1,
826 827 :project_id => @source_project.id)
827 828
828 829 assert @project.copy(@source_project)
829 830 @project.reload
830 831 copied_issue = @project.issues.first(:conditions => {:subject => "change the new issues to use the copied version"})
831 832
832 833 assert copied_issue
833 834 assert copied_issue.fixed_version
834 835 assert_equal "Assigned Issues", copied_issue.fixed_version.name # Same name
835 836 assert_not_equal assigned_version.id, copied_issue.fixed_version.id # Different record
836 837 end
837 838
838 839 should "copy issue relations" do
839 840 Setting.cross_project_issue_relations = '1'
840 841
841 842 second_issue = Issue.generate!(:status_id => 5,
842 843 :subject => "copy issue relation",
843 844 :tracker_id => 1,
844 845 :assigned_to_id => 2,
845 846 :project_id => @source_project.id)
846 847 source_relation = IssueRelation.generate!(:issue_from => Issue.find(4),
847 848 :issue_to => second_issue,
848 849 :relation_type => "relates")
849 850 source_relation_cross_project = IssueRelation.generate!(:issue_from => Issue.find(1),
850 851 :issue_to => second_issue,
851 852 :relation_type => "duplicates")
852 853
853 854 assert @project.copy(@source_project)
854 855 assert_equal @source_project.issues.count, @project.issues.count
855 856 copied_issue = @project.issues.find_by_subject("Issue on project 2") # Was #4
856 857 copied_second_issue = @project.issues.find_by_subject("copy issue relation")
857 858
858 859 # First issue with a relation on project
859 860 assert_equal 1, copied_issue.relations.size, "Relation not copied"
860 861 copied_relation = copied_issue.relations.first
861 862 assert_equal "relates", copied_relation.relation_type
862 863 assert_equal copied_second_issue.id, copied_relation.issue_to_id
863 864 assert_not_equal source_relation.id, copied_relation.id
864 865
865 866 # Second issue with a cross project relation
866 867 assert_equal 2, copied_second_issue.relations.size, "Relation not copied"
867 868 copied_relation = copied_second_issue.relations.select {|r| r.relation_type == 'duplicates'}.first
868 869 assert_equal "duplicates", copied_relation.relation_type
869 870 assert_equal 1, copied_relation.issue_from_id, "Cross project relation not kept"
870 871 assert_not_equal source_relation_cross_project.id, copied_relation.id
871 872 end
872 873
873 874 should "copy issue attachments" do
874 875 issue = Issue.generate!(:subject => "copy with attachment", :tracker_id => 1, :project_id => @source_project.id)
875 876 Attachment.create!(:container => issue, :file => uploaded_test_file("testfile.txt", "text/plain"), :author_id => 1)
876 877 @source_project.issues << issue
877 878 assert @project.copy(@source_project)
878 879
879 880 copied_issue = @project.issues.first(:conditions => {:subject => "copy with attachment"})
880 881 assert_not_nil copied_issue
881 882 assert_equal 1, copied_issue.attachments.count, "Attachment not copied"
882 883 assert_equal "testfile.txt", copied_issue.attachments.first.filename
883 884 end
884 885
885 886 should "copy memberships" do
886 887 assert @project.valid?
887 888 assert @project.members.empty?
888 889 assert @project.copy(@source_project)
889 890
890 891 assert_equal @source_project.memberships.size, @project.memberships.size
891 892 @project.memberships.each do |membership|
892 893 assert membership
893 894 assert_equal @project, membership.project
894 895 end
895 896 end
896 897
897 898 should "copy memberships with groups and additional roles" do
898 899 group = Group.create!(:lastname => "Copy group")
899 900 user = User.find(7)
900 901 group.users << user
901 902 # group role
902 903 Member.create!(:project_id => @source_project.id, :principal => group, :role_ids => [2])
903 904 member = Member.find_by_user_id_and_project_id(user.id, @source_project.id)
904 905 # additional role
905 906 member.role_ids = [1]
906 907
907 908 assert @project.copy(@source_project)
908 909 member = Member.find_by_user_id_and_project_id(user.id, @project.id)
909 910 assert_not_nil member
910 911 assert_equal [1, 2], member.role_ids.sort
911 912 end
912 913
913 914 should "copy project specific queries" do
914 915 assert @project.valid?
915 916 assert @project.queries.empty?
916 917 assert @project.copy(@source_project)
917 918
918 919 assert_equal @source_project.queries.size, @project.queries.size
919 920 @project.queries.each do |query|
920 921 assert query
921 922 assert_equal @project, query.project
922 923 end
923 924 assert_equal @source_project.queries.map(&:user_id).sort, @project.queries.map(&:user_id).sort
924 925 end
925 926
926 927 should "copy versions" do
927 928 @source_project.versions << Version.generate!
928 929 @source_project.versions << Version.generate!
929 930
930 931 assert @project.versions.empty?
931 932 assert @project.copy(@source_project)
932 933
933 934 assert_equal @source_project.versions.size, @project.versions.size
934 935 @project.versions.each do |version|
935 936 assert version
936 937 assert_equal @project, version.project
937 938 end
938 939 end
939 940
940 941 should "copy wiki" do
941 942 assert_difference 'Wiki.count' do
942 943 assert @project.copy(@source_project)
943 944 end
944 945
945 946 assert @project.wiki
946 947 assert_not_equal @source_project.wiki, @project.wiki
947 948 assert_equal "Start page", @project.wiki.start_page
948 949 end
949 950
950 951 should "copy wiki pages and content with hierarchy" do
951 952 assert_difference 'WikiPage.count', @source_project.wiki.pages.size do
952 953 assert @project.copy(@source_project)
953 954 end
954 955
955 956 assert @project.wiki
956 957 assert_equal @source_project.wiki.pages.size, @project.wiki.pages.size
957 958
958 959 @project.wiki.pages.each do |wiki_page|
959 960 assert wiki_page.content
960 961 assert !@source_project.wiki.pages.include?(wiki_page)
961 962 end
962 963
963 964 parent = @project.wiki.find_page('Parent_page')
964 965 child1 = @project.wiki.find_page('Child_page_1')
965 966 child2 = @project.wiki.find_page('Child_page_2')
966 967 assert_equal parent, child1.parent
967 968 assert_equal parent, child2.parent
968 969 end
969 970
970 971 should "copy issue categories" do
971 972 assert @project.copy(@source_project)
972 973
973 974 assert_equal 2, @project.issue_categories.size
974 975 @project.issue_categories.each do |issue_category|
975 976 assert !@source_project.issue_categories.include?(issue_category)
976 977 end
977 978 end
978 979
979 980 should "copy boards" do
980 981 assert @project.copy(@source_project)
981 982
982 983 assert_equal 1, @project.boards.size
983 984 @project.boards.each do |board|
984 985 assert !@source_project.boards.include?(board)
985 986 end
986 987 end
987 988
988 989 should "change the new issues to use the copied issue categories" do
989 990 issue = Issue.find(4)
990 991 issue.update_attribute(:category_id, 3)
991 992
992 993 assert @project.copy(@source_project)
993 994
994 995 @project.issues.each do |issue|
995 996 assert issue.category
996 997 assert_equal "Stock management", issue.category.name # Same name
997 998 assert_not_equal IssueCategory.find(3), issue.category # Different record
998 999 end
999 1000 end
1000 1001
1001 1002 should "limit copy with :only option" do
1002 1003 assert @project.members.empty?
1003 1004 assert @project.issue_categories.empty?
1004 1005 assert @source_project.issues.any?
1005 1006
1006 1007 assert @project.copy(@source_project, :only => ['members', 'issue_categories'])
1007 1008
1008 1009 assert @project.members.any?
1009 1010 assert @project.issue_categories.any?
1010 1011 assert @project.issues.empty?
1011 1012 end
1012 1013
1013 1014 end
1014 1015
1015 1016 context "#start_date" do
1016 1017 setup do
1017 1018 ProjectCustomField.destroy_all # Custom values are a mess to isolate in tests
1018 1019 @project = Project.generate!(:identifier => 'test0')
1019 1020 @project.trackers << Tracker.generate!
1020 1021 end
1021 1022
1022 1023 should "be nil if there are no issues on the project" do
1023 1024 assert_nil @project.start_date
1024 1025 end
1025 1026
1026 1027 should "be tested when issues have no start date"
1027 1028
1028 1029 should "be the earliest start date of it's issues" do
1029 1030 early = 7.days.ago.to_date
1030 1031 Issue.generate_for_project!(@project, :start_date => Date.today)
1031 1032 Issue.generate_for_project!(@project, :start_date => early)
1032 1033
1033 1034 assert_equal early, @project.start_date
1034 1035 end
1035 1036
1036 1037 end
1037 1038
1038 1039 context "#due_date" do
1039 1040 setup do
1040 1041 ProjectCustomField.destroy_all # Custom values are a mess to isolate in tests
1041 1042 @project = Project.generate!(:identifier => 'test0')
1042 1043 @project.trackers << Tracker.generate!
1043 1044 end
1044 1045
1045 1046 should "be nil if there are no issues on the project" do
1046 1047 assert_nil @project.due_date
1047 1048 end
1048 1049
1049 1050 should "be tested when issues have no due date"
1050 1051
1051 1052 should "be the latest due date of it's issues" do
1052 1053 future = 7.days.from_now.to_date
1053 1054 Issue.generate_for_project!(@project, :due_date => future)
1054 1055 Issue.generate_for_project!(@project, :due_date => Date.today)
1055 1056
1056 1057 assert_equal future, @project.due_date
1057 1058 end
1058 1059
1059 1060 should "be the latest due date of it's versions" do
1060 1061 future = 7.days.from_now.to_date
1061 1062 @project.versions << Version.generate!(:effective_date => future)
1062 1063 @project.versions << Version.generate!(:effective_date => Date.today)
1063 1064
1064 1065
1065 1066 assert_equal future, @project.due_date
1066 1067
1067 1068 end
1068 1069
1069 1070 should "pick the latest date from it's issues and versions" do
1070 1071 future = 7.days.from_now.to_date
1071 1072 far_future = 14.days.from_now.to_date
1072 1073 Issue.generate_for_project!(@project, :due_date => far_future)
1073 1074 @project.versions << Version.generate!(:effective_date => future)
1074 1075
1075 1076 assert_equal far_future, @project.due_date
1076 1077 end
1077 1078
1078 1079 end
1079 1080
1080 1081 context "Project#completed_percent" do
1081 1082 setup do
1082 1083 ProjectCustomField.destroy_all # Custom values are a mess to isolate in tests
1083 1084 @project = Project.generate!(:identifier => 'test0')
1084 1085 @project.trackers << Tracker.generate!
1085 1086 end
1086 1087
1087 1088 context "no versions" do
1088 1089 should "be 100" do
1089 1090 assert_equal 100, @project.completed_percent
1090 1091 end
1091 1092 end
1092 1093
1093 1094 context "with versions" do
1094 1095 should "return 0 if the versions have no issues" do
1095 1096 Version.generate!(:project => @project)
1096 1097 Version.generate!(:project => @project)
1097 1098
1098 1099 assert_equal 0, @project.completed_percent
1099 1100 end
1100 1101
1101 1102 should "return 100 if the version has only closed issues" do
1102 1103 v1 = Version.generate!(:project => @project)
1103 1104 Issue.generate_for_project!(@project, :status => IssueStatus.find_by_name('Closed'), :fixed_version => v1)
1104 1105 v2 = Version.generate!(:project => @project)
1105 1106 Issue.generate_for_project!(@project, :status => IssueStatus.find_by_name('Closed'), :fixed_version => v2)
1106 1107
1107 1108 assert_equal 100, @project.completed_percent
1108 1109 end
1109 1110
1110 1111 should "return the averaged completed percent of the versions (not weighted)" do
1111 1112 v1 = Version.generate!(:project => @project)
1112 1113 Issue.generate_for_project!(@project, :status => IssueStatus.find_by_name('New'), :estimated_hours => 10, :done_ratio => 50, :fixed_version => v1)
1113 1114 v2 = Version.generate!(:project => @project)
1114 1115 Issue.generate_for_project!(@project, :status => IssueStatus.find_by_name('New'), :estimated_hours => 10, :done_ratio => 50, :fixed_version => v2)
1115 1116
1116 1117 assert_equal 50, @project.completed_percent
1117 1118 end
1118 1119
1119 1120 end
1120 1121 end
1121 1122
1122 1123 context "#notified_users" do
1123 1124 setup do
1124 1125 @project = Project.generate!
1125 1126 @role = Role.generate!
1126 1127
1127 1128 @user_with_membership_notification = User.generate!(:mail_notification => 'selected')
1128 1129 Member.generate!(:project => @project, :roles => [@role], :principal => @user_with_membership_notification, :mail_notification => true)
1129 1130
1130 1131 @all_events_user = User.generate!(:mail_notification => 'all')
1131 1132 Member.generate!(:project => @project, :roles => [@role], :principal => @all_events_user)
1132 1133
1133 1134 @no_events_user = User.generate!(:mail_notification => 'none')
1134 1135 Member.generate!(:project => @project, :roles => [@role], :principal => @no_events_user)
1135 1136
1136 1137 @only_my_events_user = User.generate!(:mail_notification => 'only_my_events')
1137 1138 Member.generate!(:project => @project, :roles => [@role], :principal => @only_my_events_user)
1138 1139
1139 1140 @only_assigned_user = User.generate!(:mail_notification => 'only_assigned')
1140 1141 Member.generate!(:project => @project, :roles => [@role], :principal => @only_assigned_user)
1141 1142
1142 1143 @only_owned_user = User.generate!(:mail_notification => 'only_owner')
1143 1144 Member.generate!(:project => @project, :roles => [@role], :principal => @only_owned_user)
1144 1145 end
1145 1146
1146 1147 should "include members with a mail notification" do
1147 1148 assert @project.notified_users.include?(@user_with_membership_notification)
1148 1149 end
1149 1150
1150 1151 should "include users with the 'all' notification option" do
1151 1152 assert @project.notified_users.include?(@all_events_user)
1152 1153 end
1153 1154
1154 1155 should "not include users with the 'none' notification option" do
1155 1156 assert !@project.notified_users.include?(@no_events_user)
1156 1157 end
1157 1158
1158 1159 should "not include users with the 'only_my_events' notification option" do
1159 1160 assert !@project.notified_users.include?(@only_my_events_user)
1160 1161 end
1161 1162
1162 1163 should "not include users with the 'only_assigned' notification option" do
1163 1164 assert !@project.notified_users.include?(@only_assigned_user)
1164 1165 end
1165 1166
1166 1167 should "not include users with the 'only_owner' notification option" do
1167 1168 assert !@project.notified_users.include?(@only_owned_user)
1168 1169 end
1169 1170 end
1170 1171
1171 1172 end
General Comments 0
You need to be logged in to leave comments. Login now