##// END OF EJS Templates
Adds settings to control start/due dates and priority on parent tasks (#5490)....
Jean-Philippe Lang -
r13887:0ad09e3aef86
parent child
Show More
@@ -0,0 +1,146
1 # Redmine - project management software
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18 require File.expand_path('../../test_helper', __FILE__)
19
20 class IssueSubtaskingTest < ActiveSupport::TestCase
21 fixtures :projects, :users, :roles, :members, :member_roles,
22 :trackers, :projects_trackers,
23 :issue_statuses, :issue_categories, :enumerations,
24 :issues
25
26 def test_leaf_planning_fields_should_be_editable
27 issue = Issue.generate!
28 user = User.find(1)
29 %w(priority_id done_ratio start_date due_date estimated_hours).each do |attribute|
30 assert issue.safe_attribute?(attribute, user)
31 end
32 end
33
34 def test_parent_dates_should_be_read_only_with_parent_issue_dates_set_to_derived
35 with_settings :parent_issue_dates => 'derived' do
36 issue = Issue.generate_with_child!
37 user = User.find(1)
38 %w(start_date due_date).each do |attribute|
39 assert !issue.safe_attribute?(attribute, user)
40 end
41 end
42 end
43
44 def test_parent_dates_should_be_lowest_start_and_highest_due_dates_with_parent_issue_dates_set_to_derived
45 with_settings :parent_issue_dates => 'derived' do
46 parent = Issue.generate!
47 parent.generate_child!(:start_date => '2010-01-25', :due_date => '2010-02-15')
48 parent.generate_child!( :due_date => '2010-02-13')
49 parent.generate_child!(:start_date => '2010-02-01', :due_date => '2010-02-22')
50 parent.reload
51 assert_equal Date.parse('2010-01-25'), parent.start_date
52 assert_equal Date.parse('2010-02-22'), parent.due_date
53 end
54 end
55
56 def test_reschuling_a_parent_should_reschedule_subtasks_with_parent_issue_dates_set_to_derived
57 with_settings :parent_issue_dates => 'derived' do
58 parent = Issue.generate!
59 c1 = parent.generate_child!(:start_date => '2010-05-12', :due_date => '2010-05-18')
60 c2 = parent.generate_child!(:start_date => '2010-06-03', :due_date => '2010-06-10')
61 parent.reload.reschedule_on!(Date.parse('2010-06-02'))
62 c1.reload
63 assert_equal [Date.parse('2010-06-02'), Date.parse('2010-06-08')], [c1.start_date, c1.due_date]
64 c2.reload
65 assert_equal [Date.parse('2010-06-03'), Date.parse('2010-06-10')], [c2.start_date, c2.due_date] # no change
66 parent.reload
67 assert_equal [Date.parse('2010-06-02'), Date.parse('2010-06-10')], [parent.start_date, parent.due_date]
68 end
69 end
70
71 def test_parent_priority_should_be_read_only_with_parent_issue_priority_set_to_derived
72 with_settings :parent_issue_priority => 'derived' do
73 issue = Issue.generate_with_child!
74 user = User.find(1)
75 assert !issue.safe_attribute?('priority_id', user)
76 end
77 end
78
79 def test_parent_priority_should_be_the_highest_child_priority
80 with_settings :parent_issue_priority => 'derived' do
81 parent = Issue.generate!(:priority => IssuePriority.find_by_name('Normal'))
82 # Create children
83 child1 = parent.generate_child!(:priority => IssuePriority.find_by_name('High'))
84 assert_equal 'High', parent.reload.priority.name
85 child2 = child1.generate_child!(:priority => IssuePriority.find_by_name('Immediate'))
86 assert_equal 'Immediate', child1.reload.priority.name
87 assert_equal 'Immediate', parent.reload.priority.name
88 child3 = parent.generate_child!(:priority => IssuePriority.find_by_name('Low'))
89 assert_equal 'Immediate', parent.reload.priority.name
90 # Destroy a child
91 child1.destroy
92 assert_equal 'Low', parent.reload.priority.name
93 # Update a child
94 child3.reload.priority = IssuePriority.find_by_name('Normal')
95 child3.save!
96 assert_equal 'Normal', parent.reload.priority.name
97 end
98 end
99
100 def test_parent_dates_should_be_editable_with_parent_issue_dates_set_to_independent
101 with_settings :parent_issue_dates => 'independent' do
102 issue = Issue.generate_with_child!
103 user = User.find(1)
104 %w(start_date due_date).each do |attribute|
105 assert issue.safe_attribute?(attribute, user)
106 end
107 end
108 end
109
110 def test_parent_dates_should_not_be_updated_with_parent_issue_dates_set_to_independent
111 with_settings :parent_issue_dates => 'independent' do
112 parent = Issue.generate!(:start_date => '2015-07-01', :due_date => '2015-08-01')
113 parent.generate_child!(:start_date => '2015-06-01', :due_date => '2015-09-01')
114 parent.reload
115 assert_equal Date.parse('2015-07-01'), parent.start_date
116 assert_equal Date.parse('2015-08-01'), parent.due_date
117 end
118 end
119
120 def test_reschuling_a_parent_should_not_reschedule_subtasks_with_parent_issue_dates_set_to_independent
121 with_settings :parent_issue_dates => 'independent' do
122 parent = Issue.generate!(:start_date => '2010-05-01', :due_date => '2010-05-20')
123 c1 = parent.generate_child!(:start_date => '2010-05-12', :due_date => '2010-05-18')
124 parent.reload.reschedule_on!(Date.parse('2010-06-01'))
125 assert_equal Date.parse('2010-06-01'), parent.reload.start_date
126 c1.reload
127 assert_equal [Date.parse('2010-05-12'), Date.parse('2010-05-18')], [c1.start_date, c1.due_date]
128 end
129 end
130
131 def test_parent_priority_should_be_editable_with_parent_issue_priority_set_to_independent
132 with_settings :parent_issue_priority => 'independent' do
133 issue = Issue.generate_with_child!
134 user = User.find(1)
135 assert issue.safe_attribute?('priority_id', user)
136 end
137 end
138
139 def test_parent_priority_should_not_be_updated_with_parent_issue_priority_set_to_independent
140 with_settings :parent_issue_priority => 'independent' do
141 parent = Issue.generate!(:priority => IssuePriority.find_by_name('Normal'))
142 child1 = parent.generate_child!(:priority => IssuePriority.find_by_name('High'))
143 assert_equal 'Normal', parent.reload.priority.name
144 end
145 end
146 end
@@ -1,139 +1,162
1 # encoding: utf-8
1 # encoding: utf-8
2 #
2 #
3 # Redmine - project management software
3 # Redmine - project management software
4 # Copyright (C) 2006-2015 Jean-Philippe Lang
4 # Copyright (C) 2006-2015 Jean-Philippe Lang
5 #
5 #
6 # This program is free software; you can redistribute it and/or
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
9 # of the License, or (at your option) any later version.
10 #
10 #
11 # This program is distributed in the hope that it will be useful,
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
14 # GNU General Public License for more details.
15 #
15 #
16 # You should have received a copy of the GNU General Public License
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
20 module SettingsHelper
20 module SettingsHelper
21 def administration_settings_tabs
21 def administration_settings_tabs
22 tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
22 tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
23 {:name => 'display', :partial => 'settings/display', :label => :label_display},
23 {:name => 'display', :partial => 'settings/display', :label => :label_display},
24 {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
24 {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
25 {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
25 {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
26 {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
26 {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
27 {:name => 'notifications', :partial => 'settings/notifications', :label => :field_mail_notification},
27 {:name => 'notifications', :partial => 'settings/notifications', :label => :field_mail_notification},
28 {:name => 'mail_handler', :partial => 'settings/mail_handler', :label => :label_incoming_emails},
28 {:name => 'mail_handler', :partial => 'settings/mail_handler', :label => :label_incoming_emails},
29 {:name => 'repositories', :partial => 'settings/repositories', :label => :label_repository_plural}
29 {:name => 'repositories', :partial => 'settings/repositories', :label => :label_repository_plural}
30 ]
30 ]
31 end
31 end
32
32
33 def setting_select(setting, choices, options={})
33 def setting_select(setting, choices, options={})
34 if blank_text = options.delete(:blank)
34 if blank_text = options.delete(:blank)
35 choices = [[blank_text.is_a?(Symbol) ? l(blank_text) : blank_text, '']] + choices
35 choices = [[blank_text.is_a?(Symbol) ? l(blank_text) : blank_text, '']] + choices
36 end
36 end
37 setting_label(setting, options).html_safe +
37 setting_label(setting, options).html_safe +
38 select_tag("settings[#{setting}]",
38 select_tag("settings[#{setting}]",
39 options_for_select(choices, Setting.send(setting).to_s),
39 options_for_select(choices, Setting.send(setting).to_s),
40 options).html_safe
40 options).html_safe
41 end
41 end
42
42
43 def setting_multiselect(setting, choices, options={})
43 def setting_multiselect(setting, choices, options={})
44 setting_values = Setting.send(setting)
44 setting_values = Setting.send(setting)
45 setting_values = [] unless setting_values.is_a?(Array)
45 setting_values = [] unless setting_values.is_a?(Array)
46
46
47 content_tag("label", l(options[:label] || "setting_#{setting}")) +
47 content_tag("label", l(options[:label] || "setting_#{setting}")) +
48 hidden_field_tag("settings[#{setting}][]", '').html_safe +
48 hidden_field_tag("settings[#{setting}][]", '').html_safe +
49 choices.collect do |choice|
49 choices.collect do |choice|
50 text, value = (choice.is_a?(Array) ? choice : [choice, choice])
50 text, value = (choice.is_a?(Array) ? choice : [choice, choice])
51 content_tag(
51 content_tag(
52 'label',
52 'label',
53 check_box_tag(
53 check_box_tag(
54 "settings[#{setting}][]",
54 "settings[#{setting}][]",
55 value,
55 value,
56 setting_values.include?(value),
56 setting_values.include?(value),
57 :id => nil
57 :id => nil
58 ) + text.to_s,
58 ) + text.to_s,
59 :class => (options[:inline] ? 'inline' : 'block')
59 :class => (options[:inline] ? 'inline' : 'block')
60 )
60 )
61 end.join.html_safe
61 end.join.html_safe
62 end
62 end
63
63
64 def setting_text_field(setting, options={})
64 def setting_text_field(setting, options={})
65 setting_label(setting, options).html_safe +
65 setting_label(setting, options).html_safe +
66 text_field_tag("settings[#{setting}]", Setting.send(setting), options).html_safe
66 text_field_tag("settings[#{setting}]", Setting.send(setting), options).html_safe
67 end
67 end
68
68
69 def setting_text_area(setting, options={})
69 def setting_text_area(setting, options={})
70 setting_label(setting, options).html_safe +
70 setting_label(setting, options).html_safe +
71 text_area_tag("settings[#{setting}]", Setting.send(setting), options).html_safe
71 text_area_tag("settings[#{setting}]", Setting.send(setting), options).html_safe
72 end
72 end
73
73
74 def setting_check_box(setting, options={})
74 def setting_check_box(setting, options={})
75 setting_label(setting, options).html_safe +
75 setting_label(setting, options).html_safe +
76 hidden_field_tag("settings[#{setting}]", 0, :id => nil).html_safe +
76 hidden_field_tag("settings[#{setting}]", 0, :id => nil).html_safe +
77 check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options).html_safe
77 check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options).html_safe
78 end
78 end
79
79
80 def setting_label(setting, options={})
80 def setting_label(setting, options={})
81 label = options.delete(:label)
81 label = options.delete(:label)
82 label != false ? label_tag("settings_#{setting}", l(label || "setting_#{setting}"), options[:label_options]).html_safe : ''
82 if label == false
83 ''
84 else
85 text = label.is_a?(String) ? label : l(label || "setting_#{setting}")
86 label_tag("settings_#{setting}", text, options[:label_options])
87 end
83 end
88 end
84
89
85 # Renders a notification field for a Redmine::Notifiable option
90 # Renders a notification field for a Redmine::Notifiable option
86 def notification_field(notifiable)
91 def notification_field(notifiable)
87 tag_data = notifiable.parent.present? ?
92 tag_data = notifiable.parent.present? ?
88 {:parent_notifiable => notifiable.parent} :
93 {:parent_notifiable => notifiable.parent} :
89 {:disables => "input[data-parent-notifiable=#{notifiable.name}]"}
94 {:disables => "input[data-parent-notifiable=#{notifiable.name}]"}
90
95
91 tag = check_box_tag('settings[notified_events][]',
96 tag = check_box_tag('settings[notified_events][]',
92 notifiable.name,
97 notifiable.name,
93 Setting.notified_events.include?(notifiable.name),
98 Setting.notified_events.include?(notifiable.name),
94 :id => nil,
99 :id => nil,
95 :data => tag_data)
100 :data => tag_data)
96
101
97 text = l_or_humanize(notifiable.name, :prefix => 'label_')
102 text = l_or_humanize(notifiable.name, :prefix => 'label_')
98
103
99 options = {}
104 options = {}
100 if notifiable.parent.present?
105 if notifiable.parent.present?
101 options[:class] = "parent"
106 options[:class] = "parent"
102 end
107 end
103
108
104 content_tag(:label, tag + text, options)
109 content_tag(:label, tag + text, options)
105 end
110 end
106
111
107 def link_copied_issue_options
112 def link_copied_issue_options
108 options = [
113 options = [
109 [:general_text_Yes, 'yes'],
114 [:general_text_Yes, 'yes'],
110 [:general_text_No, 'no'],
115 [:general_text_No, 'no'],
111 [:label_ask, 'ask']
116 [:label_ask, 'ask']
112 ]
117 ]
113
118
114 options.map {|label, value| [l(label), value.to_s]}
119 options.map {|label, value| [l(label), value.to_s]}
115 end
120 end
116
121
117 def cross_project_subtasks_options
122 def cross_project_subtasks_options
118 options = [
123 options = [
119 [:label_disabled, ''],
124 [:label_disabled, ''],
120 [:label_cross_project_system, 'system'],
125 [:label_cross_project_system, 'system'],
121 [:label_cross_project_tree, 'tree'],
126 [:label_cross_project_tree, 'tree'],
122 [:label_cross_project_hierarchy, 'hierarchy'],
127 [:label_cross_project_hierarchy, 'hierarchy'],
123 [:label_cross_project_descendants, 'descendants']
128 [:label_cross_project_descendants, 'descendants']
124 ]
129 ]
125
130
126 options.map {|label, value| [l(label), value.to_s]}
131 options.map {|label, value| [l(label), value.to_s]}
127 end
132 end
128
133
134 def parent_issue_dates_options
135 options = [
136 [:label_parent_task_attributes_derived, 'derived'],
137 [:label_parent_task_attributes_independent, 'independent']
138 ]
139
140 options.map {|label, value| [l(label), value.to_s]}
141 end
142
143 def parent_issue_priority_options
144 options = [
145 [:label_parent_task_attributes_derived, 'derived'],
146 [:label_parent_task_attributes_independent, 'independent']
147 ]
148
149 options.map {|label, value| [l(label), value.to_s]}
150 end
151
129 # Returns the options for the date_format setting
152 # Returns the options for the date_format setting
130 def date_format_setting_options(locale)
153 def date_format_setting_options(locale)
131 Setting::DATE_FORMATS.map do |f|
154 Setting::DATE_FORMATS.map do |f|
132 today = ::I18n.l(Date.today, :locale => locale, :format => f)
155 today = ::I18n.l(Date.today, :locale => locale, :format => f)
133 format = f.gsub('%', '').gsub(/[dmY]/) do
156 format = f.gsub('%', '').gsub(/[dmY]/) do
134 {'d' => 'dd', 'm' => 'mm', 'Y' => 'yyyy'}[$&]
157 {'d' => 'dd', 'm' => 'mm', 'Y' => 'yyyy'}[$&]
135 end
158 end
136 ["#{today} (#{format})", f]
159 ["#{today} (#{format})", f]
137 end
160 end
138 end
161 end
139 end
162 end
@@ -1,1607 +1,1628
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 class Issue < ActiveRecord::Base
18 class Issue < ActiveRecord::Base
19 include Redmine::SafeAttributes
19 include Redmine::SafeAttributes
20 include Redmine::Utils::DateCalculation
20 include Redmine::Utils::DateCalculation
21 include Redmine::I18n
21 include Redmine::I18n
22 before_save :set_parent_id
22 before_save :set_parent_id
23 include Redmine::NestedSet::IssueNestedSet
23 include Redmine::NestedSet::IssueNestedSet
24
24
25 belongs_to :project
25 belongs_to :project
26 belongs_to :tracker
26 belongs_to :tracker
27 belongs_to :status, :class_name => 'IssueStatus'
27 belongs_to :status, :class_name => 'IssueStatus'
28 belongs_to :author, :class_name => 'User'
28 belongs_to :author, :class_name => 'User'
29 belongs_to :assigned_to, :class_name => 'Principal'
29 belongs_to :assigned_to, :class_name => 'Principal'
30 belongs_to :fixed_version, :class_name => 'Version'
30 belongs_to :fixed_version, :class_name => 'Version'
31 belongs_to :priority, :class_name => 'IssuePriority'
31 belongs_to :priority, :class_name => 'IssuePriority'
32 belongs_to :category, :class_name => 'IssueCategory'
32 belongs_to :category, :class_name => 'IssueCategory'
33
33
34 has_many :journals, :as => :journalized, :dependent => :destroy, :inverse_of => :journalized
34 has_many :journals, :as => :journalized, :dependent => :destroy, :inverse_of => :journalized
35 has_many :visible_journals,
35 has_many :visible_journals,
36 lambda {where(["(#{Journal.table_name}.private_notes = ? OR (#{Project.allowed_to_condition(User.current, :view_private_notes)}))", false])},
36 lambda {where(["(#{Journal.table_name}.private_notes = ? OR (#{Project.allowed_to_condition(User.current, :view_private_notes)}))", false])},
37 :class_name => 'Journal',
37 :class_name => 'Journal',
38 :as => :journalized
38 :as => :journalized
39
39
40 has_many :time_entries, :dependent => :destroy
40 has_many :time_entries, :dependent => :destroy
41 has_and_belongs_to_many :changesets, lambda {order("#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC")}
41 has_and_belongs_to_many :changesets, lambda {order("#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC")}
42
42
43 has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
43 has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
44 has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all
44 has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all
45
45
46 acts_as_attachable :after_add => :attachment_added, :after_remove => :attachment_removed
46 acts_as_attachable :after_add => :attachment_added, :after_remove => :attachment_removed
47 acts_as_customizable
47 acts_as_customizable
48 acts_as_watchable
48 acts_as_watchable
49 acts_as_searchable :columns => ['subject', "#{table_name}.description"],
49 acts_as_searchable :columns => ['subject', "#{table_name}.description"],
50 :preload => [:project, :status, :tracker],
50 :preload => [:project, :status, :tracker],
51 :scope => lambda {|options| options[:open_issues] ? self.open : self.all}
51 :scope => lambda {|options| options[:open_issues] ? self.open : self.all}
52
52
53 acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"},
53 acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"},
54 :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
54 :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
55 :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
55 :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
56
56
57 acts_as_activity_provider :scope => preload(:project, :author, :tracker),
57 acts_as_activity_provider :scope => preload(:project, :author, :tracker),
58 :author_key => :author_id
58 :author_key => :author_id
59
59
60 DONE_RATIO_OPTIONS = %w(issue_field issue_status)
60 DONE_RATIO_OPTIONS = %w(issue_field issue_status)
61
61
62 attr_reader :current_journal
62 attr_reader :current_journal
63 delegate :notes, :notes=, :private_notes, :private_notes=, :to => :current_journal, :allow_nil => true
63 delegate :notes, :notes=, :private_notes, :private_notes=, :to => :current_journal, :allow_nil => true
64
64
65 validates_presence_of :subject, :project, :tracker
65 validates_presence_of :subject, :project, :tracker
66 validates_presence_of :priority, :if => Proc.new {|issue| issue.new_record? || issue.priority_id_changed?}
66 validates_presence_of :priority, :if => Proc.new {|issue| issue.new_record? || issue.priority_id_changed?}
67 validates_presence_of :status, :if => Proc.new {|issue| issue.new_record? || issue.status_id_changed?}
67 validates_presence_of :status, :if => Proc.new {|issue| issue.new_record? || issue.status_id_changed?}
68 validates_presence_of :author, :if => Proc.new {|issue| issue.new_record? || issue.author_id_changed?}
68 validates_presence_of :author, :if => Proc.new {|issue| issue.new_record? || issue.author_id_changed?}
69
69
70 validates_length_of :subject, :maximum => 255
70 validates_length_of :subject, :maximum => 255
71 validates_inclusion_of :done_ratio, :in => 0..100
71 validates_inclusion_of :done_ratio, :in => 0..100
72 validates :estimated_hours, :numericality => {:greater_than_or_equal_to => 0, :allow_nil => true, :message => :invalid}
72 validates :estimated_hours, :numericality => {:greater_than_or_equal_to => 0, :allow_nil => true, :message => :invalid}
73 validates :start_date, :date => true
73 validates :start_date, :date => true
74 validates :due_date, :date => true
74 validates :due_date, :date => true
75 validate :validate_issue, :validate_required_fields
75 validate :validate_issue, :validate_required_fields
76 attr_protected :id
76 attr_protected :id
77
77
78 scope :visible, lambda {|*args|
78 scope :visible, lambda {|*args|
79 joins(:project).
79 joins(:project).
80 where(Issue.visible_condition(args.shift || User.current, *args))
80 where(Issue.visible_condition(args.shift || User.current, *args))
81 }
81 }
82
82
83 scope :open, lambda {|*args|
83 scope :open, lambda {|*args|
84 is_closed = args.size > 0 ? !args.first : false
84 is_closed = args.size > 0 ? !args.first : false
85 joins(:status).
85 joins(:status).
86 where("#{IssueStatus.table_name}.is_closed = ?", is_closed)
86 where("#{IssueStatus.table_name}.is_closed = ?", is_closed)
87 }
87 }
88
88
89 scope :recently_updated, lambda { order("#{Issue.table_name}.updated_on DESC") }
89 scope :recently_updated, lambda { order("#{Issue.table_name}.updated_on DESC") }
90 scope :on_active_project, lambda {
90 scope :on_active_project, lambda {
91 joins(:project).
91 joins(:project).
92 where("#{Project.table_name}.status = ?", Project::STATUS_ACTIVE)
92 where("#{Project.table_name}.status = ?", Project::STATUS_ACTIVE)
93 }
93 }
94 scope :fixed_version, lambda {|versions|
94 scope :fixed_version, lambda {|versions|
95 ids = [versions].flatten.compact.map {|v| v.is_a?(Version) ? v.id : v}
95 ids = [versions].flatten.compact.map {|v| v.is_a?(Version) ? v.id : v}
96 ids.any? ? where(:fixed_version_id => ids) : where('1=0')
96 ids.any? ? where(:fixed_version_id => ids) : where('1=0')
97 }
97 }
98
98
99 before_validation :clear_disabled_fields
99 before_validation :clear_disabled_fields
100 before_create :default_assign
100 before_create :default_assign
101 before_save :close_duplicates, :update_done_ratio_from_issue_status,
101 before_save :close_duplicates, :update_done_ratio_from_issue_status,
102 :force_updated_on_change, :update_closed_on, :set_assigned_to_was
102 :force_updated_on_change, :update_closed_on, :set_assigned_to_was
103 after_save {|issue| issue.send :after_project_change if !issue.id_changed? && issue.project_id_changed?}
103 after_save {|issue| issue.send :after_project_change if !issue.id_changed? && issue.project_id_changed?}
104 after_save :reschedule_following_issues, :update_nested_set_attributes,
104 after_save :reschedule_following_issues, :update_nested_set_attributes,
105 :update_parent_attributes, :create_journal
105 :update_parent_attributes, :create_journal
106 # Should be after_create but would be called before previous after_save callbacks
106 # Should be after_create but would be called before previous after_save callbacks
107 after_save :after_create_from_copy
107 after_save :after_create_from_copy
108 after_destroy :update_parent_attributes
108 after_destroy :update_parent_attributes
109 after_create :send_notification
109 after_create :send_notification
110 # Keep it at the end of after_save callbacks
110 # Keep it at the end of after_save callbacks
111 after_save :clear_assigned_to_was
111 after_save :clear_assigned_to_was
112
112
113 # Returns a SQL conditions string used to find all issues visible by the specified user
113 # Returns a SQL conditions string used to find all issues visible by the specified user
114 def self.visible_condition(user, options={})
114 def self.visible_condition(user, options={})
115 Project.allowed_to_condition(user, :view_issues, options) do |role, user|
115 Project.allowed_to_condition(user, :view_issues, options) do |role, user|
116 if user.id && user.logged?
116 if user.id && user.logged?
117 case role.issues_visibility
117 case role.issues_visibility
118 when 'all'
118 when 'all'
119 nil
119 nil
120 when 'default'
120 when 'default'
121 user_ids = [user.id] + user.groups.map(&:id).compact
121 user_ids = [user.id] + user.groups.map(&:id).compact
122 "(#{table_name}.is_private = #{connection.quoted_false} OR #{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
122 "(#{table_name}.is_private = #{connection.quoted_false} OR #{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
123 when 'own'
123 when 'own'
124 user_ids = [user.id] + user.groups.map(&:id).compact
124 user_ids = [user.id] + user.groups.map(&:id).compact
125 "(#{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
125 "(#{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
126 else
126 else
127 '1=0'
127 '1=0'
128 end
128 end
129 else
129 else
130 "(#{table_name}.is_private = #{connection.quoted_false})"
130 "(#{table_name}.is_private = #{connection.quoted_false})"
131 end
131 end
132 end
132 end
133 end
133 end
134
134
135 # Returns true if usr or current user is allowed to view the issue
135 # Returns true if usr or current user is allowed to view the issue
136 def visible?(usr=nil)
136 def visible?(usr=nil)
137 (usr || User.current).allowed_to?(:view_issues, self.project) do |role, user|
137 (usr || User.current).allowed_to?(:view_issues, self.project) do |role, user|
138 if user.logged?
138 if user.logged?
139 case role.issues_visibility
139 case role.issues_visibility
140 when 'all'
140 when 'all'
141 true
141 true
142 when 'default'
142 when 'default'
143 !self.is_private? || (self.author == user || user.is_or_belongs_to?(assigned_to))
143 !self.is_private? || (self.author == user || user.is_or_belongs_to?(assigned_to))
144 when 'own'
144 when 'own'
145 self.author == user || user.is_or_belongs_to?(assigned_to)
145 self.author == user || user.is_or_belongs_to?(assigned_to)
146 else
146 else
147 false
147 false
148 end
148 end
149 else
149 else
150 !self.is_private?
150 !self.is_private?
151 end
151 end
152 end
152 end
153 end
153 end
154
154
155 # Returns true if user or current user is allowed to edit or add a note to the issue
155 # Returns true if user or current user is allowed to edit or add a note to the issue
156 def editable?(user=User.current)
156 def editable?(user=User.current)
157 attributes_editable?(user) || user.allowed_to?(:add_issue_notes, project)
157 attributes_editable?(user) || user.allowed_to?(:add_issue_notes, project)
158 end
158 end
159
159
160 # Returns true if user or current user is allowed to edit the issue
160 # Returns true if user or current user is allowed to edit the issue
161 def attributes_editable?(user=User.current)
161 def attributes_editable?(user=User.current)
162 user.allowed_to?(:edit_issues, project)
162 user.allowed_to?(:edit_issues, project)
163 end
163 end
164
164
165 def initialize(attributes=nil, *args)
165 def initialize(attributes=nil, *args)
166 super
166 super
167 if new_record?
167 if new_record?
168 # set default values for new records only
168 # set default values for new records only
169 self.priority ||= IssuePriority.default
169 self.priority ||= IssuePriority.default
170 self.watcher_user_ids = []
170 self.watcher_user_ids = []
171 end
171 end
172 end
172 end
173
173
174 def create_or_update
174 def create_or_update
175 super
175 super
176 ensure
176 ensure
177 @status_was = nil
177 @status_was = nil
178 end
178 end
179 private :create_or_update
179 private :create_or_update
180
180
181 # AR#Persistence#destroy would raise and RecordNotFound exception
181 # AR#Persistence#destroy would raise and RecordNotFound exception
182 # if the issue was already deleted or updated (non matching lock_version).
182 # if the issue was already deleted or updated (non matching lock_version).
183 # This is a problem when bulk deleting issues or deleting a project
183 # This is a problem when bulk deleting issues or deleting a project
184 # (because an issue may already be deleted if its parent was deleted
184 # (because an issue may already be deleted if its parent was deleted
185 # first).
185 # first).
186 # The issue is reloaded by the nested_set before being deleted so
186 # The issue is reloaded by the nested_set before being deleted so
187 # the lock_version condition should not be an issue but we handle it.
187 # the lock_version condition should not be an issue but we handle it.
188 def destroy
188 def destroy
189 super
189 super
190 rescue ActiveRecord::StaleObjectError, ActiveRecord::RecordNotFound
190 rescue ActiveRecord::StaleObjectError, ActiveRecord::RecordNotFound
191 # Stale or already deleted
191 # Stale or already deleted
192 begin
192 begin
193 reload
193 reload
194 rescue ActiveRecord::RecordNotFound
194 rescue ActiveRecord::RecordNotFound
195 # The issue was actually already deleted
195 # The issue was actually already deleted
196 @destroyed = true
196 @destroyed = true
197 return freeze
197 return freeze
198 end
198 end
199 # The issue was stale, retry to destroy
199 # The issue was stale, retry to destroy
200 super
200 super
201 end
201 end
202
202
203 alias :base_reload :reload
203 alias :base_reload :reload
204 def reload(*args)
204 def reload(*args)
205 @workflow_rule_by_attribute = nil
205 @workflow_rule_by_attribute = nil
206 @assignable_versions = nil
206 @assignable_versions = nil
207 @relations = nil
207 @relations = nil
208 @spent_hours = nil
208 @spent_hours = nil
209 base_reload(*args)
209 base_reload(*args)
210 end
210 end
211
211
212 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
212 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
213 def available_custom_fields
213 def available_custom_fields
214 (project && tracker) ? (project.all_issue_custom_fields & tracker.custom_fields) : []
214 (project && tracker) ? (project.all_issue_custom_fields & tracker.custom_fields) : []
215 end
215 end
216
216
217 def visible_custom_field_values(user=nil)
217 def visible_custom_field_values(user=nil)
218 user_real = user || User.current
218 user_real = user || User.current
219 custom_field_values.select do |value|
219 custom_field_values.select do |value|
220 value.custom_field.visible_by?(project, user_real)
220 value.custom_field.visible_by?(project, user_real)
221 end
221 end
222 end
222 end
223
223
224 # Copies attributes from another issue, arg can be an id or an Issue
224 # Copies attributes from another issue, arg can be an id or an Issue
225 def copy_from(arg, options={})
225 def copy_from(arg, options={})
226 issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg)
226 issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg)
227 self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on")
227 self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on")
228 self.custom_field_values = issue.custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h}
228 self.custom_field_values = issue.custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h}
229 self.status = issue.status
229 self.status = issue.status
230 self.author = User.current
230 self.author = User.current
231 unless options[:attachments] == false
231 unless options[:attachments] == false
232 self.attachments = issue.attachments.map do |attachement|
232 self.attachments = issue.attachments.map do |attachement|
233 attachement.copy(:container => self)
233 attachement.copy(:container => self)
234 end
234 end
235 end
235 end
236 @copied_from = issue
236 @copied_from = issue
237 @copy_options = options
237 @copy_options = options
238 self
238 self
239 end
239 end
240
240
241 # Returns an unsaved copy of the issue
241 # Returns an unsaved copy of the issue
242 def copy(attributes=nil, copy_options={})
242 def copy(attributes=nil, copy_options={})
243 copy = self.class.new.copy_from(self, copy_options)
243 copy = self.class.new.copy_from(self, copy_options)
244 copy.attributes = attributes if attributes
244 copy.attributes = attributes if attributes
245 copy
245 copy
246 end
246 end
247
247
248 # Returns true if the issue is a copy
248 # Returns true if the issue is a copy
249 def copy?
249 def copy?
250 @copied_from.present?
250 @copied_from.present?
251 end
251 end
252
252
253 def status_id=(status_id)
253 def status_id=(status_id)
254 if status_id.to_s != self.status_id.to_s
254 if status_id.to_s != self.status_id.to_s
255 self.status = (status_id.present? ? IssueStatus.find_by_id(status_id) : nil)
255 self.status = (status_id.present? ? IssueStatus.find_by_id(status_id) : nil)
256 end
256 end
257 self.status_id
257 self.status_id
258 end
258 end
259
259
260 # Sets the status.
260 # Sets the status.
261 def status=(status)
261 def status=(status)
262 if status != self.status
262 if status != self.status
263 @workflow_rule_by_attribute = nil
263 @workflow_rule_by_attribute = nil
264 end
264 end
265 association(:status).writer(status)
265 association(:status).writer(status)
266 end
266 end
267
267
268 def priority_id=(pid)
268 def priority_id=(pid)
269 self.priority = nil
269 self.priority = nil
270 write_attribute(:priority_id, pid)
270 write_attribute(:priority_id, pid)
271 end
271 end
272
272
273 def category_id=(cid)
273 def category_id=(cid)
274 self.category = nil
274 self.category = nil
275 write_attribute(:category_id, cid)
275 write_attribute(:category_id, cid)
276 end
276 end
277
277
278 def fixed_version_id=(vid)
278 def fixed_version_id=(vid)
279 self.fixed_version = nil
279 self.fixed_version = nil
280 write_attribute(:fixed_version_id, vid)
280 write_attribute(:fixed_version_id, vid)
281 end
281 end
282
282
283 def tracker_id=(tracker_id)
283 def tracker_id=(tracker_id)
284 if tracker_id.to_s != self.tracker_id.to_s
284 if tracker_id.to_s != self.tracker_id.to_s
285 self.tracker = (tracker_id.present? ? Tracker.find_by_id(tracker_id) : nil)
285 self.tracker = (tracker_id.present? ? Tracker.find_by_id(tracker_id) : nil)
286 end
286 end
287 self.tracker_id
287 self.tracker_id
288 end
288 end
289
289
290 # Sets the tracker.
290 # Sets the tracker.
291 # This will set the status to the default status of the new tracker if:
291 # This will set the status to the default status of the new tracker if:
292 # * the status was the default for the previous tracker
292 # * the status was the default for the previous tracker
293 # * or if the status was not part of the new tracker statuses
293 # * or if the status was not part of the new tracker statuses
294 # * or the status was nil
294 # * or the status was nil
295 def tracker=(tracker)
295 def tracker=(tracker)
296 if tracker != self.tracker
296 if tracker != self.tracker
297 if status == default_status
297 if status == default_status
298 self.status = nil
298 self.status = nil
299 elsif status && tracker && !tracker.issue_status_ids.include?(status.id)
299 elsif status && tracker && !tracker.issue_status_ids.include?(status.id)
300 self.status = nil
300 self.status = nil
301 end
301 end
302 @custom_field_values = nil
302 @custom_field_values = nil
303 @workflow_rule_by_attribute = nil
303 @workflow_rule_by_attribute = nil
304 end
304 end
305 association(:tracker).writer(tracker)
305 association(:tracker).writer(tracker)
306 self.status ||= default_status
306 self.status ||= default_status
307 self.tracker
307 self.tracker
308 end
308 end
309
309
310 def project_id=(project_id)
310 def project_id=(project_id)
311 if project_id.to_s != self.project_id.to_s
311 if project_id.to_s != self.project_id.to_s
312 self.project = (project_id.present? ? Project.find_by_id(project_id) : nil)
312 self.project = (project_id.present? ? Project.find_by_id(project_id) : nil)
313 end
313 end
314 self.project_id
314 self.project_id
315 end
315 end
316
316
317 # Sets the project.
317 # Sets the project.
318 # Unless keep_tracker argument is set to true, this will change the tracker
318 # Unless keep_tracker argument is set to true, this will change the tracker
319 # to the first tracker of the new project if the previous tracker is not part
319 # to the first tracker of the new project if the previous tracker is not part
320 # of the new project trackers.
320 # of the new project trackers.
321 # This will clear the fixed_version is it's no longer valid for the new project.
321 # This will clear the fixed_version is it's no longer valid for the new project.
322 # This will clear the parent issue if it's no longer valid for the new project.
322 # This will clear the parent issue if it's no longer valid for the new project.
323 # This will set the category to the category with the same name in the new
323 # This will set the category to the category with the same name in the new
324 # project if it exists, or clear it if it doesn't.
324 # project if it exists, or clear it if it doesn't.
325 def project=(project, keep_tracker=false)
325 def project=(project, keep_tracker=false)
326 project_was = self.project
326 project_was = self.project
327 association(:project).writer(project)
327 association(:project).writer(project)
328 if project_was && project && project_was != project
328 if project_was && project && project_was != project
329 @assignable_versions = nil
329 @assignable_versions = nil
330
330
331 unless keep_tracker || project.trackers.include?(tracker)
331 unless keep_tracker || project.trackers.include?(tracker)
332 self.tracker = project.trackers.first
332 self.tracker = project.trackers.first
333 end
333 end
334 # Reassign to the category with same name if any
334 # Reassign to the category with same name if any
335 if category
335 if category
336 self.category = project.issue_categories.find_by_name(category.name)
336 self.category = project.issue_categories.find_by_name(category.name)
337 end
337 end
338 # Keep the fixed_version if it's still valid in the new_project
338 # Keep the fixed_version if it's still valid in the new_project
339 if fixed_version && fixed_version.project != project && !project.shared_versions.include?(fixed_version)
339 if fixed_version && fixed_version.project != project && !project.shared_versions.include?(fixed_version)
340 self.fixed_version = nil
340 self.fixed_version = nil
341 end
341 end
342 # Clear the parent task if it's no longer valid
342 # Clear the parent task if it's no longer valid
343 unless valid_parent_project?
343 unless valid_parent_project?
344 self.parent_issue_id = nil
344 self.parent_issue_id = nil
345 end
345 end
346 @custom_field_values = nil
346 @custom_field_values = nil
347 @workflow_rule_by_attribute = nil
347 @workflow_rule_by_attribute = nil
348 end
348 end
349 self.project
349 self.project
350 end
350 end
351
351
352 def description=(arg)
352 def description=(arg)
353 if arg.is_a?(String)
353 if arg.is_a?(String)
354 arg = arg.gsub(/(\r\n|\n|\r)/, "\r\n")
354 arg = arg.gsub(/(\r\n|\n|\r)/, "\r\n")
355 end
355 end
356 write_attribute(:description, arg)
356 write_attribute(:description, arg)
357 end
357 end
358
358
359 # Overrides assign_attributes so that project and tracker get assigned first
359 # Overrides assign_attributes so that project and tracker get assigned first
360 def assign_attributes_with_project_and_tracker_first(new_attributes, *args)
360 def assign_attributes_with_project_and_tracker_first(new_attributes, *args)
361 return if new_attributes.nil?
361 return if new_attributes.nil?
362 attrs = new_attributes.dup
362 attrs = new_attributes.dup
363 attrs.stringify_keys!
363 attrs.stringify_keys!
364
364
365 %w(project project_id tracker tracker_id).each do |attr|
365 %w(project project_id tracker tracker_id).each do |attr|
366 if attrs.has_key?(attr)
366 if attrs.has_key?(attr)
367 send "#{attr}=", attrs.delete(attr)
367 send "#{attr}=", attrs.delete(attr)
368 end
368 end
369 end
369 end
370 send :assign_attributes_without_project_and_tracker_first, attrs, *args
370 send :assign_attributes_without_project_and_tracker_first, attrs, *args
371 end
371 end
372 # Do not redefine alias chain on reload (see #4838)
372 # Do not redefine alias chain on reload (see #4838)
373 alias_method_chain(:assign_attributes, :project_and_tracker_first) unless method_defined?(:assign_attributes_without_project_and_tracker_first)
373 alias_method_chain(:assign_attributes, :project_and_tracker_first) unless method_defined?(:assign_attributes_without_project_and_tracker_first)
374
374
375 def attributes=(new_attributes)
375 def attributes=(new_attributes)
376 assign_attributes new_attributes
376 assign_attributes new_attributes
377 end
377 end
378
378
379 def estimated_hours=(h)
379 def estimated_hours=(h)
380 write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
380 write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
381 end
381 end
382
382
383 safe_attributes 'project_id',
383 safe_attributes 'project_id',
384 'tracker_id',
384 'tracker_id',
385 'status_id',
385 'status_id',
386 'category_id',
386 'category_id',
387 'assigned_to_id',
387 'assigned_to_id',
388 'priority_id',
388 'priority_id',
389 'fixed_version_id',
389 'fixed_version_id',
390 'subject',
390 'subject',
391 'description',
391 'description',
392 'start_date',
392 'start_date',
393 'due_date',
393 'due_date',
394 'done_ratio',
394 'done_ratio',
395 'estimated_hours',
395 'estimated_hours',
396 'custom_field_values',
396 'custom_field_values',
397 'custom_fields',
397 'custom_fields',
398 'lock_version',
398 'lock_version',
399 'notes',
399 'notes',
400 :if => lambda {|issue, user| issue.new_record? || user.allowed_to?(:edit_issues, issue.project) }
400 :if => lambda {|issue, user| issue.new_record? || user.allowed_to?(:edit_issues, issue.project) }
401
401
402 safe_attributes 'notes',
402 safe_attributes 'notes',
403 :if => lambda {|issue, user| user.allowed_to?(:add_issue_notes, issue.project)}
403 :if => lambda {|issue, user| user.allowed_to?(:add_issue_notes, issue.project)}
404
404
405 safe_attributes 'private_notes',
405 safe_attributes 'private_notes',
406 :if => lambda {|issue, user| !issue.new_record? && user.allowed_to?(:set_notes_private, issue.project)}
406 :if => lambda {|issue, user| !issue.new_record? && user.allowed_to?(:set_notes_private, issue.project)}
407
407
408 safe_attributes 'watcher_user_ids',
408 safe_attributes 'watcher_user_ids',
409 :if => lambda {|issue, user| issue.new_record? && user.allowed_to?(:add_issue_watchers, issue.project)}
409 :if => lambda {|issue, user| issue.new_record? && user.allowed_to?(:add_issue_watchers, issue.project)}
410
410
411 safe_attributes 'is_private',
411 safe_attributes 'is_private',
412 :if => lambda {|issue, user|
412 :if => lambda {|issue, user|
413 user.allowed_to?(:set_issues_private, issue.project) ||
413 user.allowed_to?(:set_issues_private, issue.project) ||
414 (issue.author_id == user.id && user.allowed_to?(:set_own_issues_private, issue.project))
414 (issue.author_id == user.id && user.allowed_to?(:set_own_issues_private, issue.project))
415 }
415 }
416
416
417 safe_attributes 'parent_issue_id',
417 safe_attributes 'parent_issue_id',
418 :if => lambda {|issue, user| (issue.new_record? || user.allowed_to?(:edit_issues, issue.project)) &&
418 :if => lambda {|issue, user| (issue.new_record? || user.allowed_to?(:edit_issues, issue.project)) &&
419 user.allowed_to?(:manage_subtasks, issue.project)}
419 user.allowed_to?(:manage_subtasks, issue.project)}
420
420
421 def safe_attribute_names(user=nil)
421 def safe_attribute_names(user=nil)
422 names = super
422 names = super
423 names -= disabled_core_fields
423 names -= disabled_core_fields
424 names -= read_only_attribute_names(user)
424 names -= read_only_attribute_names(user)
425 if new_record?
425 if new_record?
426 # Make sure that project_id can always be set for new issues
426 # Make sure that project_id can always be set for new issues
427 names |= %w(project_id)
427 names |= %w(project_id)
428 end
428 end
429 if dates_derived?
430 names -= %w(start_date due_date)
431 end
432 if priority_derived?
433 names -= %w(priority_id)
434 end
435 unless leaf?
436 names -= %w(done_ratio estimated_hours)
437 end
429 names
438 names
430 end
439 end
431
440
432 # Safely sets attributes
441 # Safely sets attributes
433 # Should be called from controllers instead of #attributes=
442 # Should be called from controllers instead of #attributes=
434 # attr_accessible is too rough because we still want things like
443 # attr_accessible is too rough because we still want things like
435 # Issue.new(:project => foo) to work
444 # Issue.new(:project => foo) to work
436 def safe_attributes=(attrs, user=User.current)
445 def safe_attributes=(attrs, user=User.current)
437 return unless attrs.is_a?(Hash)
446 return unless attrs.is_a?(Hash)
438
447
439 attrs = attrs.deep_dup
448 attrs = attrs.deep_dup
440
449
441 # Project and Tracker must be set before since new_statuses_allowed_to depends on it.
450 # Project and Tracker must be set before since new_statuses_allowed_to depends on it.
442 if (p = attrs.delete('project_id')) && safe_attribute?('project_id')
451 if (p = attrs.delete('project_id')) && safe_attribute?('project_id')
443 if allowed_target_projects(user).where(:id => p.to_i).exists?
452 if allowed_target_projects(user).where(:id => p.to_i).exists?
444 self.project_id = p
453 self.project_id = p
445 end
454 end
446 end
455 end
447
456
448 if (t = attrs.delete('tracker_id')) && safe_attribute?('tracker_id')
457 if (t = attrs.delete('tracker_id')) && safe_attribute?('tracker_id')
449 self.tracker_id = t
458 self.tracker_id = t
450 end
459 end
451 if project
460 if project
452 # Set the default tracker to accept custom field values
461 # Set the default tracker to accept custom field values
453 # even if tracker is not specified
462 # even if tracker is not specified
454 self.tracker ||= project.trackers.first
463 self.tracker ||= project.trackers.first
455 end
464 end
456
465
457 if (s = attrs.delete('status_id')) && safe_attribute?('status_id')
466 if (s = attrs.delete('status_id')) && safe_attribute?('status_id')
458 if new_statuses_allowed_to(user).collect(&:id).include?(s.to_i)
467 if new_statuses_allowed_to(user).collect(&:id).include?(s.to_i)
459 self.status_id = s
468 self.status_id = s
460 end
469 end
461 end
470 end
462
471
463 attrs = delete_unsafe_attributes(attrs, user)
472 attrs = delete_unsafe_attributes(attrs, user)
464 return if attrs.empty?
473 return if attrs.empty?
465
474
466 unless leaf?
467 attrs.reject! {|k,v| %w(priority_id done_ratio start_date due_date estimated_hours).include?(k)}
468 end
469
470 if attrs['parent_issue_id'].present?
475 if attrs['parent_issue_id'].present?
471 s = attrs['parent_issue_id'].to_s
476 s = attrs['parent_issue_id'].to_s
472 unless (m = s.match(%r{\A#?(\d+)\z})) && (m[1] == parent_id.to_s || Issue.visible(user).exists?(m[1]))
477 unless (m = s.match(%r{\A#?(\d+)\z})) && (m[1] == parent_id.to_s || Issue.visible(user).exists?(m[1]))
473 @invalid_parent_issue_id = attrs.delete('parent_issue_id')
478 @invalid_parent_issue_id = attrs.delete('parent_issue_id')
474 end
479 end
475 end
480 end
476
481
477 if attrs['custom_field_values'].present?
482 if attrs['custom_field_values'].present?
478 editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
483 editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
479 attrs['custom_field_values'].select! {|k, v| editable_custom_field_ids.include?(k.to_s)}
484 attrs['custom_field_values'].select! {|k, v| editable_custom_field_ids.include?(k.to_s)}
480 end
485 end
481
486
482 if attrs['custom_fields'].present?
487 if attrs['custom_fields'].present?
483 editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
488 editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
484 attrs['custom_fields'].select! {|c| editable_custom_field_ids.include?(c['id'].to_s)}
489 attrs['custom_fields'].select! {|c| editable_custom_field_ids.include?(c['id'].to_s)}
485 end
490 end
486
491
487 # mass-assignment security bypass
492 # mass-assignment security bypass
488 assign_attributes attrs, :without_protection => true
493 assign_attributes attrs, :without_protection => true
489 end
494 end
490
495
491 def disabled_core_fields
496 def disabled_core_fields
492 tracker ? tracker.disabled_core_fields : []
497 tracker ? tracker.disabled_core_fields : []
493 end
498 end
494
499
495 # Returns the custom_field_values that can be edited by the given user
500 # Returns the custom_field_values that can be edited by the given user
496 def editable_custom_field_values(user=nil)
501 def editable_custom_field_values(user=nil)
497 visible_custom_field_values(user).reject do |value|
502 visible_custom_field_values(user).reject do |value|
498 read_only_attribute_names(user).include?(value.custom_field_id.to_s)
503 read_only_attribute_names(user).include?(value.custom_field_id.to_s)
499 end
504 end
500 end
505 end
501
506
502 # Returns the custom fields that can be edited by the given user
507 # Returns the custom fields that can be edited by the given user
503 def editable_custom_fields(user=nil)
508 def editable_custom_fields(user=nil)
504 editable_custom_field_values(user).map(&:custom_field).uniq
509 editable_custom_field_values(user).map(&:custom_field).uniq
505 end
510 end
506
511
507 # Returns the names of attributes that are read-only for user or the current user
512 # Returns the names of attributes that are read-only for user or the current user
508 # For users with multiple roles, the read-only fields are the intersection of
513 # For users with multiple roles, the read-only fields are the intersection of
509 # read-only fields of each role
514 # read-only fields of each role
510 # The result is an array of strings where sustom fields are represented with their ids
515 # The result is an array of strings where sustom fields are represented with their ids
511 #
516 #
512 # Examples:
517 # Examples:
513 # issue.read_only_attribute_names # => ['due_date', '2']
518 # issue.read_only_attribute_names # => ['due_date', '2']
514 # issue.read_only_attribute_names(user) # => []
519 # issue.read_only_attribute_names(user) # => []
515 def read_only_attribute_names(user=nil)
520 def read_only_attribute_names(user=nil)
516 workflow_rule_by_attribute(user).reject {|attr, rule| rule != 'readonly'}.keys
521 workflow_rule_by_attribute(user).reject {|attr, rule| rule != 'readonly'}.keys
517 end
522 end
518
523
519 # Returns the names of required attributes for user or the current user
524 # Returns the names of required attributes for user or the current user
520 # For users with multiple roles, the required fields are the intersection of
525 # For users with multiple roles, the required fields are the intersection of
521 # required fields of each role
526 # required fields of each role
522 # The result is an array of strings where sustom fields are represented with their ids
527 # The result is an array of strings where sustom fields are represented with their ids
523 #
528 #
524 # Examples:
529 # Examples:
525 # issue.required_attribute_names # => ['due_date', '2']
530 # issue.required_attribute_names # => ['due_date', '2']
526 # issue.required_attribute_names(user) # => []
531 # issue.required_attribute_names(user) # => []
527 def required_attribute_names(user=nil)
532 def required_attribute_names(user=nil)
528 workflow_rule_by_attribute(user).reject {|attr, rule| rule != 'required'}.keys
533 workflow_rule_by_attribute(user).reject {|attr, rule| rule != 'required'}.keys
529 end
534 end
530
535
531 # Returns true if the attribute is required for user
536 # Returns true if the attribute is required for user
532 def required_attribute?(name, user=nil)
537 def required_attribute?(name, user=nil)
533 required_attribute_names(user).include?(name.to_s)
538 required_attribute_names(user).include?(name.to_s)
534 end
539 end
535
540
536 # Returns a hash of the workflow rule by attribute for the given user
541 # Returns a hash of the workflow rule by attribute for the given user
537 #
542 #
538 # Examples:
543 # Examples:
539 # issue.workflow_rule_by_attribute # => {'due_date' => 'required', 'start_date' => 'readonly'}
544 # issue.workflow_rule_by_attribute # => {'due_date' => 'required', 'start_date' => 'readonly'}
540 def workflow_rule_by_attribute(user=nil)
545 def workflow_rule_by_attribute(user=nil)
541 return @workflow_rule_by_attribute if @workflow_rule_by_attribute && user.nil?
546 return @workflow_rule_by_attribute if @workflow_rule_by_attribute && user.nil?
542
547
543 user_real = user || User.current
548 user_real = user || User.current
544 roles = user_real.admin ? Role.all.to_a : user_real.roles_for_project(project)
549 roles = user_real.admin ? Role.all.to_a : user_real.roles_for_project(project)
545 roles = roles.select(&:consider_workflow?)
550 roles = roles.select(&:consider_workflow?)
546 return {} if roles.empty?
551 return {} if roles.empty?
547
552
548 result = {}
553 result = {}
549 workflow_permissions = WorkflowPermission.where(:tracker_id => tracker_id, :old_status_id => status_id, :role_id => roles.map(&:id)).to_a
554 workflow_permissions = WorkflowPermission.where(:tracker_id => tracker_id, :old_status_id => status_id, :role_id => roles.map(&:id)).to_a
550 if workflow_permissions.any?
555 if workflow_permissions.any?
551 workflow_rules = workflow_permissions.inject({}) do |h, wp|
556 workflow_rules = workflow_permissions.inject({}) do |h, wp|
552 h[wp.field_name] ||= {}
557 h[wp.field_name] ||= {}
553 h[wp.field_name][wp.role_id] = wp.rule
558 h[wp.field_name][wp.role_id] = wp.rule
554 h
559 h
555 end
560 end
556 fields_with_roles = {}
561 fields_with_roles = {}
557 IssueCustomField.where(:visible => false).joins(:roles).pluck(:id, "role_id").each do |field_id, role_id|
562 IssueCustomField.where(:visible => false).joins(:roles).pluck(:id, "role_id").each do |field_id, role_id|
558 fields_with_roles[field_id] ||= []
563 fields_with_roles[field_id] ||= []
559 fields_with_roles[field_id] << role_id
564 fields_with_roles[field_id] << role_id
560 end
565 end
561 roles.each do |role|
566 roles.each do |role|
562 fields_with_roles.each do |field_id, role_ids|
567 fields_with_roles.each do |field_id, role_ids|
563 unless role_ids.include?(role.id)
568 unless role_ids.include?(role.id)
564 field_name = field_id.to_s
569 field_name = field_id.to_s
565 workflow_rules[field_name] ||= {}
570 workflow_rules[field_name] ||= {}
566 workflow_rules[field_name][role.id] = 'readonly'
571 workflow_rules[field_name][role.id] = 'readonly'
567 end
572 end
568 end
573 end
569 end
574 end
570 workflow_rules.each do |attr, rules|
575 workflow_rules.each do |attr, rules|
571 next if rules.size < roles.size
576 next if rules.size < roles.size
572 uniq_rules = rules.values.uniq
577 uniq_rules = rules.values.uniq
573 if uniq_rules.size == 1
578 if uniq_rules.size == 1
574 result[attr] = uniq_rules.first
579 result[attr] = uniq_rules.first
575 else
580 else
576 result[attr] = 'required'
581 result[attr] = 'required'
577 end
582 end
578 end
583 end
579 end
584 end
580 @workflow_rule_by_attribute = result if user.nil?
585 @workflow_rule_by_attribute = result if user.nil?
581 result
586 result
582 end
587 end
583 private :workflow_rule_by_attribute
588 private :workflow_rule_by_attribute
584
589
585 def done_ratio
590 def done_ratio
586 if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
591 if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
587 status.default_done_ratio
592 status.default_done_ratio
588 else
593 else
589 read_attribute(:done_ratio)
594 read_attribute(:done_ratio)
590 end
595 end
591 end
596 end
592
597
593 def self.use_status_for_done_ratio?
598 def self.use_status_for_done_ratio?
594 Setting.issue_done_ratio == 'issue_status'
599 Setting.issue_done_ratio == 'issue_status'
595 end
600 end
596
601
597 def self.use_field_for_done_ratio?
602 def self.use_field_for_done_ratio?
598 Setting.issue_done_ratio == 'issue_field'
603 Setting.issue_done_ratio == 'issue_field'
599 end
604 end
600
605
601 def validate_issue
606 def validate_issue
602 if due_date && start_date && (start_date_changed? || due_date_changed?) && due_date < start_date
607 if due_date && start_date && (start_date_changed? || due_date_changed?) && due_date < start_date
603 errors.add :due_date, :greater_than_start_date
608 errors.add :due_date, :greater_than_start_date
604 end
609 end
605
610
606 if start_date && start_date_changed? && soonest_start && start_date < soonest_start
611 if start_date && start_date_changed? && soonest_start && start_date < soonest_start
607 errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start)
612 errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start)
608 end
613 end
609
614
610 if fixed_version
615 if fixed_version
611 if !assignable_versions.include?(fixed_version)
616 if !assignable_versions.include?(fixed_version)
612 errors.add :fixed_version_id, :inclusion
617 errors.add :fixed_version_id, :inclusion
613 elsif reopening? && fixed_version.closed?
618 elsif reopening? && fixed_version.closed?
614 errors.add :base, I18n.t(:error_can_not_reopen_issue_on_closed_version)
619 errors.add :base, I18n.t(:error_can_not_reopen_issue_on_closed_version)
615 end
620 end
616 end
621 end
617
622
618 # Checks that the issue can not be added/moved to a disabled tracker
623 # Checks that the issue can not be added/moved to a disabled tracker
619 if project && (tracker_id_changed? || project_id_changed?)
624 if project && (tracker_id_changed? || project_id_changed?)
620 unless project.trackers.include?(tracker)
625 unless project.trackers.include?(tracker)
621 errors.add :tracker_id, :inclusion
626 errors.add :tracker_id, :inclusion
622 end
627 end
623 end
628 end
624
629
625 # Checks parent issue assignment
630 # Checks parent issue assignment
626 if @invalid_parent_issue_id.present?
631 if @invalid_parent_issue_id.present?
627 errors.add :parent_issue_id, :invalid
632 errors.add :parent_issue_id, :invalid
628 elsif @parent_issue
633 elsif @parent_issue
629 if !valid_parent_project?(@parent_issue)
634 if !valid_parent_project?(@parent_issue)
630 errors.add :parent_issue_id, :invalid
635 errors.add :parent_issue_id, :invalid
631 elsif (@parent_issue != parent) && (all_dependent_issues.include?(@parent_issue) || @parent_issue.all_dependent_issues.include?(self))
636 elsif (@parent_issue != parent) && (all_dependent_issues.include?(@parent_issue) || @parent_issue.all_dependent_issues.include?(self))
632 errors.add :parent_issue_id, :invalid
637 errors.add :parent_issue_id, :invalid
633 elsif !new_record?
638 elsif !new_record?
634 # moving an existing issue
639 # moving an existing issue
635 if move_possible?(@parent_issue)
640 if move_possible?(@parent_issue)
636 # move accepted
641 # move accepted
637 else
642 else
638 errors.add :parent_issue_id, :invalid
643 errors.add :parent_issue_id, :invalid
639 end
644 end
640 end
645 end
641 end
646 end
642 end
647 end
643
648
644 # Validates the issue against additional workflow requirements
649 # Validates the issue against additional workflow requirements
645 def validate_required_fields
650 def validate_required_fields
646 user = new_record? ? author : current_journal.try(:user)
651 user = new_record? ? author : current_journal.try(:user)
647
652
648 required_attribute_names(user).each do |attribute|
653 required_attribute_names(user).each do |attribute|
649 if attribute =~ /^\d+$/
654 if attribute =~ /^\d+$/
650 attribute = attribute.to_i
655 attribute = attribute.to_i
651 v = custom_field_values.detect {|v| v.custom_field_id == attribute }
656 v = custom_field_values.detect {|v| v.custom_field_id == attribute }
652 if v && v.value.blank?
657 if v && v.value.blank?
653 errors.add :base, v.custom_field.name + ' ' + l('activerecord.errors.messages.blank')
658 errors.add :base, v.custom_field.name + ' ' + l('activerecord.errors.messages.blank')
654 end
659 end
655 else
660 else
656 if respond_to?(attribute) && send(attribute).blank? && !disabled_core_fields.include?(attribute)
661 if respond_to?(attribute) && send(attribute).blank? && !disabled_core_fields.include?(attribute)
657 errors.add attribute, :blank
662 errors.add attribute, :blank
658 end
663 end
659 end
664 end
660 end
665 end
661 end
666 end
662
667
663 # Overrides Redmine::Acts::Customizable::InstanceMethods#validate_custom_field_values
668 # Overrides Redmine::Acts::Customizable::InstanceMethods#validate_custom_field_values
664 # so that custom values that are not editable are not validated (eg. a custom field that
669 # so that custom values that are not editable are not validated (eg. a custom field that
665 # is marked as required should not trigger a validation error if the user is not allowed
670 # is marked as required should not trigger a validation error if the user is not allowed
666 # to edit this field).
671 # to edit this field).
667 def validate_custom_field_values
672 def validate_custom_field_values
668 user = new_record? ? author : current_journal.try(:user)
673 user = new_record? ? author : current_journal.try(:user)
669 if new_record? || custom_field_values_changed?
674 if new_record? || custom_field_values_changed?
670 editable_custom_field_values(user).each(&:validate_value)
675 editable_custom_field_values(user).each(&:validate_value)
671 end
676 end
672 end
677 end
673
678
674 # Set the done_ratio using the status if that setting is set. This will keep the done_ratios
679 # Set the done_ratio using the status if that setting is set. This will keep the done_ratios
675 # even if the user turns off the setting later
680 # even if the user turns off the setting later
676 def update_done_ratio_from_issue_status
681 def update_done_ratio_from_issue_status
677 if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
682 if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
678 self.done_ratio = status.default_done_ratio
683 self.done_ratio = status.default_done_ratio
679 end
684 end
680 end
685 end
681
686
682 def init_journal(user, notes = "")
687 def init_journal(user, notes = "")
683 @current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
688 @current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
684 end
689 end
685
690
686 # Returns the current journal or nil if it's not initialized
691 # Returns the current journal or nil if it's not initialized
687 def current_journal
692 def current_journal
688 @current_journal
693 @current_journal
689 end
694 end
690
695
691 # Returns the names of attributes that are journalized when updating the issue
696 # Returns the names of attributes that are journalized when updating the issue
692 def journalized_attribute_names
697 def journalized_attribute_names
693 names = Issue.column_names - %w(id root_id lft rgt lock_version created_on updated_on closed_on)
698 names = Issue.column_names - %w(id root_id lft rgt lock_version created_on updated_on closed_on)
694 if tracker
699 if tracker
695 names -= tracker.disabled_core_fields
700 names -= tracker.disabled_core_fields
696 end
701 end
697 names
702 names
698 end
703 end
699
704
700 # Returns the id of the last journal or nil
705 # Returns the id of the last journal or nil
701 def last_journal_id
706 def last_journal_id
702 if new_record?
707 if new_record?
703 nil
708 nil
704 else
709 else
705 journals.maximum(:id)
710 journals.maximum(:id)
706 end
711 end
707 end
712 end
708
713
709 # Returns a scope for journals that have an id greater than journal_id
714 # Returns a scope for journals that have an id greater than journal_id
710 def journals_after(journal_id)
715 def journals_after(journal_id)
711 scope = journals.reorder("#{Journal.table_name}.id ASC")
716 scope = journals.reorder("#{Journal.table_name}.id ASC")
712 if journal_id.present?
717 if journal_id.present?
713 scope = scope.where("#{Journal.table_name}.id > ?", journal_id.to_i)
718 scope = scope.where("#{Journal.table_name}.id > ?", journal_id.to_i)
714 end
719 end
715 scope
720 scope
716 end
721 end
717
722
718 # Returns the initial status of the issue
723 # Returns the initial status of the issue
719 # Returns nil for a new issue
724 # Returns nil for a new issue
720 def status_was
725 def status_was
721 if status_id_changed?
726 if status_id_changed?
722 if status_id_was.to_i > 0
727 if status_id_was.to_i > 0
723 @status_was ||= IssueStatus.find_by_id(status_id_was)
728 @status_was ||= IssueStatus.find_by_id(status_id_was)
724 end
729 end
725 else
730 else
726 @status_was ||= status
731 @status_was ||= status
727 end
732 end
728 end
733 end
729
734
730 # Return true if the issue is closed, otherwise false
735 # Return true if the issue is closed, otherwise false
731 def closed?
736 def closed?
732 status.present? && status.is_closed?
737 status.present? && status.is_closed?
733 end
738 end
734
739
735 # Returns true if the issue was closed when loaded
740 # Returns true if the issue was closed when loaded
736 def was_closed?
741 def was_closed?
737 status_was.present? && status_was.is_closed?
742 status_was.present? && status_was.is_closed?
738 end
743 end
739
744
740 # Return true if the issue is being reopened
745 # Return true if the issue is being reopened
741 def reopening?
746 def reopening?
742 if new_record?
747 if new_record?
743 false
748 false
744 else
749 else
745 status_id_changed? && !closed? && was_closed?
750 status_id_changed? && !closed? && was_closed?
746 end
751 end
747 end
752 end
748 alias :reopened? :reopening?
753 alias :reopened? :reopening?
749
754
750 # Return true if the issue is being closed
755 # Return true if the issue is being closed
751 def closing?
756 def closing?
752 if new_record?
757 if new_record?
753 closed?
758 closed?
754 else
759 else
755 status_id_changed? && closed? && !was_closed?
760 status_id_changed? && closed? && !was_closed?
756 end
761 end
757 end
762 end
758
763
759 # Returns true if the issue is overdue
764 # Returns true if the issue is overdue
760 def overdue?
765 def overdue?
761 due_date.present? && (due_date < Date.today) && !closed?
766 due_date.present? && (due_date < Date.today) && !closed?
762 end
767 end
763
768
764 # Is the amount of work done less than it should for the due date
769 # Is the amount of work done less than it should for the due date
765 def behind_schedule?
770 def behind_schedule?
766 return false if start_date.nil? || due_date.nil?
771 return false if start_date.nil? || due_date.nil?
767 done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor
772 done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor
768 return done_date <= Date.today
773 return done_date <= Date.today
769 end
774 end
770
775
771 # Does this issue have children?
776 # Does this issue have children?
772 def children?
777 def children?
773 !leaf?
778 !leaf?
774 end
779 end
775
780
776 # Users the issue can be assigned to
781 # Users the issue can be assigned to
777 def assignable_users
782 def assignable_users
778 users = project.assignable_users.to_a
783 users = project.assignable_users.to_a
779 users << author if author
784 users << author if author
780 users << assigned_to if assigned_to
785 users << assigned_to if assigned_to
781 users.uniq.sort
786 users.uniq.sort
782 end
787 end
783
788
784 # Versions that the issue can be assigned to
789 # Versions that the issue can be assigned to
785 def assignable_versions
790 def assignable_versions
786 return @assignable_versions if @assignable_versions
791 return @assignable_versions if @assignable_versions
787
792
788 versions = project.shared_versions.open.to_a
793 versions = project.shared_versions.open.to_a
789 if fixed_version
794 if fixed_version
790 if fixed_version_id_changed?
795 if fixed_version_id_changed?
791 # nothing to do
796 # nothing to do
792 elsif project_id_changed?
797 elsif project_id_changed?
793 if project.shared_versions.include?(fixed_version)
798 if project.shared_versions.include?(fixed_version)
794 versions << fixed_version
799 versions << fixed_version
795 end
800 end
796 else
801 else
797 versions << fixed_version
802 versions << fixed_version
798 end
803 end
799 end
804 end
800 @assignable_versions = versions.uniq.sort
805 @assignable_versions = versions.uniq.sort
801 end
806 end
802
807
803 # Returns true if this issue is blocked by another issue that is still open
808 # Returns true if this issue is blocked by another issue that is still open
804 def blocked?
809 def blocked?
805 !relations_to.detect {|ir| ir.relation_type == 'blocks' && !ir.issue_from.closed?}.nil?
810 !relations_to.detect {|ir| ir.relation_type == 'blocks' && !ir.issue_from.closed?}.nil?
806 end
811 end
807
812
808 # Returns the default status of the issue based on its tracker
813 # Returns the default status of the issue based on its tracker
809 # Returns nil if tracker is nil
814 # Returns nil if tracker is nil
810 def default_status
815 def default_status
811 tracker.try(:default_status)
816 tracker.try(:default_status)
812 end
817 end
813
818
814 # Returns an array of statuses that user is able to apply
819 # Returns an array of statuses that user is able to apply
815 def new_statuses_allowed_to(user=User.current, include_default=false)
820 def new_statuses_allowed_to(user=User.current, include_default=false)
816 if new_record? && @copied_from
821 if new_record? && @copied_from
817 [default_status, @copied_from.status].compact.uniq.sort
822 [default_status, @copied_from.status].compact.uniq.sort
818 else
823 else
819 initial_status = nil
824 initial_status = nil
820 if new_record?
825 if new_record?
821 initial_status = default_status
826 initial_status = default_status
822 elsif tracker_id_changed?
827 elsif tracker_id_changed?
823 if Tracker.where(:id => tracker_id_was, :default_status_id => status_id_was).any?
828 if Tracker.where(:id => tracker_id_was, :default_status_id => status_id_was).any?
824 initial_status = default_status
829 initial_status = default_status
825 elsif tracker.issue_status_ids.include?(status_id_was)
830 elsif tracker.issue_status_ids.include?(status_id_was)
826 initial_status = IssueStatus.find_by_id(status_id_was)
831 initial_status = IssueStatus.find_by_id(status_id_was)
827 else
832 else
828 initial_status = default_status
833 initial_status = default_status
829 end
834 end
830 else
835 else
831 initial_status = status_was
836 initial_status = status_was
832 end
837 end
833
838
834 initial_assigned_to_id = assigned_to_id_changed? ? assigned_to_id_was : assigned_to_id
839 initial_assigned_to_id = assigned_to_id_changed? ? assigned_to_id_was : assigned_to_id
835 assignee_transitions_allowed = initial_assigned_to_id.present? &&
840 assignee_transitions_allowed = initial_assigned_to_id.present? &&
836 (user.id == initial_assigned_to_id || user.group_ids.include?(initial_assigned_to_id))
841 (user.id == initial_assigned_to_id || user.group_ids.include?(initial_assigned_to_id))
837
842
838 statuses = []
843 statuses = []
839 if initial_status
844 if initial_status
840 statuses += initial_status.find_new_statuses_allowed_to(
845 statuses += initial_status.find_new_statuses_allowed_to(
841 user.admin ? Role.all.to_a : user.roles_for_project(project),
846 user.admin ? Role.all.to_a : user.roles_for_project(project),
842 tracker,
847 tracker,
843 author == user,
848 author == user,
844 assignee_transitions_allowed
849 assignee_transitions_allowed
845 )
850 )
846 end
851 end
847 statuses << initial_status unless statuses.empty?
852 statuses << initial_status unless statuses.empty?
848 statuses << default_status if include_default
853 statuses << default_status if include_default
849 statuses = statuses.compact.uniq.sort
854 statuses = statuses.compact.uniq.sort
850 if blocked?
855 if blocked?
851 statuses.reject!(&:is_closed?)
856 statuses.reject!(&:is_closed?)
852 end
857 end
853 statuses
858 statuses
854 end
859 end
855 end
860 end
856
861
857 # Returns the previous assignee (user or group) if changed
862 # Returns the previous assignee (user or group) if changed
858 def assigned_to_was
863 def assigned_to_was
859 # assigned_to_id_was is reset before after_save callbacks
864 # assigned_to_id_was is reset before after_save callbacks
860 user_id = @previous_assigned_to_id || assigned_to_id_was
865 user_id = @previous_assigned_to_id || assigned_to_id_was
861 if user_id && user_id != assigned_to_id
866 if user_id && user_id != assigned_to_id
862 @assigned_to_was ||= Principal.find_by_id(user_id)
867 @assigned_to_was ||= Principal.find_by_id(user_id)
863 end
868 end
864 end
869 end
865
870
866 # Returns the users that should be notified
871 # Returns the users that should be notified
867 def notified_users
872 def notified_users
868 notified = []
873 notified = []
869 # Author and assignee are always notified unless they have been
874 # Author and assignee are always notified unless they have been
870 # locked or don't want to be notified
875 # locked or don't want to be notified
871 notified << author if author
876 notified << author if author
872 if assigned_to
877 if assigned_to
873 notified += (assigned_to.is_a?(Group) ? assigned_to.users : [assigned_to])
878 notified += (assigned_to.is_a?(Group) ? assigned_to.users : [assigned_to])
874 end
879 end
875 if assigned_to_was
880 if assigned_to_was
876 notified += (assigned_to_was.is_a?(Group) ? assigned_to_was.users : [assigned_to_was])
881 notified += (assigned_to_was.is_a?(Group) ? assigned_to_was.users : [assigned_to_was])
877 end
882 end
878 notified = notified.select {|u| u.active? && u.notify_about?(self)}
883 notified = notified.select {|u| u.active? && u.notify_about?(self)}
879
884
880 notified += project.notified_users
885 notified += project.notified_users
881 notified.uniq!
886 notified.uniq!
882 # Remove users that can not view the issue
887 # Remove users that can not view the issue
883 notified.reject! {|user| !visible?(user)}
888 notified.reject! {|user| !visible?(user)}
884 notified
889 notified
885 end
890 end
886
891
887 # Returns the email addresses that should be notified
892 # Returns the email addresses that should be notified
888 def recipients
893 def recipients
889 notified_users.collect(&:mail)
894 notified_users.collect(&:mail)
890 end
895 end
891
896
892 def each_notification(users, &block)
897 def each_notification(users, &block)
893 if users.any?
898 if users.any?
894 if custom_field_values.detect {|value| !value.custom_field.visible?}
899 if custom_field_values.detect {|value| !value.custom_field.visible?}
895 users_by_custom_field_visibility = users.group_by do |user|
900 users_by_custom_field_visibility = users.group_by do |user|
896 visible_custom_field_values(user).map(&:custom_field_id).sort
901 visible_custom_field_values(user).map(&:custom_field_id).sort
897 end
902 end
898 users_by_custom_field_visibility.values.each do |users|
903 users_by_custom_field_visibility.values.each do |users|
899 yield(users)
904 yield(users)
900 end
905 end
901 else
906 else
902 yield(users)
907 yield(users)
903 end
908 end
904 end
909 end
905 end
910 end
906
911
907 # Returns the number of hours spent on this issue
912 # Returns the number of hours spent on this issue
908 def spent_hours
913 def spent_hours
909 @spent_hours ||= time_entries.sum(:hours) || 0
914 @spent_hours ||= time_entries.sum(:hours) || 0
910 end
915 end
911
916
912 # Returns the total number of hours spent on this issue and its descendants
917 # Returns the total number of hours spent on this issue and its descendants
913 #
918 #
914 # Example:
919 # Example:
915 # spent_hours => 0.0
920 # spent_hours => 0.0
916 # spent_hours => 50.2
921 # spent_hours => 50.2
917 def total_spent_hours
922 def total_spent_hours
918 @total_spent_hours ||=
923 @total_spent_hours ||=
919 self_and_descendants.
924 self_and_descendants.
920 joins("LEFT JOIN #{TimeEntry.table_name} ON #{TimeEntry.table_name}.issue_id = #{Issue.table_name}.id").
925 joins("LEFT JOIN #{TimeEntry.table_name} ON #{TimeEntry.table_name}.issue_id = #{Issue.table_name}.id").
921 sum("#{TimeEntry.table_name}.hours").to_f || 0.0
926 sum("#{TimeEntry.table_name}.hours").to_f || 0.0
922 end
927 end
923
928
924 def relations
929 def relations
925 @relations ||= IssueRelation::Relations.new(self, (relations_from + relations_to).sort)
930 @relations ||= IssueRelation::Relations.new(self, (relations_from + relations_to).sort)
926 end
931 end
927
932
928 # Preloads relations for a collection of issues
933 # Preloads relations for a collection of issues
929 def self.load_relations(issues)
934 def self.load_relations(issues)
930 if issues.any?
935 if issues.any?
931 relations = IssueRelation.where("issue_from_id IN (:ids) OR issue_to_id IN (:ids)", :ids => issues.map(&:id)).all
936 relations = IssueRelation.where("issue_from_id IN (:ids) OR issue_to_id IN (:ids)", :ids => issues.map(&:id)).all
932 issues.each do |issue|
937 issues.each do |issue|
933 issue.instance_variable_set "@relations", relations.select {|r| r.issue_from_id == issue.id || r.issue_to_id == issue.id}
938 issue.instance_variable_set "@relations", relations.select {|r| r.issue_from_id == issue.id || r.issue_to_id == issue.id}
934 end
939 end
935 end
940 end
936 end
941 end
937
942
938 # Preloads visible spent time for a collection of issues
943 # Preloads visible spent time for a collection of issues
939 def self.load_visible_spent_hours(issues, user=User.current)
944 def self.load_visible_spent_hours(issues, user=User.current)
940 if issues.any?
945 if issues.any?
941 hours_by_issue_id = TimeEntry.visible(user).group(:issue_id).sum(:hours)
946 hours_by_issue_id = TimeEntry.visible(user).group(:issue_id).sum(:hours)
942 issues.each do |issue|
947 issues.each do |issue|
943 issue.instance_variable_set "@spent_hours", (hours_by_issue_id[issue.id] || 0)
948 issue.instance_variable_set "@spent_hours", (hours_by_issue_id[issue.id] || 0)
944 end
949 end
945 end
950 end
946 end
951 end
947
952
948 # Preloads visible relations for a collection of issues
953 # Preloads visible relations for a collection of issues
949 def self.load_visible_relations(issues, user=User.current)
954 def self.load_visible_relations(issues, user=User.current)
950 if issues.any?
955 if issues.any?
951 issue_ids = issues.map(&:id)
956 issue_ids = issues.map(&:id)
952 # Relations with issue_from in given issues and visible issue_to
957 # Relations with issue_from in given issues and visible issue_to
953 relations_from = IssueRelation.joins(:issue_to => :project).
958 relations_from = IssueRelation.joins(:issue_to => :project).
954 where(visible_condition(user)).where(:issue_from_id => issue_ids).to_a
959 where(visible_condition(user)).where(:issue_from_id => issue_ids).to_a
955 # Relations with issue_to in given issues and visible issue_from
960 # Relations with issue_to in given issues and visible issue_from
956 relations_to = IssueRelation.joins(:issue_from => :project).
961 relations_to = IssueRelation.joins(:issue_from => :project).
957 where(visible_condition(user)).
962 where(visible_condition(user)).
958 where(:issue_to_id => issue_ids).to_a
963 where(:issue_to_id => issue_ids).to_a
959 issues.each do |issue|
964 issues.each do |issue|
960 relations =
965 relations =
961 relations_from.select {|relation| relation.issue_from_id == issue.id} +
966 relations_from.select {|relation| relation.issue_from_id == issue.id} +
962 relations_to.select {|relation| relation.issue_to_id == issue.id}
967 relations_to.select {|relation| relation.issue_to_id == issue.id}
963
968
964 issue.instance_variable_set "@relations", IssueRelation::Relations.new(issue, relations.sort)
969 issue.instance_variable_set "@relations", IssueRelation::Relations.new(issue, relations.sort)
965 end
970 end
966 end
971 end
967 end
972 end
968
973
969 # Finds an issue relation given its id.
974 # Finds an issue relation given its id.
970 def find_relation(relation_id)
975 def find_relation(relation_id)
971 IssueRelation.where("issue_to_id = ? OR issue_from_id = ?", id, id).find(relation_id)
976 IssueRelation.where("issue_to_id = ? OR issue_from_id = ?", id, id).find(relation_id)
972 end
977 end
973
978
974 # Returns all the other issues that depend on the issue
979 # Returns all the other issues that depend on the issue
975 # The algorithm is a modified breadth first search (bfs)
980 # The algorithm is a modified breadth first search (bfs)
976 def all_dependent_issues(except=[])
981 def all_dependent_issues(except=[])
977 # The found dependencies
982 # The found dependencies
978 dependencies = []
983 dependencies = []
979
984
980 # The visited flag for every node (issue) used by the breadth first search
985 # The visited flag for every node (issue) used by the breadth first search
981 eNOT_DISCOVERED = 0 # The issue is "new" to the algorithm, it has not seen it before.
986 eNOT_DISCOVERED = 0 # The issue is "new" to the algorithm, it has not seen it before.
982
987
983 ePROCESS_ALL = 1 # The issue is added to the queue. Process both children and relations of
988 ePROCESS_ALL = 1 # The issue is added to the queue. Process both children and relations of
984 # the issue when it is processed.
989 # the issue when it is processed.
985
990
986 ePROCESS_RELATIONS_ONLY = 2 # The issue was added to the queue and will be output as dependent issue,
991 ePROCESS_RELATIONS_ONLY = 2 # The issue was added to the queue and will be output as dependent issue,
987 # but its children will not be added to the queue when it is processed.
992 # but its children will not be added to the queue when it is processed.
988
993
989 eRELATIONS_PROCESSED = 3 # The related issues, the parent issue and the issue itself have been added to
994 eRELATIONS_PROCESSED = 3 # The related issues, the parent issue and the issue itself have been added to
990 # the queue, but its children have not been added.
995 # the queue, but its children have not been added.
991
996
992 ePROCESS_CHILDREN_ONLY = 4 # The relations and the parent of the issue have been added to the queue, but
997 ePROCESS_CHILDREN_ONLY = 4 # The relations and the parent of the issue have been added to the queue, but
993 # the children still need to be processed.
998 # the children still need to be processed.
994
999
995 eALL_PROCESSED = 5 # The issue and all its children, its parent and its related issues have been
1000 eALL_PROCESSED = 5 # The issue and all its children, its parent and its related issues have been
996 # added as dependent issues. It needs no further processing.
1001 # added as dependent issues. It needs no further processing.
997
1002
998 issue_status = Hash.new(eNOT_DISCOVERED)
1003 issue_status = Hash.new(eNOT_DISCOVERED)
999
1004
1000 # The queue
1005 # The queue
1001 queue = []
1006 queue = []
1002
1007
1003 # Initialize the bfs, add start node (self) to the queue
1008 # Initialize the bfs, add start node (self) to the queue
1004 queue << self
1009 queue << self
1005 issue_status[self] = ePROCESS_ALL
1010 issue_status[self] = ePROCESS_ALL
1006
1011
1007 while (!queue.empty?) do
1012 while (!queue.empty?) do
1008 current_issue = queue.shift
1013 current_issue = queue.shift
1009 current_issue_status = issue_status[current_issue]
1014 current_issue_status = issue_status[current_issue]
1010 dependencies << current_issue
1015 dependencies << current_issue
1011
1016
1012 # Add parent to queue, if not already in it.
1017 # Add parent to queue, if not already in it.
1013 parent = current_issue.parent
1018 parent = current_issue.parent
1014 parent_status = issue_status[parent]
1019 parent_status = issue_status[parent]
1015
1020
1016 if parent && (parent_status == eNOT_DISCOVERED) && !except.include?(parent)
1021 if parent && (parent_status == eNOT_DISCOVERED) && !except.include?(parent)
1017 queue << parent
1022 queue << parent
1018 issue_status[parent] = ePROCESS_RELATIONS_ONLY
1023 issue_status[parent] = ePROCESS_RELATIONS_ONLY
1019 end
1024 end
1020
1025
1021 # Add children to queue, but only if they are not already in it and
1026 # Add children to queue, but only if they are not already in it and
1022 # the children of the current node need to be processed.
1027 # the children of the current node need to be processed.
1023 if (current_issue_status == ePROCESS_CHILDREN_ONLY || current_issue_status == ePROCESS_ALL)
1028 if (current_issue_status == ePROCESS_CHILDREN_ONLY || current_issue_status == ePROCESS_ALL)
1024 current_issue.children.each do |child|
1029 current_issue.children.each do |child|
1025 next if except.include?(child)
1030 next if except.include?(child)
1026
1031
1027 if (issue_status[child] == eNOT_DISCOVERED)
1032 if (issue_status[child] == eNOT_DISCOVERED)
1028 queue << child
1033 queue << child
1029 issue_status[child] = ePROCESS_ALL
1034 issue_status[child] = ePROCESS_ALL
1030 elsif (issue_status[child] == eRELATIONS_PROCESSED)
1035 elsif (issue_status[child] == eRELATIONS_PROCESSED)
1031 queue << child
1036 queue << child
1032 issue_status[child] = ePROCESS_CHILDREN_ONLY
1037 issue_status[child] = ePROCESS_CHILDREN_ONLY
1033 elsif (issue_status[child] == ePROCESS_RELATIONS_ONLY)
1038 elsif (issue_status[child] == ePROCESS_RELATIONS_ONLY)
1034 queue << child
1039 queue << child
1035 issue_status[child] = ePROCESS_ALL
1040 issue_status[child] = ePROCESS_ALL
1036 end
1041 end
1037 end
1042 end
1038 end
1043 end
1039
1044
1040 # Add related issues to the queue, if they are not already in it.
1045 # Add related issues to the queue, if they are not already in it.
1041 current_issue.relations_from.map(&:issue_to).each do |related_issue|
1046 current_issue.relations_from.map(&:issue_to).each do |related_issue|
1042 next if except.include?(related_issue)
1047 next if except.include?(related_issue)
1043
1048
1044 if (issue_status[related_issue] == eNOT_DISCOVERED)
1049 if (issue_status[related_issue] == eNOT_DISCOVERED)
1045 queue << related_issue
1050 queue << related_issue
1046 issue_status[related_issue] = ePROCESS_ALL
1051 issue_status[related_issue] = ePROCESS_ALL
1047 elsif (issue_status[related_issue] == eRELATIONS_PROCESSED)
1052 elsif (issue_status[related_issue] == eRELATIONS_PROCESSED)
1048 queue << related_issue
1053 queue << related_issue
1049 issue_status[related_issue] = ePROCESS_CHILDREN_ONLY
1054 issue_status[related_issue] = ePROCESS_CHILDREN_ONLY
1050 elsif (issue_status[related_issue] == ePROCESS_RELATIONS_ONLY)
1055 elsif (issue_status[related_issue] == ePROCESS_RELATIONS_ONLY)
1051 queue << related_issue
1056 queue << related_issue
1052 issue_status[related_issue] = ePROCESS_ALL
1057 issue_status[related_issue] = ePROCESS_ALL
1053 end
1058 end
1054 end
1059 end
1055
1060
1056 # Set new status for current issue
1061 # Set new status for current issue
1057 if (current_issue_status == ePROCESS_ALL) || (current_issue_status == ePROCESS_CHILDREN_ONLY)
1062 if (current_issue_status == ePROCESS_ALL) || (current_issue_status == ePROCESS_CHILDREN_ONLY)
1058 issue_status[current_issue] = eALL_PROCESSED
1063 issue_status[current_issue] = eALL_PROCESSED
1059 elsif (current_issue_status == ePROCESS_RELATIONS_ONLY)
1064 elsif (current_issue_status == ePROCESS_RELATIONS_ONLY)
1060 issue_status[current_issue] = eRELATIONS_PROCESSED
1065 issue_status[current_issue] = eRELATIONS_PROCESSED
1061 end
1066 end
1062 end # while
1067 end # while
1063
1068
1064 # Remove the issues from the "except" parameter from the result array
1069 # Remove the issues from the "except" parameter from the result array
1065 dependencies -= except
1070 dependencies -= except
1066 dependencies.delete(self)
1071 dependencies.delete(self)
1067
1072
1068 dependencies
1073 dependencies
1069 end
1074 end
1070
1075
1071 # Returns an array of issues that duplicate this one
1076 # Returns an array of issues that duplicate this one
1072 def duplicates
1077 def duplicates
1073 relations_to.select {|r| r.relation_type == IssueRelation::TYPE_DUPLICATES}.collect {|r| r.issue_from}
1078 relations_to.select {|r| r.relation_type == IssueRelation::TYPE_DUPLICATES}.collect {|r| r.issue_from}
1074 end
1079 end
1075
1080
1076 # Returns the due date or the target due date if any
1081 # Returns the due date or the target due date if any
1077 # Used on gantt chart
1082 # Used on gantt chart
1078 def due_before
1083 def due_before
1079 due_date || (fixed_version ? fixed_version.effective_date : nil)
1084 due_date || (fixed_version ? fixed_version.effective_date : nil)
1080 end
1085 end
1081
1086
1082 # Returns the time scheduled for this issue.
1087 # Returns the time scheduled for this issue.
1083 #
1088 #
1084 # Example:
1089 # Example:
1085 # Start Date: 2/26/09, End Date: 3/04/09
1090 # Start Date: 2/26/09, End Date: 3/04/09
1086 # duration => 6
1091 # duration => 6
1087 def duration
1092 def duration
1088 (start_date && due_date) ? due_date - start_date : 0
1093 (start_date && due_date) ? due_date - start_date : 0
1089 end
1094 end
1090
1095
1091 # Returns the duration in working days
1096 # Returns the duration in working days
1092 def working_duration
1097 def working_duration
1093 (start_date && due_date) ? working_days(start_date, due_date) : 0
1098 (start_date && due_date) ? working_days(start_date, due_date) : 0
1094 end
1099 end
1095
1100
1096 def soonest_start(reload=false)
1101 def soonest_start(reload=false)
1097 @soonest_start = nil if reload
1102 if @soonest_start.nil? || reload
1098 @soonest_start ||= (
1103 dates = relations_to(reload).collect{|relation| relation.successor_soonest_start}
1099 relations_to(reload).collect{|relation| relation.successor_soonest_start} +
1104 p = @parent_issue || parent
1100 [(@parent_issue || parent).try(:soonest_start)]
1105 if p && Setting.parent_issue_dates == 'derived'
1101 ).compact.max
1106 dates << p.soonest_start
1107 end
1108 @soonest_start = dates.compact.max
1109 end
1110 @soonest_start
1102 end
1111 end
1103
1112
1104 # Sets start_date on the given date or the next working day
1113 # Sets start_date on the given date or the next working day
1105 # and changes due_date to keep the same working duration.
1114 # and changes due_date to keep the same working duration.
1106 def reschedule_on(date)
1115 def reschedule_on(date)
1107 wd = working_duration
1116 wd = working_duration
1108 date = next_working_date(date)
1117 date = next_working_date(date)
1109 self.start_date = date
1118 self.start_date = date
1110 self.due_date = add_working_days(date, wd)
1119 self.due_date = add_working_days(date, wd)
1111 end
1120 end
1112
1121
1113 # Reschedules the issue on the given date or the next working day and saves the record.
1122 # Reschedules the issue on the given date or the next working day and saves the record.
1114 # If the issue is a parent task, this is done by rescheduling its subtasks.
1123 # If the issue is a parent task, this is done by rescheduling its subtasks.
1115 def reschedule_on!(date)
1124 def reschedule_on!(date)
1116 return if date.nil?
1125 return if date.nil?
1117 if leaf?
1126 if leaf? || !dates_derived?
1118 if start_date.nil? || start_date != date
1127 if start_date.nil? || start_date != date
1119 if start_date && start_date > date
1128 if start_date && start_date > date
1120 # Issue can not be moved earlier than its soonest start date
1129 # Issue can not be moved earlier than its soonest start date
1121 date = [soonest_start(true), date].compact.max
1130 date = [soonest_start(true), date].compact.max
1122 end
1131 end
1123 reschedule_on(date)
1132 reschedule_on(date)
1124 begin
1133 begin
1125 save
1134 save
1126 rescue ActiveRecord::StaleObjectError
1135 rescue ActiveRecord::StaleObjectError
1127 reload
1136 reload
1128 reschedule_on(date)
1137 reschedule_on(date)
1129 save
1138 save
1130 end
1139 end
1131 end
1140 end
1132 else
1141 else
1133 leaves.each do |leaf|
1142 leaves.each do |leaf|
1134 if leaf.start_date
1143 if leaf.start_date
1135 # Only move subtask if it starts at the same date as the parent
1144 # Only move subtask if it starts at the same date as the parent
1136 # or if it starts before the given date
1145 # or if it starts before the given date
1137 if start_date == leaf.start_date || date > leaf.start_date
1146 if start_date == leaf.start_date || date > leaf.start_date
1138 leaf.reschedule_on!(date)
1147 leaf.reschedule_on!(date)
1139 end
1148 end
1140 else
1149 else
1141 leaf.reschedule_on!(date)
1150 leaf.reschedule_on!(date)
1142 end
1151 end
1143 end
1152 end
1144 end
1153 end
1145 end
1154 end
1146
1155
1156 def dates_derived?
1157 !leaf? && Setting.parent_issue_dates == 'derived'
1158 end
1159
1160 def priority_derived?
1161 !leaf? && Setting.parent_issue_priority == 'derived'
1162 end
1163
1147 def <=>(issue)
1164 def <=>(issue)
1148 if issue.nil?
1165 if issue.nil?
1149 -1
1166 -1
1150 elsif root_id != issue.root_id
1167 elsif root_id != issue.root_id
1151 (root_id || 0) <=> (issue.root_id || 0)
1168 (root_id || 0) <=> (issue.root_id || 0)
1152 else
1169 else
1153 (lft || 0) <=> (issue.lft || 0)
1170 (lft || 0) <=> (issue.lft || 0)
1154 end
1171 end
1155 end
1172 end
1156
1173
1157 def to_s
1174 def to_s
1158 "#{tracker} ##{id}: #{subject}"
1175 "#{tracker} ##{id}: #{subject}"
1159 end
1176 end
1160
1177
1161 # Returns a string of css classes that apply to the issue
1178 # Returns a string of css classes that apply to the issue
1162 def css_classes(user=User.current)
1179 def css_classes(user=User.current)
1163 s = "issue tracker-#{tracker_id} status-#{status_id} #{priority.try(:css_classes)}"
1180 s = "issue tracker-#{tracker_id} status-#{status_id} #{priority.try(:css_classes)}"
1164 s << ' closed' if closed?
1181 s << ' closed' if closed?
1165 s << ' overdue' if overdue?
1182 s << ' overdue' if overdue?
1166 s << ' child' if child?
1183 s << ' child' if child?
1167 s << ' parent' unless leaf?
1184 s << ' parent' unless leaf?
1168 s << ' private' if is_private?
1185 s << ' private' if is_private?
1169 if user.logged?
1186 if user.logged?
1170 s << ' created-by-me' if author_id == user.id
1187 s << ' created-by-me' if author_id == user.id
1171 s << ' assigned-to-me' if assigned_to_id == user.id
1188 s << ' assigned-to-me' if assigned_to_id == user.id
1172 s << ' assigned-to-my-group' if user.groups.any? {|g| g.id == assigned_to_id}
1189 s << ' assigned-to-my-group' if user.groups.any? {|g| g.id == assigned_to_id}
1173 end
1190 end
1174 s
1191 s
1175 end
1192 end
1176
1193
1177 # Unassigns issues from +version+ if it's no longer shared with issue's project
1194 # Unassigns issues from +version+ if it's no longer shared with issue's project
1178 def self.update_versions_from_sharing_change(version)
1195 def self.update_versions_from_sharing_change(version)
1179 # Update issues assigned to the version
1196 # Update issues assigned to the version
1180 update_versions(["#{Issue.table_name}.fixed_version_id = ?", version.id])
1197 update_versions(["#{Issue.table_name}.fixed_version_id = ?", version.id])
1181 end
1198 end
1182
1199
1183 # Unassigns issues from versions that are no longer shared
1200 # Unassigns issues from versions that are no longer shared
1184 # after +project+ was moved
1201 # after +project+ was moved
1185 def self.update_versions_from_hierarchy_change(project)
1202 def self.update_versions_from_hierarchy_change(project)
1186 moved_project_ids = project.self_and_descendants.reload.collect(&:id)
1203 moved_project_ids = project.self_and_descendants.reload.collect(&:id)
1187 # Update issues of the moved projects and issues assigned to a version of a moved project
1204 # Update issues of the moved projects and issues assigned to a version of a moved project
1188 Issue.update_versions(
1205 Issue.update_versions(
1189 ["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
1206 ["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
1190 moved_project_ids, moved_project_ids]
1207 moved_project_ids, moved_project_ids]
1191 )
1208 )
1192 end
1209 end
1193
1210
1194 def parent_issue_id=(arg)
1211 def parent_issue_id=(arg)
1195 s = arg.to_s.strip.presence
1212 s = arg.to_s.strip.presence
1196 if s && (m = s.match(%r{\A#?(\d+)\z})) && (@parent_issue = Issue.find_by_id(m[1]))
1213 if s && (m = s.match(%r{\A#?(\d+)\z})) && (@parent_issue = Issue.find_by_id(m[1]))
1197 @invalid_parent_issue_id = nil
1214 @invalid_parent_issue_id = nil
1198 elsif s.blank?
1215 elsif s.blank?
1199 @parent_issue = nil
1216 @parent_issue = nil
1200 @invalid_parent_issue_id = nil
1217 @invalid_parent_issue_id = nil
1201 else
1218 else
1202 @parent_issue = nil
1219 @parent_issue = nil
1203 @invalid_parent_issue_id = arg
1220 @invalid_parent_issue_id = arg
1204 end
1221 end
1205 end
1222 end
1206
1223
1207 def parent_issue_id
1224 def parent_issue_id
1208 if @invalid_parent_issue_id
1225 if @invalid_parent_issue_id
1209 @invalid_parent_issue_id
1226 @invalid_parent_issue_id
1210 elsif instance_variable_defined? :@parent_issue
1227 elsif instance_variable_defined? :@parent_issue
1211 @parent_issue.nil? ? nil : @parent_issue.id
1228 @parent_issue.nil? ? nil : @parent_issue.id
1212 else
1229 else
1213 parent_id
1230 parent_id
1214 end
1231 end
1215 end
1232 end
1216
1233
1217 def set_parent_id
1234 def set_parent_id
1218 self.parent_id = parent_issue_id
1235 self.parent_id = parent_issue_id
1219 end
1236 end
1220
1237
1221 # Returns true if issue's project is a valid
1238 # Returns true if issue's project is a valid
1222 # parent issue project
1239 # parent issue project
1223 def valid_parent_project?(issue=parent)
1240 def valid_parent_project?(issue=parent)
1224 return true if issue.nil? || issue.project_id == project_id
1241 return true if issue.nil? || issue.project_id == project_id
1225
1242
1226 case Setting.cross_project_subtasks
1243 case Setting.cross_project_subtasks
1227 when 'system'
1244 when 'system'
1228 true
1245 true
1229 when 'tree'
1246 when 'tree'
1230 issue.project.root == project.root
1247 issue.project.root == project.root
1231 when 'hierarchy'
1248 when 'hierarchy'
1232 issue.project.is_or_is_ancestor_of?(project) || issue.project.is_descendant_of?(project)
1249 issue.project.is_or_is_ancestor_of?(project) || issue.project.is_descendant_of?(project)
1233 when 'descendants'
1250 when 'descendants'
1234 issue.project.is_or_is_ancestor_of?(project)
1251 issue.project.is_or_is_ancestor_of?(project)
1235 else
1252 else
1236 false
1253 false
1237 end
1254 end
1238 end
1255 end
1239
1256
1240 # Returns an issue scope based on project and scope
1257 # Returns an issue scope based on project and scope
1241 def self.cross_project_scope(project, scope=nil)
1258 def self.cross_project_scope(project, scope=nil)
1242 if project.nil?
1259 if project.nil?
1243 return Issue
1260 return Issue
1244 end
1261 end
1245 case scope
1262 case scope
1246 when 'all', 'system'
1263 when 'all', 'system'
1247 Issue
1264 Issue
1248 when 'tree'
1265 when 'tree'
1249 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt)",
1266 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt)",
1250 :lft => project.root.lft, :rgt => project.root.rgt)
1267 :lft => project.root.lft, :rgt => project.root.rgt)
1251 when 'hierarchy'
1268 when 'hierarchy'
1252 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt) OR (#{Project.table_name}.lft < :lft AND #{Project.table_name}.rgt > :rgt)",
1269 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt) OR (#{Project.table_name}.lft < :lft AND #{Project.table_name}.rgt > :rgt)",
1253 :lft => project.lft, :rgt => project.rgt)
1270 :lft => project.lft, :rgt => project.rgt)
1254 when 'descendants'
1271 when 'descendants'
1255 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt)",
1272 Issue.joins(:project).where("(#{Project.table_name}.lft >= :lft AND #{Project.table_name}.rgt <= :rgt)",
1256 :lft => project.lft, :rgt => project.rgt)
1273 :lft => project.lft, :rgt => project.rgt)
1257 else
1274 else
1258 Issue.where(:project_id => project.id)
1275 Issue.where(:project_id => project.id)
1259 end
1276 end
1260 end
1277 end
1261
1278
1262 def self.by_tracker(project)
1279 def self.by_tracker(project)
1263 count_and_group_by(:project => project, :association => :tracker)
1280 count_and_group_by(:project => project, :association => :tracker)
1264 end
1281 end
1265
1282
1266 def self.by_version(project)
1283 def self.by_version(project)
1267 count_and_group_by(:project => project, :association => :fixed_version)
1284 count_and_group_by(:project => project, :association => :fixed_version)
1268 end
1285 end
1269
1286
1270 def self.by_priority(project)
1287 def self.by_priority(project)
1271 count_and_group_by(:project => project, :association => :priority)
1288 count_and_group_by(:project => project, :association => :priority)
1272 end
1289 end
1273
1290
1274 def self.by_category(project)
1291 def self.by_category(project)
1275 count_and_group_by(:project => project, :association => :category)
1292 count_and_group_by(:project => project, :association => :category)
1276 end
1293 end
1277
1294
1278 def self.by_assigned_to(project)
1295 def self.by_assigned_to(project)
1279 count_and_group_by(:project => project, :association => :assigned_to)
1296 count_and_group_by(:project => project, :association => :assigned_to)
1280 end
1297 end
1281
1298
1282 def self.by_author(project)
1299 def self.by_author(project)
1283 count_and_group_by(:project => project, :association => :author)
1300 count_and_group_by(:project => project, :association => :author)
1284 end
1301 end
1285
1302
1286 def self.by_subproject(project)
1303 def self.by_subproject(project)
1287 r = count_and_group_by(:project => project, :with_subprojects => true, :association => :project)
1304 r = count_and_group_by(:project => project, :with_subprojects => true, :association => :project)
1288 r.reject {|r| r["project_id"] == project.id.to_s}
1305 r.reject {|r| r["project_id"] == project.id.to_s}
1289 end
1306 end
1290
1307
1291 # Query generator for selecting groups of issue counts for a project
1308 # Query generator for selecting groups of issue counts for a project
1292 # based on specific criteria
1309 # based on specific criteria
1293 #
1310 #
1294 # Options
1311 # Options
1295 # * project - Project to search in.
1312 # * project - Project to search in.
1296 # * with_subprojects - Includes subprojects issues if set to true.
1313 # * with_subprojects - Includes subprojects issues if set to true.
1297 # * association - Symbol. Association for grouping.
1314 # * association - Symbol. Association for grouping.
1298 def self.count_and_group_by(options)
1315 def self.count_and_group_by(options)
1299 assoc = reflect_on_association(options[:association])
1316 assoc = reflect_on_association(options[:association])
1300 select_field = assoc.foreign_key
1317 select_field = assoc.foreign_key
1301
1318
1302 Issue.
1319 Issue.
1303 visible(User.current, :project => options[:project], :with_subprojects => options[:with_subprojects]).
1320 visible(User.current, :project => options[:project], :with_subprojects => options[:with_subprojects]).
1304 joins(:status, assoc.name).
1321 joins(:status, assoc.name).
1305 group(:status_id, :is_closed, select_field).
1322 group(:status_id, :is_closed, select_field).
1306 count.
1323 count.
1307 map do |columns, total|
1324 map do |columns, total|
1308 status_id, is_closed, field_value = columns
1325 status_id, is_closed, field_value = columns
1309 is_closed = ['t', 'true', '1'].include?(is_closed.to_s)
1326 is_closed = ['t', 'true', '1'].include?(is_closed.to_s)
1310 {
1327 {
1311 "status_id" => status_id.to_s,
1328 "status_id" => status_id.to_s,
1312 "closed" => is_closed,
1329 "closed" => is_closed,
1313 select_field => field_value.to_s,
1330 select_field => field_value.to_s,
1314 "total" => total.to_s
1331 "total" => total.to_s
1315 }
1332 }
1316 end
1333 end
1317 end
1334 end
1318
1335
1319 # Returns a scope of projects that user can assign the issue to
1336 # Returns a scope of projects that user can assign the issue to
1320 def allowed_target_projects(user=User.current)
1337 def allowed_target_projects(user=User.current)
1321 current_project = new_record? ? nil : project
1338 current_project = new_record? ? nil : project
1322 self.class.allowed_target_projects(user, current_project)
1339 self.class.allowed_target_projects(user, current_project)
1323 end
1340 end
1324
1341
1325 # Returns a scope of projects that user can assign issues to
1342 # Returns a scope of projects that user can assign issues to
1326 # If current_project is given, it will be included in the scope
1343 # If current_project is given, it will be included in the scope
1327 def self.allowed_target_projects(user=User.current, current_project=nil)
1344 def self.allowed_target_projects(user=User.current, current_project=nil)
1328 condition = Project.allowed_to_condition(user, :add_issues)
1345 condition = Project.allowed_to_condition(user, :add_issues)
1329 if current_project
1346 if current_project
1330 condition = ["(#{condition}) OR #{Project.table_name}.id = ?", current_project.id]
1347 condition = ["(#{condition}) OR #{Project.table_name}.id = ?", current_project.id]
1331 end
1348 end
1332 Project.where(condition)
1349 Project.where(condition)
1333 end
1350 end
1334
1351
1335 private
1352 private
1336
1353
1337 def after_project_change
1354 def after_project_change
1338 # Update project_id on related time entries
1355 # Update project_id on related time entries
1339 TimeEntry.where({:issue_id => id}).update_all(["project_id = ?", project_id])
1356 TimeEntry.where({:issue_id => id}).update_all(["project_id = ?", project_id])
1340
1357
1341 # Delete issue relations
1358 # Delete issue relations
1342 unless Setting.cross_project_issue_relations?
1359 unless Setting.cross_project_issue_relations?
1343 relations_from.clear
1360 relations_from.clear
1344 relations_to.clear
1361 relations_to.clear
1345 end
1362 end
1346
1363
1347 # Move subtasks that were in the same project
1364 # Move subtasks that were in the same project
1348 children.each do |child|
1365 children.each do |child|
1349 next unless child.project_id == project_id_was
1366 next unless child.project_id == project_id_was
1350 # Change project and keep project
1367 # Change project and keep project
1351 child.send :project=, project, true
1368 child.send :project=, project, true
1352 unless child.save
1369 unless child.save
1353 raise ActiveRecord::Rollback
1370 raise ActiveRecord::Rollback
1354 end
1371 end
1355 end
1372 end
1356 end
1373 end
1357
1374
1358 # Callback for after the creation of an issue by copy
1375 # Callback for after the creation of an issue by copy
1359 # * adds a "copied to" relation with the copied issue
1376 # * adds a "copied to" relation with the copied issue
1360 # * copies subtasks from the copied issue
1377 # * copies subtasks from the copied issue
1361 def after_create_from_copy
1378 def after_create_from_copy
1362 return unless copy? && !@after_create_from_copy_handled
1379 return unless copy? && !@after_create_from_copy_handled
1363
1380
1364 if (@copied_from.project_id == project_id || Setting.cross_project_issue_relations?) && @copy_options[:link] != false
1381 if (@copied_from.project_id == project_id || Setting.cross_project_issue_relations?) && @copy_options[:link] != false
1365 if @current_journal
1382 if @current_journal
1366 @copied_from.init_journal(@current_journal.user)
1383 @copied_from.init_journal(@current_journal.user)
1367 end
1384 end
1368 relation = IssueRelation.new(:issue_from => @copied_from, :issue_to => self, :relation_type => IssueRelation::TYPE_COPIED_TO)
1385 relation = IssueRelation.new(:issue_from => @copied_from, :issue_to => self, :relation_type => IssueRelation::TYPE_COPIED_TO)
1369 unless relation.save
1386 unless relation.save
1370 logger.error "Could not create relation while copying ##{@copied_from.id} to ##{id} due to validation errors: #{relation.errors.full_messages.join(', ')}" if logger
1387 logger.error "Could not create relation while copying ##{@copied_from.id} to ##{id} due to validation errors: #{relation.errors.full_messages.join(', ')}" if logger
1371 end
1388 end
1372 end
1389 end
1373
1390
1374 unless @copied_from.leaf? || @copy_options[:subtasks] == false
1391 unless @copied_from.leaf? || @copy_options[:subtasks] == false
1375 copy_options = (@copy_options || {}).merge(:subtasks => false)
1392 copy_options = (@copy_options || {}).merge(:subtasks => false)
1376 copied_issue_ids = {@copied_from.id => self.id}
1393 copied_issue_ids = {@copied_from.id => self.id}
1377 @copied_from.reload.descendants.reorder("#{Issue.table_name}.lft").each do |child|
1394 @copied_from.reload.descendants.reorder("#{Issue.table_name}.lft").each do |child|
1378 # Do not copy self when copying an issue as a descendant of the copied issue
1395 # Do not copy self when copying an issue as a descendant of the copied issue
1379 next if child == self
1396 next if child == self
1380 # Do not copy subtasks of issues that were not copied
1397 # Do not copy subtasks of issues that were not copied
1381 next unless copied_issue_ids[child.parent_id]
1398 next unless copied_issue_ids[child.parent_id]
1382 # Do not copy subtasks that are not visible to avoid potential disclosure of private data
1399 # Do not copy subtasks that are not visible to avoid potential disclosure of private data
1383 unless child.visible?
1400 unless child.visible?
1384 logger.error "Subtask ##{child.id} was not copied during ##{@copied_from.id} copy because it is not visible to the current user" if logger
1401 logger.error "Subtask ##{child.id} was not copied during ##{@copied_from.id} copy because it is not visible to the current user" if logger
1385 next
1402 next
1386 end
1403 end
1387 copy = Issue.new.copy_from(child, copy_options)
1404 copy = Issue.new.copy_from(child, copy_options)
1388 if @current_journal
1405 if @current_journal
1389 copy.init_journal(@current_journal.user)
1406 copy.init_journal(@current_journal.user)
1390 end
1407 end
1391 copy.author = author
1408 copy.author = author
1392 copy.project = project
1409 copy.project = project
1393 copy.parent_issue_id = copied_issue_ids[child.parent_id]
1410 copy.parent_issue_id = copied_issue_ids[child.parent_id]
1394 unless copy.save
1411 unless copy.save
1395 logger.error "Could not copy subtask ##{child.id} while copying ##{@copied_from.id} to ##{id} due to validation errors: #{copy.errors.full_messages.join(', ')}" if logger
1412 logger.error "Could not copy subtask ##{child.id} while copying ##{@copied_from.id} to ##{id} due to validation errors: #{copy.errors.full_messages.join(', ')}" if logger
1396 next
1413 next
1397 end
1414 end
1398 copied_issue_ids[child.id] = copy.id
1415 copied_issue_ids[child.id] = copy.id
1399 end
1416 end
1400 end
1417 end
1401 @after_create_from_copy_handled = true
1418 @after_create_from_copy_handled = true
1402 end
1419 end
1403
1420
1404 def update_nested_set_attributes
1421 def update_nested_set_attributes
1405 if parent_id_changed?
1422 if parent_id_changed?
1406 update_nested_set_attributes_on_parent_change
1423 update_nested_set_attributes_on_parent_change
1407 end
1424 end
1408 remove_instance_variable(:@parent_issue) if instance_variable_defined?(:@parent_issue)
1425 remove_instance_variable(:@parent_issue) if instance_variable_defined?(:@parent_issue)
1409 end
1426 end
1410
1427
1411 # Updates the nested set for when an existing issue is moved
1428 # Updates the nested set for when an existing issue is moved
1412 def update_nested_set_attributes_on_parent_change
1429 def update_nested_set_attributes_on_parent_change
1413 former_parent_id = parent_id_was
1430 former_parent_id = parent_id_was
1414 # delete invalid relations of all descendants
1431 # delete invalid relations of all descendants
1415 self_and_descendants.each do |issue|
1432 self_and_descendants.each do |issue|
1416 issue.relations.each do |relation|
1433 issue.relations.each do |relation|
1417 relation.destroy unless relation.valid?
1434 relation.destroy unless relation.valid?
1418 end
1435 end
1419 end
1436 end
1420 # update former parent
1437 # update former parent
1421 recalculate_attributes_for(former_parent_id) if former_parent_id
1438 recalculate_attributes_for(former_parent_id) if former_parent_id
1422 end
1439 end
1423
1440
1424 def update_parent_attributes
1441 def update_parent_attributes
1425 if parent_id
1442 if parent_id
1426 recalculate_attributes_for(parent_id)
1443 recalculate_attributes_for(parent_id)
1427 association(:parent).reset
1444 association(:parent).reset
1428 end
1445 end
1429 end
1446 end
1430
1447
1431 def recalculate_attributes_for(issue_id)
1448 def recalculate_attributes_for(issue_id)
1432 if issue_id && p = Issue.find_by_id(issue_id)
1449 if issue_id && p = Issue.find_by_id(issue_id)
1433 # priority = highest priority of children
1450 if p.priority_derived?
1434 if priority_position = p.children.joins(:priority).maximum("#{IssuePriority.table_name}.position")
1451 # priority = highest priority of children
1435 p.priority = IssuePriority.find_by_position(priority_position)
1452 if priority_position = p.children.joins(:priority).maximum("#{IssuePriority.table_name}.position")
1453 p.priority = IssuePriority.find_by_position(priority_position)
1454 end
1436 end
1455 end
1437
1456
1438 # start/due dates = lowest/highest dates of children
1457 if p.dates_derived?
1439 p.start_date = p.children.minimum(:start_date)
1458 # start/due dates = lowest/highest dates of children
1440 p.due_date = p.children.maximum(:due_date)
1459 p.start_date = p.children.minimum(:start_date)
1441 if p.start_date && p.due_date && p.due_date < p.start_date
1460 p.due_date = p.children.maximum(:due_date)
1442 p.start_date, p.due_date = p.due_date, p.start_date
1461 if p.start_date && p.due_date && p.due_date < p.start_date
1462 p.start_date, p.due_date = p.due_date, p.start_date
1463 end
1443 end
1464 end
1444
1465
1445 # done ratio = weighted average ratio of leaves
1466 # done ratio = weighted average ratio of leaves
1446 unless Issue.use_status_for_done_ratio? && p.status && p.status.default_done_ratio
1467 unless Issue.use_status_for_done_ratio? && p.status && p.status.default_done_ratio
1447 leaves_count = p.leaves.count
1468 leaves_count = p.leaves.count
1448 if leaves_count > 0
1469 if leaves_count > 0
1449 average = p.leaves.where("estimated_hours > 0").average(:estimated_hours).to_f
1470 average = p.leaves.where("estimated_hours > 0").average(:estimated_hours).to_f
1450 if average == 0
1471 if average == 0
1451 average = 1
1472 average = 1
1452 end
1473 end
1453 done = p.leaves.joins(:status).
1474 done = p.leaves.joins(:status).
1454 sum("COALESCE(CASE WHEN estimated_hours > 0 THEN estimated_hours ELSE NULL END, #{average}) " +
1475 sum("COALESCE(CASE WHEN estimated_hours > 0 THEN estimated_hours ELSE NULL END, #{average}) " +
1455 "* (CASE WHEN is_closed = #{self.class.connection.quoted_true} THEN 100 ELSE COALESCE(done_ratio, 0) END)").to_f
1476 "* (CASE WHEN is_closed = #{self.class.connection.quoted_true} THEN 100 ELSE COALESCE(done_ratio, 0) END)").to_f
1456 progress = done / (average * leaves_count)
1477 progress = done / (average * leaves_count)
1457 p.done_ratio = progress.round
1478 p.done_ratio = progress.round
1458 end
1479 end
1459 end
1480 end
1460
1481
1461 # estimate = sum of leaves estimates
1482 # estimate = sum of leaves estimates
1462 p.estimated_hours = p.leaves.sum(:estimated_hours).to_f
1483 p.estimated_hours = p.leaves.sum(:estimated_hours).to_f
1463 p.estimated_hours = nil if p.estimated_hours == 0.0
1484 p.estimated_hours = nil if p.estimated_hours == 0.0
1464
1485
1465 # ancestors will be recursively updated
1486 # ancestors will be recursively updated
1466 p.save(:validate => false)
1487 p.save(:validate => false)
1467 end
1488 end
1468 end
1489 end
1469
1490
1470 # Update issues so their versions are not pointing to a
1491 # Update issues so their versions are not pointing to a
1471 # fixed_version that is not shared with the issue's project
1492 # fixed_version that is not shared with the issue's project
1472 def self.update_versions(conditions=nil)
1493 def self.update_versions(conditions=nil)
1473 # Only need to update issues with a fixed_version from
1494 # Only need to update issues with a fixed_version from
1474 # a different project and that is not systemwide shared
1495 # a different project and that is not systemwide shared
1475 Issue.joins(:project, :fixed_version).
1496 Issue.joins(:project, :fixed_version).
1476 where("#{Issue.table_name}.fixed_version_id IS NOT NULL" +
1497 where("#{Issue.table_name}.fixed_version_id IS NOT NULL" +
1477 " AND #{Issue.table_name}.project_id <> #{Version.table_name}.project_id" +
1498 " AND #{Issue.table_name}.project_id <> #{Version.table_name}.project_id" +
1478 " AND #{Version.table_name}.sharing <> 'system'").
1499 " AND #{Version.table_name}.sharing <> 'system'").
1479 where(conditions).each do |issue|
1500 where(conditions).each do |issue|
1480 next if issue.project.nil? || issue.fixed_version.nil?
1501 next if issue.project.nil? || issue.fixed_version.nil?
1481 unless issue.project.shared_versions.include?(issue.fixed_version)
1502 unless issue.project.shared_versions.include?(issue.fixed_version)
1482 issue.init_journal(User.current)
1503 issue.init_journal(User.current)
1483 issue.fixed_version = nil
1504 issue.fixed_version = nil
1484 issue.save
1505 issue.save
1485 end
1506 end
1486 end
1507 end
1487 end
1508 end
1488
1509
1489 # Callback on file attachment
1510 # Callback on file attachment
1490 def attachment_added(attachment)
1511 def attachment_added(attachment)
1491 if current_journal && !attachment.new_record?
1512 if current_journal && !attachment.new_record?
1492 current_journal.journalize_attachment(attachment, :added)
1513 current_journal.journalize_attachment(attachment, :added)
1493 end
1514 end
1494 end
1515 end
1495
1516
1496 # Callback on attachment deletion
1517 # Callback on attachment deletion
1497 def attachment_removed(attachment)
1518 def attachment_removed(attachment)
1498 if current_journal && !attachment.new_record?
1519 if current_journal && !attachment.new_record?
1499 current_journal.journalize_attachment(attachment, :removed)
1520 current_journal.journalize_attachment(attachment, :removed)
1500 current_journal.save
1521 current_journal.save
1501 end
1522 end
1502 end
1523 end
1503
1524
1504 # Called after a relation is added
1525 # Called after a relation is added
1505 def relation_added(relation)
1526 def relation_added(relation)
1506 if current_journal
1527 if current_journal
1507 current_journal.journalize_relation(relation, :added)
1528 current_journal.journalize_relation(relation, :added)
1508 current_journal.save
1529 current_journal.save
1509 end
1530 end
1510 end
1531 end
1511
1532
1512 # Called after a relation is removed
1533 # Called after a relation is removed
1513 def relation_removed(relation)
1534 def relation_removed(relation)
1514 if current_journal
1535 if current_journal
1515 current_journal.journalize_relation(relation, :removed)
1536 current_journal.journalize_relation(relation, :removed)
1516 current_journal.save
1537 current_journal.save
1517 end
1538 end
1518 end
1539 end
1519
1540
1520 # Default assignment based on category
1541 # Default assignment based on category
1521 def default_assign
1542 def default_assign
1522 if assigned_to.nil? && category && category.assigned_to
1543 if assigned_to.nil? && category && category.assigned_to
1523 self.assigned_to = category.assigned_to
1544 self.assigned_to = category.assigned_to
1524 end
1545 end
1525 end
1546 end
1526
1547
1527 # Updates start/due dates of following issues
1548 # Updates start/due dates of following issues
1528 def reschedule_following_issues
1549 def reschedule_following_issues
1529 if start_date_changed? || due_date_changed?
1550 if start_date_changed? || due_date_changed?
1530 relations_from.each do |relation|
1551 relations_from.each do |relation|
1531 relation.set_issue_to_dates
1552 relation.set_issue_to_dates
1532 end
1553 end
1533 end
1554 end
1534 end
1555 end
1535
1556
1536 # Closes duplicates if the issue is being closed
1557 # Closes duplicates if the issue is being closed
1537 def close_duplicates
1558 def close_duplicates
1538 if closing?
1559 if closing?
1539 duplicates.each do |duplicate|
1560 duplicates.each do |duplicate|
1540 # Reload is needed in case the duplicate was updated by a previous duplicate
1561 # Reload is needed in case the duplicate was updated by a previous duplicate
1541 duplicate.reload
1562 duplicate.reload
1542 # Don't re-close it if it's already closed
1563 # Don't re-close it if it's already closed
1543 next if duplicate.closed?
1564 next if duplicate.closed?
1544 # Same user and notes
1565 # Same user and notes
1545 if @current_journal
1566 if @current_journal
1546 duplicate.init_journal(@current_journal.user, @current_journal.notes)
1567 duplicate.init_journal(@current_journal.user, @current_journal.notes)
1547 end
1568 end
1548 duplicate.update_attribute :status, self.status
1569 duplicate.update_attribute :status, self.status
1549 end
1570 end
1550 end
1571 end
1551 end
1572 end
1552
1573
1553 # Make sure updated_on is updated when adding a note and set updated_on now
1574 # Make sure updated_on is updated when adding a note and set updated_on now
1554 # so we can set closed_on with the same value on closing
1575 # so we can set closed_on with the same value on closing
1555 def force_updated_on_change
1576 def force_updated_on_change
1556 if @current_journal || changed?
1577 if @current_journal || changed?
1557 self.updated_on = current_time_from_proper_timezone
1578 self.updated_on = current_time_from_proper_timezone
1558 if new_record?
1579 if new_record?
1559 self.created_on = updated_on
1580 self.created_on = updated_on
1560 end
1581 end
1561 end
1582 end
1562 end
1583 end
1563
1584
1564 # Callback for setting closed_on when the issue is closed.
1585 # Callback for setting closed_on when the issue is closed.
1565 # The closed_on attribute stores the time of the last closing
1586 # The closed_on attribute stores the time of the last closing
1566 # and is preserved when the issue is reopened.
1587 # and is preserved when the issue is reopened.
1567 def update_closed_on
1588 def update_closed_on
1568 if closing?
1589 if closing?
1569 self.closed_on = updated_on
1590 self.closed_on = updated_on
1570 end
1591 end
1571 end
1592 end
1572
1593
1573 # Saves the changes in a Journal
1594 # Saves the changes in a Journal
1574 # Called after_save
1595 # Called after_save
1575 def create_journal
1596 def create_journal
1576 if current_journal
1597 if current_journal
1577 current_journal.save
1598 current_journal.save
1578 end
1599 end
1579 end
1600 end
1580
1601
1581 def send_notification
1602 def send_notification
1582 if Setting.notified_events.include?('issue_added')
1603 if Setting.notified_events.include?('issue_added')
1583 Mailer.deliver_issue_add(self)
1604 Mailer.deliver_issue_add(self)
1584 end
1605 end
1585 end
1606 end
1586
1607
1587 # Stores the previous assignee so we can still have access
1608 # Stores the previous assignee so we can still have access
1588 # to it during after_save callbacks (assigned_to_id_was is reset)
1609 # to it during after_save callbacks (assigned_to_id_was is reset)
1589 def set_assigned_to_was
1610 def set_assigned_to_was
1590 @previous_assigned_to_id = assigned_to_id_was
1611 @previous_assigned_to_id = assigned_to_id_was
1591 end
1612 end
1592
1613
1593 # Clears the previous assignee at the end of after_save callbacks
1614 # Clears the previous assignee at the end of after_save callbacks
1594 def clear_assigned_to_was
1615 def clear_assigned_to_was
1595 @assigned_to_was = nil
1616 @assigned_to_was = nil
1596 @previous_assigned_to_id = nil
1617 @previous_assigned_to_id = nil
1597 end
1618 end
1598
1619
1599 def clear_disabled_fields
1620 def clear_disabled_fields
1600 if tracker
1621 if tracker
1601 tracker.disabled_core_fields.each do |attribute|
1622 tracker.disabled_core_fields.each do |attribute|
1602 send "#{attribute}=", nil
1623 send "#{attribute}=", nil
1603 end
1624 end
1604 self.done_ratio ||= 0
1625 self.done_ratio ||= 0
1605 end
1626 end
1606 end
1627 end
1607 end
1628 end
@@ -1,81 +1,79
1 <%= labelled_fields_for :issue, @issue do |f| %>
1 <%= labelled_fields_for :issue, @issue do |f| %>
2
2
3 <div class="splitcontent">
3 <div class="splitcontent">
4 <div class="splitcontentleft">
4 <div class="splitcontentleft">
5 <% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
5 <% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
6 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
6 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
7 :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}')" %></p>
7 :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}')" %></p>
8 <%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %>
8 <%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %>
9 <% else %>
9 <% else %>
10 <p><label><%= l(:field_status) %></label> <%= @issue.status %></p>
10 <p><label><%= l(:field_status) %></label> <%= @issue.status %></p>
11 <% end %>
11 <% end %>
12
12
13 <% if @issue.safe_attribute? 'priority_id' %>
13 <% if @issue.safe_attribute? 'priority_id' %>
14 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
14 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
15 <% end %>
15 <% end %>
16
16
17 <% if @issue.safe_attribute? 'assigned_to_id' %>
17 <% if @issue.safe_attribute? 'assigned_to_id' %>
18 <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
18 <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
19 <% end %>
19 <% end %>
20
20
21 <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
21 <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
22 <p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %>
22 <p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %>
23 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
23 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
24 new_project_issue_category_path(@issue.project),
24 new_project_issue_category_path(@issue.project),
25 :remote => true,
25 :remote => true,
26 :method => 'get',
26 :method => 'get',
27 :title => l(:label_issue_category_new),
27 :title => l(:label_issue_category_new),
28 :tabindex => 200) if User.current.allowed_to?(:manage_categories, @issue.project) %></p>
28 :tabindex => 200) if User.current.allowed_to?(:manage_categories, @issue.project) %></p>
29 <% end %>
29 <% end %>
30
30
31 <% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
31 <% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
32 <p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
32 <p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
33 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
33 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
34 new_project_version_path(@issue.project),
34 new_project_version_path(@issue.project),
35 :remote => true,
35 :remote => true,
36 :method => 'get',
36 :method => 'get',
37 :title => l(:label_version_new),
37 :title => l(:label_version_new),
38 :tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
38 :tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
39 </p>
39 </p>
40 <% end %>
40 <% end %>
41 </div>
41 </div>
42
42
43 <div class="splitcontentright">
43 <div class="splitcontentright">
44 <% if @issue.safe_attribute? 'parent_issue_id' %>
44 <% if @issue.safe_attribute? 'parent_issue_id' %>
45 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :required => @issue.required_attribute?('parent_issue_id') %></p>
45 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :required => @issue.required_attribute?('parent_issue_id') %></p>
46 <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks)}')" %>
46 <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks)}')" %>
47 <% end %>
47 <% end %>
48
48
49 <% if @issue.safe_attribute? 'start_date' %>
49 <% if @issue.safe_attribute? 'start_date' %>
50 <p id="start_date_area">
50 <p id="start_date_area">
51 <%= f.text_field(:start_date, :size => 10, :disabled => !@issue.leaf?,
51 <%= f.text_field(:start_date, :size => 10, :required => @issue.required_attribute?('start_date')) %>
52 :required => @issue.required_attribute?('start_date')) %>
53 <%= calendar_for('issue_start_date') if @issue.leaf? %>
52 <%= calendar_for('issue_start_date') if @issue.leaf? %>
54 </p>
53 </p>
55 <% end %>
54 <% end %>
56
55
57 <% if @issue.safe_attribute? 'due_date' %>
56 <% if @issue.safe_attribute? 'due_date' %>
58 <p id="due_date_area">
57 <p id="due_date_area">
59 <%= f.text_field(:due_date, :size => 10, :disabled => !@issue.leaf?,
58 <%= f.text_field(:due_date, :size => 10, :required => @issue.required_attribute?('due_date')) %>
60 :required => @issue.required_attribute?('due_date')) %>
61 <%= calendar_for('issue_due_date') if @issue.leaf? %>
59 <%= calendar_for('issue_due_date') if @issue.leaf? %>
62 </p>
60 </p>
63 <% end %>
61 <% end %>
64
62
65 <% if @issue.safe_attribute? 'estimated_hours' %>
63 <% if @issue.safe_attribute? 'estimated_hours' %>
66 <p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
64 <p><%= f.text_field :estimated_hours, :size => 3, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
67 <% end %>
65 <% end %>
68
66
69 <% if @issue.safe_attribute?('done_ratio') && @issue.leaf? && Issue.use_field_for_done_ratio? %>
67 <% if @issue.safe_attribute?('done_ratio') && Issue.use_field_for_done_ratio? %>
70 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
68 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
71 <% end %>
69 <% end %>
72 </div>
70 </div>
73 </div>
71 </div>
74
72
75 <% if @issue.safe_attribute? 'custom_field_values' %>
73 <% if @issue.safe_attribute? 'custom_field_values' %>
76 <%= render :partial => 'issues/form_custom_fields' %>
74 <%= render :partial => 'issues/form_custom_fields' %>
77 <% end %>
75 <% end %>
78
76
79 <% end %>
77 <% end %>
80
78
81 <% include_calendar_headers_tags %>
79 <% include_calendar_headers_tags %>
@@ -1,33 +1,42
1 <%= form_tag({:action => 'edit', :tab => 'issues'}) do %>
1 <%= form_tag({:action => 'edit', :tab => 'issues'}) do %>
2
2
3 <div class="box tabular settings">
3 <div class="box tabular settings">
4 <p><%= setting_check_box :cross_project_issue_relations %></p>
4 <p><%= setting_check_box :cross_project_issue_relations %></p>
5
5
6 <p><%= setting_select :link_copied_issue, link_copied_issue_options %></p>
6 <p><%= setting_select :link_copied_issue, link_copied_issue_options %></p>
7
7
8 <p><%= setting_select :cross_project_subtasks, cross_project_subtasks_options %></p>
8 <p><%= setting_select :cross_project_subtasks, cross_project_subtasks_options %></p>
9
9
10 <p><%= setting_check_box :issue_group_assignment %></p>
10 <p><%= setting_check_box :issue_group_assignment %></p>
11
11
12 <p><%= setting_check_box :default_issue_start_date_to_creation_date %></p>
12 <p><%= setting_check_box :default_issue_start_date_to_creation_date %></p>
13
13
14 <p><%= setting_check_box :display_subprojects_issues %></p>
14 <p><%= setting_check_box :display_subprojects_issues %></p>
15
15
16 <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
16 <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
17
17
18 <p><%= setting_multiselect :non_working_week_days, (1..7).map {|d| [day_name(d), d.to_s]}, :inline => true %></p>
18 <p><%= setting_multiselect :non_working_week_days, (1..7).map {|d| [day_name(d), d.to_s]}, :inline => true %></p>
19
19
20 <p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
20 <p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
21
21
22 <p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
22 <p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
23 </div>
23 </div>
24
24
25 <fieldset class="box">
25 <fieldset class="box">
26 <legend><%= l(:label_parent_task_attributes) %></legend>
27 <div class="tabular settings">
28 <p><%= setting_select :parent_issue_dates, parent_issue_dates_options, :label => "#{l(:field_start_date)} / #{l(:field_due_date)}" %></p>
29
30 <p><%= setting_select :parent_issue_priority, parent_issue_priority_options, :label => :field_priority %></p>
31 </div>
32 </fieldset>
33
34 <fieldset class="box">
26 <legend><%= l(:setting_issue_list_default_columns) %></legend>
35 <legend><%= l(:setting_issue_list_default_columns) %></legend>
27 <%= render_query_columns_selection(
36 <%= render_query_columns_selection(
28 IssueQuery.new(:column_names => Setting.issue_list_default_columns),
37 IssueQuery.new(:column_names => Setting.issue_list_default_columns),
29 :name => 'settings[issue_list_default_columns]') %>
38 :name => 'settings[issue_list_default_columns]') %>
30 </fieldset>
39 </fieldset>
31
40
32 <%= submit_tag l(:button_save) %>
41 <%= submit_tag l(:button_save) %>
33 <% end %>
42 <% end %>
@@ -1,1135 +1,1138
1 en:
1 en:
2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
3 direction: ltr
3 direction: ltr
4 date:
4 date:
5 formats:
5 formats:
6 # Use the strftime parameters for formats.
6 # Use the strftime parameters for formats.
7 # When no format has been given, it uses default.
7 # When no format has been given, it uses default.
8 # You can provide other formats here if you like!
8 # You can provide other formats here if you like!
9 default: "%m/%d/%Y"
9 default: "%m/%d/%Y"
10 short: "%b %d"
10 short: "%b %d"
11 long: "%B %d, %Y"
11 long: "%B %d, %Y"
12
12
13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
15
15
16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
19 # Used in date_select and datime_select.
19 # Used in date_select and datime_select.
20 order:
20 order:
21 - :year
21 - :year
22 - :month
22 - :month
23 - :day
23 - :day
24
24
25 time:
25 time:
26 formats:
26 formats:
27 default: "%m/%d/%Y %I:%M %p"
27 default: "%m/%d/%Y %I:%M %p"
28 time: "%I:%M %p"
28 time: "%I:%M %p"
29 short: "%d %b %H:%M"
29 short: "%d %b %H:%M"
30 long: "%B %d, %Y %H:%M"
30 long: "%B %d, %Y %H:%M"
31 am: "am"
31 am: "am"
32 pm: "pm"
32 pm: "pm"
33
33
34 datetime:
34 datetime:
35 distance_in_words:
35 distance_in_words:
36 half_a_minute: "half a minute"
36 half_a_minute: "half a minute"
37 less_than_x_seconds:
37 less_than_x_seconds:
38 one: "less than 1 second"
38 one: "less than 1 second"
39 other: "less than %{count} seconds"
39 other: "less than %{count} seconds"
40 x_seconds:
40 x_seconds:
41 one: "1 second"
41 one: "1 second"
42 other: "%{count} seconds"
42 other: "%{count} seconds"
43 less_than_x_minutes:
43 less_than_x_minutes:
44 one: "less than a minute"
44 one: "less than a minute"
45 other: "less than %{count} minutes"
45 other: "less than %{count} minutes"
46 x_minutes:
46 x_minutes:
47 one: "1 minute"
47 one: "1 minute"
48 other: "%{count} minutes"
48 other: "%{count} minutes"
49 about_x_hours:
49 about_x_hours:
50 one: "about 1 hour"
50 one: "about 1 hour"
51 other: "about %{count} hours"
51 other: "about %{count} hours"
52 x_hours:
52 x_hours:
53 one: "1 hour"
53 one: "1 hour"
54 other: "%{count} hours"
54 other: "%{count} hours"
55 x_days:
55 x_days:
56 one: "1 day"
56 one: "1 day"
57 other: "%{count} days"
57 other: "%{count} days"
58 about_x_months:
58 about_x_months:
59 one: "about 1 month"
59 one: "about 1 month"
60 other: "about %{count} months"
60 other: "about %{count} months"
61 x_months:
61 x_months:
62 one: "1 month"
62 one: "1 month"
63 other: "%{count} months"
63 other: "%{count} months"
64 about_x_years:
64 about_x_years:
65 one: "about 1 year"
65 one: "about 1 year"
66 other: "about %{count} years"
66 other: "about %{count} years"
67 over_x_years:
67 over_x_years:
68 one: "over 1 year"
68 one: "over 1 year"
69 other: "over %{count} years"
69 other: "over %{count} years"
70 almost_x_years:
70 almost_x_years:
71 one: "almost 1 year"
71 one: "almost 1 year"
72 other: "almost %{count} years"
72 other: "almost %{count} years"
73
73
74 number:
74 number:
75 format:
75 format:
76 separator: "."
76 separator: "."
77 delimiter: ""
77 delimiter: ""
78 precision: 3
78 precision: 3
79
79
80 human:
80 human:
81 format:
81 format:
82 delimiter: ""
82 delimiter: ""
83 precision: 3
83 precision: 3
84 storage_units:
84 storage_units:
85 format: "%n %u"
85 format: "%n %u"
86 units:
86 units:
87 byte:
87 byte:
88 one: "Byte"
88 one: "Byte"
89 other: "Bytes"
89 other: "Bytes"
90 kb: "KB"
90 kb: "KB"
91 mb: "MB"
91 mb: "MB"
92 gb: "GB"
92 gb: "GB"
93 tb: "TB"
93 tb: "TB"
94
94
95 # Used in array.to_sentence.
95 # Used in array.to_sentence.
96 support:
96 support:
97 array:
97 array:
98 sentence_connector: "and"
98 sentence_connector: "and"
99 skip_last_comma: false
99 skip_last_comma: false
100
100
101 activerecord:
101 activerecord:
102 errors:
102 errors:
103 template:
103 template:
104 header:
104 header:
105 one: "1 error prohibited this %{model} from being saved"
105 one: "1 error prohibited this %{model} from being saved"
106 other: "%{count} errors prohibited this %{model} from being saved"
106 other: "%{count} errors prohibited this %{model} from being saved"
107 messages:
107 messages:
108 inclusion: "is not included in the list"
108 inclusion: "is not included in the list"
109 exclusion: "is reserved"
109 exclusion: "is reserved"
110 invalid: "is invalid"
110 invalid: "is invalid"
111 confirmation: "doesn't match confirmation"
111 confirmation: "doesn't match confirmation"
112 accepted: "must be accepted"
112 accepted: "must be accepted"
113 empty: "cannot be empty"
113 empty: "cannot be empty"
114 blank: "cannot be blank"
114 blank: "cannot be blank"
115 too_long: "is too long (maximum is %{count} characters)"
115 too_long: "is too long (maximum is %{count} characters)"
116 too_short: "is too short (minimum is %{count} characters)"
116 too_short: "is too short (minimum is %{count} characters)"
117 wrong_length: "is the wrong length (should be %{count} characters)"
117 wrong_length: "is the wrong length (should be %{count} characters)"
118 taken: "has already been taken"
118 taken: "has already been taken"
119 not_a_number: "is not a number"
119 not_a_number: "is not a number"
120 not_a_date: "is not a valid date"
120 not_a_date: "is not a valid date"
121 greater_than: "must be greater than %{count}"
121 greater_than: "must be greater than %{count}"
122 greater_than_or_equal_to: "must be greater than or equal to %{count}"
122 greater_than_or_equal_to: "must be greater than or equal to %{count}"
123 equal_to: "must be equal to %{count}"
123 equal_to: "must be equal to %{count}"
124 less_than: "must be less than %{count}"
124 less_than: "must be less than %{count}"
125 less_than_or_equal_to: "must be less than or equal to %{count}"
125 less_than_or_equal_to: "must be less than or equal to %{count}"
126 odd: "must be odd"
126 odd: "must be odd"
127 even: "must be even"
127 even: "must be even"
128 greater_than_start_date: "must be greater than start date"
128 greater_than_start_date: "must be greater than start date"
129 not_same_project: "doesn't belong to the same project"
129 not_same_project: "doesn't belong to the same project"
130 circular_dependency: "This relation would create a circular dependency"
130 circular_dependency: "This relation would create a circular dependency"
131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133
133
134 actionview_instancetag_blank_option: Please select
134 actionview_instancetag_blank_option: Please select
135
135
136 general_text_No: 'No'
136 general_text_No: 'No'
137 general_text_Yes: 'Yes'
137 general_text_Yes: 'Yes'
138 general_text_no: 'no'
138 general_text_no: 'no'
139 general_text_yes: 'yes'
139 general_text_yes: 'yes'
140 general_lang_name: 'English'
140 general_lang_name: 'English'
141 general_csv_separator: ','
141 general_csv_separator: ','
142 general_csv_decimal_separator: '.'
142 general_csv_decimal_separator: '.'
143 general_csv_encoding: ISO-8859-1
143 general_csv_encoding: ISO-8859-1
144 general_pdf_fontname: freesans
144 general_pdf_fontname: freesans
145 general_first_day_of_week: '7'
145 general_first_day_of_week: '7'
146
146
147 notice_account_updated: Account was successfully updated.
147 notice_account_updated: Account was successfully updated.
148 notice_account_invalid_creditentials: Invalid user or password
148 notice_account_invalid_creditentials: Invalid user or password
149 notice_account_password_updated: Password was successfully updated.
149 notice_account_password_updated: Password was successfully updated.
150 notice_account_wrong_password: Wrong password
150 notice_account_wrong_password: Wrong password
151 notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
151 notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
152 notice_account_unknown_email: Unknown user.
152 notice_account_unknown_email: Unknown user.
153 notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
153 notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
154 notice_account_locked: Your account is locked.
154 notice_account_locked: Your account is locked.
155 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
155 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
156 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
156 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
157 notice_account_activated: Your account has been activated. You can now log in.
157 notice_account_activated: Your account has been activated. You can now log in.
158 notice_successful_create: Successful creation.
158 notice_successful_create: Successful creation.
159 notice_successful_update: Successful update.
159 notice_successful_update: Successful update.
160 notice_successful_delete: Successful deletion.
160 notice_successful_delete: Successful deletion.
161 notice_successful_connection: Successful connection.
161 notice_successful_connection: Successful connection.
162 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
162 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
163 notice_locking_conflict: Data has been updated by another user.
163 notice_locking_conflict: Data has been updated by another user.
164 notice_not_authorized: You are not authorized to access this page.
164 notice_not_authorized: You are not authorized to access this page.
165 notice_not_authorized_archived_project: The project you're trying to access has been archived.
165 notice_not_authorized_archived_project: The project you're trying to access has been archived.
166 notice_email_sent: "An email was sent to %{value}"
166 notice_email_sent: "An email was sent to %{value}"
167 notice_email_error: "An error occurred while sending mail (%{value})"
167 notice_email_error: "An error occurred while sending mail (%{value})"
168 notice_feeds_access_key_reseted: Your Atom access key was reset.
168 notice_feeds_access_key_reseted: Your Atom access key was reset.
169 notice_api_access_key_reseted: Your API access key was reset.
169 notice_api_access_key_reseted: Your API access key was reset.
170 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
170 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
171 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
171 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
172 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
172 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
173 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
173 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
174 notice_account_pending: "Your account was created and is now pending administrator approval."
174 notice_account_pending: "Your account was created and is now pending administrator approval."
175 notice_default_data_loaded: Default configuration successfully loaded.
175 notice_default_data_loaded: Default configuration successfully loaded.
176 notice_unable_delete_version: Unable to delete version.
176 notice_unable_delete_version: Unable to delete version.
177 notice_unable_delete_time_entry: Unable to delete time log entry.
177 notice_unable_delete_time_entry: Unable to delete time log entry.
178 notice_issue_done_ratios_updated: Issue done ratios updated.
178 notice_issue_done_ratios_updated: Issue done ratios updated.
179 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
179 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
180 notice_issue_successful_create: "Issue %{id} created."
180 notice_issue_successful_create: "Issue %{id} created."
181 notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
181 notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
182 notice_account_deleted: "Your account has been permanently deleted."
182 notice_account_deleted: "Your account has been permanently deleted."
183 notice_user_successful_create: "User %{id} created."
183 notice_user_successful_create: "User %{id} created."
184 notice_new_password_must_be_different: The new password must be different from the current password
184 notice_new_password_must_be_different: The new password must be different from the current password
185
185
186 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
186 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
187 error_scm_not_found: "The entry or revision was not found in the repository."
187 error_scm_not_found: "The entry or revision was not found in the repository."
188 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
188 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
189 error_scm_annotate: "The entry does not exist or cannot be annotated."
189 error_scm_annotate: "The entry does not exist or cannot be annotated."
190 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
190 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
191 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
191 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
192 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
192 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
193 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
193 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
194 error_can_not_delete_custom_field: Unable to delete custom field
194 error_can_not_delete_custom_field: Unable to delete custom field
195 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
195 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
196 error_can_not_remove_role: "This role is in use and cannot be deleted."
196 error_can_not_remove_role: "This role is in use and cannot be deleted."
197 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
197 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
198 error_can_not_archive_project: This project cannot be archived
198 error_can_not_archive_project: This project cannot be archived
199 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
199 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
200 error_workflow_copy_source: 'Please select a source tracker or role'
200 error_workflow_copy_source: 'Please select a source tracker or role'
201 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
201 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
202 error_unable_delete_issue_status: 'Unable to delete issue status'
202 error_unable_delete_issue_status: 'Unable to delete issue status'
203 error_unable_to_connect: "Unable to connect (%{value})"
203 error_unable_to_connect: "Unable to connect (%{value})"
204 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
204 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
205 error_session_expired: "Your session has expired. Please login again."
205 error_session_expired: "Your session has expired. Please login again."
206 warning_attachments_not_saved: "%{count} file(s) could not be saved."
206 warning_attachments_not_saved: "%{count} file(s) could not be saved."
207 error_password_expired: "Your password has expired or the administrator requires you to change it."
207 error_password_expired: "Your password has expired or the administrator requires you to change it."
208
208
209 mail_subject_lost_password: "Your %{value} password"
209 mail_subject_lost_password: "Your %{value} password"
210 mail_body_lost_password: 'To change your password, click on the following link:'
210 mail_body_lost_password: 'To change your password, click on the following link:'
211 mail_subject_register: "Your %{value} account activation"
211 mail_subject_register: "Your %{value} account activation"
212 mail_body_register: 'To activate your account, click on the following link:'
212 mail_body_register: 'To activate your account, click on the following link:'
213 mail_body_account_information_external: "You can use your %{value} account to log in."
213 mail_body_account_information_external: "You can use your %{value} account to log in."
214 mail_body_account_information: Your account information
214 mail_body_account_information: Your account information
215 mail_subject_account_activation_request: "%{value} account activation request"
215 mail_subject_account_activation_request: "%{value} account activation request"
216 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
216 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
217 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
217 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
218 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
218 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
219 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
219 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
220 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
220 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
221 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
221 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
222 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
222 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
223
223
224 field_name: Name
224 field_name: Name
225 field_description: Description
225 field_description: Description
226 field_summary: Summary
226 field_summary: Summary
227 field_is_required: Required
227 field_is_required: Required
228 field_firstname: First name
228 field_firstname: First name
229 field_lastname: Last name
229 field_lastname: Last name
230 field_mail: Email
230 field_mail: Email
231 field_address: Email
231 field_address: Email
232 field_filename: File
232 field_filename: File
233 field_filesize: Size
233 field_filesize: Size
234 field_downloads: Downloads
234 field_downloads: Downloads
235 field_author: Author
235 field_author: Author
236 field_created_on: Created
236 field_created_on: Created
237 field_updated_on: Updated
237 field_updated_on: Updated
238 field_closed_on: Closed
238 field_closed_on: Closed
239 field_field_format: Format
239 field_field_format: Format
240 field_is_for_all: For all projects
240 field_is_for_all: For all projects
241 field_possible_values: Possible values
241 field_possible_values: Possible values
242 field_regexp: Regular expression
242 field_regexp: Regular expression
243 field_min_length: Minimum length
243 field_min_length: Minimum length
244 field_max_length: Maximum length
244 field_max_length: Maximum length
245 field_value: Value
245 field_value: Value
246 field_category: Category
246 field_category: Category
247 field_title: Title
247 field_title: Title
248 field_project: Project
248 field_project: Project
249 field_issue: Issue
249 field_issue: Issue
250 field_status: Status
250 field_status: Status
251 field_notes: Notes
251 field_notes: Notes
252 field_is_closed: Issue closed
252 field_is_closed: Issue closed
253 field_is_default: Default value
253 field_is_default: Default value
254 field_tracker: Tracker
254 field_tracker: Tracker
255 field_subject: Subject
255 field_subject: Subject
256 field_due_date: Due date
256 field_due_date: Due date
257 field_assigned_to: Assignee
257 field_assigned_to: Assignee
258 field_priority: Priority
258 field_priority: Priority
259 field_fixed_version: Target version
259 field_fixed_version: Target version
260 field_user: User
260 field_user: User
261 field_principal: Principal
261 field_principal: Principal
262 field_role: Role
262 field_role: Role
263 field_homepage: Homepage
263 field_homepage: Homepage
264 field_is_public: Public
264 field_is_public: Public
265 field_parent: Subproject of
265 field_parent: Subproject of
266 field_is_in_roadmap: Issues displayed in roadmap
266 field_is_in_roadmap: Issues displayed in roadmap
267 field_login: Login
267 field_login: Login
268 field_mail_notification: Email notifications
268 field_mail_notification: Email notifications
269 field_admin: Administrator
269 field_admin: Administrator
270 field_last_login_on: Last connection
270 field_last_login_on: Last connection
271 field_language: Language
271 field_language: Language
272 field_effective_date: Date
272 field_effective_date: Date
273 field_password: Password
273 field_password: Password
274 field_new_password: New password
274 field_new_password: New password
275 field_password_confirmation: Confirmation
275 field_password_confirmation: Confirmation
276 field_version: Version
276 field_version: Version
277 field_type: Type
277 field_type: Type
278 field_host: Host
278 field_host: Host
279 field_port: Port
279 field_port: Port
280 field_account: Account
280 field_account: Account
281 field_base_dn: Base DN
281 field_base_dn: Base DN
282 field_attr_login: Login attribute
282 field_attr_login: Login attribute
283 field_attr_firstname: Firstname attribute
283 field_attr_firstname: Firstname attribute
284 field_attr_lastname: Lastname attribute
284 field_attr_lastname: Lastname attribute
285 field_attr_mail: Email attribute
285 field_attr_mail: Email attribute
286 field_onthefly: On-the-fly user creation
286 field_onthefly: On-the-fly user creation
287 field_start_date: Start date
287 field_start_date: Start date
288 field_done_ratio: "% Done"
288 field_done_ratio: "% Done"
289 field_auth_source: Authentication mode
289 field_auth_source: Authentication mode
290 field_hide_mail: Hide my email address
290 field_hide_mail: Hide my email address
291 field_comments: Comment
291 field_comments: Comment
292 field_url: URL
292 field_url: URL
293 field_start_page: Start page
293 field_start_page: Start page
294 field_subproject: Subproject
294 field_subproject: Subproject
295 field_hours: Hours
295 field_hours: Hours
296 field_activity: Activity
296 field_activity: Activity
297 field_spent_on: Date
297 field_spent_on: Date
298 field_identifier: Identifier
298 field_identifier: Identifier
299 field_is_filter: Used as a filter
299 field_is_filter: Used as a filter
300 field_issue_to: Related issue
300 field_issue_to: Related issue
301 field_delay: Delay
301 field_delay: Delay
302 field_assignable: Issues can be assigned to this role
302 field_assignable: Issues can be assigned to this role
303 field_redirect_existing_links: Redirect existing links
303 field_redirect_existing_links: Redirect existing links
304 field_estimated_hours: Estimated time
304 field_estimated_hours: Estimated time
305 field_column_names: Columns
305 field_column_names: Columns
306 field_time_entries: Log time
306 field_time_entries: Log time
307 field_time_zone: Time zone
307 field_time_zone: Time zone
308 field_searchable: Searchable
308 field_searchable: Searchable
309 field_default_value: Default value
309 field_default_value: Default value
310 field_comments_sorting: Display comments
310 field_comments_sorting: Display comments
311 field_parent_title: Parent page
311 field_parent_title: Parent page
312 field_editable: Editable
312 field_editable: Editable
313 field_watcher: Watcher
313 field_watcher: Watcher
314 field_identity_url: OpenID URL
314 field_identity_url: OpenID URL
315 field_content: Content
315 field_content: Content
316 field_group_by: Group results by
316 field_group_by: Group results by
317 field_sharing: Sharing
317 field_sharing: Sharing
318 field_parent_issue: Parent task
318 field_parent_issue: Parent task
319 field_member_of_group: "Assignee's group"
319 field_member_of_group: "Assignee's group"
320 field_assigned_to_role: "Assignee's role"
320 field_assigned_to_role: "Assignee's role"
321 field_text: Text field
321 field_text: Text field
322 field_visible: Visible
322 field_visible: Visible
323 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
323 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
324 field_issues_visibility: Issues visibility
324 field_issues_visibility: Issues visibility
325 field_is_private: Private
325 field_is_private: Private
326 field_commit_logs_encoding: Commit messages encoding
326 field_commit_logs_encoding: Commit messages encoding
327 field_scm_path_encoding: Path encoding
327 field_scm_path_encoding: Path encoding
328 field_path_to_repository: Path to repository
328 field_path_to_repository: Path to repository
329 field_root_directory: Root directory
329 field_root_directory: Root directory
330 field_cvsroot: CVSROOT
330 field_cvsroot: CVSROOT
331 field_cvs_module: Module
331 field_cvs_module: Module
332 field_repository_is_default: Main repository
332 field_repository_is_default: Main repository
333 field_multiple: Multiple values
333 field_multiple: Multiple values
334 field_auth_source_ldap_filter: LDAP filter
334 field_auth_source_ldap_filter: LDAP filter
335 field_core_fields: Standard fields
335 field_core_fields: Standard fields
336 field_timeout: "Timeout (in seconds)"
336 field_timeout: "Timeout (in seconds)"
337 field_board_parent: Parent forum
337 field_board_parent: Parent forum
338 field_private_notes: Private notes
338 field_private_notes: Private notes
339 field_inherit_members: Inherit members
339 field_inherit_members: Inherit members
340 field_generate_password: Generate password
340 field_generate_password: Generate password
341 field_must_change_passwd: Must change password at next logon
341 field_must_change_passwd: Must change password at next logon
342 field_default_status: Default status
342 field_default_status: Default status
343 field_users_visibility: Users visibility
343 field_users_visibility: Users visibility
344
344
345 setting_app_title: Application title
345 setting_app_title: Application title
346 setting_app_subtitle: Application subtitle
346 setting_app_subtitle: Application subtitle
347 setting_welcome_text: Welcome text
347 setting_welcome_text: Welcome text
348 setting_default_language: Default language
348 setting_default_language: Default language
349 setting_login_required: Authentication required
349 setting_login_required: Authentication required
350 setting_self_registration: Self-registration
350 setting_self_registration: Self-registration
351 setting_attachment_max_size: Maximum attachment size
351 setting_attachment_max_size: Maximum attachment size
352 setting_issues_export_limit: Issues export limit
352 setting_issues_export_limit: Issues export limit
353 setting_mail_from: Emission email address
353 setting_mail_from: Emission email address
354 setting_bcc_recipients: Blind carbon copy recipients (bcc)
354 setting_bcc_recipients: Blind carbon copy recipients (bcc)
355 setting_plain_text_mail: Plain text mail (no HTML)
355 setting_plain_text_mail: Plain text mail (no HTML)
356 setting_host_name: Host name and path
356 setting_host_name: Host name and path
357 setting_text_formatting: Text formatting
357 setting_text_formatting: Text formatting
358 setting_wiki_compression: Wiki history compression
358 setting_wiki_compression: Wiki history compression
359 setting_feeds_limit: Maximum number of items in Atom feeds
359 setting_feeds_limit: Maximum number of items in Atom feeds
360 setting_default_projects_public: New projects are public by default
360 setting_default_projects_public: New projects are public by default
361 setting_autofetch_changesets: Fetch commits automatically
361 setting_autofetch_changesets: Fetch commits automatically
362 setting_sys_api_enabled: Enable WS for repository management
362 setting_sys_api_enabled: Enable WS for repository management
363 setting_commit_ref_keywords: Referencing keywords
363 setting_commit_ref_keywords: Referencing keywords
364 setting_commit_fix_keywords: Fixing keywords
364 setting_commit_fix_keywords: Fixing keywords
365 setting_autologin: Autologin
365 setting_autologin: Autologin
366 setting_date_format: Date format
366 setting_date_format: Date format
367 setting_time_format: Time format
367 setting_time_format: Time format
368 setting_cross_project_issue_relations: Allow cross-project issue relations
368 setting_cross_project_issue_relations: Allow cross-project issue relations
369 setting_cross_project_subtasks: Allow cross-project subtasks
369 setting_cross_project_subtasks: Allow cross-project subtasks
370 setting_issue_list_default_columns: Default columns displayed on the issue list
370 setting_issue_list_default_columns: Default columns displayed on the issue list
371 setting_repositories_encodings: Attachments and repositories encodings
371 setting_repositories_encodings: Attachments and repositories encodings
372 setting_emails_header: Email header
372 setting_emails_header: Email header
373 setting_emails_footer: Email footer
373 setting_emails_footer: Email footer
374 setting_protocol: Protocol
374 setting_protocol: Protocol
375 setting_per_page_options: Objects per page options
375 setting_per_page_options: Objects per page options
376 setting_user_format: Users display format
376 setting_user_format: Users display format
377 setting_activity_days_default: Days displayed on project activity
377 setting_activity_days_default: Days displayed on project activity
378 setting_display_subprojects_issues: Display subprojects issues on main projects by default
378 setting_display_subprojects_issues: Display subprojects issues on main projects by default
379 setting_enabled_scm: Enabled SCM
379 setting_enabled_scm: Enabled SCM
380 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
380 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
381 setting_mail_handler_api_enabled: Enable WS for incoming emails
381 setting_mail_handler_api_enabled: Enable WS for incoming emails
382 setting_mail_handler_api_key: API key
382 setting_mail_handler_api_key: API key
383 setting_sequential_project_identifiers: Generate sequential project identifiers
383 setting_sequential_project_identifiers: Generate sequential project identifiers
384 setting_gravatar_enabled: Use Gravatar user icons
384 setting_gravatar_enabled: Use Gravatar user icons
385 setting_gravatar_default: Default Gravatar image
385 setting_gravatar_default: Default Gravatar image
386 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
386 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
387 setting_file_max_size_displayed: Maximum size of text files displayed inline
387 setting_file_max_size_displayed: Maximum size of text files displayed inline
388 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
388 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
389 setting_openid: Allow OpenID login and registration
389 setting_openid: Allow OpenID login and registration
390 setting_password_max_age: Require password change after
390 setting_password_max_age: Require password change after
391 setting_password_min_length: Minimum password length
391 setting_password_min_length: Minimum password length
392 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
392 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
393 setting_default_projects_modules: Default enabled modules for new projects
393 setting_default_projects_modules: Default enabled modules for new projects
394 setting_issue_done_ratio: Calculate the issue done ratio with
394 setting_issue_done_ratio: Calculate the issue done ratio with
395 setting_issue_done_ratio_issue_field: Use the issue field
395 setting_issue_done_ratio_issue_field: Use the issue field
396 setting_issue_done_ratio_issue_status: Use the issue status
396 setting_issue_done_ratio_issue_status: Use the issue status
397 setting_start_of_week: Start calendars on
397 setting_start_of_week: Start calendars on
398 setting_rest_api_enabled: Enable REST web service
398 setting_rest_api_enabled: Enable REST web service
399 setting_cache_formatted_text: Cache formatted text
399 setting_cache_formatted_text: Cache formatted text
400 setting_default_notification_option: Default notification option
400 setting_default_notification_option: Default notification option
401 setting_commit_logtime_enabled: Enable time logging
401 setting_commit_logtime_enabled: Enable time logging
402 setting_commit_logtime_activity_id: Activity for logged time
402 setting_commit_logtime_activity_id: Activity for logged time
403 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
403 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
404 setting_issue_group_assignment: Allow issue assignment to groups
404 setting_issue_group_assignment: Allow issue assignment to groups
405 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
405 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
406 setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
406 setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
407 setting_unsubscribe: Allow users to delete their own account
407 setting_unsubscribe: Allow users to delete their own account
408 setting_session_lifetime: Session maximum lifetime
408 setting_session_lifetime: Session maximum lifetime
409 setting_session_timeout: Session inactivity timeout
409 setting_session_timeout: Session inactivity timeout
410 setting_thumbnails_enabled: Display attachment thumbnails
410 setting_thumbnails_enabled: Display attachment thumbnails
411 setting_thumbnails_size: Thumbnails size (in pixels)
411 setting_thumbnails_size: Thumbnails size (in pixels)
412 setting_non_working_week_days: Non-working days
412 setting_non_working_week_days: Non-working days
413 setting_jsonp_enabled: Enable JSONP support
413 setting_jsonp_enabled: Enable JSONP support
414 setting_default_projects_tracker_ids: Default trackers for new projects
414 setting_default_projects_tracker_ids: Default trackers for new projects
415 setting_mail_handler_excluded_filenames: Exclude attachments by name
415 setting_mail_handler_excluded_filenames: Exclude attachments by name
416 setting_force_default_language_for_anonymous: Force default language for anonymous users
416 setting_force_default_language_for_anonymous: Force default language for anonymous users
417 setting_force_default_language_for_loggedin: Force default language for logged-in users
417 setting_force_default_language_for_loggedin: Force default language for logged-in users
418 setting_link_copied_issue: Link issues on copy
418 setting_link_copied_issue: Link issues on copy
419 setting_max_additional_emails: Maximum number of additional email addresses
419 setting_max_additional_emails: Maximum number of additional email addresses
420 setting_search_results_per_page: Search results per page
420 setting_search_results_per_page: Search results per page
421
421
422 permission_add_project: Create project
422 permission_add_project: Create project
423 permission_add_subprojects: Create subprojects
423 permission_add_subprojects: Create subprojects
424 permission_edit_project: Edit project
424 permission_edit_project: Edit project
425 permission_close_project: Close / reopen the project
425 permission_close_project: Close / reopen the project
426 permission_select_project_modules: Select project modules
426 permission_select_project_modules: Select project modules
427 permission_manage_members: Manage members
427 permission_manage_members: Manage members
428 permission_manage_project_activities: Manage project activities
428 permission_manage_project_activities: Manage project activities
429 permission_manage_versions: Manage versions
429 permission_manage_versions: Manage versions
430 permission_manage_categories: Manage issue categories
430 permission_manage_categories: Manage issue categories
431 permission_view_issues: View Issues
431 permission_view_issues: View Issues
432 permission_add_issues: Add issues
432 permission_add_issues: Add issues
433 permission_edit_issues: Edit issues
433 permission_edit_issues: Edit issues
434 permission_copy_issues: Copy issues
434 permission_copy_issues: Copy issues
435 permission_manage_issue_relations: Manage issue relations
435 permission_manage_issue_relations: Manage issue relations
436 permission_set_issues_private: Set issues public or private
436 permission_set_issues_private: Set issues public or private
437 permission_set_own_issues_private: Set own issues public or private
437 permission_set_own_issues_private: Set own issues public or private
438 permission_add_issue_notes: Add notes
438 permission_add_issue_notes: Add notes
439 permission_edit_issue_notes: Edit notes
439 permission_edit_issue_notes: Edit notes
440 permission_edit_own_issue_notes: Edit own notes
440 permission_edit_own_issue_notes: Edit own notes
441 permission_view_private_notes: View private notes
441 permission_view_private_notes: View private notes
442 permission_set_notes_private: Set notes as private
442 permission_set_notes_private: Set notes as private
443 permission_move_issues: Move issues
443 permission_move_issues: Move issues
444 permission_delete_issues: Delete issues
444 permission_delete_issues: Delete issues
445 permission_manage_public_queries: Manage public queries
445 permission_manage_public_queries: Manage public queries
446 permission_save_queries: Save queries
446 permission_save_queries: Save queries
447 permission_view_gantt: View gantt chart
447 permission_view_gantt: View gantt chart
448 permission_view_calendar: View calendar
448 permission_view_calendar: View calendar
449 permission_view_issue_watchers: View watchers list
449 permission_view_issue_watchers: View watchers list
450 permission_add_issue_watchers: Add watchers
450 permission_add_issue_watchers: Add watchers
451 permission_delete_issue_watchers: Delete watchers
451 permission_delete_issue_watchers: Delete watchers
452 permission_log_time: Log spent time
452 permission_log_time: Log spent time
453 permission_view_time_entries: View spent time
453 permission_view_time_entries: View spent time
454 permission_edit_time_entries: Edit time logs
454 permission_edit_time_entries: Edit time logs
455 permission_edit_own_time_entries: Edit own time logs
455 permission_edit_own_time_entries: Edit own time logs
456 permission_manage_news: Manage news
456 permission_manage_news: Manage news
457 permission_comment_news: Comment news
457 permission_comment_news: Comment news
458 permission_view_documents: View documents
458 permission_view_documents: View documents
459 permission_add_documents: Add documents
459 permission_add_documents: Add documents
460 permission_edit_documents: Edit documents
460 permission_edit_documents: Edit documents
461 permission_delete_documents: Delete documents
461 permission_delete_documents: Delete documents
462 permission_manage_files: Manage files
462 permission_manage_files: Manage files
463 permission_view_files: View files
463 permission_view_files: View files
464 permission_manage_wiki: Manage wiki
464 permission_manage_wiki: Manage wiki
465 permission_rename_wiki_pages: Rename wiki pages
465 permission_rename_wiki_pages: Rename wiki pages
466 permission_delete_wiki_pages: Delete wiki pages
466 permission_delete_wiki_pages: Delete wiki pages
467 permission_view_wiki_pages: View wiki
467 permission_view_wiki_pages: View wiki
468 permission_view_wiki_edits: View wiki history
468 permission_view_wiki_edits: View wiki history
469 permission_edit_wiki_pages: Edit wiki pages
469 permission_edit_wiki_pages: Edit wiki pages
470 permission_delete_wiki_pages_attachments: Delete attachments
470 permission_delete_wiki_pages_attachments: Delete attachments
471 permission_protect_wiki_pages: Protect wiki pages
471 permission_protect_wiki_pages: Protect wiki pages
472 permission_manage_repository: Manage repository
472 permission_manage_repository: Manage repository
473 permission_browse_repository: Browse repository
473 permission_browse_repository: Browse repository
474 permission_view_changesets: View changesets
474 permission_view_changesets: View changesets
475 permission_commit_access: Commit access
475 permission_commit_access: Commit access
476 permission_manage_boards: Manage forums
476 permission_manage_boards: Manage forums
477 permission_view_messages: View messages
477 permission_view_messages: View messages
478 permission_add_messages: Post messages
478 permission_add_messages: Post messages
479 permission_edit_messages: Edit messages
479 permission_edit_messages: Edit messages
480 permission_edit_own_messages: Edit own messages
480 permission_edit_own_messages: Edit own messages
481 permission_delete_messages: Delete messages
481 permission_delete_messages: Delete messages
482 permission_delete_own_messages: Delete own messages
482 permission_delete_own_messages: Delete own messages
483 permission_export_wiki_pages: Export wiki pages
483 permission_export_wiki_pages: Export wiki pages
484 permission_manage_subtasks: Manage subtasks
484 permission_manage_subtasks: Manage subtasks
485 permission_manage_related_issues: Manage related issues
485 permission_manage_related_issues: Manage related issues
486
486
487 project_module_issue_tracking: Issue tracking
487 project_module_issue_tracking: Issue tracking
488 project_module_time_tracking: Time tracking
488 project_module_time_tracking: Time tracking
489 project_module_news: News
489 project_module_news: News
490 project_module_documents: Documents
490 project_module_documents: Documents
491 project_module_files: Files
491 project_module_files: Files
492 project_module_wiki: Wiki
492 project_module_wiki: Wiki
493 project_module_repository: Repository
493 project_module_repository: Repository
494 project_module_boards: Forums
494 project_module_boards: Forums
495 project_module_calendar: Calendar
495 project_module_calendar: Calendar
496 project_module_gantt: Gantt
496 project_module_gantt: Gantt
497
497
498 label_user: User
498 label_user: User
499 label_user_plural: Users
499 label_user_plural: Users
500 label_user_new: New user
500 label_user_new: New user
501 label_user_anonymous: Anonymous
501 label_user_anonymous: Anonymous
502 label_project: Project
502 label_project: Project
503 label_project_new: New project
503 label_project_new: New project
504 label_project_plural: Projects
504 label_project_plural: Projects
505 label_x_projects:
505 label_x_projects:
506 zero: no projects
506 zero: no projects
507 one: 1 project
507 one: 1 project
508 other: "%{count} projects"
508 other: "%{count} projects"
509 label_project_all: All Projects
509 label_project_all: All Projects
510 label_project_latest: Latest projects
510 label_project_latest: Latest projects
511 label_issue: Issue
511 label_issue: Issue
512 label_issue_new: New issue
512 label_issue_new: New issue
513 label_issue_plural: Issues
513 label_issue_plural: Issues
514 label_issue_view_all: View all issues
514 label_issue_view_all: View all issues
515 label_issues_by: "Issues by %{value}"
515 label_issues_by: "Issues by %{value}"
516 label_issue_added: Issue added
516 label_issue_added: Issue added
517 label_issue_updated: Issue updated
517 label_issue_updated: Issue updated
518 label_issue_note_added: Note added
518 label_issue_note_added: Note added
519 label_issue_status_updated: Status updated
519 label_issue_status_updated: Status updated
520 label_issue_assigned_to_updated: Assignee updated
520 label_issue_assigned_to_updated: Assignee updated
521 label_issue_priority_updated: Priority updated
521 label_issue_priority_updated: Priority updated
522 label_document: Document
522 label_document: Document
523 label_document_new: New document
523 label_document_new: New document
524 label_document_plural: Documents
524 label_document_plural: Documents
525 label_document_added: Document added
525 label_document_added: Document added
526 label_role: Role
526 label_role: Role
527 label_role_plural: Roles
527 label_role_plural: Roles
528 label_role_new: New role
528 label_role_new: New role
529 label_role_and_permissions: Roles and permissions
529 label_role_and_permissions: Roles and permissions
530 label_role_anonymous: Anonymous
530 label_role_anonymous: Anonymous
531 label_role_non_member: Non member
531 label_role_non_member: Non member
532 label_member: Member
532 label_member: Member
533 label_member_new: New member
533 label_member_new: New member
534 label_member_plural: Members
534 label_member_plural: Members
535 label_tracker: Tracker
535 label_tracker: Tracker
536 label_tracker_plural: Trackers
536 label_tracker_plural: Trackers
537 label_tracker_new: New tracker
537 label_tracker_new: New tracker
538 label_workflow: Workflow
538 label_workflow: Workflow
539 label_issue_status: Issue status
539 label_issue_status: Issue status
540 label_issue_status_plural: Issue statuses
540 label_issue_status_plural: Issue statuses
541 label_issue_status_new: New status
541 label_issue_status_new: New status
542 label_issue_category: Issue category
542 label_issue_category: Issue category
543 label_issue_category_plural: Issue categories
543 label_issue_category_plural: Issue categories
544 label_issue_category_new: New category
544 label_issue_category_new: New category
545 label_custom_field: Custom field
545 label_custom_field: Custom field
546 label_custom_field_plural: Custom fields
546 label_custom_field_plural: Custom fields
547 label_custom_field_new: New custom field
547 label_custom_field_new: New custom field
548 label_enumerations: Enumerations
548 label_enumerations: Enumerations
549 label_enumeration_new: New value
549 label_enumeration_new: New value
550 label_information: Information
550 label_information: Information
551 label_information_plural: Information
551 label_information_plural: Information
552 label_please_login: Please log in
552 label_please_login: Please log in
553 label_register: Register
553 label_register: Register
554 label_login_with_open_id_option: or login with OpenID
554 label_login_with_open_id_option: or login with OpenID
555 label_password_lost: Lost password
555 label_password_lost: Lost password
556 label_home: Home
556 label_home: Home
557 label_my_page: My page
557 label_my_page: My page
558 label_my_account: My account
558 label_my_account: My account
559 label_my_projects: My projects
559 label_my_projects: My projects
560 label_my_page_block: My page block
560 label_my_page_block: My page block
561 label_administration: Administration
561 label_administration: Administration
562 label_login: Sign in
562 label_login: Sign in
563 label_logout: Sign out
563 label_logout: Sign out
564 label_help: Help
564 label_help: Help
565 label_reported_issues: Reported issues
565 label_reported_issues: Reported issues
566 label_assigned_to_me_issues: Issues assigned to me
566 label_assigned_to_me_issues: Issues assigned to me
567 label_last_login: Last connection
567 label_last_login: Last connection
568 label_registered_on: Registered on
568 label_registered_on: Registered on
569 label_activity: Activity
569 label_activity: Activity
570 label_overall_activity: Overall activity
570 label_overall_activity: Overall activity
571 label_user_activity: "%{value}'s activity"
571 label_user_activity: "%{value}'s activity"
572 label_new: New
572 label_new: New
573 label_logged_as: Logged in as
573 label_logged_as: Logged in as
574 label_environment: Environment
574 label_environment: Environment
575 label_authentication: Authentication
575 label_authentication: Authentication
576 label_auth_source: Authentication mode
576 label_auth_source: Authentication mode
577 label_auth_source_new: New authentication mode
577 label_auth_source_new: New authentication mode
578 label_auth_source_plural: Authentication modes
578 label_auth_source_plural: Authentication modes
579 label_subproject_plural: Subprojects
579 label_subproject_plural: Subprojects
580 label_subproject_new: New subproject
580 label_subproject_new: New subproject
581 label_and_its_subprojects: "%{value} and its subprojects"
581 label_and_its_subprojects: "%{value} and its subprojects"
582 label_min_max_length: Min - Max length
582 label_min_max_length: Min - Max length
583 label_list: List
583 label_list: List
584 label_date: Date
584 label_date: Date
585 label_integer: Integer
585 label_integer: Integer
586 label_float: Float
586 label_float: Float
587 label_boolean: Boolean
587 label_boolean: Boolean
588 label_string: Text
588 label_string: Text
589 label_text: Long text
589 label_text: Long text
590 label_attribute: Attribute
590 label_attribute: Attribute
591 label_attribute_plural: Attributes
591 label_attribute_plural: Attributes
592 label_no_data: No data to display
592 label_no_data: No data to display
593 label_change_status: Change status
593 label_change_status: Change status
594 label_history: History
594 label_history: History
595 label_attachment: File
595 label_attachment: File
596 label_attachment_new: New file
596 label_attachment_new: New file
597 label_attachment_delete: Delete file
597 label_attachment_delete: Delete file
598 label_attachment_plural: Files
598 label_attachment_plural: Files
599 label_file_added: File added
599 label_file_added: File added
600 label_report: Report
600 label_report: Report
601 label_report_plural: Reports
601 label_report_plural: Reports
602 label_news: News
602 label_news: News
603 label_news_new: Add news
603 label_news_new: Add news
604 label_news_plural: News
604 label_news_plural: News
605 label_news_latest: Latest news
605 label_news_latest: Latest news
606 label_news_view_all: View all news
606 label_news_view_all: View all news
607 label_news_added: News added
607 label_news_added: News added
608 label_news_comment_added: Comment added to a news
608 label_news_comment_added: Comment added to a news
609 label_settings: Settings
609 label_settings: Settings
610 label_overview: Overview
610 label_overview: Overview
611 label_version: Version
611 label_version: Version
612 label_version_new: New version
612 label_version_new: New version
613 label_version_plural: Versions
613 label_version_plural: Versions
614 label_close_versions: Close completed versions
614 label_close_versions: Close completed versions
615 label_confirmation: Confirmation
615 label_confirmation: Confirmation
616 label_export_to: 'Also available in:'
616 label_export_to: 'Also available in:'
617 label_read: Read...
617 label_read: Read...
618 label_public_projects: Public projects
618 label_public_projects: Public projects
619 label_open_issues: open
619 label_open_issues: open
620 label_open_issues_plural: open
620 label_open_issues_plural: open
621 label_closed_issues: closed
621 label_closed_issues: closed
622 label_closed_issues_plural: closed
622 label_closed_issues_plural: closed
623 label_x_open_issues_abbr_on_total:
623 label_x_open_issues_abbr_on_total:
624 zero: 0 open / %{total}
624 zero: 0 open / %{total}
625 one: 1 open / %{total}
625 one: 1 open / %{total}
626 other: "%{count} open / %{total}"
626 other: "%{count} open / %{total}"
627 label_x_open_issues_abbr:
627 label_x_open_issues_abbr:
628 zero: 0 open
628 zero: 0 open
629 one: 1 open
629 one: 1 open
630 other: "%{count} open"
630 other: "%{count} open"
631 label_x_closed_issues_abbr:
631 label_x_closed_issues_abbr:
632 zero: 0 closed
632 zero: 0 closed
633 one: 1 closed
633 one: 1 closed
634 other: "%{count} closed"
634 other: "%{count} closed"
635 label_x_issues:
635 label_x_issues:
636 zero: 0 issues
636 zero: 0 issues
637 one: 1 issue
637 one: 1 issue
638 other: "%{count} issues"
638 other: "%{count} issues"
639 label_total: Total
639 label_total: Total
640 label_total_time: Total time
640 label_total_time: Total time
641 label_permissions: Permissions
641 label_permissions: Permissions
642 label_current_status: Current status
642 label_current_status: Current status
643 label_new_statuses_allowed: New statuses allowed
643 label_new_statuses_allowed: New statuses allowed
644 label_all: all
644 label_all: all
645 label_any: any
645 label_any: any
646 label_none: none
646 label_none: none
647 label_nobody: nobody
647 label_nobody: nobody
648 label_next: Next
648 label_next: Next
649 label_previous: Previous
649 label_previous: Previous
650 label_used_by: Used by
650 label_used_by: Used by
651 label_details: Details
651 label_details: Details
652 label_add_note: Add a note
652 label_add_note: Add a note
653 label_calendar: Calendar
653 label_calendar: Calendar
654 label_months_from: months from
654 label_months_from: months from
655 label_gantt: Gantt
655 label_gantt: Gantt
656 label_internal: Internal
656 label_internal: Internal
657 label_last_changes: "last %{count} changes"
657 label_last_changes: "last %{count} changes"
658 label_change_view_all: View all changes
658 label_change_view_all: View all changes
659 label_personalize_page: Personalize this page
659 label_personalize_page: Personalize this page
660 label_comment: Comment
660 label_comment: Comment
661 label_comment_plural: Comments
661 label_comment_plural: Comments
662 label_x_comments:
662 label_x_comments:
663 zero: no comments
663 zero: no comments
664 one: 1 comment
664 one: 1 comment
665 other: "%{count} comments"
665 other: "%{count} comments"
666 label_comment_add: Add a comment
666 label_comment_add: Add a comment
667 label_comment_added: Comment added
667 label_comment_added: Comment added
668 label_comment_delete: Delete comments
668 label_comment_delete: Delete comments
669 label_query: Custom query
669 label_query: Custom query
670 label_query_plural: Custom queries
670 label_query_plural: Custom queries
671 label_query_new: New query
671 label_query_new: New query
672 label_my_queries: My custom queries
672 label_my_queries: My custom queries
673 label_filter_add: Add filter
673 label_filter_add: Add filter
674 label_filter_plural: Filters
674 label_filter_plural: Filters
675 label_equals: is
675 label_equals: is
676 label_not_equals: is not
676 label_not_equals: is not
677 label_in_less_than: in less than
677 label_in_less_than: in less than
678 label_in_more_than: in more than
678 label_in_more_than: in more than
679 label_in_the_next_days: in the next
679 label_in_the_next_days: in the next
680 label_in_the_past_days: in the past
680 label_in_the_past_days: in the past
681 label_greater_or_equal: '>='
681 label_greater_or_equal: '>='
682 label_less_or_equal: '<='
682 label_less_or_equal: '<='
683 label_between: between
683 label_between: between
684 label_in: in
684 label_in: in
685 label_today: today
685 label_today: today
686 label_all_time: all time
686 label_all_time: all time
687 label_yesterday: yesterday
687 label_yesterday: yesterday
688 label_this_week: this week
688 label_this_week: this week
689 label_last_week: last week
689 label_last_week: last week
690 label_last_n_weeks: "last %{count} weeks"
690 label_last_n_weeks: "last %{count} weeks"
691 label_last_n_days: "last %{count} days"
691 label_last_n_days: "last %{count} days"
692 label_this_month: this month
692 label_this_month: this month
693 label_last_month: last month
693 label_last_month: last month
694 label_this_year: this year
694 label_this_year: this year
695 label_date_range: Date range
695 label_date_range: Date range
696 label_less_than_ago: less than days ago
696 label_less_than_ago: less than days ago
697 label_more_than_ago: more than days ago
697 label_more_than_ago: more than days ago
698 label_ago: days ago
698 label_ago: days ago
699 label_contains: contains
699 label_contains: contains
700 label_not_contains: doesn't contain
700 label_not_contains: doesn't contain
701 label_any_issues_in_project: any issues in project
701 label_any_issues_in_project: any issues in project
702 label_any_issues_not_in_project: any issues not in project
702 label_any_issues_not_in_project: any issues not in project
703 label_no_issues_in_project: no issues in project
703 label_no_issues_in_project: no issues in project
704 label_day_plural: days
704 label_day_plural: days
705 label_repository: Repository
705 label_repository: Repository
706 label_repository_new: New repository
706 label_repository_new: New repository
707 label_repository_plural: Repositories
707 label_repository_plural: Repositories
708 label_browse: Browse
708 label_browse: Browse
709 label_branch: Branch
709 label_branch: Branch
710 label_tag: Tag
710 label_tag: Tag
711 label_revision: Revision
711 label_revision: Revision
712 label_revision_plural: Revisions
712 label_revision_plural: Revisions
713 label_revision_id: "Revision %{value}"
713 label_revision_id: "Revision %{value}"
714 label_associated_revisions: Associated revisions
714 label_associated_revisions: Associated revisions
715 label_added: added
715 label_added: added
716 label_modified: modified
716 label_modified: modified
717 label_copied: copied
717 label_copied: copied
718 label_renamed: renamed
718 label_renamed: renamed
719 label_deleted: deleted
719 label_deleted: deleted
720 label_latest_revision: Latest revision
720 label_latest_revision: Latest revision
721 label_latest_revision_plural: Latest revisions
721 label_latest_revision_plural: Latest revisions
722 label_view_revisions: View revisions
722 label_view_revisions: View revisions
723 label_view_all_revisions: View all revisions
723 label_view_all_revisions: View all revisions
724 label_max_size: Maximum size
724 label_max_size: Maximum size
725 label_sort_highest: Move to top
725 label_sort_highest: Move to top
726 label_sort_higher: Move up
726 label_sort_higher: Move up
727 label_sort_lower: Move down
727 label_sort_lower: Move down
728 label_sort_lowest: Move to bottom
728 label_sort_lowest: Move to bottom
729 label_roadmap: Roadmap
729 label_roadmap: Roadmap
730 label_roadmap_due_in: "Due in %{value}"
730 label_roadmap_due_in: "Due in %{value}"
731 label_roadmap_overdue: "%{value} late"
731 label_roadmap_overdue: "%{value} late"
732 label_roadmap_no_issues: No issues for this version
732 label_roadmap_no_issues: No issues for this version
733 label_search: Search
733 label_search: Search
734 label_result_plural: Results
734 label_result_plural: Results
735 label_all_words: All words
735 label_all_words: All words
736 label_wiki: Wiki
736 label_wiki: Wiki
737 label_wiki_edit: Wiki edit
737 label_wiki_edit: Wiki edit
738 label_wiki_edit_plural: Wiki edits
738 label_wiki_edit_plural: Wiki edits
739 label_wiki_page: Wiki page
739 label_wiki_page: Wiki page
740 label_wiki_page_plural: Wiki pages
740 label_wiki_page_plural: Wiki pages
741 label_index_by_title: Index by title
741 label_index_by_title: Index by title
742 label_index_by_date: Index by date
742 label_index_by_date: Index by date
743 label_current_version: Current version
743 label_current_version: Current version
744 label_preview: Preview
744 label_preview: Preview
745 label_feed_plural: Feeds
745 label_feed_plural: Feeds
746 label_changes_details: Details of all changes
746 label_changes_details: Details of all changes
747 label_issue_tracking: Issue tracking
747 label_issue_tracking: Issue tracking
748 label_spent_time: Spent time
748 label_spent_time: Spent time
749 label_overall_spent_time: Overall spent time
749 label_overall_spent_time: Overall spent time
750 label_f_hour: "%{value} hour"
750 label_f_hour: "%{value} hour"
751 label_f_hour_plural: "%{value} hours"
751 label_f_hour_plural: "%{value} hours"
752 label_time_tracking: Time tracking
752 label_time_tracking: Time tracking
753 label_change_plural: Changes
753 label_change_plural: Changes
754 label_statistics: Statistics
754 label_statistics: Statistics
755 label_commits_per_month: Commits per month
755 label_commits_per_month: Commits per month
756 label_commits_per_author: Commits per author
756 label_commits_per_author: Commits per author
757 label_diff: diff
757 label_diff: diff
758 label_view_diff: View differences
758 label_view_diff: View differences
759 label_diff_inline: inline
759 label_diff_inline: inline
760 label_diff_side_by_side: side by side
760 label_diff_side_by_side: side by side
761 label_options: Options
761 label_options: Options
762 label_copy_workflow_from: Copy workflow from
762 label_copy_workflow_from: Copy workflow from
763 label_permissions_report: Permissions report
763 label_permissions_report: Permissions report
764 label_watched_issues: Watched issues
764 label_watched_issues: Watched issues
765 label_related_issues: Related issues
765 label_related_issues: Related issues
766 label_applied_status: Applied status
766 label_applied_status: Applied status
767 label_loading: Loading...
767 label_loading: Loading...
768 label_relation_new: New relation
768 label_relation_new: New relation
769 label_relation_delete: Delete relation
769 label_relation_delete: Delete relation
770 label_relates_to: Related to
770 label_relates_to: Related to
771 label_duplicates: Duplicates
771 label_duplicates: Duplicates
772 label_duplicated_by: Duplicated by
772 label_duplicated_by: Duplicated by
773 label_blocks: Blocks
773 label_blocks: Blocks
774 label_blocked_by: Blocked by
774 label_blocked_by: Blocked by
775 label_precedes: Precedes
775 label_precedes: Precedes
776 label_follows: Follows
776 label_follows: Follows
777 label_copied_to: Copied to
777 label_copied_to: Copied to
778 label_copied_from: Copied from
778 label_copied_from: Copied from
779 label_end_to_start: end to start
779 label_end_to_start: end to start
780 label_end_to_end: end to end
780 label_end_to_end: end to end
781 label_start_to_start: start to start
781 label_start_to_start: start to start
782 label_start_to_end: start to end
782 label_start_to_end: start to end
783 label_stay_logged_in: Stay logged in
783 label_stay_logged_in: Stay logged in
784 label_disabled: disabled
784 label_disabled: disabled
785 label_show_completed_versions: Show completed versions
785 label_show_completed_versions: Show completed versions
786 label_me: me
786 label_me: me
787 label_board: Forum
787 label_board: Forum
788 label_board_new: New forum
788 label_board_new: New forum
789 label_board_plural: Forums
789 label_board_plural: Forums
790 label_board_locked: Locked
790 label_board_locked: Locked
791 label_board_sticky: Sticky
791 label_board_sticky: Sticky
792 label_topic_plural: Topics
792 label_topic_plural: Topics
793 label_message_plural: Messages
793 label_message_plural: Messages
794 label_message_last: Last message
794 label_message_last: Last message
795 label_message_new: New message
795 label_message_new: New message
796 label_message_posted: Message added
796 label_message_posted: Message added
797 label_reply_plural: Replies
797 label_reply_plural: Replies
798 label_send_information: Send account information to the user
798 label_send_information: Send account information to the user
799 label_year: Year
799 label_year: Year
800 label_month: Month
800 label_month: Month
801 label_week: Week
801 label_week: Week
802 label_date_from: From
802 label_date_from: From
803 label_date_to: To
803 label_date_to: To
804 label_language_based: Based on user's language
804 label_language_based: Based on user's language
805 label_sort_by: "Sort by %{value}"
805 label_sort_by: "Sort by %{value}"
806 label_send_test_email: Send a test email
806 label_send_test_email: Send a test email
807 label_feeds_access_key: Atom access key
807 label_feeds_access_key: Atom access key
808 label_missing_feeds_access_key: Missing a Atom access key
808 label_missing_feeds_access_key: Missing a Atom access key
809 label_feeds_access_key_created_on: "Atom access key created %{value} ago"
809 label_feeds_access_key_created_on: "Atom access key created %{value} ago"
810 label_module_plural: Modules
810 label_module_plural: Modules
811 label_added_time_by: "Added by %{author} %{age} ago"
811 label_added_time_by: "Added by %{author} %{age} ago"
812 label_updated_time_by: "Updated by %{author} %{age} ago"
812 label_updated_time_by: "Updated by %{author} %{age} ago"
813 label_updated_time: "Updated %{value} ago"
813 label_updated_time: "Updated %{value} ago"
814 label_jump_to_a_project: Jump to a project...
814 label_jump_to_a_project: Jump to a project...
815 label_file_plural: Files
815 label_file_plural: Files
816 label_changeset_plural: Changesets
816 label_changeset_plural: Changesets
817 label_default_columns: Default columns
817 label_default_columns: Default columns
818 label_no_change_option: (No change)
818 label_no_change_option: (No change)
819 label_bulk_edit_selected_issues: Bulk edit selected issues
819 label_bulk_edit_selected_issues: Bulk edit selected issues
820 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
820 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
821 label_theme: Theme
821 label_theme: Theme
822 label_default: Default
822 label_default: Default
823 label_search_titles_only: Search titles only
823 label_search_titles_only: Search titles only
824 label_user_mail_option_all: "For any event on all my projects"
824 label_user_mail_option_all: "For any event on all my projects"
825 label_user_mail_option_selected: "For any event on the selected projects only..."
825 label_user_mail_option_selected: "For any event on the selected projects only..."
826 label_user_mail_option_none: "No events"
826 label_user_mail_option_none: "No events"
827 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
827 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
828 label_user_mail_option_only_assigned: "Only for things I am assigned to"
828 label_user_mail_option_only_assigned: "Only for things I am assigned to"
829 label_user_mail_option_only_owner: "Only for things I am the owner of"
829 label_user_mail_option_only_owner: "Only for things I am the owner of"
830 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
830 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
831 label_registration_activation_by_email: account activation by email
831 label_registration_activation_by_email: account activation by email
832 label_registration_manual_activation: manual account activation
832 label_registration_manual_activation: manual account activation
833 label_registration_automatic_activation: automatic account activation
833 label_registration_automatic_activation: automatic account activation
834 label_display_per_page: "Per page: %{value}"
834 label_display_per_page: "Per page: %{value}"
835 label_age: Age
835 label_age: Age
836 label_change_properties: Change properties
836 label_change_properties: Change properties
837 label_general: General
837 label_general: General
838 label_more: More
838 label_more: More
839 label_scm: SCM
839 label_scm: SCM
840 label_plugins: Plugins
840 label_plugins: Plugins
841 label_ldap_authentication: LDAP authentication
841 label_ldap_authentication: LDAP authentication
842 label_downloads_abbr: D/L
842 label_downloads_abbr: D/L
843 label_optional_description: Optional description
843 label_optional_description: Optional description
844 label_add_another_file: Add another file
844 label_add_another_file: Add another file
845 label_preferences: Preferences
845 label_preferences: Preferences
846 label_chronological_order: In chronological order
846 label_chronological_order: In chronological order
847 label_reverse_chronological_order: In reverse chronological order
847 label_reverse_chronological_order: In reverse chronological order
848 label_planning: Planning
848 label_planning: Planning
849 label_incoming_emails: Incoming emails
849 label_incoming_emails: Incoming emails
850 label_generate_key: Generate a key
850 label_generate_key: Generate a key
851 label_issue_watchers: Watchers
851 label_issue_watchers: Watchers
852 label_example: Example
852 label_example: Example
853 label_display: Display
853 label_display: Display
854 label_sort: Sort
854 label_sort: Sort
855 label_ascending: Ascending
855 label_ascending: Ascending
856 label_descending: Descending
856 label_descending: Descending
857 label_date_from_to: From %{start} to %{end}
857 label_date_from_to: From %{start} to %{end}
858 label_wiki_content_added: Wiki page added
858 label_wiki_content_added: Wiki page added
859 label_wiki_content_updated: Wiki page updated
859 label_wiki_content_updated: Wiki page updated
860 label_group: Group
860 label_group: Group
861 label_group_plural: Groups
861 label_group_plural: Groups
862 label_group_new: New group
862 label_group_new: New group
863 label_group_anonymous: Anonymous users
863 label_group_anonymous: Anonymous users
864 label_group_non_member: Non member users
864 label_group_non_member: Non member users
865 label_time_entry_plural: Spent time
865 label_time_entry_plural: Spent time
866 label_version_sharing_none: Not shared
866 label_version_sharing_none: Not shared
867 label_version_sharing_descendants: With subprojects
867 label_version_sharing_descendants: With subprojects
868 label_version_sharing_hierarchy: With project hierarchy
868 label_version_sharing_hierarchy: With project hierarchy
869 label_version_sharing_tree: With project tree
869 label_version_sharing_tree: With project tree
870 label_version_sharing_system: With all projects
870 label_version_sharing_system: With all projects
871 label_update_issue_done_ratios: Update issue done ratios
871 label_update_issue_done_ratios: Update issue done ratios
872 label_copy_source: Source
872 label_copy_source: Source
873 label_copy_target: Target
873 label_copy_target: Target
874 label_copy_same_as_target: Same as target
874 label_copy_same_as_target: Same as target
875 label_display_used_statuses_only: Only display statuses that are used by this tracker
875 label_display_used_statuses_only: Only display statuses that are used by this tracker
876 label_api_access_key: API access key
876 label_api_access_key: API access key
877 label_missing_api_access_key: Missing an API access key
877 label_missing_api_access_key: Missing an API access key
878 label_api_access_key_created_on: "API access key created %{value} ago"
878 label_api_access_key_created_on: "API access key created %{value} ago"
879 label_profile: Profile
879 label_profile: Profile
880 label_subtask_plural: Subtasks
880 label_subtask_plural: Subtasks
881 label_project_copy_notifications: Send email notifications during the project copy
881 label_project_copy_notifications: Send email notifications during the project copy
882 label_principal_search: "Search for user or group:"
882 label_principal_search: "Search for user or group:"
883 label_user_search: "Search for user:"
883 label_user_search: "Search for user:"
884 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
884 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
885 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
885 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
886 label_issues_visibility_all: All issues
886 label_issues_visibility_all: All issues
887 label_issues_visibility_public: All non private issues
887 label_issues_visibility_public: All non private issues
888 label_issues_visibility_own: Issues created by or assigned to the user
888 label_issues_visibility_own: Issues created by or assigned to the user
889 label_git_report_last_commit: Report last commit for files and directories
889 label_git_report_last_commit: Report last commit for files and directories
890 label_parent_revision: Parent
890 label_parent_revision: Parent
891 label_child_revision: Child
891 label_child_revision: Child
892 label_export_options: "%{export_format} export options"
892 label_export_options: "%{export_format} export options"
893 label_copy_attachments: Copy attachments
893 label_copy_attachments: Copy attachments
894 label_copy_subtasks: Copy subtasks
894 label_copy_subtasks: Copy subtasks
895 label_item_position: "%{position} of %{count}"
895 label_item_position: "%{position} of %{count}"
896 label_completed_versions: Completed versions
896 label_completed_versions: Completed versions
897 label_search_for_watchers: Search for watchers to add
897 label_search_for_watchers: Search for watchers to add
898 label_session_expiration: Session expiration
898 label_session_expiration: Session expiration
899 label_show_closed_projects: View closed projects
899 label_show_closed_projects: View closed projects
900 label_status_transitions: Status transitions
900 label_status_transitions: Status transitions
901 label_fields_permissions: Fields permissions
901 label_fields_permissions: Fields permissions
902 label_readonly: Read-only
902 label_readonly: Read-only
903 label_required: Required
903 label_required: Required
904 label_hidden: Hidden
904 label_hidden: Hidden
905 label_attribute_of_project: "Project's %{name}"
905 label_attribute_of_project: "Project's %{name}"
906 label_attribute_of_issue: "Issue's %{name}"
906 label_attribute_of_issue: "Issue's %{name}"
907 label_attribute_of_author: "Author's %{name}"
907 label_attribute_of_author: "Author's %{name}"
908 label_attribute_of_assigned_to: "Assignee's %{name}"
908 label_attribute_of_assigned_to: "Assignee's %{name}"
909 label_attribute_of_user: "User's %{name}"
909 label_attribute_of_user: "User's %{name}"
910 label_attribute_of_fixed_version: "Target version's %{name}"
910 label_attribute_of_fixed_version: "Target version's %{name}"
911 label_cross_project_descendants: With subprojects
911 label_cross_project_descendants: With subprojects
912 label_cross_project_tree: With project tree
912 label_cross_project_tree: With project tree
913 label_cross_project_hierarchy: With project hierarchy
913 label_cross_project_hierarchy: With project hierarchy
914 label_cross_project_system: With all projects
914 label_cross_project_system: With all projects
915 label_gantt_progress_line: Progress line
915 label_gantt_progress_line: Progress line
916 label_visibility_private: to me only
916 label_visibility_private: to me only
917 label_visibility_roles: to these roles only
917 label_visibility_roles: to these roles only
918 label_visibility_public: to any users
918 label_visibility_public: to any users
919 label_link: Link
919 label_link: Link
920 label_only: only
920 label_only: only
921 label_drop_down_list: drop-down list
921 label_drop_down_list: drop-down list
922 label_checkboxes: checkboxes
922 label_checkboxes: checkboxes
923 label_radio_buttons: radio buttons
923 label_radio_buttons: radio buttons
924 label_link_values_to: Link values to URL
924 label_link_values_to: Link values to URL
925 label_custom_field_select_type: Select the type of object to which the custom field is to be attached
925 label_custom_field_select_type: Select the type of object to which the custom field is to be attached
926 label_check_for_updates: Check for updates
926 label_check_for_updates: Check for updates
927 label_latest_compatible_version: Latest compatible version
927 label_latest_compatible_version: Latest compatible version
928 label_unknown_plugin: Unknown plugin
928 label_unknown_plugin: Unknown plugin
929 label_add_projects: Add projects
929 label_add_projects: Add projects
930 label_users_visibility_all: All active users
930 label_users_visibility_all: All active users
931 label_users_visibility_members_of_visible_projects: Members of visible projects
931 label_users_visibility_members_of_visible_projects: Members of visible projects
932 label_edit_attachments: Edit attached files
932 label_edit_attachments: Edit attached files
933 label_link_copied_issue: Link copied issue
933 label_link_copied_issue: Link copied issue
934 label_ask: Ask
934 label_ask: Ask
935 label_search_attachments_yes: Search attachment filenames and descriptions
935 label_search_attachments_yes: Search attachment filenames and descriptions
936 label_search_attachments_no: Do not search attachments
936 label_search_attachments_no: Do not search attachments
937 label_search_attachments_only: Search attachments only
937 label_search_attachments_only: Search attachments only
938 label_search_open_issues_only: Open issues only
938 label_search_open_issues_only: Open issues only
939 label_email_address_plural: Emails
939 label_email_address_plural: Emails
940 label_email_address_add: Add email address
940 label_email_address_add: Add email address
941 label_enable_notifications: Enable notifications
941 label_enable_notifications: Enable notifications
942 label_disable_notifications: Disable notifications
942 label_disable_notifications: Disable notifications
943 label_blank_value: blank
943 label_blank_value: blank
944 label_parent_task_attributes: Parent tasks attributes
945 label_parent_task_attributes_derived: Calculated from subtasks
946 label_parent_task_attributes_independent: Independent of subtasks
944
947
945 button_login: Login
948 button_login: Login
946 button_submit: Submit
949 button_submit: Submit
947 button_save: Save
950 button_save: Save
948 button_check_all: Check all
951 button_check_all: Check all
949 button_uncheck_all: Uncheck all
952 button_uncheck_all: Uncheck all
950 button_collapse_all: Collapse all
953 button_collapse_all: Collapse all
951 button_expand_all: Expand all
954 button_expand_all: Expand all
952 button_delete: Delete
955 button_delete: Delete
953 button_create: Create
956 button_create: Create
954 button_create_and_continue: Create and continue
957 button_create_and_continue: Create and continue
955 button_test: Test
958 button_test: Test
956 button_edit: Edit
959 button_edit: Edit
957 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
960 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
958 button_add: Add
961 button_add: Add
959 button_change: Change
962 button_change: Change
960 button_apply: Apply
963 button_apply: Apply
961 button_clear: Clear
964 button_clear: Clear
962 button_lock: Lock
965 button_lock: Lock
963 button_unlock: Unlock
966 button_unlock: Unlock
964 button_download: Download
967 button_download: Download
965 button_list: List
968 button_list: List
966 button_view: View
969 button_view: View
967 button_move: Move
970 button_move: Move
968 button_move_and_follow: Move and follow
971 button_move_and_follow: Move and follow
969 button_back: Back
972 button_back: Back
970 button_cancel: Cancel
973 button_cancel: Cancel
971 button_activate: Activate
974 button_activate: Activate
972 button_sort: Sort
975 button_sort: Sort
973 button_log_time: Log time
976 button_log_time: Log time
974 button_rollback: Rollback to this version
977 button_rollback: Rollback to this version
975 button_watch: Watch
978 button_watch: Watch
976 button_unwatch: Unwatch
979 button_unwatch: Unwatch
977 button_reply: Reply
980 button_reply: Reply
978 button_archive: Archive
981 button_archive: Archive
979 button_unarchive: Unarchive
982 button_unarchive: Unarchive
980 button_reset: Reset
983 button_reset: Reset
981 button_rename: Rename
984 button_rename: Rename
982 button_change_password: Change password
985 button_change_password: Change password
983 button_copy: Copy
986 button_copy: Copy
984 button_copy_and_follow: Copy and follow
987 button_copy_and_follow: Copy and follow
985 button_annotate: Annotate
988 button_annotate: Annotate
986 button_update: Update
989 button_update: Update
987 button_configure: Configure
990 button_configure: Configure
988 button_quote: Quote
991 button_quote: Quote
989 button_duplicate: Duplicate
992 button_duplicate: Duplicate
990 button_show: Show
993 button_show: Show
991 button_hide: Hide
994 button_hide: Hide
992 button_edit_section: Edit this section
995 button_edit_section: Edit this section
993 button_export: Export
996 button_export: Export
994 button_delete_my_account: Delete my account
997 button_delete_my_account: Delete my account
995 button_close: Close
998 button_close: Close
996 button_reopen: Reopen
999 button_reopen: Reopen
997
1000
998 status_active: active
1001 status_active: active
999 status_registered: registered
1002 status_registered: registered
1000 status_locked: locked
1003 status_locked: locked
1001
1004
1002 project_status_active: active
1005 project_status_active: active
1003 project_status_closed: closed
1006 project_status_closed: closed
1004 project_status_archived: archived
1007 project_status_archived: archived
1005
1008
1006 version_status_open: open
1009 version_status_open: open
1007 version_status_locked: locked
1010 version_status_locked: locked
1008 version_status_closed: closed
1011 version_status_closed: closed
1009
1012
1010 field_active: Active
1013 field_active: Active
1011
1014
1012 text_select_mail_notifications: Select actions for which email notifications should be sent.
1015 text_select_mail_notifications: Select actions for which email notifications should be sent.
1013 text_regexp_info: eg. ^[A-Z0-9]+$
1016 text_regexp_info: eg. ^[A-Z0-9]+$
1014 text_min_max_length_info: 0 means no restriction
1017 text_min_max_length_info: 0 means no restriction
1015 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
1018 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
1016 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
1019 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
1017 text_workflow_edit: Select a role and a tracker to edit the workflow
1020 text_workflow_edit: Select a role and a tracker to edit the workflow
1018 text_are_you_sure: Are you sure?
1021 text_are_you_sure: Are you sure?
1019 text_journal_changed: "%{label} changed from %{old} to %{new}"
1022 text_journal_changed: "%{label} changed from %{old} to %{new}"
1020 text_journal_changed_no_detail: "%{label} updated"
1023 text_journal_changed_no_detail: "%{label} updated"
1021 text_journal_set_to: "%{label} set to %{value}"
1024 text_journal_set_to: "%{label} set to %{value}"
1022 text_journal_deleted: "%{label} deleted (%{old})"
1025 text_journal_deleted: "%{label} deleted (%{old})"
1023 text_journal_added: "%{label} %{value} added"
1026 text_journal_added: "%{label} %{value} added"
1024 text_tip_issue_begin_day: issue beginning this day
1027 text_tip_issue_begin_day: issue beginning this day
1025 text_tip_issue_end_day: issue ending this day
1028 text_tip_issue_end_day: issue ending this day
1026 text_tip_issue_begin_end_day: issue beginning and ending this day
1029 text_tip_issue_begin_end_day: issue beginning and ending this day
1027 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter.<br />Once saved, the identifier cannot be changed.'
1030 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter.<br />Once saved, the identifier cannot be changed.'
1028 text_caracters_maximum: "%{count} characters maximum."
1031 text_caracters_maximum: "%{count} characters maximum."
1029 text_caracters_minimum: "Must be at least %{count} characters long."
1032 text_caracters_minimum: "Must be at least %{count} characters long."
1030 text_length_between: "Length between %{min} and %{max} characters."
1033 text_length_between: "Length between %{min} and %{max} characters."
1031 text_tracker_no_workflow: No workflow defined for this tracker
1034 text_tracker_no_workflow: No workflow defined for this tracker
1032 text_unallowed_characters: Unallowed characters
1035 text_unallowed_characters: Unallowed characters
1033 text_comma_separated: Multiple values allowed (comma separated).
1036 text_comma_separated: Multiple values allowed (comma separated).
1034 text_line_separated: Multiple values allowed (one line for each value).
1037 text_line_separated: Multiple values allowed (one line for each value).
1035 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
1038 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
1036 text_issue_added: "Issue %{id} has been reported by %{author}."
1039 text_issue_added: "Issue %{id} has been reported by %{author}."
1037 text_issue_updated: "Issue %{id} has been updated by %{author}."
1040 text_issue_updated: "Issue %{id} has been updated by %{author}."
1038 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
1041 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
1039 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
1042 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
1040 text_issue_category_destroy_assignments: Remove category assignments
1043 text_issue_category_destroy_assignments: Remove category assignments
1041 text_issue_category_reassign_to: Reassign issues to this category
1044 text_issue_category_reassign_to: Reassign issues to this category
1042 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)."
1045 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)."
1043 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."
1046 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."
1044 text_load_default_configuration: Load the default configuration
1047 text_load_default_configuration: Load the default configuration
1045 text_status_changed_by_changeset: "Applied in changeset %{value}."
1048 text_status_changed_by_changeset: "Applied in changeset %{value}."
1046 text_time_logged_by_changeset: "Applied in changeset %{value}."
1049 text_time_logged_by_changeset: "Applied in changeset %{value}."
1047 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1050 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1048 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
1051 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
1049 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
1052 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
1050 text_select_project_modules: 'Select modules to enable for this project:'
1053 text_select_project_modules: 'Select modules to enable for this project:'
1051 text_default_administrator_account_changed: Default administrator account changed
1054 text_default_administrator_account_changed: Default administrator account changed
1052 text_file_repository_writable: Attachments directory writable
1055 text_file_repository_writable: Attachments directory writable
1053 text_plugin_assets_writable: Plugin assets directory writable
1056 text_plugin_assets_writable: Plugin assets directory writable
1054 text_rmagick_available: RMagick available (optional)
1057 text_rmagick_available: RMagick available (optional)
1055 text_convert_available: ImageMagick convert available (optional)
1058 text_convert_available: ImageMagick convert available (optional)
1056 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
1059 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
1057 text_destroy_time_entries: Delete reported hours
1060 text_destroy_time_entries: Delete reported hours
1058 text_assign_time_entries_to_project: Assign reported hours to the project
1061 text_assign_time_entries_to_project: Assign reported hours to the project
1059 text_reassign_time_entries: 'Reassign reported hours to this issue:'
1062 text_reassign_time_entries: 'Reassign reported hours to this issue:'
1060 text_user_wrote: "%{value} wrote:"
1063 text_user_wrote: "%{value} wrote:"
1061 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
1064 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
1062 text_enumeration_category_reassign_to: 'Reassign them to this value:'
1065 text_enumeration_category_reassign_to: 'Reassign them to this value:'
1063 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."
1066 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."
1064 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."
1067 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."
1065 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
1068 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
1066 text_custom_field_possible_values_info: 'One line for each value'
1069 text_custom_field_possible_values_info: 'One line for each value'
1067 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
1070 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
1068 text_wiki_page_nullify_children: "Keep child pages as root pages"
1071 text_wiki_page_nullify_children: "Keep child pages as root pages"
1069 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
1072 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
1070 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
1073 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
1071 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?"
1074 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?"
1072 text_zoom_in: Zoom in
1075 text_zoom_in: Zoom in
1073 text_zoom_out: Zoom out
1076 text_zoom_out: Zoom out
1074 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
1077 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
1075 text_scm_path_encoding_note: "Default: UTF-8"
1078 text_scm_path_encoding_note: "Default: UTF-8"
1076 text_subversion_repository_note: "Examples: file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1079 text_subversion_repository_note: "Examples: file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1077 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1080 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1078 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
1081 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
1079 text_scm_command: Command
1082 text_scm_command: Command
1080 text_scm_command_version: Version
1083 text_scm_command_version: Version
1081 text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
1084 text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
1082 text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
1085 text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
1083 text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
1086 text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
1084 text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
1087 text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
1085 text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
1088 text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
1086 text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
1089 text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
1087 text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1090 text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1088 text_project_closed: This project is closed and read-only.
1091 text_project_closed: This project is closed and read-only.
1089 text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1092 text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1090
1093
1091 default_role_manager: Manager
1094 default_role_manager: Manager
1092 default_role_developer: Developer
1095 default_role_developer: Developer
1093 default_role_reporter: Reporter
1096 default_role_reporter: Reporter
1094 default_tracker_bug: Bug
1097 default_tracker_bug: Bug
1095 default_tracker_feature: Feature
1098 default_tracker_feature: Feature
1096 default_tracker_support: Support
1099 default_tracker_support: Support
1097 default_issue_status_new: New
1100 default_issue_status_new: New
1098 default_issue_status_in_progress: In Progress
1101 default_issue_status_in_progress: In Progress
1099 default_issue_status_resolved: Resolved
1102 default_issue_status_resolved: Resolved
1100 default_issue_status_feedback: Feedback
1103 default_issue_status_feedback: Feedback
1101 default_issue_status_closed: Closed
1104 default_issue_status_closed: Closed
1102 default_issue_status_rejected: Rejected
1105 default_issue_status_rejected: Rejected
1103 default_doc_category_user: User documentation
1106 default_doc_category_user: User documentation
1104 default_doc_category_tech: Technical documentation
1107 default_doc_category_tech: Technical documentation
1105 default_priority_low: Low
1108 default_priority_low: Low
1106 default_priority_normal: Normal
1109 default_priority_normal: Normal
1107 default_priority_high: High
1110 default_priority_high: High
1108 default_priority_urgent: Urgent
1111 default_priority_urgent: Urgent
1109 default_priority_immediate: Immediate
1112 default_priority_immediate: Immediate
1110 default_activity_design: Design
1113 default_activity_design: Design
1111 default_activity_development: Development
1114 default_activity_development: Development
1112
1115
1113 enumeration_issue_priorities: Issue priorities
1116 enumeration_issue_priorities: Issue priorities
1114 enumeration_doc_categories: Document categories
1117 enumeration_doc_categories: Document categories
1115 enumeration_activities: Activities (time tracking)
1118 enumeration_activities: Activities (time tracking)
1116 enumeration_system_activity: System Activity
1119 enumeration_system_activity: System Activity
1117 description_filter: Filter
1120 description_filter: Filter
1118 description_search: Searchfield
1121 description_search: Searchfield
1119 description_choose_project: Projects
1122 description_choose_project: Projects
1120 description_project_scope: Search scope
1123 description_project_scope: Search scope
1121 description_notes: Notes
1124 description_notes: Notes
1122 description_message_content: Message content
1125 description_message_content: Message content
1123 description_query_sort_criteria_attribute: Sort attribute
1126 description_query_sort_criteria_attribute: Sort attribute
1124 description_query_sort_criteria_direction: Sort direction
1127 description_query_sort_criteria_direction: Sort direction
1125 description_user_mail_notification: Mail notification settings
1128 description_user_mail_notification: Mail notification settings
1126 description_available_columns: Available Columns
1129 description_available_columns: Available Columns
1127 description_selected_columns: Selected Columns
1130 description_selected_columns: Selected Columns
1128 description_all_columns: All Columns
1131 description_all_columns: All Columns
1129 description_issue_category_reassign: Choose issue category
1132 description_issue_category_reassign: Choose issue category
1130 description_wiki_subpages_reassign: Choose new parent page
1133 description_wiki_subpages_reassign: Choose new parent page
1131 description_date_range_list: Choose range from list
1134 description_date_range_list: Choose range from list
1132 description_date_range_interval: Choose range by selecting start and end date
1135 description_date_range_interval: Choose range by selecting start and end date
1133 description_date_from: Enter start date
1136 description_date_from: Enter start date
1134 description_date_to: Enter end date
1137 description_date_to: Enter end date
1135 text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
1138 text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
@@ -1,1155 +1,1156
1 # French translations for Ruby on Rails
1 # French translations for Ruby on Rails
2 # by Christian Lescuyer (christian@flyingcoders.com)
2 # by Christian Lescuyer (christian@flyingcoders.com)
3 # contributor: Sebastien Grosjean - ZenCocoon.com
3 # contributor: Sebastien Grosjean - ZenCocoon.com
4 # contributor: Thibaut Cuvelier - Developpez.com
4 # contributor: Thibaut Cuvelier - Developpez.com
5
5
6 fr:
6 fr:
7 direction: ltr
7 direction: ltr
8 date:
8 date:
9 formats:
9 formats:
10 default: "%d/%m/%Y"
10 default: "%d/%m/%Y"
11 short: "%e %b"
11 short: "%e %b"
12 long: "%e %B %Y"
12 long: "%e %B %Y"
13 long_ordinal: "%e %B %Y"
13 long_ordinal: "%e %B %Y"
14 only_day: "%e"
14 only_day: "%e"
15
15
16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
18
18
19 # Don't forget the nil at the beginning; there's no such thing as a 0th month
19 # Don't forget the nil at the beginning; there's no such thing as a 0th month
20 month_names: [~, janvier, fΓ©vrier, mars, avril, mai, juin, juillet, aoΓ»t, septembre, octobre, novembre, dΓ©cembre]
20 month_names: [~, janvier, fΓ©vrier, mars, avril, mai, juin, juillet, aoΓ»t, septembre, octobre, novembre, dΓ©cembre]
21 abbr_month_names: [~, jan., fΓ©v., mar., avr., mai, juin, juil., aoΓ»t, sept., oct., nov., dΓ©c.]
21 abbr_month_names: [~, jan., fΓ©v., mar., avr., mai, juin, juil., aoΓ»t, sept., oct., nov., dΓ©c.]
22 # Used in date_select and datime_select.
22 # Used in date_select and datime_select.
23 order:
23 order:
24 - :day
24 - :day
25 - :month
25 - :month
26 - :year
26 - :year
27
27
28 time:
28 time:
29 formats:
29 formats:
30 default: "%d/%m/%Y %H:%M"
30 default: "%d/%m/%Y %H:%M"
31 time: "%H:%M"
31 time: "%H:%M"
32 short: "%d %b %H:%M"
32 short: "%d %b %H:%M"
33 long: "%A %d %B %Y %H:%M:%S %Z"
33 long: "%A %d %B %Y %H:%M:%S %Z"
34 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
34 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
35 only_second: "%S"
35 only_second: "%S"
36 am: 'am'
36 am: 'am'
37 pm: 'pm'
37 pm: 'pm'
38
38
39 datetime:
39 datetime:
40 distance_in_words:
40 distance_in_words:
41 half_a_minute: "30 secondes"
41 half_a_minute: "30 secondes"
42 less_than_x_seconds:
42 less_than_x_seconds:
43 zero: "moins d'une seconde"
43 zero: "moins d'une seconde"
44 one: "moins d'uneΒ seconde"
44 one: "moins d'uneΒ seconde"
45 other: "moins de %{count}Β secondes"
45 other: "moins de %{count}Β secondes"
46 x_seconds:
46 x_seconds:
47 one: "1Β seconde"
47 one: "1Β seconde"
48 other: "%{count}Β secondes"
48 other: "%{count}Β secondes"
49 less_than_x_minutes:
49 less_than_x_minutes:
50 zero: "moins d'une minute"
50 zero: "moins d'une minute"
51 one: "moins d'uneΒ minute"
51 one: "moins d'uneΒ minute"
52 other: "moins de %{count}Β minutes"
52 other: "moins de %{count}Β minutes"
53 x_minutes:
53 x_minutes:
54 one: "1Β minute"
54 one: "1Β minute"
55 other: "%{count}Β minutes"
55 other: "%{count}Β minutes"
56 about_x_hours:
56 about_x_hours:
57 one: "environ une heure"
57 one: "environ une heure"
58 other: "environ %{count}Β heures"
58 other: "environ %{count}Β heures"
59 x_hours:
59 x_hours:
60 one: "une heure"
60 one: "une heure"
61 other: "%{count}Β heures"
61 other: "%{count}Β heures"
62 x_days:
62 x_days:
63 one: "unΒ jour"
63 one: "unΒ jour"
64 other: "%{count}Β jours"
64 other: "%{count}Β jours"
65 about_x_months:
65 about_x_months:
66 one: "environ un mois"
66 one: "environ un mois"
67 other: "environ %{count}Β mois"
67 other: "environ %{count}Β mois"
68 x_months:
68 x_months:
69 one: "unΒ mois"
69 one: "unΒ mois"
70 other: "%{count}Β mois"
70 other: "%{count}Β mois"
71 about_x_years:
71 about_x_years:
72 one: "environ un an"
72 one: "environ un an"
73 other: "environ %{count}Β ans"
73 other: "environ %{count}Β ans"
74 over_x_years:
74 over_x_years:
75 one: "plus d'un an"
75 one: "plus d'un an"
76 other: "plus de %{count}Β ans"
76 other: "plus de %{count}Β ans"
77 almost_x_years:
77 almost_x_years:
78 one: "presqu'un an"
78 one: "presqu'un an"
79 other: "presque %{count} ans"
79 other: "presque %{count} ans"
80 prompts:
80 prompts:
81 year: "AnnΓ©e"
81 year: "AnnΓ©e"
82 month: "Mois"
82 month: "Mois"
83 day: "Jour"
83 day: "Jour"
84 hour: "Heure"
84 hour: "Heure"
85 minute: "Minute"
85 minute: "Minute"
86 second: "Seconde"
86 second: "Seconde"
87
87
88 number:
88 number:
89 format:
89 format:
90 precision: 3
90 precision: 3
91 separator: ','
91 separator: ','
92 delimiter: 'Β '
92 delimiter: 'Β '
93 currency:
93 currency:
94 format:
94 format:
95 unit: '€'
95 unit: '€'
96 precision: 2
96 precision: 2
97 format: '%nΒ %u'
97 format: '%nΒ %u'
98 human:
98 human:
99 format:
99 format:
100 precision: 3
100 precision: 3
101 storage_units:
101 storage_units:
102 format: "%n %u"
102 format: "%n %u"
103 units:
103 units:
104 byte:
104 byte:
105 one: "octet"
105 one: "octet"
106 other: "octets"
106 other: "octets"
107 kb: "ko"
107 kb: "ko"
108 mb: "Mo"
108 mb: "Mo"
109 gb: "Go"
109 gb: "Go"
110 tb: "To"
110 tb: "To"
111
111
112 support:
112 support:
113 array:
113 array:
114 sentence_connector: 'et'
114 sentence_connector: 'et'
115 skip_last_comma: true
115 skip_last_comma: true
116 word_connector: ", "
116 word_connector: ", "
117 two_words_connector: " et "
117 two_words_connector: " et "
118 last_word_connector: " et "
118 last_word_connector: " et "
119
119
120 activerecord:
120 activerecord:
121 errors:
121 errors:
122 template:
122 template:
123 header:
123 header:
124 one: "Impossible d'enregistrer %{model} : une erreur"
124 one: "Impossible d'enregistrer %{model} : une erreur"
125 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
125 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
126 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
126 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
127 messages:
127 messages:
128 inclusion: "n'est pas inclus(e) dans la liste"
128 inclusion: "n'est pas inclus(e) dans la liste"
129 exclusion: "n'est pas disponible"
129 exclusion: "n'est pas disponible"
130 invalid: "n'est pas valide"
130 invalid: "n'est pas valide"
131 confirmation: "ne concorde pas avec la confirmation"
131 confirmation: "ne concorde pas avec la confirmation"
132 accepted: "doit Γͺtre acceptΓ©(e)"
132 accepted: "doit Γͺtre acceptΓ©(e)"
133 empty: "doit Γͺtre renseignΓ©(e)"
133 empty: "doit Γͺtre renseignΓ©(e)"
134 blank: "doit Γͺtre renseignΓ©(e)"
134 blank: "doit Γͺtre renseignΓ©(e)"
135 too_long: "est trop long (pas plus de %{count} caractères)"
135 too_long: "est trop long (pas plus de %{count} caractères)"
136 too_short: "est trop court (au moins %{count} caractères)"
136 too_short: "est trop court (au moins %{count} caractères)"
137 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
137 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
138 taken: "est dΓ©jΓ  utilisΓ©"
138 taken: "est dΓ©jΓ  utilisΓ©"
139 not_a_number: "n'est pas un nombre"
139 not_a_number: "n'est pas un nombre"
140 not_a_date: "n'est pas une date valide"
140 not_a_date: "n'est pas une date valide"
141 greater_than: "doit Γͺtre supΓ©rieur Γ  %{count}"
141 greater_than: "doit Γͺtre supΓ©rieur Γ  %{count}"
142 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  %{count}"
142 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  %{count}"
143 equal_to: "doit Γͺtre Γ©gal Γ  %{count}"
143 equal_to: "doit Γͺtre Γ©gal Γ  %{count}"
144 less_than: "doit Γͺtre infΓ©rieur Γ  %{count}"
144 less_than: "doit Γͺtre infΓ©rieur Γ  %{count}"
145 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  %{count}"
145 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  %{count}"
146 odd: "doit Γͺtre impair"
146 odd: "doit Γͺtre impair"
147 even: "doit Γͺtre pair"
147 even: "doit Γͺtre pair"
148 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
148 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
149 not_same_project: "n'appartient pas au mΓͺme projet"
149 not_same_project: "n'appartient pas au mΓͺme projet"
150 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
150 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
151 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
151 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
152 earlier_than_minimum_start_date: "ne peut pas Γͺtre antΓ©rieure au %{date} Γ  cause des demandes qui prΓ©cΓ¨dent"
152 earlier_than_minimum_start_date: "ne peut pas Γͺtre antΓ©rieure au %{date} Γ  cause des demandes qui prΓ©cΓ¨dent"
153
153
154 actionview_instancetag_blank_option: Choisir
154 actionview_instancetag_blank_option: Choisir
155
155
156 general_text_No: 'Non'
156 general_text_No: 'Non'
157 general_text_Yes: 'Oui'
157 general_text_Yes: 'Oui'
158 general_text_no: 'non'
158 general_text_no: 'non'
159 general_text_yes: 'oui'
159 general_text_yes: 'oui'
160 general_lang_name: 'French (FranΓ§ais)'
160 general_lang_name: 'French (FranΓ§ais)'
161 general_csv_separator: ';'
161 general_csv_separator: ';'
162 general_csv_decimal_separator: ','
162 general_csv_decimal_separator: ','
163 general_csv_encoding: ISO-8859-1
163 general_csv_encoding: ISO-8859-1
164 general_pdf_fontname: freesans
164 general_pdf_fontname: freesans
165 general_first_day_of_week: '1'
165 general_first_day_of_week: '1'
166
166
167 notice_account_updated: Le compte a été mis à jour avec succès.
167 notice_account_updated: Le compte a été mis à jour avec succès.
168 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
168 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
169 notice_account_password_updated: Mot de passe mis à jour avec succès.
169 notice_account_password_updated: Mot de passe mis à jour avec succès.
170 notice_account_wrong_password: Mot de passe incorrect
170 notice_account_wrong_password: Mot de passe incorrect
171 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ© Γ  l'adresse %{email}.
171 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ© Γ  l'adresse %{email}.
172 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
172 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
173 notice_account_not_activated_yet: Vous n'avez pas encore activΓ© votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez <a href="%{url}">cliquer sur ce lien</a>.
173 notice_account_not_activated_yet: Vous n'avez pas encore activΓ© votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez <a href="%{url}">cliquer sur ce lien</a>.
174 notice_account_locked: Votre compte est verrouillΓ©.
174 notice_account_locked: Votre compte est verrouillΓ©.
175 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
175 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
176 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
176 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
177 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
177 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
178 notice_successful_create: Création effectuée avec succès.
178 notice_successful_create: Création effectuée avec succès.
179 notice_successful_update: Mise à jour effectuée avec succès.
179 notice_successful_update: Mise à jour effectuée avec succès.
180 notice_successful_delete: Suppression effectuée avec succès.
180 notice_successful_delete: Suppression effectuée avec succès.
181 notice_successful_connection: Connexion rΓ©ussie.
181 notice_successful_connection: Connexion rΓ©ussie.
182 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
182 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
183 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
183 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
184 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ  accΓ©der Γ  cette page."
184 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ  accΓ©der Γ  cette page."
185 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
185 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
186 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  %{value}"
186 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  %{value}"
187 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
187 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
188 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux Atom a été réinitialisée."
188 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux Atom a été réinitialisée."
189 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
189 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
190 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : %{ids}."
190 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : %{ids}."
191 notice_failed_to_save_time_entries: "%{count} temps passΓ©(s) sur les %{total} sΓ©lectionnΓ©s n'ont pas pu Γͺtre mis Γ  jour: %{ids}."
191 notice_failed_to_save_time_entries: "%{count} temps passΓ©(s) sur les %{total} sΓ©lectionnΓ©s n'ont pas pu Γͺtre mis Γ  jour: %{ids}."
192 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
192 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
193 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
193 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
194 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
194 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
195 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
195 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
196 notice_unable_delete_version: Impossible de supprimer cette version.
196 notice_unable_delete_version: Impossible de supprimer cette version.
197 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
197 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
198 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
198 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
199 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})"
199 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})"
200 notice_issue_successful_create: "Demande %{id} créée."
200 notice_issue_successful_create: "Demande %{id} créée."
201 notice_issue_update_conflict: "La demande a Γ©tΓ© mise Γ  jour par un autre utilisateur pendant que vous la modifiez."
201 notice_issue_update_conflict: "La demande a Γ©tΓ© mise Γ  jour par un autre utilisateur pendant que vous la modifiez."
202 notice_account_deleted: "Votre compte a Γ©tΓ© dΓ©finitivement supprimΓ©."
202 notice_account_deleted: "Votre compte a Γ©tΓ© dΓ©finitivement supprimΓ©."
203 notice_user_successful_create: "Utilisateur %{id} créé."
203 notice_user_successful_create: "Utilisateur %{id} créé."
204 notice_new_password_must_be_different: Votre nouveau mot de passe doit Γͺtre diffΓ©rent de votre mot de passe actuel
204 notice_new_password_must_be_different: Votre nouveau mot de passe doit Γͺtre diffΓ©rent de votre mot de passe actuel
205
205
206 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}"
206 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}"
207 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
207 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
208 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
208 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
209 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
209 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
210 error_scm_annotate_big_text_file: Cette entrΓ©e ne peut pas Γͺtre annotΓ©e car elle excΓ¨de la taille maximale.
210 error_scm_annotate_big_text_file: Cette entrΓ©e ne peut pas Γͺtre annotΓ©e car elle excΓ¨de la taille maximale.
211 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
211 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
212 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
212 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
213 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
213 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
214 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
214 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
215 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
215 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
216 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
216 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
217 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
217 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
218 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
218 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
219 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
219 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
220 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
220 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
221 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
221 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
222 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
222 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
223 error_unable_to_connect: Connexion impossible (%{value})
223 error_unable_to_connect: Connexion impossible (%{value})
224 error_attachment_too_big: Ce fichier ne peut pas Γͺtre attachΓ© car il excΓ¨de la taille maximale autorisΓ©e (%{max_size})
224 error_attachment_too_big: Ce fichier ne peut pas Γͺtre attachΓ© car il excΓ¨de la taille maximale autorisΓ©e (%{max_size})
225 error_session_expired: "Votre session a expirΓ©. Veuillez vous reconnecter."
225 error_session_expired: "Votre session a expirΓ©. Veuillez vous reconnecter."
226 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
226 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
227 error_password_expired: "Votre mot de passe a expirΓ© ou nΓ©cessite d'Γͺtre changΓ©."
227 error_password_expired: "Votre mot de passe a expirΓ© ou nΓ©cessite d'Γͺtre changΓ©."
228
228
229 mail_subject_lost_password: "Votre mot de passe %{value}"
229 mail_subject_lost_password: "Votre mot de passe %{value}"
230 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
230 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
231 mail_subject_register: "Activation de votre compte %{value}"
231 mail_subject_register: "Activation de votre compte %{value}"
232 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
232 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
233 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
233 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
234 mail_body_account_information: Paramètres de connexion de votre compte
234 mail_body_account_information: Paramètres de connexion de votre compte
235 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
235 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
236 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
236 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
237 mail_subject_reminder: "%{count} demande(s) arrivent Γ  Γ©chΓ©ance (%{days})"
237 mail_subject_reminder: "%{count} demande(s) arrivent Γ  Γ©chΓ©ance (%{days})"
238 mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les %{days} prochains jours :"
238 mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les %{days} prochains jours :"
239 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e"
239 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e"
240 mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}."
240 mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}."
241 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ  jour"
241 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ  jour"
242 mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ  jour par %{author}."
242 mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ  jour par %{author}."
243
243
244 field_name: Nom
244 field_name: Nom
245 field_description: Description
245 field_description: Description
246 field_summary: RΓ©sumΓ©
246 field_summary: RΓ©sumΓ©
247 field_is_required: Obligatoire
247 field_is_required: Obligatoire
248 field_firstname: PrΓ©nom
248 field_firstname: PrΓ©nom
249 field_lastname: Nom
249 field_lastname: Nom
250 field_mail: Email
250 field_mail: Email
251 field_address: Email
251 field_address: Email
252 field_filename: Fichier
252 field_filename: Fichier
253 field_filesize: Taille
253 field_filesize: Taille
254 field_downloads: TΓ©lΓ©chargements
254 field_downloads: TΓ©lΓ©chargements
255 field_author: Auteur
255 field_author: Auteur
256 field_created_on: Créé
256 field_created_on: Créé
257 field_updated_on: Mis-Γ -jour
257 field_updated_on: Mis-Γ -jour
258 field_closed_on: FermΓ©
258 field_closed_on: FermΓ©
259 field_field_format: Format
259 field_field_format: Format
260 field_is_for_all: Pour tous les projets
260 field_is_for_all: Pour tous les projets
261 field_possible_values: Valeurs possibles
261 field_possible_values: Valeurs possibles
262 field_regexp: Expression régulière
262 field_regexp: Expression régulière
263 field_min_length: Longueur minimum
263 field_min_length: Longueur minimum
264 field_max_length: Longueur maximum
264 field_max_length: Longueur maximum
265 field_value: Valeur
265 field_value: Valeur
266 field_category: CatΓ©gorie
266 field_category: CatΓ©gorie
267 field_title: Titre
267 field_title: Titre
268 field_project: Projet
268 field_project: Projet
269 field_issue: Demande
269 field_issue: Demande
270 field_status: Statut
270 field_status: Statut
271 field_notes: Notes
271 field_notes: Notes
272 field_is_closed: Demande fermΓ©e
272 field_is_closed: Demande fermΓ©e
273 field_is_default: Valeur par dΓ©faut
273 field_is_default: Valeur par dΓ©faut
274 field_tracker: Tracker
274 field_tracker: Tracker
275 field_subject: Sujet
275 field_subject: Sujet
276 field_due_date: EchΓ©ance
276 field_due_date: EchΓ©ance
277 field_assigned_to: AssignΓ© Γ 
277 field_assigned_to: AssignΓ© Γ 
278 field_priority: PrioritΓ©
278 field_priority: PrioritΓ©
279 field_fixed_version: Version cible
279 field_fixed_version: Version cible
280 field_user: Utilisateur
280 field_user: Utilisateur
281 field_principal: Principal
281 field_principal: Principal
282 field_role: RΓ΄le
282 field_role: RΓ΄le
283 field_homepage: Site web
283 field_homepage: Site web
284 field_is_public: Public
284 field_is_public: Public
285 field_parent: Sous-projet de
285 field_parent: Sous-projet de
286 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
286 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
287 field_login: Identifiant
287 field_login: Identifiant
288 field_mail_notification: Notifications par mail
288 field_mail_notification: Notifications par mail
289 field_admin: Administrateur
289 field_admin: Administrateur
290 field_last_login_on: Dernière connexion
290 field_last_login_on: Dernière connexion
291 field_language: Langue
291 field_language: Langue
292 field_effective_date: Date
292 field_effective_date: Date
293 field_password: Mot de passe
293 field_password: Mot de passe
294 field_new_password: Nouveau mot de passe
294 field_new_password: Nouveau mot de passe
295 field_password_confirmation: Confirmation
295 field_password_confirmation: Confirmation
296 field_version: Version
296 field_version: Version
297 field_type: Type
297 field_type: Type
298 field_host: HΓ΄te
298 field_host: HΓ΄te
299 field_port: Port
299 field_port: Port
300 field_account: Compte
300 field_account: Compte
301 field_base_dn: Base DN
301 field_base_dn: Base DN
302 field_attr_login: Attribut Identifiant
302 field_attr_login: Attribut Identifiant
303 field_attr_firstname: Attribut PrΓ©nom
303 field_attr_firstname: Attribut PrΓ©nom
304 field_attr_lastname: Attribut Nom
304 field_attr_lastname: Attribut Nom
305 field_attr_mail: Attribut Email
305 field_attr_mail: Attribut Email
306 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
306 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
307 field_start_date: DΓ©but
307 field_start_date: DΓ©but
308 field_done_ratio: "% rΓ©alisΓ©"
308 field_done_ratio: "% rΓ©alisΓ©"
309 field_auth_source: Mode d'authentification
309 field_auth_source: Mode d'authentification
310 field_hide_mail: Cacher mon adresse mail
310 field_hide_mail: Cacher mon adresse mail
311 field_comments: Commentaire
311 field_comments: Commentaire
312 field_url: URL
312 field_url: URL
313 field_start_page: Page de dΓ©marrage
313 field_start_page: Page de dΓ©marrage
314 field_subproject: Sous-projet
314 field_subproject: Sous-projet
315 field_hours: Heures
315 field_hours: Heures
316 field_activity: ActivitΓ©
316 field_activity: ActivitΓ©
317 field_spent_on: Date
317 field_spent_on: Date
318 field_identifier: Identifiant
318 field_identifier: Identifiant
319 field_is_filter: UtilisΓ© comme filtre
319 field_is_filter: UtilisΓ© comme filtre
320 field_issue_to: Demande liΓ©e
320 field_issue_to: Demande liΓ©e
321 field_delay: Retard
321 field_delay: Retard
322 field_assignable: Demandes assignables Γ  ce rΓ΄le
322 field_assignable: Demandes assignables Γ  ce rΓ΄le
323 field_redirect_existing_links: Rediriger les liens existants
323 field_redirect_existing_links: Rediriger les liens existants
324 field_estimated_hours: Temps estimΓ©
324 field_estimated_hours: Temps estimΓ©
325 field_column_names: Colonnes
325 field_column_names: Colonnes
326 field_time_entries: Temps passΓ©
326 field_time_entries: Temps passΓ©
327 field_time_zone: Fuseau horaire
327 field_time_zone: Fuseau horaire
328 field_searchable: UtilisΓ© pour les recherches
328 field_searchable: UtilisΓ© pour les recherches
329 field_default_value: Valeur par dΓ©faut
329 field_default_value: Valeur par dΓ©faut
330 field_comments_sorting: Afficher les commentaires
330 field_comments_sorting: Afficher les commentaires
331 field_parent_title: Page parent
331 field_parent_title: Page parent
332 field_editable: Modifiable
332 field_editable: Modifiable
333 field_watcher: Observateur
333 field_watcher: Observateur
334 field_identity_url: URL OpenID
334 field_identity_url: URL OpenID
335 field_content: Contenu
335 field_content: Contenu
336 field_group_by: Grouper par
336 field_group_by: Grouper par
337 field_sharing: Partage
337 field_sharing: Partage
338 field_parent_issue: TΓ’che parente
338 field_parent_issue: TΓ’che parente
339 field_member_of_group: Groupe de l'assignΓ©
339 field_member_of_group: Groupe de l'assignΓ©
340 field_assigned_to_role: RΓ΄le de l'assignΓ©
340 field_assigned_to_role: RΓ΄le de l'assignΓ©
341 field_text: Champ texte
341 field_text: Champ texte
342 field_visible: Visible
342 field_visible: Visible
343 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
343 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
344 field_issues_visibility: VisibilitΓ© des demandes
344 field_issues_visibility: VisibilitΓ© des demandes
345 field_is_private: PrivΓ©e
345 field_is_private: PrivΓ©e
346 field_commit_logs_encoding: Encodage des messages de commit
346 field_commit_logs_encoding: Encodage des messages de commit
347 field_scm_path_encoding: Encodage des chemins
347 field_scm_path_encoding: Encodage des chemins
348 field_path_to_repository: Chemin du dΓ©pΓ΄t
348 field_path_to_repository: Chemin du dΓ©pΓ΄t
349 field_root_directory: RΓ©pertoire racine
349 field_root_directory: RΓ©pertoire racine
350 field_cvsroot: CVSROOT
350 field_cvsroot: CVSROOT
351 field_cvs_module: Module
351 field_cvs_module: Module
352 field_repository_is_default: DΓ©pΓ΄t principal
352 field_repository_is_default: DΓ©pΓ΄t principal
353 field_multiple: Valeurs multiples
353 field_multiple: Valeurs multiples
354 field_auth_source_ldap_filter: Filtre LDAP
354 field_auth_source_ldap_filter: Filtre LDAP
355 field_core_fields: Champs standards
355 field_core_fields: Champs standards
356 field_timeout: "Timeout (en secondes)"
356 field_timeout: "Timeout (en secondes)"
357 field_board_parent: Forum parent
357 field_board_parent: Forum parent
358 field_private_notes: Notes privΓ©es
358 field_private_notes: Notes privΓ©es
359 field_inherit_members: HΓ©riter les membres
359 field_inherit_members: HΓ©riter les membres
360 field_generate_password: GΓ©nΓ©rer un mot de passe
360 field_generate_password: GΓ©nΓ©rer un mot de passe
361 field_must_change_passwd: Doit changer de mot de passe Γ  la prochaine connexion
361 field_must_change_passwd: Doit changer de mot de passe Γ  la prochaine connexion
362 field_default_status: Statut par dΓ©faut
362 field_default_status: Statut par dΓ©faut
363 field_users_visibility: VisibilitΓ© des utilisateurs
363 field_users_visibility: VisibilitΓ© des utilisateurs
364
364
365 setting_app_title: Titre de l'application
365 setting_app_title: Titre de l'application
366 setting_app_subtitle: Sous-titre de l'application
366 setting_app_subtitle: Sous-titre de l'application
367 setting_welcome_text: Texte d'accueil
367 setting_welcome_text: Texte d'accueil
368 setting_default_language: Langue par dΓ©faut
368 setting_default_language: Langue par dΓ©faut
369 setting_login_required: Authentification obligatoire
369 setting_login_required: Authentification obligatoire
370 setting_self_registration: Inscription des nouveaux utilisateurs
370 setting_self_registration: Inscription des nouveaux utilisateurs
371 setting_attachment_max_size: Taille maximale des fichiers
371 setting_attachment_max_size: Taille maximale des fichiers
372 setting_issues_export_limit: Limite d'exportation des demandes
372 setting_issues_export_limit: Limite d'exportation des demandes
373 setting_mail_from: Adresse d'Γ©mission
373 setting_mail_from: Adresse d'Γ©mission
374 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
374 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
375 setting_plain_text_mail: Mail en texte brut (non HTML)
375 setting_plain_text_mail: Mail en texte brut (non HTML)
376 setting_host_name: Nom d'hΓ΄te et chemin
376 setting_host_name: Nom d'hΓ΄te et chemin
377 setting_text_formatting: Formatage du texte
377 setting_text_formatting: Formatage du texte
378 setting_wiki_compression: Compression de l'historique des pages wiki
378 setting_wiki_compression: Compression de l'historique des pages wiki
379 setting_feeds_limit: Nombre maximal d'Γ©lΓ©ments dans les flux Atom
379 setting_feeds_limit: Nombre maximal d'Γ©lΓ©ments dans les flux Atom
380 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
380 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
381 setting_autofetch_changesets: RΓ©cupΓ©ration automatique des commits
381 setting_autofetch_changesets: RΓ©cupΓ©ration automatique des commits
382 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
382 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
383 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
383 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
384 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
384 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
385 setting_autologin: DurΓ©e maximale de connexion automatique
385 setting_autologin: DurΓ©e maximale de connexion automatique
386 setting_date_format: Format de date
386 setting_date_format: Format de date
387 setting_time_format: Format d'heure
387 setting_time_format: Format d'heure
388 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
388 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
389 setting_cross_project_subtasks: Autoriser les sous-tΓ’ches dans des projets diffΓ©rents
389 setting_cross_project_subtasks: Autoriser les sous-tΓ’ches dans des projets diffΓ©rents
390 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
390 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
391 setting_repositories_encodings: Encodages des fichiers et des dΓ©pΓ΄ts
391 setting_repositories_encodings: Encodages des fichiers et des dΓ©pΓ΄ts
392 setting_emails_header: En-tΓͺte des emails
392 setting_emails_header: En-tΓͺte des emails
393 setting_emails_footer: Pied-de-page des emails
393 setting_emails_footer: Pied-de-page des emails
394 setting_protocol: Protocole
394 setting_protocol: Protocole
395 setting_per_page_options: Options d'objets affichΓ©s par page
395 setting_per_page_options: Options d'objets affichΓ©s par page
396 setting_user_format: Format d'affichage des utilisateurs
396 setting_user_format: Format d'affichage des utilisateurs
397 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
397 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
398 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
398 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
399 setting_enabled_scm: SCM activΓ©s
399 setting_enabled_scm: SCM activΓ©s
400 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
400 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
401 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
401 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
402 setting_mail_handler_api_key: ClΓ© de protection de l'API
402 setting_mail_handler_api_key: ClΓ© de protection de l'API
403 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
403 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
404 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
404 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
405 setting_gravatar_default: Image Gravatar par dΓ©faut
405 setting_gravatar_default: Image Gravatar par dΓ©faut
406 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
406 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
407 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
407 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
408 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
408 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
409 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
409 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
410 setting_password_max_age: Expiration des mots de passe après
410 setting_password_max_age: Expiration des mots de passe après
411 setting_password_min_length: Longueur minimum des mots de passe
411 setting_password_min_length: Longueur minimum des mots de passe
412 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
412 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
413 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
413 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
414 setting_issue_done_ratio: Calcul de l'avancement des demandes
414 setting_issue_done_ratio: Calcul de l'avancement des demandes
415 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
415 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
416 setting_issue_done_ratio_issue_status: Utiliser le statut
416 setting_issue_done_ratio_issue_status: Utiliser le statut
417 setting_start_of_week: Jour de dΓ©but des calendriers
417 setting_start_of_week: Jour de dΓ©but des calendriers
418 setting_rest_api_enabled: Activer l'API REST
418 setting_rest_api_enabled: Activer l'API REST
419 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
419 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
420 setting_default_notification_option: Option de notification par dΓ©faut
420 setting_default_notification_option: Option de notification par dΓ©faut
421 setting_commit_logtime_enabled: Permettre la saisie de temps
421 setting_commit_logtime_enabled: Permettre la saisie de temps
422 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
422 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
423 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
423 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
424 setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
424 setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
425 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
425 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
426 setting_commit_cross_project_ref: Permettre le rΓ©fΓ©rencement et la rΓ©solution des demandes de tous les autres projets
426 setting_commit_cross_project_ref: Permettre le rΓ©fΓ©rencement et la rΓ©solution des demandes de tous les autres projets
427 setting_unsubscribe: Permettre aux utilisateurs de supprimer leur propre compte
427 setting_unsubscribe: Permettre aux utilisateurs de supprimer leur propre compte
428 setting_session_lifetime: DurΓ©e de vie maximale des sessions
428 setting_session_lifetime: DurΓ©e de vie maximale des sessions
429 setting_session_timeout: DurΓ©e maximale d'inactivitΓ©
429 setting_session_timeout: DurΓ©e maximale d'inactivitΓ©
430 setting_thumbnails_enabled: Afficher les vignettes des images
430 setting_thumbnails_enabled: Afficher les vignettes des images
431 setting_thumbnails_size: Taille des vignettes (en pixels)
431 setting_thumbnails_size: Taille des vignettes (en pixels)
432 setting_non_working_week_days: Jours non travaillΓ©s
432 setting_non_working_week_days: Jours non travaillΓ©s
433 setting_jsonp_enabled: Activer le support JSONP
433 setting_jsonp_enabled: Activer le support JSONP
434 setting_default_projects_tracker_ids: Trackers par dΓ©faut pour les nouveaux projets
434 setting_default_projects_tracker_ids: Trackers par dΓ©faut pour les nouveaux projets
435 setting_mail_handler_excluded_filenames: Exclure les fichiers attachΓ©s par leur nom
435 setting_mail_handler_excluded_filenames: Exclure les fichiers attachΓ©s par leur nom
436 setting_force_default_language_for_anonymous: Forcer la langue par dΓ©fault pour les utilisateurs anonymes
436 setting_force_default_language_for_anonymous: Forcer la langue par dΓ©fault pour les utilisateurs anonymes
437 setting_force_default_language_for_loggedin: Forcer la langue par dΓ©fault pour les utilisateurs identifiΓ©s
437 setting_force_default_language_for_loggedin: Forcer la langue par dΓ©fault pour les utilisateurs identifiΓ©s
438 setting_link_copied_issue: Lier les demandes lors de la copie
438 setting_link_copied_issue: Lier les demandes lors de la copie
439 setting_max_additional_emails: Nombre maximal d'adresses email additionnelles
439 setting_max_additional_emails: Nombre maximal d'adresses email additionnelles
440 setting_search_results_per_page: RΓ©sultats de recherche affichΓ©s par page
440 setting_search_results_per_page: RΓ©sultats de recherche affichΓ©s par page
441
441
442 permission_add_project: CrΓ©er un projet
442 permission_add_project: CrΓ©er un projet
443 permission_add_subprojects: CrΓ©er des sous-projets
443 permission_add_subprojects: CrΓ©er des sous-projets
444 permission_edit_project: Modifier le projet
444 permission_edit_project: Modifier le projet
445 permission_close_project: Fermer / rΓ©ouvrir le projet
445 permission_close_project: Fermer / rΓ©ouvrir le projet
446 permission_select_project_modules: Choisir les modules
446 permission_select_project_modules: Choisir les modules
447 permission_manage_members: GΓ©rer les membres
447 permission_manage_members: GΓ©rer les membres
448 permission_manage_project_activities: GΓ©rer les activitΓ©s
448 permission_manage_project_activities: GΓ©rer les activitΓ©s
449 permission_manage_versions: GΓ©rer les versions
449 permission_manage_versions: GΓ©rer les versions
450 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
450 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
451 permission_view_issues: Voir les demandes
451 permission_view_issues: Voir les demandes
452 permission_add_issues: CrΓ©er des demandes
452 permission_add_issues: CrΓ©er des demandes
453 permission_edit_issues: Modifier les demandes
453 permission_edit_issues: Modifier les demandes
454 permission_copy_issues: Copier les demandes
454 permission_copy_issues: Copier les demandes
455 permission_manage_issue_relations: GΓ©rer les relations
455 permission_manage_issue_relations: GΓ©rer les relations
456 permission_set_issues_private: Rendre les demandes publiques ou privΓ©es
456 permission_set_issues_private: Rendre les demandes publiques ou privΓ©es
457 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privΓ©es
457 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privΓ©es
458 permission_add_issue_notes: Ajouter des notes
458 permission_add_issue_notes: Ajouter des notes
459 permission_edit_issue_notes: Modifier les notes
459 permission_edit_issue_notes: Modifier les notes
460 permission_edit_own_issue_notes: Modifier ses propres notes
460 permission_edit_own_issue_notes: Modifier ses propres notes
461 permission_view_private_notes: Voir les notes privΓ©es
461 permission_view_private_notes: Voir les notes privΓ©es
462 permission_set_notes_private: Rendre les notes privΓ©es
462 permission_set_notes_private: Rendre les notes privΓ©es
463 permission_move_issues: DΓ©placer les demandes
463 permission_move_issues: DΓ©placer les demandes
464 permission_delete_issues: Supprimer les demandes
464 permission_delete_issues: Supprimer les demandes
465 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
465 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
466 permission_save_queries: Sauvegarder les requΓͺtes
466 permission_save_queries: Sauvegarder les requΓͺtes
467 permission_view_gantt: Voir le gantt
467 permission_view_gantt: Voir le gantt
468 permission_view_calendar: Voir le calendrier
468 permission_view_calendar: Voir le calendrier
469 permission_view_issue_watchers: Voir la liste des observateurs
469 permission_view_issue_watchers: Voir la liste des observateurs
470 permission_add_issue_watchers: Ajouter des observateurs
470 permission_add_issue_watchers: Ajouter des observateurs
471 permission_delete_issue_watchers: Supprimer des observateurs
471 permission_delete_issue_watchers: Supprimer des observateurs
472 permission_log_time: Saisir le temps passΓ©
472 permission_log_time: Saisir le temps passΓ©
473 permission_view_time_entries: Voir le temps passΓ©
473 permission_view_time_entries: Voir le temps passΓ©
474 permission_edit_time_entries: Modifier les temps passΓ©s
474 permission_edit_time_entries: Modifier les temps passΓ©s
475 permission_edit_own_time_entries: Modifier son propre temps passΓ©
475 permission_edit_own_time_entries: Modifier son propre temps passΓ©
476 permission_manage_news: GΓ©rer les annonces
476 permission_manage_news: GΓ©rer les annonces
477 permission_comment_news: Commenter les annonces
477 permission_comment_news: Commenter les annonces
478 permission_view_documents: Voir les documents
478 permission_view_documents: Voir les documents
479 permission_add_documents: Ajouter des documents
479 permission_add_documents: Ajouter des documents
480 permission_edit_documents: Modifier les documents
480 permission_edit_documents: Modifier les documents
481 permission_delete_documents: Supprimer les documents
481 permission_delete_documents: Supprimer les documents
482 permission_manage_files: GΓ©rer les fichiers
482 permission_manage_files: GΓ©rer les fichiers
483 permission_view_files: Voir les fichiers
483 permission_view_files: Voir les fichiers
484 permission_manage_wiki: GΓ©rer le wiki
484 permission_manage_wiki: GΓ©rer le wiki
485 permission_rename_wiki_pages: Renommer les pages
485 permission_rename_wiki_pages: Renommer les pages
486 permission_delete_wiki_pages: Supprimer les pages
486 permission_delete_wiki_pages: Supprimer les pages
487 permission_view_wiki_pages: Voir le wiki
487 permission_view_wiki_pages: Voir le wiki
488 permission_view_wiki_edits: "Voir l'historique des modifications"
488 permission_view_wiki_edits: "Voir l'historique des modifications"
489 permission_edit_wiki_pages: Modifier les pages
489 permission_edit_wiki_pages: Modifier les pages
490 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
490 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
491 permission_protect_wiki_pages: ProtΓ©ger les pages
491 permission_protect_wiki_pages: ProtΓ©ger les pages
492 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
492 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
493 permission_browse_repository: Parcourir les sources
493 permission_browse_repository: Parcourir les sources
494 permission_view_changesets: Voir les rΓ©visions
494 permission_view_changesets: Voir les rΓ©visions
495 permission_commit_access: Droit de commit
495 permission_commit_access: Droit de commit
496 permission_manage_boards: GΓ©rer les forums
496 permission_manage_boards: GΓ©rer les forums
497 permission_view_messages: Voir les messages
497 permission_view_messages: Voir les messages
498 permission_add_messages: Poster un message
498 permission_add_messages: Poster un message
499 permission_edit_messages: Modifier les messages
499 permission_edit_messages: Modifier les messages
500 permission_edit_own_messages: Modifier ses propres messages
500 permission_edit_own_messages: Modifier ses propres messages
501 permission_delete_messages: Supprimer les messages
501 permission_delete_messages: Supprimer les messages
502 permission_delete_own_messages: Supprimer ses propres messages
502 permission_delete_own_messages: Supprimer ses propres messages
503 permission_export_wiki_pages: Exporter les pages
503 permission_export_wiki_pages: Exporter les pages
504 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
504 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
505 permission_manage_related_issues: GΓ©rer les demandes associΓ©es
505 permission_manage_related_issues: GΓ©rer les demandes associΓ©es
506
506
507 project_module_issue_tracking: Suivi des demandes
507 project_module_issue_tracking: Suivi des demandes
508 project_module_time_tracking: Suivi du temps passΓ©
508 project_module_time_tracking: Suivi du temps passΓ©
509 project_module_news: Publication d'annonces
509 project_module_news: Publication d'annonces
510 project_module_documents: Publication de documents
510 project_module_documents: Publication de documents
511 project_module_files: Publication de fichiers
511 project_module_files: Publication de fichiers
512 project_module_wiki: Wiki
512 project_module_wiki: Wiki
513 project_module_repository: DΓ©pΓ΄t de sources
513 project_module_repository: DΓ©pΓ΄t de sources
514 project_module_boards: Forums de discussion
514 project_module_boards: Forums de discussion
515 project_module_calendar: Calendrier
515 project_module_calendar: Calendrier
516 project_module_gantt: Gantt
516 project_module_gantt: Gantt
517
517
518 label_user: Utilisateur
518 label_user: Utilisateur
519 label_user_plural: Utilisateurs
519 label_user_plural: Utilisateurs
520 label_user_new: Nouvel utilisateur
520 label_user_new: Nouvel utilisateur
521 label_user_anonymous: Anonyme
521 label_user_anonymous: Anonyme
522 label_project: Projet
522 label_project: Projet
523 label_project_new: Nouveau projet
523 label_project_new: Nouveau projet
524 label_project_plural: Projets
524 label_project_plural: Projets
525 label_x_projects:
525 label_x_projects:
526 zero: aucun projet
526 zero: aucun projet
527 one: un projet
527 one: un projet
528 other: "%{count} projets"
528 other: "%{count} projets"
529 label_project_all: Tous les projets
529 label_project_all: Tous les projets
530 label_project_latest: Derniers projets
530 label_project_latest: Derniers projets
531 label_issue: Demande
531 label_issue: Demande
532 label_issue_new: Nouvelle demande
532 label_issue_new: Nouvelle demande
533 label_issue_plural: Demandes
533 label_issue_plural: Demandes
534 label_issue_view_all: Voir toutes les demandes
534 label_issue_view_all: Voir toutes les demandes
535 label_issues_by: "Demandes par %{value}"
535 label_issues_by: "Demandes par %{value}"
536 label_issue_added: Demande ajoutΓ©e
536 label_issue_added: Demande ajoutΓ©e
537 label_issue_updated: Demande mise Γ  jour
537 label_issue_updated: Demande mise Γ  jour
538 label_issue_note_added: Note ajoutΓ©e
538 label_issue_note_added: Note ajoutΓ©e
539 label_issue_status_updated: Statut changΓ©
539 label_issue_status_updated: Statut changΓ©
540 label_issue_assigned_to_updated: AssignΓ© changΓ©
540 label_issue_assigned_to_updated: AssignΓ© changΓ©
541 label_issue_priority_updated: PrioritΓ© changΓ©e
541 label_issue_priority_updated: PrioritΓ© changΓ©e
542 label_document: Document
542 label_document: Document
543 label_document_new: Nouveau document
543 label_document_new: Nouveau document
544 label_document_plural: Documents
544 label_document_plural: Documents
545 label_document_added: Document ajoutΓ©
545 label_document_added: Document ajoutΓ©
546 label_role: RΓ΄le
546 label_role: RΓ΄le
547 label_role_plural: RΓ΄les
547 label_role_plural: RΓ΄les
548 label_role_new: Nouveau rΓ΄le
548 label_role_new: Nouveau rΓ΄le
549 label_role_and_permissions: RΓ΄les et permissions
549 label_role_and_permissions: RΓ΄les et permissions
550 label_role_anonymous: Anonyme
550 label_role_anonymous: Anonyme
551 label_role_non_member: Non membre
551 label_role_non_member: Non membre
552 label_member: Membre
552 label_member: Membre
553 label_member_new: Nouveau membre
553 label_member_new: Nouveau membre
554 label_member_plural: Membres
554 label_member_plural: Membres
555 label_tracker: Tracker
555 label_tracker: Tracker
556 label_tracker_plural: Trackers
556 label_tracker_plural: Trackers
557 label_tracker_new: Nouveau tracker
557 label_tracker_new: Nouveau tracker
558 label_workflow: Workflow
558 label_workflow: Workflow
559 label_issue_status: Statut de demandes
559 label_issue_status: Statut de demandes
560 label_issue_status_plural: Statuts de demandes
560 label_issue_status_plural: Statuts de demandes
561 label_issue_status_new: Nouveau statut
561 label_issue_status_new: Nouveau statut
562 label_issue_category: CatΓ©gorie de demandes
562 label_issue_category: CatΓ©gorie de demandes
563 label_issue_category_plural: CatΓ©gories de demandes
563 label_issue_category_plural: CatΓ©gories de demandes
564 label_issue_category_new: Nouvelle catΓ©gorie
564 label_issue_category_new: Nouvelle catΓ©gorie
565 label_custom_field: Champ personnalisΓ©
565 label_custom_field: Champ personnalisΓ©
566 label_custom_field_plural: Champs personnalisΓ©s
566 label_custom_field_plural: Champs personnalisΓ©s
567 label_custom_field_new: Nouveau champ personnalisΓ©
567 label_custom_field_new: Nouveau champ personnalisΓ©
568 label_enumerations: Listes de valeurs
568 label_enumerations: Listes de valeurs
569 label_enumeration_new: Nouvelle valeur
569 label_enumeration_new: Nouvelle valeur
570 label_information: Information
570 label_information: Information
571 label_information_plural: Informations
571 label_information_plural: Informations
572 label_please_login: Identification
572 label_please_login: Identification
573 label_register: S'enregistrer
573 label_register: S'enregistrer
574 label_login_with_open_id_option: S'authentifier avec OpenID
574 label_login_with_open_id_option: S'authentifier avec OpenID
575 label_password_lost: Mot de passe perdu
575 label_password_lost: Mot de passe perdu
576 label_home: Accueil
576 label_home: Accueil
577 label_my_page: Ma page
577 label_my_page: Ma page
578 label_my_account: Mon compte
578 label_my_account: Mon compte
579 label_my_projects: Mes projets
579 label_my_projects: Mes projets
580 label_my_page_block: Blocs disponibles
580 label_my_page_block: Blocs disponibles
581 label_administration: Administration
581 label_administration: Administration
582 label_login: Connexion
582 label_login: Connexion
583 label_logout: DΓ©connexion
583 label_logout: DΓ©connexion
584 label_help: Aide
584 label_help: Aide
585 label_reported_issues: Demandes soumises
585 label_reported_issues: Demandes soumises
586 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
586 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
587 label_last_login: Dernière connexion
587 label_last_login: Dernière connexion
588 label_registered_on: Inscrit le
588 label_registered_on: Inscrit le
589 label_activity: ActivitΓ©
589 label_activity: ActivitΓ©
590 label_overall_activity: ActivitΓ© globale
590 label_overall_activity: ActivitΓ© globale
591 label_user_activity: "ActivitΓ© de %{value}"
591 label_user_activity: "ActivitΓ© de %{value}"
592 label_new: Nouveau
592 label_new: Nouveau
593 label_logged_as: ConnectΓ© en tant que
593 label_logged_as: ConnectΓ© en tant que
594 label_environment: Environnement
594 label_environment: Environnement
595 label_authentication: Authentification
595 label_authentication: Authentification
596 label_auth_source: Mode d'authentification
596 label_auth_source: Mode d'authentification
597 label_auth_source_new: Nouveau mode d'authentification
597 label_auth_source_new: Nouveau mode d'authentification
598 label_auth_source_plural: Modes d'authentification
598 label_auth_source_plural: Modes d'authentification
599 label_subproject_plural: Sous-projets
599 label_subproject_plural: Sous-projets
600 label_subproject_new: Nouveau sous-projet
600 label_subproject_new: Nouveau sous-projet
601 label_and_its_subprojects: "%{value} et ses sous-projets"
601 label_and_its_subprojects: "%{value} et ses sous-projets"
602 label_min_max_length: Longueurs mini - maxi
602 label_min_max_length: Longueurs mini - maxi
603 label_list: Liste
603 label_list: Liste
604 label_date: Date
604 label_date: Date
605 label_integer: Entier
605 label_integer: Entier
606 label_float: Nombre dΓ©cimal
606 label_float: Nombre dΓ©cimal
607 label_boolean: BoolΓ©en
607 label_boolean: BoolΓ©en
608 label_string: Texte
608 label_string: Texte
609 label_text: Texte long
609 label_text: Texte long
610 label_attribute: Attribut
610 label_attribute: Attribut
611 label_attribute_plural: Attributs
611 label_attribute_plural: Attributs
612 label_no_data: Aucune donnΓ©e Γ  afficher
612 label_no_data: Aucune donnΓ©e Γ  afficher
613 label_change_status: Changer le statut
613 label_change_status: Changer le statut
614 label_history: Historique
614 label_history: Historique
615 label_attachment: Fichier
615 label_attachment: Fichier
616 label_attachment_new: Nouveau fichier
616 label_attachment_new: Nouveau fichier
617 label_attachment_delete: Supprimer le fichier
617 label_attachment_delete: Supprimer le fichier
618 label_attachment_plural: Fichiers
618 label_attachment_plural: Fichiers
619 label_file_added: Fichier ajoutΓ©
619 label_file_added: Fichier ajoutΓ©
620 label_report: Rapport
620 label_report: Rapport
621 label_report_plural: Rapports
621 label_report_plural: Rapports
622 label_news: Annonce
622 label_news: Annonce
623 label_news_new: Nouvelle annonce
623 label_news_new: Nouvelle annonce
624 label_news_plural: Annonces
624 label_news_plural: Annonces
625 label_news_latest: Dernières annonces
625 label_news_latest: Dernières annonces
626 label_news_view_all: Voir toutes les annonces
626 label_news_view_all: Voir toutes les annonces
627 label_news_added: Annonce ajoutΓ©e
627 label_news_added: Annonce ajoutΓ©e
628 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
628 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
629 label_settings: Configuration
629 label_settings: Configuration
630 label_overview: AperΓ§u
630 label_overview: AperΓ§u
631 label_version: Version
631 label_version: Version
632 label_version_new: Nouvelle version
632 label_version_new: Nouvelle version
633 label_version_plural: Versions
633 label_version_plural: Versions
634 label_close_versions: Fermer les versions terminΓ©es
634 label_close_versions: Fermer les versions terminΓ©es
635 label_confirmation: Confirmation
635 label_confirmation: Confirmation
636 label_export_to: 'Formats disponibles :'
636 label_export_to: 'Formats disponibles :'
637 label_read: Lire...
637 label_read: Lire...
638 label_public_projects: Projets publics
638 label_public_projects: Projets publics
639 label_open_issues: ouvert
639 label_open_issues: ouvert
640 label_open_issues_plural: ouverts
640 label_open_issues_plural: ouverts
641 label_closed_issues: fermΓ©
641 label_closed_issues: fermΓ©
642 label_closed_issues_plural: fermΓ©s
642 label_closed_issues_plural: fermΓ©s
643 label_x_open_issues_abbr_on_total:
643 label_x_open_issues_abbr_on_total:
644 zero: 0 ouverte sur %{total}
644 zero: 0 ouverte sur %{total}
645 one: 1 ouverte sur %{total}
645 one: 1 ouverte sur %{total}
646 other: "%{count} ouvertes sur %{total}"
646 other: "%{count} ouvertes sur %{total}"
647 label_x_open_issues_abbr:
647 label_x_open_issues_abbr:
648 zero: 0 ouverte
648 zero: 0 ouverte
649 one: 1 ouverte
649 one: 1 ouverte
650 other: "%{count} ouvertes"
650 other: "%{count} ouvertes"
651 label_x_closed_issues_abbr:
651 label_x_closed_issues_abbr:
652 zero: 0 fermΓ©e
652 zero: 0 fermΓ©e
653 one: 1 fermΓ©e
653 one: 1 fermΓ©e
654 other: "%{count} fermΓ©es"
654 other: "%{count} fermΓ©es"
655 label_x_issues:
655 label_x_issues:
656 zero: 0 demande
656 zero: 0 demande
657 one: 1 demande
657 one: 1 demande
658 other: "%{count} demandes"
658 other: "%{count} demandes"
659 label_total: Total
659 label_total: Total
660 label_total_time: Temps total
660 label_total_time: Temps total
661 label_permissions: Permissions
661 label_permissions: Permissions
662 label_current_status: Statut actuel
662 label_current_status: Statut actuel
663 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
663 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
664 label_all: tous
664 label_all: tous
665 label_any: tous
665 label_any: tous
666 label_none: aucun
666 label_none: aucun
667 label_nobody: personne
667 label_nobody: personne
668 label_next: Suivant
668 label_next: Suivant
669 label_previous: PrΓ©cΓ©dent
669 label_previous: PrΓ©cΓ©dent
670 label_used_by: UtilisΓ© par
670 label_used_by: UtilisΓ© par
671 label_details: DΓ©tails
671 label_details: DΓ©tails
672 label_add_note: Ajouter une note
672 label_add_note: Ajouter une note
673 label_calendar: Calendrier
673 label_calendar: Calendrier
674 label_months_from: mois depuis
674 label_months_from: mois depuis
675 label_gantt: Gantt
675 label_gantt: Gantt
676 label_internal: Interne
676 label_internal: Interne
677 label_last_changes: "%{count} derniers changements"
677 label_last_changes: "%{count} derniers changements"
678 label_change_view_all: Voir tous les changements
678 label_change_view_all: Voir tous les changements
679 label_personalize_page: Personnaliser cette page
679 label_personalize_page: Personnaliser cette page
680 label_comment: Commentaire
680 label_comment: Commentaire
681 label_comment_plural: Commentaires
681 label_comment_plural: Commentaires
682 label_x_comments:
682 label_x_comments:
683 zero: aucun commentaire
683 zero: aucun commentaire
684 one: un commentaire
684 one: un commentaire
685 other: "%{count} commentaires"
685 other: "%{count} commentaires"
686 label_comment_add: Ajouter un commentaire
686 label_comment_add: Ajouter un commentaire
687 label_comment_added: Commentaire ajoutΓ©
687 label_comment_added: Commentaire ajoutΓ©
688 label_comment_delete: Supprimer les commentaires
688 label_comment_delete: Supprimer les commentaires
689 label_query: Rapport personnalisΓ©
689 label_query: Rapport personnalisΓ©
690 label_query_plural: Rapports personnalisΓ©s
690 label_query_plural: Rapports personnalisΓ©s
691 label_query_new: Nouveau rapport
691 label_query_new: Nouveau rapport
692 label_my_queries: Mes rapports personnalisΓ©s
692 label_my_queries: Mes rapports personnalisΓ©s
693 label_filter_add: Ajouter le filtre
693 label_filter_add: Ajouter le filtre
694 label_filter_plural: Filtres
694 label_filter_plural: Filtres
695 label_equals: Γ©gal
695 label_equals: Γ©gal
696 label_not_equals: diffΓ©rent
696 label_not_equals: diffΓ©rent
697 label_in_less_than: dans moins de
697 label_in_less_than: dans moins de
698 label_in_more_than: dans plus de
698 label_in_more_than: dans plus de
699 label_in_the_next_days: dans les prochains jours
699 label_in_the_next_days: dans les prochains jours
700 label_in_the_past_days: dans les derniers jours
700 label_in_the_past_days: dans les derniers jours
701 label_greater_or_equal: '>='
701 label_greater_or_equal: '>='
702 label_less_or_equal: '<='
702 label_less_or_equal: '<='
703 label_between: entre
703 label_between: entre
704 label_in: dans
704 label_in: dans
705 label_today: aujourd'hui
705 label_today: aujourd'hui
706 label_all_time: toute la pΓ©riode
706 label_all_time: toute la pΓ©riode
707 label_yesterday: hier
707 label_yesterday: hier
708 label_this_week: cette semaine
708 label_this_week: cette semaine
709 label_last_week: la semaine dernière
709 label_last_week: la semaine dernière
710 label_last_n_weeks: "les %{count} dernières semaines"
710 label_last_n_weeks: "les %{count} dernières semaines"
711 label_last_n_days: "les %{count} derniers jours"
711 label_last_n_days: "les %{count} derniers jours"
712 label_this_month: ce mois-ci
712 label_this_month: ce mois-ci
713 label_last_month: le mois dernier
713 label_last_month: le mois dernier
714 label_this_year: cette annΓ©e
714 label_this_year: cette annΓ©e
715 label_date_range: PΓ©riode
715 label_date_range: PΓ©riode
716 label_less_than_ago: il y a moins de
716 label_less_than_ago: il y a moins de
717 label_more_than_ago: il y a plus de
717 label_more_than_ago: il y a plus de
718 label_ago: il y a
718 label_ago: il y a
719 label_contains: contient
719 label_contains: contient
720 label_not_contains: ne contient pas
720 label_not_contains: ne contient pas
721 label_any_issues_in_project: une demande du projet
721 label_any_issues_in_project: une demande du projet
722 label_any_issues_not_in_project: une demande hors du projet
722 label_any_issues_not_in_project: une demande hors du projet
723 label_no_issues_in_project: aucune demande du projet
723 label_no_issues_in_project: aucune demande du projet
724 label_day_plural: jours
724 label_day_plural: jours
725 label_repository: DΓ©pΓ΄t
725 label_repository: DΓ©pΓ΄t
726 label_repository_new: Nouveau dΓ©pΓ΄t
726 label_repository_new: Nouveau dΓ©pΓ΄t
727 label_repository_plural: DΓ©pΓ΄ts
727 label_repository_plural: DΓ©pΓ΄ts
728 label_browse: Parcourir
728 label_browse: Parcourir
729 label_branch: Branche
729 label_branch: Branche
730 label_tag: Tag
730 label_tag: Tag
731 label_revision: RΓ©vision
731 label_revision: RΓ©vision
732 label_revision_plural: RΓ©visions
732 label_revision_plural: RΓ©visions
733 label_revision_id: "RΓ©vision %{value}"
733 label_revision_id: "RΓ©vision %{value}"
734 label_associated_revisions: RΓ©visions associΓ©es
734 label_associated_revisions: RΓ©visions associΓ©es
735 label_added: ajoutΓ©
735 label_added: ajoutΓ©
736 label_modified: modifiΓ©
736 label_modified: modifiΓ©
737 label_copied: copiΓ©
737 label_copied: copiΓ©
738 label_renamed: renommΓ©
738 label_renamed: renommΓ©
739 label_deleted: supprimΓ©
739 label_deleted: supprimΓ©
740 label_latest_revision: Dernière révision
740 label_latest_revision: Dernière révision
741 label_latest_revision_plural: Dernières révisions
741 label_latest_revision_plural: Dernières révisions
742 label_view_revisions: Voir les rΓ©visions
742 label_view_revisions: Voir les rΓ©visions
743 label_view_all_revisions: Voir toutes les rΓ©visions
743 label_view_all_revisions: Voir toutes les rΓ©visions
744 label_max_size: Taille maximale
744 label_max_size: Taille maximale
745 label_sort_highest: Remonter en premier
745 label_sort_highest: Remonter en premier
746 label_sort_higher: Remonter
746 label_sort_higher: Remonter
747 label_sort_lower: Descendre
747 label_sort_lower: Descendre
748 label_sort_lowest: Descendre en dernier
748 label_sort_lowest: Descendre en dernier
749 label_roadmap: Roadmap
749 label_roadmap: Roadmap
750 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
750 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
751 label_roadmap_overdue: "En retard de %{value}"
751 label_roadmap_overdue: "En retard de %{value}"
752 label_roadmap_no_issues: Aucune demande pour cette version
752 label_roadmap_no_issues: Aucune demande pour cette version
753 label_search: Recherche
753 label_search: Recherche
754 label_result_plural: RΓ©sultats
754 label_result_plural: RΓ©sultats
755 label_all_words: Tous les mots
755 label_all_words: Tous les mots
756 label_wiki: Wiki
756 label_wiki: Wiki
757 label_wiki_edit: RΓ©vision wiki
757 label_wiki_edit: RΓ©vision wiki
758 label_wiki_edit_plural: RΓ©visions wiki
758 label_wiki_edit_plural: RΓ©visions wiki
759 label_wiki_page: Page wiki
759 label_wiki_page: Page wiki
760 label_wiki_page_plural: Pages wiki
760 label_wiki_page_plural: Pages wiki
761 label_index_by_title: Index par titre
761 label_index_by_title: Index par titre
762 label_index_by_date: Index par date
762 label_index_by_date: Index par date
763 label_current_version: Version actuelle
763 label_current_version: Version actuelle
764 label_preview: PrΓ©visualisation
764 label_preview: PrΓ©visualisation
765 label_feed_plural: Flux Atom
765 label_feed_plural: Flux Atom
766 label_changes_details: DΓ©tails de tous les changements
766 label_changes_details: DΓ©tails de tous les changements
767 label_issue_tracking: Suivi des demandes
767 label_issue_tracking: Suivi des demandes
768 label_spent_time: Temps passΓ©
768 label_spent_time: Temps passΓ©
769 label_overall_spent_time: Temps passΓ© global
769 label_overall_spent_time: Temps passΓ© global
770 label_f_hour: "%{value} heure"
770 label_f_hour: "%{value} heure"
771 label_f_hour_plural: "%{value} heures"
771 label_f_hour_plural: "%{value} heures"
772 label_time_tracking: Suivi du temps
772 label_time_tracking: Suivi du temps
773 label_change_plural: Changements
773 label_change_plural: Changements
774 label_statistics: Statistiques
774 label_statistics: Statistiques
775 label_commits_per_month: Commits par mois
775 label_commits_per_month: Commits par mois
776 label_commits_per_author: Commits par auteur
776 label_commits_per_author: Commits par auteur
777 label_diff: diff
777 label_diff: diff
778 label_view_diff: Voir les diffΓ©rences
778 label_view_diff: Voir les diffΓ©rences
779 label_diff_inline: en ligne
779 label_diff_inline: en ligne
780 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
780 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
781 label_options: Options
781 label_options: Options
782 label_copy_workflow_from: Copier le workflow de
782 label_copy_workflow_from: Copier le workflow de
783 label_permissions_report: Synthèse des permissions
783 label_permissions_report: Synthèse des permissions
784 label_watched_issues: Demandes surveillΓ©es
784 label_watched_issues: Demandes surveillΓ©es
785 label_related_issues: Demandes liΓ©es
785 label_related_issues: Demandes liΓ©es
786 label_applied_status: Statut appliquΓ©
786 label_applied_status: Statut appliquΓ©
787 label_loading: Chargement...
787 label_loading: Chargement...
788 label_relation_new: Nouvelle relation
788 label_relation_new: Nouvelle relation
789 label_relation_delete: Supprimer la relation
789 label_relation_delete: Supprimer la relation
790 label_relates_to: LiΓ© Γ 
790 label_relates_to: LiΓ© Γ 
791 label_duplicates: Duplique
791 label_duplicates: Duplique
792 label_duplicated_by: DupliquΓ© par
792 label_duplicated_by: DupliquΓ© par
793 label_blocks: Bloque
793 label_blocks: Bloque
794 label_blocked_by: BloquΓ© par
794 label_blocked_by: BloquΓ© par
795 label_precedes: Précède
795 label_precedes: Précède
796 label_follows: Suit
796 label_follows: Suit
797 label_copied_to: CopiΓ© vers
797 label_copied_to: CopiΓ© vers
798 label_copied_from: CopiΓ© depuis
798 label_copied_from: CopiΓ© depuis
799 label_end_to_start: fin Γ  dΓ©but
799 label_end_to_start: fin Γ  dΓ©but
800 label_end_to_end: fin Γ  fin
800 label_end_to_end: fin Γ  fin
801 label_start_to_start: dΓ©but Γ  dΓ©but
801 label_start_to_start: dΓ©but Γ  dΓ©but
802 label_start_to_end: dΓ©but Γ  fin
802 label_start_to_end: dΓ©but Γ  fin
803 label_stay_logged_in: Rester connectΓ©
803 label_stay_logged_in: Rester connectΓ©
804 label_disabled: dΓ©sactivΓ©
804 label_disabled: dΓ©sactivΓ©
805 label_show_completed_versions: Voir les versions passΓ©es
805 label_show_completed_versions: Voir les versions passΓ©es
806 label_me: moi
806 label_me: moi
807 label_board: Forum
807 label_board: Forum
808 label_board_new: Nouveau forum
808 label_board_new: Nouveau forum
809 label_board_plural: Forums
809 label_board_plural: Forums
810 label_board_locked: VerrouillΓ©
810 label_board_locked: VerrouillΓ©
811 label_board_sticky: Sticky
811 label_board_sticky: Sticky
812 label_topic_plural: Discussions
812 label_topic_plural: Discussions
813 label_message_plural: Messages
813 label_message_plural: Messages
814 label_message_last: Dernier message
814 label_message_last: Dernier message
815 label_message_new: Nouveau message
815 label_message_new: Nouveau message
816 label_message_posted: Message ajoutΓ©
816 label_message_posted: Message ajoutΓ©
817 label_reply_plural: RΓ©ponses
817 label_reply_plural: RΓ©ponses
818 label_send_information: Envoyer les informations Γ  l'utilisateur
818 label_send_information: Envoyer les informations Γ  l'utilisateur
819 label_year: AnnΓ©e
819 label_year: AnnΓ©e
820 label_month: Mois
820 label_month: Mois
821 label_week: Semaine
821 label_week: Semaine
822 label_date_from: Du
822 label_date_from: Du
823 label_date_to: Au
823 label_date_to: Au
824 label_language_based: BasΓ© sur la langue de l'utilisateur
824 label_language_based: BasΓ© sur la langue de l'utilisateur
825 label_sort_by: "Trier par %{value}"
825 label_sort_by: "Trier par %{value}"
826 label_send_test_email: Envoyer un email de test
826 label_send_test_email: Envoyer un email de test
827 label_feeds_access_key: Clé d'accès Atom
827 label_feeds_access_key: Clé d'accès Atom
828 label_missing_feeds_access_key: Clé d'accès Atom manquante
828 label_missing_feeds_access_key: Clé d'accès Atom manquante
829 label_feeds_access_key_created_on: "Clé d'accès Atom créée il y a %{value}"
829 label_feeds_access_key_created_on: "Clé d'accès Atom créée il y a %{value}"
830 label_module_plural: Modules
830 label_module_plural: Modules
831 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
831 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
832 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
832 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
833 label_updated_time: "Mis Γ  jour il y a %{value}"
833 label_updated_time: "Mis Γ  jour il y a %{value}"
834 label_jump_to_a_project: Aller Γ  un projet...
834 label_jump_to_a_project: Aller Γ  un projet...
835 label_file_plural: Fichiers
835 label_file_plural: Fichiers
836 label_changeset_plural: RΓ©visions
836 label_changeset_plural: RΓ©visions
837 label_default_columns: Colonnes par dΓ©faut
837 label_default_columns: Colonnes par dΓ©faut
838 label_no_change_option: (Pas de changement)
838 label_no_change_option: (Pas de changement)
839 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
839 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
840 label_bulk_edit_selected_time_entries: Modifier les temps passΓ©s sΓ©lectionnΓ©s
840 label_bulk_edit_selected_time_entries: Modifier les temps passΓ©s sΓ©lectionnΓ©s
841 label_theme: Thème
841 label_theme: Thème
842 label_default: DΓ©faut
842 label_default: DΓ©faut
843 label_search_titles_only: Uniquement dans les titres
843 label_search_titles_only: Uniquement dans les titres
844 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
844 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
845 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
845 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
846 label_user_mail_option_none: Aucune notification
846 label_user_mail_option_none: Aucune notification
847 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
847 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
848 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
848 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
849 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
849 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
850 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
850 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
851 label_registration_activation_by_email: activation du compte par email
851 label_registration_activation_by_email: activation du compte par email
852 label_registration_manual_activation: activation manuelle du compte
852 label_registration_manual_activation: activation manuelle du compte
853 label_registration_automatic_activation: activation automatique du compte
853 label_registration_automatic_activation: activation automatique du compte
854 label_display_per_page: "Par page : %{value}"
854 label_display_per_page: "Par page : %{value}"
855 label_age: Γ‚ge
855 label_age: Γ‚ge
856 label_change_properties: Changer les propriΓ©tΓ©s
856 label_change_properties: Changer les propriΓ©tΓ©s
857 label_general: GΓ©nΓ©ral
857 label_general: GΓ©nΓ©ral
858 label_more: Plus
858 label_more: Plus
859 label_scm: SCM
859 label_scm: SCM
860 label_plugins: Plugins
860 label_plugins: Plugins
861 label_ldap_authentication: Authentification LDAP
861 label_ldap_authentication: Authentification LDAP
862 label_downloads_abbr: D/L
862 label_downloads_abbr: D/L
863 label_optional_description: Description facultative
863 label_optional_description: Description facultative
864 label_add_another_file: Ajouter un autre fichier
864 label_add_another_file: Ajouter un autre fichier
865 label_preferences: PrΓ©fΓ©rences
865 label_preferences: PrΓ©fΓ©rences
866 label_chronological_order: Dans l'ordre chronologique
866 label_chronological_order: Dans l'ordre chronologique
867 label_reverse_chronological_order: Dans l'ordre chronologique inverse
867 label_reverse_chronological_order: Dans l'ordre chronologique inverse
868 label_planning: Planning
868 label_planning: Planning
869 label_incoming_emails: Emails entrants
869 label_incoming_emails: Emails entrants
870 label_generate_key: GΓ©nΓ©rer une clΓ©
870 label_generate_key: GΓ©nΓ©rer une clΓ©
871 label_issue_watchers: Observateurs
871 label_issue_watchers: Observateurs
872 label_example: Exemple
872 label_example: Exemple
873 label_display: Affichage
873 label_display: Affichage
874 label_sort: Tri
874 label_sort: Tri
875 label_ascending: Croissant
875 label_ascending: Croissant
876 label_descending: DΓ©croissant
876 label_descending: DΓ©croissant
877 label_date_from_to: Du %{start} au %{end}
877 label_date_from_to: Du %{start} au %{end}
878 label_wiki_content_added: Page wiki ajoutΓ©e
878 label_wiki_content_added: Page wiki ajoutΓ©e
879 label_wiki_content_updated: Page wiki mise Γ  jour
879 label_wiki_content_updated: Page wiki mise Γ  jour
880 label_group: Groupe
880 label_group: Groupe
881 label_group_plural: Groupes
881 label_group_plural: Groupes
882 label_group_new: Nouveau groupe
882 label_group_new: Nouveau groupe
883 label_group_anonymous: Utilisateurs anonymes
883 label_group_anonymous: Utilisateurs anonymes
884 label_group_non_member: Utilisateurs non membres
884 label_group_non_member: Utilisateurs non membres
885 label_time_entry_plural: Temps passΓ©
885 label_time_entry_plural: Temps passΓ©
886 label_version_sharing_none: Non partagΓ©
886 label_version_sharing_none: Non partagΓ©
887 label_version_sharing_descendants: Avec les sous-projets
887 label_version_sharing_descendants: Avec les sous-projets
888 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
888 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
889 label_version_sharing_tree: Avec tout l'arbre
889 label_version_sharing_tree: Avec tout l'arbre
890 label_version_sharing_system: Avec tous les projets
890 label_version_sharing_system: Avec tous les projets
891 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
891 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
892 label_copy_source: Source
892 label_copy_source: Source
893 label_copy_target: Cible
893 label_copy_target: Cible
894 label_copy_same_as_target: Comme la cible
894 label_copy_same_as_target: Comme la cible
895 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
895 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
896 label_api_access_key: Clé d'accès API
896 label_api_access_key: Clé d'accès API
897 label_missing_api_access_key: Clé d'accès API manquante
897 label_missing_api_access_key: Clé d'accès API manquante
898 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
898 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
899 label_profile: Profil
899 label_profile: Profil
900 label_subtask_plural: Sous-tΓ’ches
900 label_subtask_plural: Sous-tΓ’ches
901 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
901 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
902 label_principal_search: "Rechercher un utilisateur ou un groupe :"
902 label_principal_search: "Rechercher un utilisateur ou un groupe :"
903 label_user_search: "Rechercher un utilisateur :"
903 label_user_search: "Rechercher un utilisateur :"
904 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
904 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
905 label_additional_workflow_transitions_for_assignee: Autorisations supplΓ©mentaires lorsque la demande est assignΓ©e Γ  l'utilisateur
905 label_additional_workflow_transitions_for_assignee: Autorisations supplΓ©mentaires lorsque la demande est assignΓ©e Γ  l'utilisateur
906 label_issues_visibility_all: Toutes les demandes
906 label_issues_visibility_all: Toutes les demandes
907 label_issues_visibility_public: Toutes les demandes non privΓ©es
907 label_issues_visibility_public: Toutes les demandes non privΓ©es
908 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
908 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
909 label_git_report_last_commit: Afficher le dernier commit des fichiers et rΓ©pertoires
909 label_git_report_last_commit: Afficher le dernier commit des fichiers et rΓ©pertoires
910 label_parent_revision: Parent
910 label_parent_revision: Parent
911 label_child_revision: Enfant
911 label_child_revision: Enfant
912 label_export_options: Options d'exportation %{export_format}
912 label_export_options: Options d'exportation %{export_format}
913 label_copy_attachments: Copier les fichiers
913 label_copy_attachments: Copier les fichiers
914 label_copy_subtasks: Copier les sous-tΓ’ches
914 label_copy_subtasks: Copier les sous-tΓ’ches
915 label_item_position: "%{position} sur %{count}"
915 label_item_position: "%{position} sur %{count}"
916 label_completed_versions: Versions passΓ©es
916 label_completed_versions: Versions passΓ©es
917 label_search_for_watchers: Rechercher des observateurs
917 label_search_for_watchers: Rechercher des observateurs
918 label_session_expiration: Expiration des sessions
918 label_session_expiration: Expiration des sessions
919 label_show_closed_projects: Voir les projets fermΓ©s
919 label_show_closed_projects: Voir les projets fermΓ©s
920 label_status_transitions: Changements de statut
920 label_status_transitions: Changements de statut
921 label_fields_permissions: Permissions sur les champs
921 label_fields_permissions: Permissions sur les champs
922 label_readonly: Lecture
922 label_readonly: Lecture
923 label_required: Obligatoire
923 label_required: Obligatoire
924 label_hidden: CachΓ©
924 label_hidden: CachΓ©
925 label_attribute_of_project: "%{name} du projet"
925 label_attribute_of_project: "%{name} du projet"
926 label_attribute_of_issue: "%{name} de la demande"
926 label_attribute_of_issue: "%{name} de la demande"
927 label_attribute_of_author: "%{name} de l'auteur"
927 label_attribute_of_author: "%{name} de l'auteur"
928 label_attribute_of_assigned_to: "%{name} de l'assignΓ©"
928 label_attribute_of_assigned_to: "%{name} de l'assignΓ©"
929 label_attribute_of_user: "%{name} de l'utilisateur"
929 label_attribute_of_user: "%{name} de l'utilisateur"
930 label_attribute_of_fixed_version: "%{name} de la version cible"
930 label_attribute_of_fixed_version: "%{name} de la version cible"
931 label_cross_project_descendants: Avec les sous-projets
931 label_cross_project_descendants: Avec les sous-projets
932 label_cross_project_tree: Avec tout l'arbre
932 label_cross_project_tree: Avec tout l'arbre
933 label_cross_project_hierarchy: Avec toute la hiΓ©rarchie
933 label_cross_project_hierarchy: Avec toute la hiΓ©rarchie
934 label_cross_project_system: Avec tous les projets
934 label_cross_project_system: Avec tous les projets
935 label_gantt_progress_line: Ligne de progression
935 label_gantt_progress_line: Ligne de progression
936 label_visibility_private: par moi uniquement
936 label_visibility_private: par moi uniquement
937 label_visibility_roles: par ces rΓ΄les uniquement
937 label_visibility_roles: par ces rΓ΄les uniquement
938 label_visibility_public: par tout le monde
938 label_visibility_public: par tout le monde
939 label_link: Lien
939 label_link: Lien
940 label_only: seulement
940 label_only: seulement
941 label_drop_down_list: liste dΓ©roulante
941 label_drop_down_list: liste dΓ©roulante
942 label_checkboxes: cases Γ  cocher
942 label_checkboxes: cases Γ  cocher
943 label_radio_buttons: boutons radio
943 label_radio_buttons: boutons radio
944 label_link_values_to: Lier les valeurs vers l'URL
944 label_link_values_to: Lier les valeurs vers l'URL
945 label_custom_field_select_type: Selectionner le type d'objet auquel attacher le champ personnalisΓ©
945 label_custom_field_select_type: Selectionner le type d'objet auquel attacher le champ personnalisΓ©
946 label_check_for_updates: VΓ©rifier les mises Γ  jour
946 label_check_for_updates: VΓ©rifier les mises Γ  jour
947 label_latest_compatible_version: Dernière version compatible
947 label_latest_compatible_version: Dernière version compatible
948 label_unknown_plugin: Plugin inconnu
948 label_unknown_plugin: Plugin inconnu
949 label_add_projects: Ajouter des projets
949 label_add_projects: Ajouter des projets
950 label_users_visibility_all: Tous les utilisateurs actifs
950 label_users_visibility_all: Tous les utilisateurs actifs
951 label_users_visibility_members_of_visible_projects: Membres des projets visibles
951 label_users_visibility_members_of_visible_projects: Membres des projets visibles
952 label_edit_attachments: Modifier les fichiers attachΓ©s
952 label_edit_attachments: Modifier les fichiers attachΓ©s
953 label_link_copied_issue: Lier la demande copiΓ©e
953 label_link_copied_issue: Lier la demande copiΓ©e
954 label_ask: Demander
954 label_ask: Demander
955 label_search_attachments_yes: Rechercher les noms et descriptions de fichiers
955 label_search_attachments_yes: Rechercher les noms et descriptions de fichiers
956 label_search_attachments_no: Ne pas rechercher les fichiers
956 label_search_attachments_no: Ne pas rechercher les fichiers
957 label_search_attachments_only: Rechercher les fichiers uniquement
957 label_search_attachments_only: Rechercher les fichiers uniquement
958 label_search_open_issues_only: Demandes ouvertes uniquement
958 label_search_open_issues_only: Demandes ouvertes uniquement
959 label_email_address_plural: Emails
959 label_email_address_plural: Emails
960 label_email_address_add: Ajouter une adresse email
960 label_email_address_add: Ajouter une adresse email
961 label_enable_notifications: Activer les notifications
961 label_enable_notifications: Activer les notifications
962 label_disable_notifications: DΓ©sactiver les notifications
962 label_disable_notifications: DΓ©sactiver les notifications
963 label_blank_value: non renseignΓ©
963 label_blank_value: non renseignΓ©
964 label_parent_task_attributes: Attributs des tΓ’ches parentes
964
965
965 button_login: Connexion
966 button_login: Connexion
966 button_submit: Soumettre
967 button_submit: Soumettre
967 button_save: Sauvegarder
968 button_save: Sauvegarder
968 button_check_all: Tout cocher
969 button_check_all: Tout cocher
969 button_uncheck_all: Tout dΓ©cocher
970 button_uncheck_all: Tout dΓ©cocher
970 button_collapse_all: Plier tout
971 button_collapse_all: Plier tout
971 button_expand_all: DΓ©plier tout
972 button_expand_all: DΓ©plier tout
972 button_delete: Supprimer
973 button_delete: Supprimer
973 button_create: CrΓ©er
974 button_create: CrΓ©er
974 button_create_and_continue: CrΓ©er et continuer
975 button_create_and_continue: CrΓ©er et continuer
975 button_test: Tester
976 button_test: Tester
976 button_edit: Modifier
977 button_edit: Modifier
977 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
978 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
978 button_add: Ajouter
979 button_add: Ajouter
979 button_change: Changer
980 button_change: Changer
980 button_apply: Appliquer
981 button_apply: Appliquer
981 button_clear: Effacer
982 button_clear: Effacer
982 button_lock: Verrouiller
983 button_lock: Verrouiller
983 button_unlock: DΓ©verrouiller
984 button_unlock: DΓ©verrouiller
984 button_download: TΓ©lΓ©charger
985 button_download: TΓ©lΓ©charger
985 button_list: Lister
986 button_list: Lister
986 button_view: Voir
987 button_view: Voir
987 button_move: DΓ©placer
988 button_move: DΓ©placer
988 button_move_and_follow: DΓ©placer et suivre
989 button_move_and_follow: DΓ©placer et suivre
989 button_back: Retour
990 button_back: Retour
990 button_cancel: Annuler
991 button_cancel: Annuler
991 button_activate: Activer
992 button_activate: Activer
992 button_sort: Trier
993 button_sort: Trier
993 button_log_time: Saisir temps
994 button_log_time: Saisir temps
994 button_rollback: Revenir Γ  cette version
995 button_rollback: Revenir Γ  cette version
995 button_watch: Surveiller
996 button_watch: Surveiller
996 button_unwatch: Ne plus surveiller
997 button_unwatch: Ne plus surveiller
997 button_reply: RΓ©pondre
998 button_reply: RΓ©pondre
998 button_archive: Archiver
999 button_archive: Archiver
999 button_unarchive: DΓ©sarchiver
1000 button_unarchive: DΓ©sarchiver
1000 button_reset: RΓ©initialiser
1001 button_reset: RΓ©initialiser
1001 button_rename: Renommer
1002 button_rename: Renommer
1002 button_change_password: Changer de mot de passe
1003 button_change_password: Changer de mot de passe
1003 button_copy: Copier
1004 button_copy: Copier
1004 button_copy_and_follow: Copier et suivre
1005 button_copy_and_follow: Copier et suivre
1005 button_annotate: Annoter
1006 button_annotate: Annoter
1006 button_update: Mettre Γ  jour
1007 button_update: Mettre Γ  jour
1007 button_configure: Configurer
1008 button_configure: Configurer
1008 button_quote: Citer
1009 button_quote: Citer
1009 button_duplicate: Dupliquer
1010 button_duplicate: Dupliquer
1010 button_show: Afficher
1011 button_show: Afficher
1011 button_hide: Cacher
1012 button_hide: Cacher
1012 button_edit_section: Modifier cette section
1013 button_edit_section: Modifier cette section
1013 button_export: Exporter
1014 button_export: Exporter
1014 button_delete_my_account: Supprimer mon compte
1015 button_delete_my_account: Supprimer mon compte
1015 button_close: Fermer
1016 button_close: Fermer
1016 button_reopen: RΓ©ouvrir
1017 button_reopen: RΓ©ouvrir
1017
1018
1018 status_active: actif
1019 status_active: actif
1019 status_registered: enregistrΓ©
1020 status_registered: enregistrΓ©
1020 status_locked: verrouillΓ©
1021 status_locked: verrouillΓ©
1021
1022
1022 project_status_active: actif
1023 project_status_active: actif
1023 project_status_closed: fermΓ©
1024 project_status_closed: fermΓ©
1024 project_status_archived: archivΓ©
1025 project_status_archived: archivΓ©
1025
1026
1026 version_status_open: ouvert
1027 version_status_open: ouvert
1027 version_status_locked: verrouillΓ©
1028 version_status_locked: verrouillΓ©
1028 version_status_closed: fermΓ©
1029 version_status_closed: fermΓ©
1029
1030
1030 field_active: Actif
1031 field_active: Actif
1031
1032
1032 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
1033 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
1033 text_regexp_info: ex. ^[A-Z0-9]+$
1034 text_regexp_info: ex. ^[A-Z0-9]+$
1034 text_min_max_length_info: 0 pour aucune restriction
1035 text_min_max_length_info: 0 pour aucune restriction
1035 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
1036 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
1036 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
1037 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
1037 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
1038 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
1038 text_are_you_sure: Êtes-vous sûr ?
1039 text_are_you_sure: Êtes-vous sûr ?
1039 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
1040 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
1040 text_journal_changed_no_detail: "%{label} mis Γ  jour"
1041 text_journal_changed_no_detail: "%{label} mis Γ  jour"
1041 text_journal_set_to: "%{label} mis Γ  %{value}"
1042 text_journal_set_to: "%{label} mis Γ  %{value}"
1042 text_journal_deleted: "%{label} %{old} supprimΓ©"
1043 text_journal_deleted: "%{label} %{old} supprimΓ©"
1043 text_journal_added: "%{label} %{value} ajoutΓ©"
1044 text_journal_added: "%{label} %{value} ajoutΓ©"
1044 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
1045 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
1045 text_tip_issue_end_day: tΓ’che finissant ce jour
1046 text_tip_issue_end_day: tΓ’che finissant ce jour
1046 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
1047 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
1047 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s, doit commencer par une minuscule.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
1048 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s, doit commencer par une minuscule.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
1048 text_caracters_maximum: "%{count} caractères maximum."
1049 text_caracters_maximum: "%{count} caractères maximum."
1049 text_caracters_minimum: "%{count} caractères minimum."
1050 text_caracters_minimum: "%{count} caractères minimum."
1050 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
1051 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
1051 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
1052 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
1052 text_unallowed_characters: Caractères non autorisés
1053 text_unallowed_characters: Caractères non autorisés
1053 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
1054 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
1054 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
1055 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
1055 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
1056 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
1056 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
1057 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
1057 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
1058 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
1058 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
1059 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
1059 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
1060 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
1060 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
1061 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
1061 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
1062 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
1062 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)."
1063 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)."
1063 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Γ©."
1064 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Γ©."
1064 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
1065 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
1065 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
1066 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
1066 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
1067 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
1067 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
1068 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
1068 text_issues_destroy_descendants_confirmation: "Cela entrainera Γ©galement la suppression de %{count} sous-tΓ’che(s)."
1069 text_issues_destroy_descendants_confirmation: "Cela entrainera Γ©galement la suppression de %{count} sous-tΓ’che(s)."
1069 text_time_entries_destroy_confirmation: "Etes-vous sΓ»r de vouloir supprimer les temps passΓ©s sΓ©lectionnΓ©s ?"
1070 text_time_entries_destroy_confirmation: "Etes-vous sΓ»r de vouloir supprimer les temps passΓ©s sΓ©lectionnΓ©s ?"
1070 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
1071 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
1071 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
1072 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
1072 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
1073 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
1073 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
1074 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
1074 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
1075 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
1075 text_convert_available: Binaire convert de ImageMagick prΓ©sent (optionel)
1076 text_convert_available: Binaire convert de ImageMagick prΓ©sent (optionel)
1076 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
1077 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
1077 text_destroy_time_entries: Supprimer les heures
1078 text_destroy_time_entries: Supprimer les heures
1078 text_assign_time_entries_to_project: Reporter les heures sur le projet
1079 text_assign_time_entries_to_project: Reporter les heures sur le projet
1079 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
1080 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
1080 text_user_wrote: "%{value} a Γ©crit :"
1081 text_user_wrote: "%{value} a Γ©crit :"
1081 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
1082 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
1082 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
1083 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
1083 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."
1084 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."
1084 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."
1085 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."
1085 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
1086 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
1086 text_custom_field_possible_values_info: 'Une ligne par valeur'
1087 text_custom_field_possible_values_info: 'Une ligne par valeur'
1087 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
1088 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
1088 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
1089 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
1089 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
1090 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
1090 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
1091 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
1091 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 ?"
1092 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 ?"
1092 text_zoom_in: Zoom avant
1093 text_zoom_in: Zoom avant
1093 text_zoom_out: Zoom arrière
1094 text_zoom_out: Zoom arrière
1094 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
1095 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
1095 text_scm_path_encoding_note: "DΓ©faut : UTF-8"
1096 text_scm_path_encoding_note: "DΓ©faut : UTF-8"
1096 text_subversion_repository_note: "Exemples (en fonction des protocoles supportΓ©s) : file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1097 text_subversion_repository_note: "Exemples (en fonction des protocoles supportΓ©s) : file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1097 text_git_repository_note: "Chemin vers un dΓ©pΓ΄t vide et local (exemples : /gitrepo, c:\\gitrepo)"
1098 text_git_repository_note: "Chemin vers un dΓ©pΓ΄t vide et local (exemples : /gitrepo, c:\\gitrepo)"
1098 text_mercurial_repository_note: "Chemin vers un dΓ©pΓ΄t local (exemples : /hgrepo, c:\\hgrepo)"
1099 text_mercurial_repository_note: "Chemin vers un dΓ©pΓ΄t local (exemples : /hgrepo, c:\\hgrepo)"
1099 text_scm_command: Commande
1100 text_scm_command: Commande
1100 text_scm_command_version: Version
1101 text_scm_command_version: Version
1101 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1102 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1102 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1103 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1103 text_issue_conflict_resolution_overwrite: "Appliquer quand mΓͺme ma mise Γ  jour (les notes prΓ©cΓ©dentes seront conservΓ©es mais des changements pourront Γͺtre Γ©crasΓ©s)"
1104 text_issue_conflict_resolution_overwrite: "Appliquer quand mΓͺme ma mise Γ  jour (les notes prΓ©cΓ©dentes seront conservΓ©es mais des changements pourront Γͺtre Γ©crasΓ©s)"
1104 text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
1105 text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
1105 text_issue_conflict_resolution_cancel: "Annuler ma mise Γ  jour et rΓ©afficher %{link}"
1106 text_issue_conflict_resolution_cancel: "Annuler ma mise Γ  jour et rΓ©afficher %{link}"
1106 text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
1107 text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
1107 text_session_expiration_settings: "Attention : le changement de ces paramètres peut entrainer l'expiration des sessions utilisateurs en cours, y compris la vôtre."
1108 text_session_expiration_settings: "Attention : le changement de ces paramètres peut entrainer l'expiration des sessions utilisateurs en cours, y compris la vôtre."
1108 text_project_closed: Ce projet est fermΓ© et accessible en lecture seule.
1109 text_project_closed: Ce projet est fermΓ© et accessible en lecture seule.
1109 text_turning_multiple_off: "Si vous dΓ©sactivez les valeurs multiples, les valeurs multiples seront supprimΓ©es pour n'en conserver qu'une par objet."
1110 text_turning_multiple_off: "Si vous dΓ©sactivez les valeurs multiples, les valeurs multiples seront supprimΓ©es pour n'en conserver qu'une par objet."
1110
1111
1111 default_role_manager: Manager
1112 default_role_manager: Manager
1112 default_role_developer: DΓ©veloppeur
1113 default_role_developer: DΓ©veloppeur
1113 default_role_reporter: Rapporteur
1114 default_role_reporter: Rapporteur
1114 default_tracker_bug: Anomalie
1115 default_tracker_bug: Anomalie
1115 default_tracker_feature: Evolution
1116 default_tracker_feature: Evolution
1116 default_tracker_support: Assistance
1117 default_tracker_support: Assistance
1117 default_issue_status_new: Nouveau
1118 default_issue_status_new: Nouveau
1118 default_issue_status_in_progress: En cours
1119 default_issue_status_in_progress: En cours
1119 default_issue_status_resolved: RΓ©solu
1120 default_issue_status_resolved: RΓ©solu
1120 default_issue_status_feedback: Commentaire
1121 default_issue_status_feedback: Commentaire
1121 default_issue_status_closed: FermΓ©
1122 default_issue_status_closed: FermΓ©
1122 default_issue_status_rejected: RejetΓ©
1123 default_issue_status_rejected: RejetΓ©
1123 default_doc_category_user: Documentation utilisateur
1124 default_doc_category_user: Documentation utilisateur
1124 default_doc_category_tech: Documentation technique
1125 default_doc_category_tech: Documentation technique
1125 default_priority_low: Bas
1126 default_priority_low: Bas
1126 default_priority_normal: Normal
1127 default_priority_normal: Normal
1127 default_priority_high: Haut
1128 default_priority_high: Haut
1128 default_priority_urgent: Urgent
1129 default_priority_urgent: Urgent
1129 default_priority_immediate: ImmΓ©diat
1130 default_priority_immediate: ImmΓ©diat
1130 default_activity_design: Conception
1131 default_activity_design: Conception
1131 default_activity_development: DΓ©veloppement
1132 default_activity_development: DΓ©veloppement
1132
1133
1133 enumeration_issue_priorities: PrioritΓ©s des demandes
1134 enumeration_issue_priorities: PrioritΓ©s des demandes
1134 enumeration_doc_categories: CatΓ©gories des documents
1135 enumeration_doc_categories: CatΓ©gories des documents
1135 enumeration_activities: ActivitΓ©s (suivi du temps)
1136 enumeration_activities: ActivitΓ©s (suivi du temps)
1136 enumeration_system_activity: Activité système
1137 enumeration_system_activity: Activité système
1137 description_filter: Filtre
1138 description_filter: Filtre
1138 description_search: Champ de recherche
1139 description_search: Champ de recherche
1139 description_choose_project: Projets
1140 description_choose_project: Projets
1140 description_project_scope: Périmètre de recherche
1141 description_project_scope: Périmètre de recherche
1141 description_notes: Notes
1142 description_notes: Notes
1142 description_message_content: Contenu du message
1143 description_message_content: Contenu du message
1143 description_query_sort_criteria_attribute: Critère de tri
1144 description_query_sort_criteria_attribute: Critère de tri
1144 description_query_sort_criteria_direction: Ordre de tri
1145 description_query_sort_criteria_direction: Ordre de tri
1145 description_user_mail_notification: Option de notification
1146 description_user_mail_notification: Option de notification
1146 description_available_columns: Colonnes disponibles
1147 description_available_columns: Colonnes disponibles
1147 description_selected_columns: Colonnes sΓ©lectionnΓ©es
1148 description_selected_columns: Colonnes sΓ©lectionnΓ©es
1148 description_all_columns: Toutes les colonnes
1149 description_all_columns: Toutes les colonnes
1149 description_issue_category_reassign: Choisir une catΓ©gorie
1150 description_issue_category_reassign: Choisir une catΓ©gorie
1150 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1151 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1151 description_date_range_list: Choisir une pΓ©riode prΓ©dΓ©finie
1152 description_date_range_list: Choisir une pΓ©riode prΓ©dΓ©finie
1152 description_date_range_interval: Choisir une pΓ©riode
1153 description_date_range_interval: Choisir une pΓ©riode
1153 description_date_from: Date de dΓ©but
1154 description_date_from: Date de dΓ©but
1154 description_date_to: Date de fin
1155 description_date_to: Date de fin
1155 text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
1156 text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
@@ -1,246 +1,250
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18
18
19 # DO NOT MODIFY THIS FILE !!!
19 # DO NOT MODIFY THIS FILE !!!
20 # Settings can be defined through the application in Admin -> Settings
20 # Settings can be defined through the application in Admin -> Settings
21
21
22 app_title:
22 app_title:
23 default: Redmine
23 default: Redmine
24 app_subtitle:
24 app_subtitle:
25 default: Project management
25 default: Project management
26 welcome_text:
26 welcome_text:
27 default:
27 default:
28 login_required:
28 login_required:
29 default: 0
29 default: 0
30 self_registration:
30 self_registration:
31 default: '2'
31 default: '2'
32 lost_password:
32 lost_password:
33 default: 1
33 default: 1
34 unsubscribe:
34 unsubscribe:
35 default: 1
35 default: 1
36 password_min_length:
36 password_min_length:
37 format: int
37 format: int
38 default: 8
38 default: 8
39 # Maximum password age in days
39 # Maximum password age in days
40 password_max_age:
40 password_max_age:
41 format: int
41 format: int
42 default: 0
42 default: 0
43 # Maximum number of additional email addresses per user
43 # Maximum number of additional email addresses per user
44 max_additional_emails:
44 max_additional_emails:
45 format: int
45 format: int
46 default: 5
46 default: 5
47 # Maximum lifetime of user sessions in minutes
47 # Maximum lifetime of user sessions in minutes
48 session_lifetime:
48 session_lifetime:
49 format: int
49 format: int
50 default: 0
50 default: 0
51 # User session timeout in minutes
51 # User session timeout in minutes
52 session_timeout:
52 session_timeout:
53 format: int
53 format: int
54 default: 0
54 default: 0
55 attachment_max_size:
55 attachment_max_size:
56 format: int
56 format: int
57 default: 5120
57 default: 5120
58 issues_export_limit:
58 issues_export_limit:
59 format: int
59 format: int
60 default: 500
60 default: 500
61 activity_days_default:
61 activity_days_default:
62 format: int
62 format: int
63 default: 30
63 default: 30
64 per_page_options:
64 per_page_options:
65 default: '25,50,100'
65 default: '25,50,100'
66 search_results_per_page:
66 search_results_per_page:
67 default: 10
67 default: 10
68 mail_from:
68 mail_from:
69 default: redmine@example.net
69 default: redmine@example.net
70 bcc_recipients:
70 bcc_recipients:
71 default: 1
71 default: 1
72 plain_text_mail:
72 plain_text_mail:
73 default: 0
73 default: 0
74 text_formatting:
74 text_formatting:
75 default: textile
75 default: textile
76 cache_formatted_text:
76 cache_formatted_text:
77 default: 0
77 default: 0
78 wiki_compression:
78 wiki_compression:
79 default: ""
79 default: ""
80 default_language:
80 default_language:
81 default: en
81 default: en
82 force_default_language_for_anonymous:
82 force_default_language_for_anonymous:
83 default: 0
83 default: 0
84 force_default_language_for_loggedin:
84 force_default_language_for_loggedin:
85 default: 0
85 default: 0
86 host_name:
86 host_name:
87 default: localhost:3000
87 default: localhost:3000
88 protocol:
88 protocol:
89 default: http
89 default: http
90 feeds_limit:
90 feeds_limit:
91 format: int
91 format: int
92 default: 15
92 default: 15
93 gantt_items_limit:
93 gantt_items_limit:
94 format: int
94 format: int
95 default: 500
95 default: 500
96 # Maximum size of files that can be displayed
96 # Maximum size of files that can be displayed
97 # inline through the file viewer (in KB)
97 # inline through the file viewer (in KB)
98 file_max_size_displayed:
98 file_max_size_displayed:
99 format: int
99 format: int
100 default: 512
100 default: 512
101 diff_max_lines_displayed:
101 diff_max_lines_displayed:
102 format: int
102 format: int
103 default: 1500
103 default: 1500
104 enabled_scm:
104 enabled_scm:
105 serialized: true
105 serialized: true
106 default:
106 default:
107 - Subversion
107 - Subversion
108 - Darcs
108 - Darcs
109 - Mercurial
109 - Mercurial
110 - Cvs
110 - Cvs
111 - Bazaar
111 - Bazaar
112 - Git
112 - Git
113 autofetch_changesets:
113 autofetch_changesets:
114 default: 1
114 default: 1
115 sys_api_enabled:
115 sys_api_enabled:
116 default: 0
116 default: 0
117 sys_api_key:
117 sys_api_key:
118 default: ''
118 default: ''
119 commit_cross_project_ref:
119 commit_cross_project_ref:
120 default: 0
120 default: 0
121 commit_ref_keywords:
121 commit_ref_keywords:
122 default: 'refs,references,IssueID'
122 default: 'refs,references,IssueID'
123 commit_update_keywords:
123 commit_update_keywords:
124 serialized: true
124 serialized: true
125 default: []
125 default: []
126 commit_logtime_enabled:
126 commit_logtime_enabled:
127 default: 0
127 default: 0
128 commit_logtime_activity_id:
128 commit_logtime_activity_id:
129 format: int
129 format: int
130 default: 0
130 default: 0
131 # autologin duration in days
131 # autologin duration in days
132 # 0 means autologin is disabled
132 # 0 means autologin is disabled
133 autologin:
133 autologin:
134 format: int
134 format: int
135 default: 0
135 default: 0
136 # date format
136 # date format
137 date_format:
137 date_format:
138 default: ''
138 default: ''
139 time_format:
139 time_format:
140 default: ''
140 default: ''
141 user_format:
141 user_format:
142 default: :firstname_lastname
142 default: :firstname_lastname
143 format: symbol
143 format: symbol
144 cross_project_issue_relations:
144 cross_project_issue_relations:
145 default: 0
145 default: 0
146 # Enables subtasks to be in other projects
146 # Enables subtasks to be in other projects
147 cross_project_subtasks:
147 cross_project_subtasks:
148 default: 'tree'
148 default: 'tree'
149 parent_issue_dates:
150 default: 'derived'
151 parent_issue_priority:
152 default: 'derived'
149 link_copied_issue:
153 link_copied_issue:
150 default: 'ask'
154 default: 'ask'
151 issue_group_assignment:
155 issue_group_assignment:
152 default: 0
156 default: 0
153 default_issue_start_date_to_creation_date:
157 default_issue_start_date_to_creation_date:
154 default: 1
158 default: 1
155 notified_events:
159 notified_events:
156 serialized: true
160 serialized: true
157 default:
161 default:
158 - issue_added
162 - issue_added
159 - issue_updated
163 - issue_updated
160 mail_handler_body_delimiters:
164 mail_handler_body_delimiters:
161 default: ''
165 default: ''
162 mail_handler_excluded_filenames:
166 mail_handler_excluded_filenames:
163 default: ''
167 default: ''
164 mail_handler_api_enabled:
168 mail_handler_api_enabled:
165 default: 0
169 default: 0
166 mail_handler_api_key:
170 mail_handler_api_key:
167 default:
171 default:
168 issue_list_default_columns:
172 issue_list_default_columns:
169 serialized: true
173 serialized: true
170 default:
174 default:
171 - tracker
175 - tracker
172 - status
176 - status
173 - priority
177 - priority
174 - subject
178 - subject
175 - assigned_to
179 - assigned_to
176 - updated_on
180 - updated_on
177 display_subprojects_issues:
181 display_subprojects_issues:
178 default: 1
182 default: 1
179 issue_done_ratio:
183 issue_done_ratio:
180 default: 'issue_field'
184 default: 'issue_field'
181 default_projects_public:
185 default_projects_public:
182 default: 1
186 default: 1
183 default_projects_modules:
187 default_projects_modules:
184 serialized: true
188 serialized: true
185 default:
189 default:
186 - issue_tracking
190 - issue_tracking
187 - time_tracking
191 - time_tracking
188 - news
192 - news
189 - documents
193 - documents
190 - files
194 - files
191 - wiki
195 - wiki
192 - repository
196 - repository
193 - boards
197 - boards
194 - calendar
198 - calendar
195 - gantt
199 - gantt
196 default_projects_tracker_ids:
200 default_projects_tracker_ids:
197 serialized: true
201 serialized: true
198 default:
202 default:
199 # Role given to a non-admin user who creates a project
203 # Role given to a non-admin user who creates a project
200 new_project_user_role_id:
204 new_project_user_role_id:
201 format: int
205 format: int
202 default: ''
206 default: ''
203 sequential_project_identifiers:
207 sequential_project_identifiers:
204 default: 0
208 default: 0
205 # encodings used to convert repository files content to UTF-8
209 # encodings used to convert repository files content to UTF-8
206 # multiple values accepted, comma separated
210 # multiple values accepted, comma separated
207 repositories_encodings:
211 repositories_encodings:
208 default: ''
212 default: ''
209 # encoding used to convert commit logs to UTF-8
213 # encoding used to convert commit logs to UTF-8
210 commit_logs_encoding:
214 commit_logs_encoding:
211 default: 'UTF-8'
215 default: 'UTF-8'
212 repository_log_display_limit:
216 repository_log_display_limit:
213 format: int
217 format: int
214 default: 100
218 default: 100
215 ui_theme:
219 ui_theme:
216 default: ''
220 default: ''
217 emails_footer:
221 emails_footer:
218 default: |-
222 default: |-
219 You have received this notification because you have either subscribed to it, or are involved in it.
223 You have received this notification because you have either subscribed to it, or are involved in it.
220 To change your notification preferences, please click here: http://hostname/my/account
224 To change your notification preferences, please click here: http://hostname/my/account
221 gravatar_enabled:
225 gravatar_enabled:
222 default: 0
226 default: 0
223 openid:
227 openid:
224 default: 0
228 default: 0
225 gravatar_default:
229 gravatar_default:
226 default: ''
230 default: ''
227 start_of_week:
231 start_of_week:
228 default: ''
232 default: ''
229 rest_api_enabled:
233 rest_api_enabled:
230 default: 0
234 default: 0
231 jsonp_enabled:
235 jsonp_enabled:
232 default: 0
236 default: 0
233 default_notification_option:
237 default_notification_option:
234 default: 'only_my_events'
238 default: 'only_my_events'
235 emails_header:
239 emails_header:
236 default: ''
240 default: ''
237 thumbnails_enabled:
241 thumbnails_enabled:
238 default: 0
242 default: 0
239 thumbnails_size:
243 thumbnails_size:
240 format: int
244 format: int
241 default: 100
245 default: 100
242 non_working_week_days:
246 non_working_week_days:
243 serialized: true
247 serialized: true
244 default:
248 default:
245 - '6'
249 - '6'
246 - '7'
250 - '7'
@@ -1,235 +1,241
1 module ObjectHelpers
1 module ObjectHelpers
2 def User.generate!(attributes={})
2 def User.generate!(attributes={})
3 @generated_user_login ||= 'user0'
3 @generated_user_login ||= 'user0'
4 @generated_user_login.succ!
4 @generated_user_login.succ!
5 user = User.new(attributes)
5 user = User.new(attributes)
6 user.login = @generated_user_login.dup if user.login.blank?
6 user.login = @generated_user_login.dup if user.login.blank?
7 user.mail = "#{@generated_user_login}@example.com" if user.mail.blank?
7 user.mail = "#{@generated_user_login}@example.com" if user.mail.blank?
8 user.firstname = "Bob" if user.firstname.blank?
8 user.firstname = "Bob" if user.firstname.blank?
9 user.lastname = "Doe" if user.lastname.blank?
9 user.lastname = "Doe" if user.lastname.blank?
10 yield user if block_given?
10 yield user if block_given?
11 user.save!
11 user.save!
12 user
12 user
13 end
13 end
14
14
15 def User.add_to_project(user, project, roles=nil)
15 def User.add_to_project(user, project, roles=nil)
16 roles = Role.find(1) if roles.nil?
16 roles = Role.find(1) if roles.nil?
17 roles = [roles] if roles.is_a?(Role)
17 roles = [roles] if roles.is_a?(Role)
18 Member.create!(:principal => user, :project => project, :roles => roles)
18 Member.create!(:principal => user, :project => project, :roles => roles)
19 end
19 end
20
20
21 def Group.generate!(attributes={})
21 def Group.generate!(attributes={})
22 @generated_group_name ||= 'Group 0'
22 @generated_group_name ||= 'Group 0'
23 @generated_group_name.succ!
23 @generated_group_name.succ!
24 group = Group.new(attributes)
24 group = Group.new(attributes)
25 group.name = @generated_group_name.dup if group.name.blank?
25 group.name = @generated_group_name.dup if group.name.blank?
26 yield group if block_given?
26 yield group if block_given?
27 group.save!
27 group.save!
28 group
28 group
29 end
29 end
30
30
31 def Project.generate!(attributes={})
31 def Project.generate!(attributes={})
32 @generated_project_identifier ||= 'project-0000'
32 @generated_project_identifier ||= 'project-0000'
33 @generated_project_identifier.succ!
33 @generated_project_identifier.succ!
34 project = Project.new(attributes)
34 project = Project.new(attributes)
35 project.name = @generated_project_identifier.dup if project.name.blank?
35 project.name = @generated_project_identifier.dup if project.name.blank?
36 project.identifier = @generated_project_identifier.dup if project.identifier.blank?
36 project.identifier = @generated_project_identifier.dup if project.identifier.blank?
37 yield project if block_given?
37 yield project if block_given?
38 project.save!
38 project.save!
39 project
39 project
40 end
40 end
41
41
42 def Project.generate_with_parent!(parent, attributes={})
42 def Project.generate_with_parent!(parent, attributes={})
43 project = Project.generate!(attributes) do |p|
43 project = Project.generate!(attributes) do |p|
44 p.parent = parent
44 p.parent = parent
45 end
45 end
46 parent.reload if parent
46 parent.reload if parent
47 project
47 project
48 end
48 end
49
49
50 def IssueStatus.generate!(attributes={})
50 def IssueStatus.generate!(attributes={})
51 @generated_status_name ||= 'Status 0'
51 @generated_status_name ||= 'Status 0'
52 @generated_status_name.succ!
52 @generated_status_name.succ!
53 status = IssueStatus.new(attributes)
53 status = IssueStatus.new(attributes)
54 status.name = @generated_status_name.dup if status.name.blank?
54 status.name = @generated_status_name.dup if status.name.blank?
55 yield status if block_given?
55 yield status if block_given?
56 status.save!
56 status.save!
57 status
57 status
58 end
58 end
59
59
60 def Tracker.generate!(attributes={})
60 def Tracker.generate!(attributes={})
61 @generated_tracker_name ||= 'Tracker 0'
61 @generated_tracker_name ||= 'Tracker 0'
62 @generated_tracker_name.succ!
62 @generated_tracker_name.succ!
63 tracker = Tracker.new(attributes)
63 tracker = Tracker.new(attributes)
64 tracker.name = @generated_tracker_name.dup if tracker.name.blank?
64 tracker.name = @generated_tracker_name.dup if tracker.name.blank?
65 tracker.default_status ||= IssueStatus.order('position').first || IssueStatus.generate!
65 tracker.default_status ||= IssueStatus.order('position').first || IssueStatus.generate!
66 yield tracker if block_given?
66 yield tracker if block_given?
67 tracker.save!
67 tracker.save!
68 tracker
68 tracker
69 end
69 end
70
70
71 def Role.generate!(attributes={})
71 def Role.generate!(attributes={})
72 @generated_role_name ||= 'Role 0'
72 @generated_role_name ||= 'Role 0'
73 @generated_role_name.succ!
73 @generated_role_name.succ!
74 role = Role.new(attributes)
74 role = Role.new(attributes)
75 role.name = @generated_role_name.dup if role.name.blank?
75 role.name = @generated_role_name.dup if role.name.blank?
76 yield role if block_given?
76 yield role if block_given?
77 role.save!
77 role.save!
78 role
78 role
79 end
79 end
80
80
81 # Generates an unsaved Issue
81 # Generates an unsaved Issue
82 def Issue.generate(attributes={})
82 def Issue.generate(attributes={})
83 issue = Issue.new(attributes)
83 issue = Issue.new(attributes)
84 issue.project ||= Project.find(1)
84 issue.project ||= Project.find(1)
85 issue.tracker ||= issue.project.trackers.first
85 issue.tracker ||= issue.project.trackers.first
86 issue.subject = 'Generated' if issue.subject.blank?
86 issue.subject = 'Generated' if issue.subject.blank?
87 issue.author ||= User.find(2)
87 issue.author ||= User.find(2)
88 yield issue if block_given?
88 yield issue if block_given?
89 issue
89 issue
90 end
90 end
91
91
92 # Generates a saved Issue
92 # Generates a saved Issue
93 def Issue.generate!(attributes={}, &block)
93 def Issue.generate!(attributes={}, &block)
94 issue = Issue.generate(attributes, &block)
94 issue = Issue.generate(attributes, &block)
95 issue.save!
95 issue.save!
96 issue
96 issue
97 end
97 end
98
98
99 # Generates an issue with 2 children and a grandchild
99 # Generates an issue with 2 children and a grandchild
100 def Issue.generate_with_descendants!(attributes={})
100 def Issue.generate_with_descendants!(attributes={})
101 issue = Issue.generate!(attributes)
101 issue = Issue.generate!(attributes)
102 child = Issue.generate!(:project => issue.project, :subject => 'Child1', :parent_issue_id => issue.id)
102 child = Issue.generate!(:project => issue.project, :subject => 'Child1', :parent_issue_id => issue.id)
103 Issue.generate!(:project => issue.project, :subject => 'Child2', :parent_issue_id => issue.id)
103 Issue.generate!(:project => issue.project, :subject => 'Child2', :parent_issue_id => issue.id)
104 Issue.generate!(:project => issue.project, :subject => 'Child11', :parent_issue_id => child.id)
104 Issue.generate!(:project => issue.project, :subject => 'Child11', :parent_issue_id => child.id)
105 issue.reload
105 issue.reload
106 end
106 end
107
107
108 def Issue.generate_with_child!(attributes={})
109 issue = Issue.generate!(attributes)
110 Issue.generate!(:parent_issue_id => issue.id)
111 issue.reload
112 end
113
108 def Journal.generate!(attributes={})
114 def Journal.generate!(attributes={})
109 journal = Journal.new(attributes)
115 journal = Journal.new(attributes)
110 journal.user ||= User.first
116 journal.user ||= User.first
111 journal.journalized ||= Issue.first
117 journal.journalized ||= Issue.first
112 yield journal if block_given?
118 yield journal if block_given?
113 journal.save!
119 journal.save!
114 journal
120 journal
115 end
121 end
116
122
117 def Version.generate!(attributes={})
123 def Version.generate!(attributes={})
118 @generated_version_name ||= 'Version 0'
124 @generated_version_name ||= 'Version 0'
119 @generated_version_name.succ!
125 @generated_version_name.succ!
120 version = Version.new(attributes)
126 version = Version.new(attributes)
121 version.name = @generated_version_name.dup if version.name.blank?
127 version.name = @generated_version_name.dup if version.name.blank?
122 yield version if block_given?
128 yield version if block_given?
123 version.save!
129 version.save!
124 version
130 version
125 end
131 end
126
132
127 def TimeEntry.generate!(attributes={})
133 def TimeEntry.generate!(attributes={})
128 entry = TimeEntry.new(attributes)
134 entry = TimeEntry.new(attributes)
129 entry.user ||= User.find(2)
135 entry.user ||= User.find(2)
130 entry.issue ||= Issue.find(1) unless entry.project
136 entry.issue ||= Issue.find(1) unless entry.project
131 entry.project ||= entry.issue.project
137 entry.project ||= entry.issue.project
132 entry.activity ||= TimeEntryActivity.first
138 entry.activity ||= TimeEntryActivity.first
133 entry.spent_on ||= Date.today
139 entry.spent_on ||= Date.today
134 entry.hours ||= 1.0
140 entry.hours ||= 1.0
135 entry.save!
141 entry.save!
136 entry
142 entry
137 end
143 end
138
144
139 def AuthSource.generate!(attributes={})
145 def AuthSource.generate!(attributes={})
140 @generated_auth_source_name ||= 'Auth 0'
146 @generated_auth_source_name ||= 'Auth 0'
141 @generated_auth_source_name.succ!
147 @generated_auth_source_name.succ!
142 source = AuthSource.new(attributes)
148 source = AuthSource.new(attributes)
143 source.name = @generated_auth_source_name.dup if source.name.blank?
149 source.name = @generated_auth_source_name.dup if source.name.blank?
144 yield source if block_given?
150 yield source if block_given?
145 source.save!
151 source.save!
146 source
152 source
147 end
153 end
148
154
149 def Board.generate!(attributes={})
155 def Board.generate!(attributes={})
150 @generated_board_name ||= 'Forum 0'
156 @generated_board_name ||= 'Forum 0'
151 @generated_board_name.succ!
157 @generated_board_name.succ!
152 board = Board.new(attributes)
158 board = Board.new(attributes)
153 board.name = @generated_board_name.dup if board.name.blank?
159 board.name = @generated_board_name.dup if board.name.blank?
154 board.description = @generated_board_name.dup if board.description.blank?
160 board.description = @generated_board_name.dup if board.description.blank?
155 yield board if block_given?
161 yield board if block_given?
156 board.save!
162 board.save!
157 board
163 board
158 end
164 end
159
165
160 def Attachment.generate!(attributes={})
166 def Attachment.generate!(attributes={})
161 @generated_filename ||= 'testfile0'
167 @generated_filename ||= 'testfile0'
162 @generated_filename.succ!
168 @generated_filename.succ!
163 attributes = attributes.dup
169 attributes = attributes.dup
164 attachment = Attachment.new(attributes)
170 attachment = Attachment.new(attributes)
165 attachment.container ||= Issue.find(1)
171 attachment.container ||= Issue.find(1)
166 attachment.author ||= User.find(2)
172 attachment.author ||= User.find(2)
167 attachment.filename = @generated_filename.dup if attachment.filename.blank?
173 attachment.filename = @generated_filename.dup if attachment.filename.blank?
168 attachment.save!
174 attachment.save!
169 attachment
175 attachment
170 end
176 end
171
177
172 def CustomField.generate!(attributes={})
178 def CustomField.generate!(attributes={})
173 @generated_custom_field_name ||= 'Custom field 0'
179 @generated_custom_field_name ||= 'Custom field 0'
174 @generated_custom_field_name.succ!
180 @generated_custom_field_name.succ!
175 field = new(attributes)
181 field = new(attributes)
176 field.name = @generated_custom_field_name.dup if field.name.blank?
182 field.name = @generated_custom_field_name.dup if field.name.blank?
177 field.field_format = 'string' if field.field_format.blank?
183 field.field_format = 'string' if field.field_format.blank?
178 yield field if block_given?
184 yield field if block_given?
179 field.save!
185 field.save!
180 field
186 field
181 end
187 end
182
188
183 def Changeset.generate!(attributes={})
189 def Changeset.generate!(attributes={})
184 @generated_changeset_rev ||= '123456'
190 @generated_changeset_rev ||= '123456'
185 @generated_changeset_rev.succ!
191 @generated_changeset_rev.succ!
186 changeset = new(attributes)
192 changeset = new(attributes)
187 changeset.repository ||= Project.find(1).repository
193 changeset.repository ||= Project.find(1).repository
188 changeset.revision ||= @generated_changeset_rev
194 changeset.revision ||= @generated_changeset_rev
189 changeset.committed_on ||= Time.now
195 changeset.committed_on ||= Time.now
190 yield changeset if block_given?
196 yield changeset if block_given?
191 changeset.save!
197 changeset.save!
192 changeset
198 changeset
193 end
199 end
194
200
195 def Query.generate!(attributes={})
201 def Query.generate!(attributes={})
196 query = new(attributes)
202 query = new(attributes)
197 query.name = "Generated query" if query.name.blank?
203 query.name = "Generated query" if query.name.blank?
198 query.user ||= User.find(1)
204 query.user ||= User.find(1)
199 query.save!
205 query.save!
200 query
206 query
201 end
207 end
202 end
208 end
203
209
204 module TrackerObjectHelpers
210 module TrackerObjectHelpers
205 def generate_transitions!(*args)
211 def generate_transitions!(*args)
206 options = args.last.is_a?(Hash) ? args.pop : {}
212 options = args.last.is_a?(Hash) ? args.pop : {}
207 if args.size == 1
213 if args.size == 1
208 args << args.first
214 args << args.first
209 end
215 end
210 if options[:clear]
216 if options[:clear]
211 WorkflowTransition.where(:tracker_id => id).delete_all
217 WorkflowTransition.where(:tracker_id => id).delete_all
212 end
218 end
213 args.each_cons(2) do |old_status_id, new_status_id|
219 args.each_cons(2) do |old_status_id, new_status_id|
214 WorkflowTransition.create!(
220 WorkflowTransition.create!(
215 :tracker => self,
221 :tracker => self,
216 :role_id => (options[:role_id] || 1),
222 :role_id => (options[:role_id] || 1),
217 :old_status_id => old_status_id,
223 :old_status_id => old_status_id,
218 :new_status_id => new_status_id
224 :new_status_id => new_status_id
219 )
225 )
220 end
226 end
221 end
227 end
222 end
228 end
223 Tracker.send :include, TrackerObjectHelpers
229 Tracker.send :include, TrackerObjectHelpers
224
230
225 module IssueObjectHelpers
231 module IssueObjectHelpers
226 def close!
232 def close!
227 self.status = IssueStatus.where(:is_closed => true).first
233 self.status = IssueStatus.where(:is_closed => true).first
228 save!
234 save!
229 end
235 end
230
236
231 def generate_child!(attributes={})
237 def generate_child!(attributes={})
232 Issue.generate!(attributes.merge(:parent_issue_id => self.id))
238 Issue.generate!(attributes.merge(:parent_issue_id => self.id))
233 end
239 end
234 end
240 end
235 Issue.send :include, IssueObjectHelpers
241 Issue.send :include, IssueObjectHelpers
@@ -1,426 +1,383
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
2 # Copyright (C) 2006-2015 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 require File.expand_path('../../test_helper', __FILE__)
18 require File.expand_path('../../test_helper', __FILE__)
19
19
20 class IssueNestedSetTest < ActiveSupport::TestCase
20 class IssueNestedSetTest < ActiveSupport::TestCase
21 fixtures :projects, :users, :roles,
21 fixtures :projects, :users, :roles,
22 :trackers, :projects_trackers,
22 :trackers, :projects_trackers,
23 :issue_statuses, :issue_categories, :issue_relations,
23 :issue_statuses, :issue_categories, :issue_relations,
24 :enumerations,
24 :enumerations,
25 :issues
25 :issues
26
26
27 def test_new_record_is_leaf
27 def test_new_record_is_leaf
28 i = Issue.new
28 i = Issue.new
29 assert i.leaf?
29 assert i.leaf?
30 end
30 end
31
31
32 def test_create_root_issue
32 def test_create_root_issue
33 lft1 = new_issue_lft
33 lft1 = new_issue_lft
34 issue1 = Issue.generate!
34 issue1 = Issue.generate!
35 lft2 = new_issue_lft
35 lft2 = new_issue_lft
36 issue2 = Issue.generate!
36 issue2 = Issue.generate!
37 issue1.reload
37 issue1.reload
38 issue2.reload
38 issue2.reload
39 assert_equal [issue1.id, nil, lft1, lft1 + 1], [issue1.root_id, issue1.parent_id, issue1.lft, issue1.rgt]
39 assert_equal [issue1.id, nil, lft1, lft1 + 1], [issue1.root_id, issue1.parent_id, issue1.lft, issue1.rgt]
40 assert_equal [issue2.id, nil, lft2, lft2 + 1], [issue2.root_id, issue2.parent_id, issue2.lft, issue2.rgt]
40 assert_equal [issue2.id, nil, lft2, lft2 + 1], [issue2.root_id, issue2.parent_id, issue2.lft, issue2.rgt]
41 end
41 end
42
42
43 def test_create_child_issue
43 def test_create_child_issue
44 lft = new_issue_lft
44 lft = new_issue_lft
45 parent = Issue.generate!
45 parent = Issue.generate!
46 child = parent.generate_child!
46 child = parent.generate_child!
47 parent.reload
47 parent.reload
48 child.reload
48 child.reload
49 assert_equal [parent.id, nil, lft, lft + 3], [parent.root_id, parent.parent_id, parent.lft, parent.rgt]
49 assert_equal [parent.id, nil, lft, lft + 3], [parent.root_id, parent.parent_id, parent.lft, parent.rgt]
50 assert_equal [parent.id, parent.id, lft + 1, lft + 2], [child.root_id, child.parent_id, child.lft, child.rgt]
50 assert_equal [parent.id, parent.id, lft + 1, lft + 2], [child.root_id, child.parent_id, child.lft, child.rgt]
51 end
51 end
52
52
53 def test_creating_a_child_in_a_subproject_should_validate
53 def test_creating_a_child_in_a_subproject_should_validate
54 issue = Issue.generate!
54 issue = Issue.generate!
55 child = Issue.new(:project_id => 3, :tracker_id => 2, :author_id => 1,
55 child = Issue.new(:project_id => 3, :tracker_id => 2, :author_id => 1,
56 :subject => 'child', :parent_issue_id => issue.id)
56 :subject => 'child', :parent_issue_id => issue.id)
57 assert_save child
57 assert_save child
58 assert_equal issue, child.reload.parent
58 assert_equal issue, child.reload.parent
59 end
59 end
60
60
61 def test_creating_a_child_in_an_invalid_project_should_not_validate
61 def test_creating_a_child_in_an_invalid_project_should_not_validate
62 issue = Issue.generate!
62 issue = Issue.generate!
63 child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
63 child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
64 :subject => 'child', :parent_issue_id => issue.id)
64 :subject => 'child', :parent_issue_id => issue.id)
65 assert !child.save
65 assert !child.save
66 assert_not_equal [], child.errors[:parent_issue_id]
66 assert_not_equal [], child.errors[:parent_issue_id]
67 end
67 end
68
68
69 def test_move_a_root_to_child
69 def test_move_a_root_to_child
70 lft = new_issue_lft
70 lft = new_issue_lft
71 parent1 = Issue.generate!
71 parent1 = Issue.generate!
72 parent2 = Issue.generate!
72 parent2 = Issue.generate!
73 child = parent1.generate_child!
73 child = parent1.generate_child!
74 parent2.parent_issue_id = parent1.id
74 parent2.parent_issue_id = parent1.id
75 parent2.save!
75 parent2.save!
76 child.reload
76 child.reload
77 parent1.reload
77 parent1.reload
78 parent2.reload
78 parent2.reload
79 assert_equal [parent1.id, lft, lft + 5], [parent1.root_id, parent1.lft, parent1.rgt]
79 assert_equal [parent1.id, lft, lft + 5], [parent1.root_id, parent1.lft, parent1.rgt]
80 assert_equal [parent1.id, lft + 1, lft + 2], [parent2.root_id, parent2.lft, parent2.rgt]
80 assert_equal [parent1.id, lft + 1, lft + 2], [parent2.root_id, parent2.lft, parent2.rgt]
81 assert_equal [parent1.id, lft + 3, lft + 4], [child.root_id, child.lft, child.rgt]
81 assert_equal [parent1.id, lft + 3, lft + 4], [child.root_id, child.lft, child.rgt]
82 end
82 end
83
83
84 def test_move_a_child_to_root
84 def test_move_a_child_to_root
85 lft1 = new_issue_lft
85 lft1 = new_issue_lft
86 parent1 = Issue.generate!
86 parent1 = Issue.generate!
87 lft2 = new_issue_lft
87 lft2 = new_issue_lft
88 parent2 = Issue.generate!
88 parent2 = Issue.generate!
89 lft3 = new_issue_lft
89 lft3 = new_issue_lft
90 child = parent1.generate_child!
90 child = parent1.generate_child!
91 child.parent_issue_id = nil
91 child.parent_issue_id = nil
92 child.save!
92 child.save!
93 child.reload
93 child.reload
94 parent1.reload
94 parent1.reload
95 parent2.reload
95 parent2.reload
96 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
96 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
97 assert_equal [parent2.id, lft2, lft2 + 1], [parent2.root_id, parent2.lft, parent2.rgt]
97 assert_equal [parent2.id, lft2, lft2 + 1], [parent2.root_id, parent2.lft, parent2.rgt]
98 assert_equal [child.id, lft3, lft3 + 1], [child.root_id, child.lft, child.rgt]
98 assert_equal [child.id, lft3, lft3 + 1], [child.root_id, child.lft, child.rgt]
99 end
99 end
100
100
101 def test_move_a_child_to_another_issue
101 def test_move_a_child_to_another_issue
102 lft1 = new_issue_lft
102 lft1 = new_issue_lft
103 parent1 = Issue.generate!
103 parent1 = Issue.generate!
104 lft2 = new_issue_lft
104 lft2 = new_issue_lft
105 parent2 = Issue.generate!
105 parent2 = Issue.generate!
106 child = parent1.generate_child!
106 child = parent1.generate_child!
107 child.parent_issue_id = parent2.id
107 child.parent_issue_id = parent2.id
108 child.save!
108 child.save!
109 child.reload
109 child.reload
110 parent1.reload
110 parent1.reload
111 parent2.reload
111 parent2.reload
112 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
112 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
113 assert_equal [parent2.id, lft2, lft2 + 3], [parent2.root_id, parent2.lft, parent2.rgt]
113 assert_equal [parent2.id, lft2, lft2 + 3], [parent2.root_id, parent2.lft, parent2.rgt]
114 assert_equal [parent2.id, lft2 + 1, lft2 + 2], [child.root_id, child.lft, child.rgt]
114 assert_equal [parent2.id, lft2 + 1, lft2 + 2], [child.root_id, child.lft, child.rgt]
115 end
115 end
116
116
117 def test_move_a_child_with_descendants_to_another_issue
117 def test_move_a_child_with_descendants_to_another_issue
118 lft1 = new_issue_lft
118 lft1 = new_issue_lft
119 parent1 = Issue.generate!
119 parent1 = Issue.generate!
120 lft2 = new_issue_lft
120 lft2 = new_issue_lft
121 parent2 = Issue.generate!
121 parent2 = Issue.generate!
122 child = parent1.generate_child!
122 child = parent1.generate_child!
123 grandchild = child.generate_child!
123 grandchild = child.generate_child!
124 parent1.reload
124 parent1.reload
125 parent2.reload
125 parent2.reload
126 child.reload
126 child.reload
127 grandchild.reload
127 grandchild.reload
128 assert_equal [parent1.id, lft1, lft1 + 5], [parent1.root_id, parent1.lft, parent1.rgt]
128 assert_equal [parent1.id, lft1, lft1 + 5], [parent1.root_id, parent1.lft, parent1.rgt]
129 assert_equal [parent2.id, lft2, lft2 + 1], [parent2.root_id, parent2.lft, parent2.rgt]
129 assert_equal [parent2.id, lft2, lft2 + 1], [parent2.root_id, parent2.lft, parent2.rgt]
130 assert_equal [parent1.id, lft1 + 1, lft1 + 4], [child.root_id, child.lft, child.rgt]
130 assert_equal [parent1.id, lft1 + 1, lft1 + 4], [child.root_id, child.lft, child.rgt]
131 assert_equal [parent1.id, lft1 + 2, lft1 + 3], [grandchild.root_id, grandchild.lft, grandchild.rgt]
131 assert_equal [parent1.id, lft1 + 2, lft1 + 3], [grandchild.root_id, grandchild.lft, grandchild.rgt]
132 child.reload.parent_issue_id = parent2.id
132 child.reload.parent_issue_id = parent2.id
133 child.save!
133 child.save!
134 child.reload
134 child.reload
135 grandchild.reload
135 grandchild.reload
136 parent1.reload
136 parent1.reload
137 parent2.reload
137 parent2.reload
138 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
138 assert_equal [parent1.id, lft1, lft1 + 1], [parent1.root_id, parent1.lft, parent1.rgt]
139 assert_equal [parent2.id, lft2, lft2 + 5], [parent2.root_id, parent2.lft, parent2.rgt]
139 assert_equal [parent2.id, lft2, lft2 + 5], [parent2.root_id, parent2.lft, parent2.rgt]
140 assert_equal [parent2.id, lft2 + 1, lft2 + 4], [child.root_id, child.lft, child.rgt]
140 assert_equal [parent2.id, lft2 + 1, lft2 + 4], [child.root_id, child.lft, child.rgt]
141 assert_equal [parent2.id, lft2 + 2, lft2 + 3], [grandchild.root_id, grandchild.lft, grandchild.rgt]
141 assert_equal [parent2.id, lft2 + 2, lft2 + 3], [grandchild.root_id, grandchild.lft, grandchild.rgt]
142 end
142 end
143
143
144 def test_move_a_child_with_descendants_to_another_project
144 def test_move_a_child_with_descendants_to_another_project
145 lft1 = new_issue_lft
145 lft1 = new_issue_lft
146 parent1 = Issue.generate!
146 parent1 = Issue.generate!
147 child = parent1.generate_child!
147 child = parent1.generate_child!
148 grandchild = child.generate_child!
148 grandchild = child.generate_child!
149 lft4 = new_issue_lft
149 lft4 = new_issue_lft
150 child.reload
150 child.reload
151 child.project = Project.find(2)
151 child.project = Project.find(2)
152 assert child.save
152 assert child.save
153 child.reload
153 child.reload
154 grandchild.reload
154 grandchild.reload
155 parent1.reload
155 parent1.reload
156 assert_equal [1, parent1.id, lft1, lft1 + 1], [parent1.project_id, parent1.root_id, parent1.lft, parent1.rgt]
156 assert_equal [1, parent1.id, lft1, lft1 + 1], [parent1.project_id, parent1.root_id, parent1.lft, parent1.rgt]
157 assert_equal [2, child.id, lft4, lft4 + 3],
157 assert_equal [2, child.id, lft4, lft4 + 3],
158 [child.project_id, child.root_id, child.lft, child.rgt]
158 [child.project_id, child.root_id, child.lft, child.rgt]
159 assert_equal [2, child.id, lft4 + 1, lft4 + 2],
159 assert_equal [2, child.id, lft4 + 1, lft4 + 2],
160 [grandchild.project_id, grandchild.root_id, grandchild.lft, grandchild.rgt]
160 [grandchild.project_id, grandchild.root_id, grandchild.lft, grandchild.rgt]
161 end
161 end
162
162
163 def test_moving_an_issue_to_a_descendant_should_not_validate
163 def test_moving_an_issue_to_a_descendant_should_not_validate
164 parent1 = Issue.generate!
164 parent1 = Issue.generate!
165 parent2 = Issue.generate!
165 parent2 = Issue.generate!
166 child = parent1.generate_child!
166 child = parent1.generate_child!
167 grandchild = child.generate_child!
167 grandchild = child.generate_child!
168
168
169 child.reload
169 child.reload
170 child.parent_issue_id = grandchild.id
170 child.parent_issue_id = grandchild.id
171 assert !child.save
171 assert !child.save
172 assert_not_equal [], child.errors[:parent_issue_id]
172 assert_not_equal [], child.errors[:parent_issue_id]
173 end
173 end
174
174
175 def test_updating_a_root_issue_should_not_trigger_update_nested_set_attributes_on_parent_change
175 def test_updating_a_root_issue_should_not_trigger_update_nested_set_attributes_on_parent_change
176 issue = Issue.find(Issue.generate!.id)
176 issue = Issue.find(Issue.generate!.id)
177 issue.parent_issue_id = ""
177 issue.parent_issue_id = ""
178 issue.expects(:update_nested_set_attributes_on_parent_change).never
178 issue.expects(:update_nested_set_attributes_on_parent_change).never
179 issue.save!
179 issue.save!
180 end
180 end
181
181
182 def test_updating_a_child_issue_should_not_trigger_update_nested_set_attributes_on_parent_change
182 def test_updating_a_child_issue_should_not_trigger_update_nested_set_attributes_on_parent_change
183 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
183 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
184 issue.parent_issue_id = "1"
184 issue.parent_issue_id = "1"
185 issue.expects(:update_nested_set_attributes_on_parent_change).never
185 issue.expects(:update_nested_set_attributes_on_parent_change).never
186 issue.save!
186 issue.save!
187 end
187 end
188
188
189 def test_moving_a_root_issue_should_trigger_update_nested_set_attributes_on_parent_change
189 def test_moving_a_root_issue_should_trigger_update_nested_set_attributes_on_parent_change
190 issue = Issue.find(Issue.generate!.id)
190 issue = Issue.find(Issue.generate!.id)
191 issue.parent_issue_id = "1"
191 issue.parent_issue_id = "1"
192 issue.expects(:update_nested_set_attributes_on_parent_change).once
192 issue.expects(:update_nested_set_attributes_on_parent_change).once
193 issue.save!
193 issue.save!
194 end
194 end
195
195
196 def test_moving_a_child_issue_to_another_parent_should_trigger_update_nested_set_attributes_on_parent_change
196 def test_moving_a_child_issue_to_another_parent_should_trigger_update_nested_set_attributes_on_parent_change
197 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
197 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
198 issue.parent_issue_id = "2"
198 issue.parent_issue_id = "2"
199 issue.expects(:update_nested_set_attributes_on_parent_change).once
199 issue.expects(:update_nested_set_attributes_on_parent_change).once
200 issue.save!
200 issue.save!
201 end
201 end
202
202
203 def test_moving_a_child_issue_to_root_should_trigger_update_nested_set_attributes_on_parent_change
203 def test_moving_a_child_issue_to_root_should_trigger_update_nested_set_attributes_on_parent_change
204 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
204 issue = Issue.find(Issue.generate!(:parent_issue_id => 1).id)
205 issue.parent_issue_id = ""
205 issue.parent_issue_id = ""
206 issue.expects(:update_nested_set_attributes_on_parent_change).once
206 issue.expects(:update_nested_set_attributes_on_parent_change).once
207 issue.save!
207 issue.save!
208 end
208 end
209
209
210 def test_destroy_should_destroy_children
210 def test_destroy_should_destroy_children
211 lft1 = new_issue_lft
211 lft1 = new_issue_lft
212 issue1 = Issue.generate!
212 issue1 = Issue.generate!
213 issue2 = Issue.generate!
213 issue2 = Issue.generate!
214 issue3 = issue2.generate_child!
214 issue3 = issue2.generate_child!
215 issue4 = issue1.generate_child!
215 issue4 = issue1.generate_child!
216 issue3.init_journal(User.find(2))
216 issue3.init_journal(User.find(2))
217 issue3.subject = 'child with journal'
217 issue3.subject = 'child with journal'
218 issue3.save!
218 issue3.save!
219 assert_difference 'Issue.count', -2 do
219 assert_difference 'Issue.count', -2 do
220 assert_difference 'Journal.count', -1 do
220 assert_difference 'Journal.count', -1 do
221 assert_difference 'JournalDetail.count', -1 do
221 assert_difference 'JournalDetail.count', -1 do
222 Issue.find(issue2.id).destroy
222 Issue.find(issue2.id).destroy
223 end
223 end
224 end
224 end
225 end
225 end
226 issue1.reload
226 issue1.reload
227 issue4.reload
227 issue4.reload
228 assert !Issue.exists?(issue2.id)
228 assert !Issue.exists?(issue2.id)
229 assert !Issue.exists?(issue3.id)
229 assert !Issue.exists?(issue3.id)
230 assert_equal [issue1.id, lft1, lft1 + 3], [issue1.root_id, issue1.lft, issue1.rgt]
230 assert_equal [issue1.id, lft1, lft1 + 3], [issue1.root_id, issue1.lft, issue1.rgt]
231 assert_equal [issue1.id, lft1 + 1, lft1 + 2], [issue4.root_id, issue4.lft, issue4.rgt]
231 assert_equal [issue1.id, lft1 + 1, lft1 + 2], [issue4.root_id, issue4.lft, issue4.rgt]
232 end
232 end
233
233
234 def test_destroy_child_should_update_parent
234 def test_destroy_child_should_update_parent
235 lft1 = new_issue_lft
235 lft1 = new_issue_lft
236 issue = Issue.generate!
236 issue = Issue.generate!
237 child1 = issue.generate_child!
237 child1 = issue.generate_child!
238 child2 = issue.generate_child!
238 child2 = issue.generate_child!
239 issue.reload
239 issue.reload
240 assert_equal [issue.id, lft1, lft1 + 5], [issue.root_id, issue.lft, issue.rgt]
240 assert_equal [issue.id, lft1, lft1 + 5], [issue.root_id, issue.lft, issue.rgt]
241 child2.reload.destroy
241 child2.reload.destroy
242 issue.reload
242 issue.reload
243 assert_equal [issue.id, lft1, lft1 + 3], [issue.root_id, issue.lft, issue.rgt]
243 assert_equal [issue.id, lft1, lft1 + 3], [issue.root_id, issue.lft, issue.rgt]
244 end
244 end
245
245
246 def test_destroy_parent_issue_updated_during_children_destroy
246 def test_destroy_parent_issue_updated_during_children_destroy
247 parent = Issue.generate!
247 parent = Issue.generate!
248 parent.generate_child!(:start_date => Date.today)
248 parent.generate_child!(:start_date => Date.today)
249 parent.generate_child!(:start_date => 2.days.from_now)
249 parent.generate_child!(:start_date => 2.days.from_now)
250
250
251 assert_difference 'Issue.count', -3 do
251 assert_difference 'Issue.count', -3 do
252 Issue.find(parent.id).destroy
252 Issue.find(parent.id).destroy
253 end
253 end
254 end
254 end
255
255
256 def test_destroy_child_issue_with_children
256 def test_destroy_child_issue_with_children
257 root = Issue.generate!
257 root = Issue.generate!
258 child = root.generate_child!
258 child = root.generate_child!
259 leaf = child.generate_child!
259 leaf = child.generate_child!
260 leaf.init_journal(User.find(2))
260 leaf.init_journal(User.find(2))
261 leaf.subject = 'leaf with journal'
261 leaf.subject = 'leaf with journal'
262 leaf.save!
262 leaf.save!
263
263
264 assert_difference 'Issue.count', -2 do
264 assert_difference 'Issue.count', -2 do
265 assert_difference 'Journal.count', -1 do
265 assert_difference 'Journal.count', -1 do
266 assert_difference 'JournalDetail.count', -1 do
266 assert_difference 'JournalDetail.count', -1 do
267 Issue.find(child.id).destroy
267 Issue.find(child.id).destroy
268 end
268 end
269 end
269 end
270 end
270 end
271
271
272 root = Issue.find(root.id)
272 root = Issue.find(root.id)
273 assert root.leaf?, "Root issue is not a leaf (lft: #{root.lft}, rgt: #{root.rgt})"
273 assert root.leaf?, "Root issue is not a leaf (lft: #{root.lft}, rgt: #{root.rgt})"
274 end
274 end
275
275
276 def test_destroy_issue_with_grand_child
276 def test_destroy_issue_with_grand_child
277 lft1 = new_issue_lft
277 lft1 = new_issue_lft
278 parent = Issue.generate!
278 parent = Issue.generate!
279 issue = parent.generate_child!
279 issue = parent.generate_child!
280 child = issue.generate_child!
280 child = issue.generate_child!
281 grandchild1 = child.generate_child!
281 grandchild1 = child.generate_child!
282 grandchild2 = child.generate_child!
282 grandchild2 = child.generate_child!
283 assert_difference 'Issue.count', -4 do
283 assert_difference 'Issue.count', -4 do
284 Issue.find(issue.id).destroy
284 Issue.find(issue.id).destroy
285 parent.reload
285 parent.reload
286 assert_equal [lft1, lft1 + 1], [parent.lft, parent.rgt]
286 assert_equal [lft1, lft1 + 1], [parent.lft, parent.rgt]
287 end
287 end
288 end
288 end
289
289
290 def test_parent_priority_should_be_the_highest_child_priority
291 parent = Issue.generate!(:priority => IssuePriority.find_by_name('Normal'))
292 # Create children
293 child1 = parent.generate_child!(:priority => IssuePriority.find_by_name('High'))
294 assert_equal 'High', parent.reload.priority.name
295 child2 = child1.generate_child!(:priority => IssuePriority.find_by_name('Immediate'))
296 assert_equal 'Immediate', child1.reload.priority.name
297 assert_equal 'Immediate', parent.reload.priority.name
298 child3 = parent.generate_child!(:priority => IssuePriority.find_by_name('Low'))
299 assert_equal 'Immediate', parent.reload.priority.name
300 # Destroy a child
301 child1.destroy
302 assert_equal 'Low', parent.reload.priority.name
303 # Update a child
304 child3.reload.priority = IssuePriority.find_by_name('Normal')
305 child3.save!
306 assert_equal 'Normal', parent.reload.priority.name
307 end
308
309 def test_parent_dates_should_be_lowest_start_and_highest_due_dates
310 parent = Issue.generate!
311 parent.generate_child!(:start_date => '2010-01-25', :due_date => '2010-02-15')
312 parent.generate_child!( :due_date => '2010-02-13')
313 parent.generate_child!(:start_date => '2010-02-01', :due_date => '2010-02-22')
314 parent.reload
315 assert_equal Date.parse('2010-01-25'), parent.start_date
316 assert_equal Date.parse('2010-02-22'), parent.due_date
317 end
318
319 def test_parent_done_ratio_should_be_average_done_ratio_of_leaves
290 def test_parent_done_ratio_should_be_average_done_ratio_of_leaves
320 parent = Issue.generate!
291 parent = Issue.generate!
321 parent.generate_child!(:done_ratio => 20)
292 parent.generate_child!(:done_ratio => 20)
322 assert_equal 20, parent.reload.done_ratio
293 assert_equal 20, parent.reload.done_ratio
323 parent.generate_child!(:done_ratio => 70)
294 parent.generate_child!(:done_ratio => 70)
324 assert_equal 45, parent.reload.done_ratio
295 assert_equal 45, parent.reload.done_ratio
325
296
326 child = parent.generate_child!(:done_ratio => 0)
297 child = parent.generate_child!(:done_ratio => 0)
327 assert_equal 30, parent.reload.done_ratio
298 assert_equal 30, parent.reload.done_ratio
328
299
329 child.generate_child!(:done_ratio => 30)
300 child.generate_child!(:done_ratio => 30)
330 assert_equal 30, child.reload.done_ratio
301 assert_equal 30, child.reload.done_ratio
331 assert_equal 40, parent.reload.done_ratio
302 assert_equal 40, parent.reload.done_ratio
332 end
303 end
333
304
334 def test_parent_done_ratio_should_be_weighted_by_estimated_times_if_any
305 def test_parent_done_ratio_should_be_weighted_by_estimated_times_if_any
335 parent = Issue.generate!
306 parent = Issue.generate!
336 parent.generate_child!(:estimated_hours => 10, :done_ratio => 20)
307 parent.generate_child!(:estimated_hours => 10, :done_ratio => 20)
337 assert_equal 20, parent.reload.done_ratio
308 assert_equal 20, parent.reload.done_ratio
338 parent.generate_child!(:estimated_hours => 20, :done_ratio => 50)
309 parent.generate_child!(:estimated_hours => 20, :done_ratio => 50)
339 assert_equal (50 * 20 + 20 * 10) / 30, parent.reload.done_ratio
310 assert_equal (50 * 20 + 20 * 10) / 30, parent.reload.done_ratio
340 end
311 end
341
312
342 def test_parent_done_ratio_with_child_estimate_to_0_should_reach_100
313 def test_parent_done_ratio_with_child_estimate_to_0_should_reach_100
343 parent = Issue.generate!
314 parent = Issue.generate!
344 issue1 = parent.generate_child!
315 issue1 = parent.generate_child!
345 issue2 = parent.generate_child!(:estimated_hours => 0)
316 issue2 = parent.generate_child!(:estimated_hours => 0)
346 assert_equal 0, parent.reload.done_ratio
317 assert_equal 0, parent.reload.done_ratio
347 issue1.reload.close!
318 issue1.reload.close!
348 assert_equal 50, parent.reload.done_ratio
319 assert_equal 50, parent.reload.done_ratio
349 issue2.reload.close!
320 issue2.reload.close!
350 assert_equal 100, parent.reload.done_ratio
321 assert_equal 100, parent.reload.done_ratio
351 end
322 end
352
323
353 def test_parent_estimate_should_be_sum_of_leaves
324 def test_parent_estimate_should_be_sum_of_leaves
354 parent = Issue.generate!
325 parent = Issue.generate!
355 parent.generate_child!(:estimated_hours => nil)
326 parent.generate_child!(:estimated_hours => nil)
356 assert_equal nil, parent.reload.estimated_hours
327 assert_equal nil, parent.reload.estimated_hours
357 parent.generate_child!(:estimated_hours => 5)
328 parent.generate_child!(:estimated_hours => 5)
358 assert_equal 5, parent.reload.estimated_hours
329 assert_equal 5, parent.reload.estimated_hours
359 parent.generate_child!(:estimated_hours => 7)
330 parent.generate_child!(:estimated_hours => 7)
360 assert_equal 12, parent.reload.estimated_hours
331 assert_equal 12, parent.reload.estimated_hours
361 end
332 end
362
333
363 def test_done_ratio_of_parent_with_a_child_without_estimated_time_should_not_exceed_100
334 def test_done_ratio_of_parent_with_a_child_without_estimated_time_should_not_exceed_100
364 parent = Issue.generate!
335 parent = Issue.generate!
365 parent.generate_child!(:estimated_hours => 40)
336 parent.generate_child!(:estimated_hours => 40)
366 parent.generate_child!(:estimated_hours => 40)
337 parent.generate_child!(:estimated_hours => 40)
367 parent.generate_child!(:estimated_hours => 20)
338 parent.generate_child!(:estimated_hours => 20)
368 parent.generate_child!
339 parent.generate_child!
369 parent.reload.children.each(&:close!)
340 parent.reload.children.each(&:close!)
370 assert_equal 100, parent.reload.done_ratio
341 assert_equal 100, parent.reload.done_ratio
371 end
342 end
372
343
373 def test_done_ratio_of_parent_with_a_child_with_estimated_time_at_0_should_not_exceed_100
344 def test_done_ratio_of_parent_with_a_child_with_estimated_time_at_0_should_not_exceed_100
374 parent = Issue.generate!
345 parent = Issue.generate!
375 parent.generate_child!(:estimated_hours => 40)
346 parent.generate_child!(:estimated_hours => 40)
376 parent.generate_child!(:estimated_hours => 40)
347 parent.generate_child!(:estimated_hours => 40)
377 parent.generate_child!(:estimated_hours => 20)
348 parent.generate_child!(:estimated_hours => 20)
378 parent.generate_child!(:estimated_hours => 0)
349 parent.generate_child!(:estimated_hours => 0)
379 parent.reload.children.each(&:close!)
350 parent.reload.children.each(&:close!)
380 assert_equal 100, parent.reload.done_ratio
351 assert_equal 100, parent.reload.done_ratio
381 end
352 end
382
353
383 def test_move_parent_updates_old_parent_attributes
354 def test_move_parent_updates_old_parent_attributes
384 first_parent = Issue.generate!
355 first_parent = Issue.generate!
385 second_parent = Issue.generate!
356 second_parent = Issue.generate!
386 child = first_parent.generate_child!(:estimated_hours => 5)
357 child = first_parent.generate_child!(:estimated_hours => 5)
387 assert_equal 5, first_parent.reload.estimated_hours
358 assert_equal 5, first_parent.reload.estimated_hours
388 child.update_attributes(:estimated_hours => 7, :parent_issue_id => second_parent.id)
359 child.update_attributes(:estimated_hours => 7, :parent_issue_id => second_parent.id)
389 assert_equal 7, second_parent.reload.estimated_hours
360 assert_equal 7, second_parent.reload.estimated_hours
390 assert_nil first_parent.reload.estimated_hours
361 assert_nil first_parent.reload.estimated_hours
391 end
362 end
392
363
393 def test_reschuling_a_parent_should_reschedule_subtasks
394 parent = Issue.generate!
395 c1 = parent.generate_child!(:start_date => '2010-05-12', :due_date => '2010-05-18')
396 c2 = parent.generate_child!(:start_date => '2010-06-03', :due_date => '2010-06-10')
397 parent.reload
398 parent.reschedule_on!(Date.parse('2010-06-02'))
399 c1.reload
400 assert_equal [Date.parse('2010-06-02'), Date.parse('2010-06-08')], [c1.start_date, c1.due_date]
401 c2.reload
402 assert_equal [Date.parse('2010-06-03'), Date.parse('2010-06-10')], [c2.start_date, c2.due_date] # no change
403 parent.reload
404 assert_equal [Date.parse('2010-06-02'), Date.parse('2010-06-10')], [parent.start_date, parent.due_date]
405 end
406
407 def test_project_copy_should_copy_issue_tree
364 def test_project_copy_should_copy_issue_tree
408 p = Project.create!(:name => 'Tree copy', :identifier => 'tree-copy', :tracker_ids => [1, 2])
365 p = Project.create!(:name => 'Tree copy', :identifier => 'tree-copy', :tracker_ids => [1, 2])
409 i1 = Issue.generate!(:project => p, :subject => 'i1')
366 i1 = Issue.generate!(:project => p, :subject => 'i1')
410 i2 = i1.generate_child!(:project => p, :subject => 'i2')
367 i2 = i1.generate_child!(:project => p, :subject => 'i2')
411 i3 = i1.generate_child!(:project => p, :subject => 'i3')
368 i3 = i1.generate_child!(:project => p, :subject => 'i3')
412 i4 = i2.generate_child!(:project => p, :subject => 'i4')
369 i4 = i2.generate_child!(:project => p, :subject => 'i4')
413 i5 = Issue.generate!(:project => p, :subject => 'i5')
370 i5 = Issue.generate!(:project => p, :subject => 'i5')
414 c = Project.new(:name => 'Copy', :identifier => 'copy', :tracker_ids => [1, 2])
371 c = Project.new(:name => 'Copy', :identifier => 'copy', :tracker_ids => [1, 2])
415 c.copy(p, :only => 'issues')
372 c.copy(p, :only => 'issues')
416 c.reload
373 c.reload
417
374
418 assert_equal 5, c.issues.count
375 assert_equal 5, c.issues.count
419 ic1, ic2, ic3, ic4, ic5 = c.issues.order('subject').to_a
376 ic1, ic2, ic3, ic4, ic5 = c.issues.order('subject').to_a
420 assert ic1.root?
377 assert ic1.root?
421 assert_equal ic1, ic2.parent
378 assert_equal ic1, ic2.parent
422 assert_equal ic1, ic3.parent
379 assert_equal ic1, ic3.parent
423 assert_equal ic2, ic4.parent
380 assert_equal ic2, ic4.parent
424 assert ic5.root?
381 assert ic5.root?
425 end
382 end
426 end
383 end
General Comments 0
You need to be logged in to leave comments. Login now