##// END OF EJS Templates
Adds an application setting to limit the number of items that can be displayed on the gantt chart (#6276)....
Jean-Philippe Lang -
r4399:b48291ec63b5
parent child
Show More
@@ -1,189 +1,194
1 1 <% @gantt.view = self %>
2 2 <h2><%= l(:label_gantt) %></h2>
3 3
4 4 <% form_tag(gantt_path(:month => params[:month], :year => params[:year], :months => params[:months]), :method => :put, :id => 'query_form') do %>
5 5 <%= hidden_field_tag('project_id', @project.to_param) if @project%>
6 6 <fieldset id="filters" class="collapsible">
7 7 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
8 8 <div>
9 9 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
10 10 </div>
11 11 </fieldset>
12 12
13 13 <p class="contextual">
14 14 <%= gantt_zoom_link(@gantt, :in) %>
15 15 <%= gantt_zoom_link(@gantt, :out) %>
16 16 </p>
17 17
18 18 <p class="buttons">
19 19 <%= text_field_tag 'months', @gantt.months, :size => 2 %>
20 20 <%= l(:label_months_from) %>
21 21 <%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %>
22 22 <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %>
23 23 <%= hidden_field_tag 'zoom', @gantt.zoom %>
24 24
25 25 <%= link_to_remote l(:button_apply),
26 26 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
27 27 :update => "content",
28 28 :with => "Form.serialize('query_form')"
29 29 }, :class => 'icon icon-checked' %>
30 30
31 31 <%= link_to_remote l(:button_clear),
32 32 { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) },
33 33 :method => :put,
34 34 :update => "content",
35 35 }, :class => 'icon icon-reload' if @query.new_record? %>
36 36 </p>
37 37 <% end %>
38 38
39 39 <%= error_messages_for 'query' %>
40 40 <% if @query.valid? %>
41 41 <% zoom = 1
42 42 @gantt.zoom.times { zoom = zoom * 2 }
43 43
44 44 subject_width = 330
45 45 header_heigth = 18
46 46
47 47 headers_height = header_heigth
48 48 show_weeks = false
49 49 show_days = false
50 50
51 51 if @gantt.zoom >1
52 52 show_weeks = true
53 53 headers_height = 2*header_heigth
54 54 if @gantt.zoom > 2
55 55 show_days = true
56 56 headers_height = 3*header_heigth
57 57 end
58 58 end
59 59
60 60 # Width of the entire chart
61 61 g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
62 62
63 63 @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
64 64
65 65 g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
66 66 t_height = g_height + headers_height
67 67
68 68
69 69 %>
70
71 <% if @gantt.truncated %>
72 <p class="warning"><%= l(:notice_gantt_chart_truncated, :max => @gantt.max_rows) %></p>
73 <% end %>
74
70 75 <table width="100%" style="border:0; border-collapse: collapse;">
71 76 <tr>
72 77 <td style="width:<%= subject_width %>px; padding:0px;">
73 78
74 79 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;">
75 80 <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div>
76 81 <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div>
77 82
78 83 <%= @gantt.subjects %>
79 84
80 85 </div>
81 86 </td>
82 87 <td>
83 88
84 89 <div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;">
85 90 <div style="width:<%= g_width-1 %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr">&nbsp;</div>
86 91 <%
87 92 #
88 93 # Months headers
89 94 #
90 95 month_f = @gantt.date_from
91 96 left = 0
92 97 height = (show_weeks ? header_heigth : header_heigth + g_height)
93 98 @gantt.months.times do
94 99 width = ((month_f >> 1) - month_f) * zoom - 1
95 100 %>
96 101 <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">
97 102 <%= link_to "#{month_f.year}-#{month_f.month}", @gantt.params.merge(:year => month_f.year, :month => month_f.month), :title => "#{month_name(month_f.month)} #{month_f.year}"%>
98 103 </div>
99 104 <%
100 105 left = left + width + 1
101 106 month_f = month_f >> 1
102 107 end %>
103 108
104 109 <%
105 110 #
106 111 # Weeks headers
107 112 #
108 113 if show_weeks
109 114 left = 0
110 115 height = (show_days ? header_heigth-1 : header_heigth-1 + g_height)
111 116 if @gantt.date_from.cwday == 1
112 117 # @date_from is monday
113 118 week_f = @gantt.date_from
114 119 else
115 120 # find next monday after @date_from
116 121 week_f = @gantt.date_from + (7 - @gantt.date_from.cwday + 1)
117 122 width = (7 - @gantt.date_from.cwday + 1) * zoom-1
118 123 %>
119 124 <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">&nbsp;</div>
120 125 <%
121 126 left = left + width+1
122 127 end %>
123 128 <%
124 129 while week_f <= @gantt.date_to
125 130 width = (week_f + 6 <= @gantt.date_to) ? 7 * zoom -1 : (@gantt.date_to - week_f + 1) * zoom-1
126 131 %>
127 132 <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">
128 133 <small><%= week_f.cweek if width >= 16 %></small>
129 134 </div>
130 135 <%
131 136 left = left + width+1
132 137 week_f = week_f+7
133 138 end
134 139 end %>
135 140
136 141 <%
137 142 #
138 143 # Days headers
139 144 #
140 145 if show_days
141 146 left = 0
142 147 height = g_height + header_heigth - 1
143 148 wday = @gantt.date_from.cwday
144 149 (@gantt.date_to - @gantt.date_from + 1).to_i.times do
145 150 width = zoom - 1
146 151 %>
147 152 <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="gantt_hdr">
148 153 <%= day_name(wday).first %>
149 154 </div>
150 155 <%
151 156 left = left + width+1
152 157 wday = wday + 1
153 158 wday = 1 if wday > 7
154 159 end
155 160 end %>
156 161
157 162 <%= @gantt.lines %>
158 163
159 164 <%
160 165 #
161 166 # Today red line (excluded from cache)
162 167 #
163 168 if Date.today >= @gantt.date_from and Date.today <= @gantt.date_to %>
164 169 <div style="position: absolute;height:<%= g_height %>px;top:<%= headers_height + 1 %>px;left:<%= ((Date.today-@gantt.date_from+1)*zoom).floor()-1 %>px;width:10px;border-left: 1px dashed red;">&nbsp;</div>
165 170 <% end %>
166 171
167 172 </div>
168 173 </td>
169 174 </tr>
170 175 </table>
171 176
172 177 <table width="100%">
173 178 <tr>
174 179 <td align="left"><%= link_to_remote ('&#171; ' + l(:label_previous)), {:url => @gantt.params_previous, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_previous)} %></td>
175 180 <td align="right"><%= link_to_remote (l(:label_next) + ' &#187;'), {:url => @gantt.params_next, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_next)} %></td>
176 181 </tr>
177 182 </table>
178 183
179 184 <% other_formats_links do |f| %>
180 185 <%= f.link_to 'PDF', :url => @gantt.params %>
181 186 <%= f.link_to('PNG', :url => @gantt.params) if @gantt.respond_to?('to_image') %>
182 187 <% end %>
183 188 <% end # query.valid? %>
184 189
185 190 <% content_for :sidebar do %>
186 191 <%= render :partial => 'issues/sidebar' %>
187 192 <% end %>
188 193
189 194 <% html_title(l(:label_gantt)) -%>
@@ -1,19 +1,21
1 1 <% form_tag({:action => 'edit', :tab => 'issues'}) do %>
2 2
3 3 <div class="box tabular settings">
4 4 <p><%= setting_check_box :cross_project_issue_relations %></p>
5 5
6 6 <p><%= setting_check_box :display_subprojects_issues %></p>
7 7
8 8 <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
9 9
10 10 <p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
11
12 <p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
11 13 </div>
12 14
13 15 <fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>
14 16 <%= setting_multiselect(:issue_list_default_columns,
15 17 Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %>
16 18 </fieldset>
17 19
18 20 <%= submit_tag l(:button_save) %>
19 21 <% end %>
@@ -1,932 +1,934
1 1 en:
2 2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
3 3 direction: ltr
4 4 date:
5 5 formats:
6 6 # Use the strftime parameters for formats.
7 7 # When no format has been given, it uses default.
8 8 # You can provide other formats here if you like!
9 9 default: "%m/%d/%Y"
10 10 short: "%b %d"
11 11 long: "%B %d, %Y"
12 12
13 13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
14 14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
15 15
16 16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
17 17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
18 18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
19 19 # Used in date_select and datime_select.
20 20 order: [ :year, :month, :day ]
21 21
22 22 time:
23 23 formats:
24 24 default: "%m/%d/%Y %I:%M %p"
25 25 time: "%I:%M %p"
26 26 short: "%d %b %H:%M"
27 27 long: "%B %d, %Y %H:%M"
28 28 am: "am"
29 29 pm: "pm"
30 30
31 31 datetime:
32 32 distance_in_words:
33 33 half_a_minute: "half a minute"
34 34 less_than_x_seconds:
35 35 one: "less than 1 second"
36 36 other: "less than {{count}} seconds"
37 37 x_seconds:
38 38 one: "1 second"
39 39 other: "{{count}} seconds"
40 40 less_than_x_minutes:
41 41 one: "less than a minute"
42 42 other: "less than {{count}} minutes"
43 43 x_minutes:
44 44 one: "1 minute"
45 45 other: "{{count}} minutes"
46 46 about_x_hours:
47 47 one: "about 1 hour"
48 48 other: "about {{count}} hours"
49 49 x_days:
50 50 one: "1 day"
51 51 other: "{{count}} days"
52 52 about_x_months:
53 53 one: "about 1 month"
54 54 other: "about {{count}} months"
55 55 x_months:
56 56 one: "1 month"
57 57 other: "{{count}} months"
58 58 about_x_years:
59 59 one: "about 1 year"
60 60 other: "about {{count}} years"
61 61 over_x_years:
62 62 one: "over 1 year"
63 63 other: "over {{count}} years"
64 64 almost_x_years:
65 65 one: "almost 1 year"
66 66 other: "almost {{count}} years"
67 67
68 68 number:
69 69 # Default format for numbers
70 70 format:
71 71 separator: "."
72 72 delimiter: ""
73 73 precision: 3
74 74 human:
75 75 format:
76 76 delimiter: ""
77 77 precision: 1
78 78 storage_units:
79 79 format: "%n %u"
80 80 units:
81 81 byte:
82 82 one: "Byte"
83 83 other: "Bytes"
84 84 kb: "kB"
85 85 mb: "MB"
86 86 gb: "GB"
87 87 tb: "TB"
88 88
89 89
90 90 # Used in array.to_sentence.
91 91 support:
92 92 array:
93 93 sentence_connector: "and"
94 94 skip_last_comma: false
95 95
96 96 activerecord:
97 97 errors:
98 98 messages:
99 99 inclusion: "is not included in the list"
100 100 exclusion: "is reserved"
101 101 invalid: "is invalid"
102 102 confirmation: "doesn't match confirmation"
103 103 accepted: "must be accepted"
104 104 empty: "can't be empty"
105 105 blank: "can't be blank"
106 106 too_long: "is too long (maximum is {{count}} characters)"
107 107 too_short: "is too short (minimum is {{count}} characters)"
108 108 wrong_length: "is the wrong length (should be {{count}} characters)"
109 109 taken: "has already been taken"
110 110 not_a_number: "is not a number"
111 111 not_a_date: "is not a valid date"
112 112 greater_than: "must be greater than {{count}}"
113 113 greater_than_or_equal_to: "must be greater than or equal to {{count}}"
114 114 equal_to: "must be equal to {{count}}"
115 115 less_than: "must be less than {{count}}"
116 116 less_than_or_equal_to: "must be less than or equal to {{count}}"
117 117 odd: "must be odd"
118 118 even: "must be even"
119 119 greater_than_start_date: "must be greater than start date"
120 120 not_same_project: "doesn't belong to the same project"
121 121 circular_dependency: "This relation would create a circular dependency"
122 122 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
123 123
124 124 actionview_instancetag_blank_option: Please select
125 125
126 126 general_text_No: 'No'
127 127 general_text_Yes: 'Yes'
128 128 general_text_no: 'no'
129 129 general_text_yes: 'yes'
130 130 general_lang_name: 'English'
131 131 general_csv_separator: ','
132 132 general_csv_decimal_separator: '.'
133 133 general_csv_encoding: ISO-8859-1
134 134 general_pdf_encoding: ISO-8859-1
135 135 general_first_day_of_week: '7'
136 136
137 137 notice_account_updated: Account was successfully updated.
138 138 notice_account_invalid_creditentials: Invalid user or password
139 139 notice_account_password_updated: Password was successfully updated.
140 140 notice_account_wrong_password: Wrong password
141 141 notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you.
142 142 notice_account_unknown_email: Unknown user.
143 143 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
144 144 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
145 145 notice_account_activated: Your account has been activated. You can now log in.
146 146 notice_successful_create: Successful creation.
147 147 notice_successful_update: Successful update.
148 148 notice_successful_delete: Successful deletion.
149 149 notice_successful_connection: Successful connection.
150 150 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
151 151 notice_locking_conflict: Data has been updated by another user.
152 152 notice_not_authorized: You are not authorized to access this page.
153 153 notice_not_authorized_archived_project: The project you're trying to access has been archived.
154 154 notice_email_sent: "An email was sent to {{value}}"
155 155 notice_email_error: "An error occurred while sending mail ({{value}})"
156 156 notice_feeds_access_key_reseted: Your RSS access key was reset.
157 157 notice_api_access_key_reseted: Your API access key was reset.
158 158 notice_failed_to_save_issues: "Failed to save {{count}} issue(s) on {{total}} selected: {{ids}}."
159 159 notice_failed_to_save_members: "Failed to save member(s): {{errors}}."
160 160 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
161 161 notice_account_pending: "Your account was created and is now pending administrator approval."
162 162 notice_default_data_loaded: Default configuration successfully loaded.
163 163 notice_unable_delete_version: Unable to delete version.
164 164 notice_unable_delete_time_entry: Unable to delete time log entry.
165 165 notice_issue_done_ratios_updated: Issue done ratios updated.
166 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed ({{max}})"
166 167
167 168 error_can_t_load_default_data: "Default configuration could not be loaded: {{value}}"
168 169 error_scm_not_found: "The entry or revision was not found in the repository."
169 170 error_scm_command_failed: "An error occurred when trying to access the repository: {{value}}"
170 171 error_scm_annotate: "The entry does not exist or can not be annotated."
171 172 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
172 173 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
173 174 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
174 175 error_can_not_delete_custom_field: Unable to delete custom field
175 176 error_can_not_delete_tracker: "This tracker contains issues and can't be deleted."
176 177 error_can_not_remove_role: "This role is in use and can not be deleted."
177 178 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version can not be reopened'
178 179 error_can_not_archive_project: This project can not be archived
179 180 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
180 181 error_workflow_copy_source: 'Please select a source tracker or role'
181 182 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
182 183 error_unable_delete_issue_status: 'Unable to delete issue status'
183 184 error_unable_to_connect: "Unable to connect ({{value}})"
184 185 warning_attachments_not_saved: "{{count}} file(s) could not be saved."
185 186
186 187 mail_subject_lost_password: "Your {{value}} password"
187 188 mail_body_lost_password: 'To change your password, click on the following link:'
188 189 mail_subject_register: "Your {{value}} account activation"
189 190 mail_body_register: 'To activate your account, click on the following link:'
190 191 mail_body_account_information_external: "You can use your {{value}} account to log in."
191 192 mail_body_account_information: Your account information
192 193 mail_subject_account_activation_request: "{{value}} account activation request"
193 194 mail_body_account_activation_request: "A new user ({{value}}) has registered. The account is pending your approval:"
194 195 mail_subject_reminder: "{{count}} issue(s) due in the next {{days}} days"
195 196 mail_body_reminder: "{{count}} issue(s) that are assigned to you are due in the next {{days}} days:"
196 197 mail_subject_wiki_content_added: "'{{id}}' wiki page has been added"
197 198 mail_body_wiki_content_added: "The '{{id}}' wiki page has been added by {{author}}."
198 199 mail_subject_wiki_content_updated: "'{{id}}' wiki page has been updated"
199 200 mail_body_wiki_content_updated: "The '{{id}}' wiki page has been updated by {{author}}."
200 201
201 202 gui_validation_error: 1 error
202 203 gui_validation_error_plural: "{{count}} errors"
203 204
204 205 field_name: Name
205 206 field_description: Description
206 207 field_summary: Summary
207 208 field_is_required: Required
208 209 field_firstname: Firstname
209 210 field_lastname: Lastname
210 211 field_mail: Email
211 212 field_filename: File
212 213 field_filesize: Size
213 214 field_downloads: Downloads
214 215 field_author: Author
215 216 field_created_on: Created
216 217 field_updated_on: Updated
217 218 field_field_format: Format
218 219 field_is_for_all: For all projects
219 220 field_possible_values: Possible values
220 221 field_regexp: Regular expression
221 222 field_min_length: Minimum length
222 223 field_max_length: Maximum length
223 224 field_value: Value
224 225 field_category: Category
225 226 field_title: Title
226 227 field_project: Project
227 228 field_issue: Issue
228 229 field_status: Status
229 230 field_notes: Notes
230 231 field_is_closed: Issue closed
231 232 field_is_default: Default value
232 233 field_tracker: Tracker
233 234 field_subject: Subject
234 235 field_due_date: Due date
235 236 field_assigned_to: Assignee
236 237 field_priority: Priority
237 238 field_fixed_version: Target version
238 239 field_user: User
239 240 field_principal: Principal
240 241 field_role: Role
241 242 field_homepage: Homepage
242 243 field_is_public: Public
243 244 field_parent: Subproject of
244 245 field_is_in_roadmap: Issues displayed in roadmap
245 246 field_login: Login
246 247 field_mail_notification: Email notifications
247 248 field_admin: Administrator
248 249 field_last_login_on: Last connection
249 250 field_language: Language
250 251 field_effective_date: Date
251 252 field_password: Password
252 253 field_new_password: New password
253 254 field_password_confirmation: Confirmation
254 255 field_version: Version
255 256 field_type: Type
256 257 field_host: Host
257 258 field_port: Port
258 259 field_account: Account
259 260 field_base_dn: Base DN
260 261 field_attr_login: Login attribute
261 262 field_attr_firstname: Firstname attribute
262 263 field_attr_lastname: Lastname attribute
263 264 field_attr_mail: Email attribute
264 265 field_onthefly: On-the-fly user creation
265 266 field_start_date: Start date
266 267 field_done_ratio: % Done
267 268 field_auth_source: Authentication mode
268 269 field_hide_mail: Hide my email address
269 270 field_comments: Comment
270 271 field_url: URL
271 272 field_start_page: Start page
272 273 field_subproject: Subproject
273 274 field_hours: Hours
274 275 field_activity: Activity
275 276 field_spent_on: Date
276 277 field_identifier: Identifier
277 278 field_is_filter: Used as a filter
278 279 field_issue_to: Related issue
279 280 field_delay: Delay
280 281 field_assignable: Issues can be assigned to this role
281 282 field_redirect_existing_links: Redirect existing links
282 283 field_estimated_hours: Estimated time
283 284 field_column_names: Columns
284 285 field_time_entries: Log time
285 286 field_time_zone: Time zone
286 287 field_searchable: Searchable
287 288 field_default_value: Default value
288 289 field_comments_sorting: Display comments
289 290 field_parent_title: Parent page
290 291 field_editable: Editable
291 292 field_watcher: Watcher
292 293 field_identity_url: OpenID URL
293 294 field_content: Content
294 295 field_group_by: Group results by
295 296 field_sharing: Sharing
296 297 field_parent_issue: Parent task
297 298 field_member_of_group: "Assignee's group"
298 299 field_assigned_to_role: "Assignee's role"
299 300 field_text: Text field
300 301 field_visible: Visible
301 302
302 303 setting_app_title: Application title
303 304 setting_app_subtitle: Application subtitle
304 305 setting_welcome_text: Welcome text
305 306 setting_default_language: Default language
306 307 setting_login_required: Authentication required
307 308 setting_self_registration: Self-registration
308 309 setting_attachment_max_size: Attachment max. size
309 310 setting_issues_export_limit: Issues export limit
310 311 setting_mail_from: Emission email address
311 312 setting_bcc_recipients: Blind carbon copy recipients (bcc)
312 313 setting_plain_text_mail: Plain text mail (no HTML)
313 314 setting_host_name: Host name and path
314 315 setting_text_formatting: Text formatting
315 316 setting_wiki_compression: Wiki history compression
316 317 setting_feeds_limit: Feed content limit
317 318 setting_default_projects_public: New projects are public by default
318 319 setting_autofetch_changesets: Autofetch commits
319 320 setting_sys_api_enabled: Enable WS for repository management
320 321 setting_commit_ref_keywords: Referencing keywords
321 322 setting_commit_fix_keywords: Fixing keywords
322 323 setting_autologin: Autologin
323 324 setting_date_format: Date format
324 325 setting_time_format: Time format
325 326 setting_cross_project_issue_relations: Allow cross-project issue relations
326 327 setting_issue_list_default_columns: Default columns displayed on the issue list
327 328 setting_repositories_encodings: Repositories encodings
328 329 setting_commit_logs_encoding: Commit messages encoding
329 330 setting_emails_header: Emails header
330 331 setting_emails_footer: Emails footer
331 332 setting_protocol: Protocol
332 333 setting_per_page_options: Objects per page options
333 334 setting_user_format: Users display format
334 335 setting_activity_days_default: Days displayed on project activity
335 336 setting_display_subprojects_issues: Display subprojects issues on main projects by default
336 337 setting_enabled_scm: Enabled SCM
337 338 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
338 339 setting_mail_handler_api_enabled: Enable WS for incoming emails
339 340 setting_mail_handler_api_key: API key
340 341 setting_sequential_project_identifiers: Generate sequential project identifiers
341 342 setting_gravatar_enabled: Use Gravatar user icons
342 343 setting_gravatar_default: Default Gravatar image
343 344 setting_diff_max_lines_displayed: Max number of diff lines displayed
344 345 setting_file_max_size_displayed: Max size of text files displayed inline
345 346 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
346 347 setting_openid: Allow OpenID login and registration
347 348 setting_password_min_length: Minimum password length
348 349 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
349 350 setting_default_projects_modules: Default enabled modules for new projects
350 351 setting_issue_done_ratio: Calculate the issue done ratio with
351 352 setting_issue_done_ratio_issue_field: Use the issue field
352 353 setting_issue_done_ratio_issue_status: Use the issue status
353 354 setting_start_of_week: Start calendars on
354 355 setting_rest_api_enabled: Enable REST web service
355 356 setting_cache_formatted_text: Cache formatted text
356 357 setting_default_notification_option: Default notification option
357 358 setting_commit_logtime_enabled: Enable time logging
358 359 setting_commit_logtime_activity_id: Activity for logged time
360 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
359 361
360 362 permission_add_project: Create project
361 363 permission_add_subprojects: Create subprojects
362 364 permission_edit_project: Edit project
363 365 permission_select_project_modules: Select project modules
364 366 permission_manage_members: Manage members
365 367 permission_manage_project_activities: Manage project activities
366 368 permission_manage_versions: Manage versions
367 369 permission_manage_categories: Manage issue categories
368 370 permission_view_issues: View Issues
369 371 permission_add_issues: Add issues
370 372 permission_edit_issues: Edit issues
371 373 permission_manage_issue_relations: Manage issue relations
372 374 permission_add_issue_notes: Add notes
373 375 permission_edit_issue_notes: Edit notes
374 376 permission_edit_own_issue_notes: Edit own notes
375 377 permission_move_issues: Move issues
376 378 permission_delete_issues: Delete issues
377 379 permission_manage_public_queries: Manage public queries
378 380 permission_save_queries: Save queries
379 381 permission_view_gantt: View gantt chart
380 382 permission_view_calendar: View calendar
381 383 permission_view_issue_watchers: View watchers list
382 384 permission_add_issue_watchers: Add watchers
383 385 permission_delete_issue_watchers: Delete watchers
384 386 permission_log_time: Log spent time
385 387 permission_view_time_entries: View spent time
386 388 permission_edit_time_entries: Edit time logs
387 389 permission_edit_own_time_entries: Edit own time logs
388 390 permission_manage_news: Manage news
389 391 permission_comment_news: Comment news
390 392 permission_manage_documents: Manage documents
391 393 permission_view_documents: View documents
392 394 permission_manage_files: Manage files
393 395 permission_view_files: View files
394 396 permission_manage_wiki: Manage wiki
395 397 permission_rename_wiki_pages: Rename wiki pages
396 398 permission_delete_wiki_pages: Delete wiki pages
397 399 permission_view_wiki_pages: View wiki
398 400 permission_view_wiki_edits: View wiki history
399 401 permission_edit_wiki_pages: Edit wiki pages
400 402 permission_delete_wiki_pages_attachments: Delete attachments
401 403 permission_protect_wiki_pages: Protect wiki pages
402 404 permission_manage_repository: Manage repository
403 405 permission_browse_repository: Browse repository
404 406 permission_view_changesets: View changesets
405 407 permission_commit_access: Commit access
406 408 permission_manage_boards: Manage boards
407 409 permission_view_messages: View messages
408 410 permission_add_messages: Post messages
409 411 permission_edit_messages: Edit messages
410 412 permission_edit_own_messages: Edit own messages
411 413 permission_delete_messages: Delete messages
412 414 permission_delete_own_messages: Delete own messages
413 415 permission_export_wiki_pages: Export wiki pages
414 416 permission_manage_subtasks: Manage subtasks
415 417
416 418 project_module_issue_tracking: Issue tracking
417 419 project_module_time_tracking: Time tracking
418 420 project_module_news: News
419 421 project_module_documents: Documents
420 422 project_module_files: Files
421 423 project_module_wiki: Wiki
422 424 project_module_repository: Repository
423 425 project_module_boards: Boards
424 426 project_module_calendar: Calendar
425 427 project_module_gantt: Gantt
426 428
427 429 label_user: User
428 430 label_user_plural: Users
429 431 label_user_new: New user
430 432 label_user_anonymous: Anonymous
431 433 label_project: Project
432 434 label_project_new: New project
433 435 label_project_plural: Projects
434 436 label_x_projects:
435 437 zero: no projects
436 438 one: 1 project
437 439 other: "{{count}} projects"
438 440 label_project_all: All Projects
439 441 label_project_latest: Latest projects
440 442 label_issue: Issue
441 443 label_issue_new: New issue
442 444 label_issue_plural: Issues
443 445 label_issue_view_all: View all issues
444 446 label_issues_by: "Issues by {{value}}"
445 447 label_issue_added: Issue added
446 448 label_issue_updated: Issue updated
447 449 label_document: Document
448 450 label_document_new: New document
449 451 label_document_plural: Documents
450 452 label_document_added: Document added
451 453 label_role: Role
452 454 label_role_plural: Roles
453 455 label_role_new: New role
454 456 label_role_and_permissions: Roles and permissions
455 457 label_member: Member
456 458 label_member_new: New member
457 459 label_member_plural: Members
458 460 label_tracker: Tracker
459 461 label_tracker_plural: Trackers
460 462 label_tracker_new: New tracker
461 463 label_workflow: Workflow
462 464 label_issue_status: Issue status
463 465 label_issue_status_plural: Issue statuses
464 466 label_issue_status_new: New status
465 467 label_issue_category: Issue category
466 468 label_issue_category_plural: Issue categories
467 469 label_issue_category_new: New category
468 470 label_custom_field: Custom field
469 471 label_custom_field_plural: Custom fields
470 472 label_custom_field_new: New custom field
471 473 label_enumerations: Enumerations
472 474 label_enumeration_new: New value
473 475 label_information: Information
474 476 label_information_plural: Information
475 477 label_please_login: Please log in
476 478 label_register: Register
477 479 label_login_with_open_id_option: or login with OpenID
478 480 label_password_lost: Lost password
479 481 label_home: Home
480 482 label_my_page: My page
481 483 label_my_account: My account
482 484 label_my_projects: My projects
483 485 label_my_page_block: My page block
484 486 label_administration: Administration
485 487 label_login: Sign in
486 488 label_logout: Sign out
487 489 label_help: Help
488 490 label_reported_issues: Reported issues
489 491 label_assigned_to_me_issues: Issues assigned to me
490 492 label_last_login: Last connection
491 493 label_registered_on: Registered on
492 494 label_activity: Activity
493 495 label_overall_activity: Overall activity
494 496 label_user_activity: "{{value}}'s activity"
495 497 label_new: New
496 498 label_logged_as: Logged in as
497 499 label_environment: Environment
498 500 label_authentication: Authentication
499 501 label_auth_source: Authentication mode
500 502 label_auth_source_new: New authentication mode
501 503 label_auth_source_plural: Authentication modes
502 504 label_subproject_plural: Subprojects
503 505 label_subproject_new: New subproject
504 506 label_and_its_subprojects: "{{value}} and its subprojects"
505 507 label_min_max_length: Min - Max length
506 508 label_list: List
507 509 label_date: Date
508 510 label_integer: Integer
509 511 label_float: Float
510 512 label_boolean: Boolean
511 513 label_string: Text
512 514 label_text: Long text
513 515 label_attribute: Attribute
514 516 label_attribute_plural: Attributes
515 517 label_download: "{{count}} Download"
516 518 label_download_plural: "{{count}} Downloads"
517 519 label_no_data: No data to display
518 520 label_change_status: Change status
519 521 label_history: History
520 522 label_attachment: File
521 523 label_attachment_new: New file
522 524 label_attachment_delete: Delete file
523 525 label_attachment_plural: Files
524 526 label_file_added: File added
525 527 label_report: Report
526 528 label_report_plural: Reports
527 529 label_news: News
528 530 label_news_new: Add news
529 531 label_news_plural: News
530 532 label_news_latest: Latest news
531 533 label_news_view_all: View all news
532 534 label_news_added: News added
533 535 label_settings: Settings
534 536 label_overview: Overview
535 537 label_version: Version
536 538 label_version_new: New version
537 539 label_version_plural: Versions
538 540 label_close_versions: Close completed versions
539 541 label_confirmation: Confirmation
540 542 label_export_to: 'Also available in:'
541 543 label_read: Read...
542 544 label_public_projects: Public projects
543 545 label_open_issues: open
544 546 label_open_issues_plural: open
545 547 label_closed_issues: closed
546 548 label_closed_issues_plural: closed
547 549 label_x_open_issues_abbr_on_total:
548 550 zero: 0 open / {{total}}
549 551 one: 1 open / {{total}}
550 552 other: "{{count}} open / {{total}}"
551 553 label_x_open_issues_abbr:
552 554 zero: 0 open
553 555 one: 1 open
554 556 other: "{{count}} open"
555 557 label_x_closed_issues_abbr:
556 558 zero: 0 closed
557 559 one: 1 closed
558 560 other: "{{count}} closed"
559 561 label_total: Total
560 562 label_permissions: Permissions
561 563 label_current_status: Current status
562 564 label_new_statuses_allowed: New statuses allowed
563 565 label_all: all
564 566 label_none: none
565 567 label_nobody: nobody
566 568 label_next: Next
567 569 label_previous: Previous
568 570 label_used_by: Used by
569 571 label_details: Details
570 572 label_add_note: Add a note
571 573 label_per_page: Per page
572 574 label_calendar: Calendar
573 575 label_months_from: months from
574 576 label_gantt: Gantt
575 577 label_internal: Internal
576 578 label_last_changes: "last {{count}} changes"
577 579 label_change_view_all: View all changes
578 580 label_personalize_page: Personalize this page
579 581 label_comment: Comment
580 582 label_comment_plural: Comments
581 583 label_x_comments:
582 584 zero: no comments
583 585 one: 1 comment
584 586 other: "{{count}} comments"
585 587 label_comment_add: Add a comment
586 588 label_comment_added: Comment added
587 589 label_comment_delete: Delete comments
588 590 label_query: Custom query
589 591 label_query_plural: Custom queries
590 592 label_query_new: New query
591 593 label_filter_add: Add filter
592 594 label_filter_plural: Filters
593 595 label_equals: is
594 596 label_not_equals: is not
595 597 label_in_less_than: in less than
596 598 label_in_more_than: in more than
597 599 label_greater_or_equal: '>='
598 600 label_less_or_equal: '<='
599 601 label_in: in
600 602 label_today: today
601 603 label_all_time: all time
602 604 label_yesterday: yesterday
603 605 label_this_week: this week
604 606 label_last_week: last week
605 607 label_last_n_days: "last {{count}} days"
606 608 label_this_month: this month
607 609 label_last_month: last month
608 610 label_this_year: this year
609 611 label_date_range: Date range
610 612 label_less_than_ago: less than days ago
611 613 label_more_than_ago: more than days ago
612 614 label_ago: days ago
613 615 label_contains: contains
614 616 label_not_contains: doesn't contain
615 617 label_day_plural: days
616 618 label_repository: Repository
617 619 label_repository_plural: Repositories
618 620 label_browse: Browse
619 621 label_modification: "{{count}} change"
620 622 label_modification_plural: "{{count}} changes"
621 623 label_branch: Branch
622 624 label_tag: Tag
623 625 label_revision: Revision
624 626 label_revision_plural: Revisions
625 627 label_revision_id: "Revision {{value}}"
626 628 label_associated_revisions: Associated revisions
627 629 label_added: added
628 630 label_modified: modified
629 631 label_copied: copied
630 632 label_renamed: renamed
631 633 label_deleted: deleted
632 634 label_latest_revision: Latest revision
633 635 label_latest_revision_plural: Latest revisions
634 636 label_view_revisions: View revisions
635 637 label_view_all_revisions: View all revisions
636 638 label_max_size: Maximum size
637 639 label_sort_highest: Move to top
638 640 label_sort_higher: Move up
639 641 label_sort_lower: Move down
640 642 label_sort_lowest: Move to bottom
641 643 label_roadmap: Roadmap
642 644 label_roadmap_due_in: "Due in {{value}}"
643 645 label_roadmap_overdue: "{{value}} late"
644 646 label_roadmap_no_issues: No issues for this version
645 647 label_search: Search
646 648 label_result_plural: Results
647 649 label_all_words: All words
648 650 label_wiki: Wiki
649 651 label_wiki_edit: Wiki edit
650 652 label_wiki_edit_plural: Wiki edits
651 653 label_wiki_page: Wiki page
652 654 label_wiki_page_plural: Wiki pages
653 655 label_index_by_title: Index by title
654 656 label_index_by_date: Index by date
655 657 label_current_version: Current version
656 658 label_preview: Preview
657 659 label_feed_plural: Feeds
658 660 label_changes_details: Details of all changes
659 661 label_issue_tracking: Issue tracking
660 662 label_spent_time: Spent time
661 663 label_overall_spent_time: Overall spent time
662 664 label_f_hour: "{{value}} hour"
663 665 label_f_hour_plural: "{{value}} hours"
664 666 label_time_tracking: Time tracking
665 667 label_change_plural: Changes
666 668 label_statistics: Statistics
667 669 label_commits_per_month: Commits per month
668 670 label_commits_per_author: Commits per author
669 671 label_view_diff: View differences
670 672 label_diff_inline: inline
671 673 label_diff_side_by_side: side by side
672 674 label_options: Options
673 675 label_copy_workflow_from: Copy workflow from
674 676 label_permissions_report: Permissions report
675 677 label_watched_issues: Watched issues
676 678 label_related_issues: Related issues
677 679 label_applied_status: Applied status
678 680 label_loading: Loading...
679 681 label_relation_new: New relation
680 682 label_relation_delete: Delete relation
681 683 label_relates_to: related to
682 684 label_duplicates: duplicates
683 685 label_duplicated_by: duplicated by
684 686 label_blocks: blocks
685 687 label_blocked_by: blocked by
686 688 label_precedes: precedes
687 689 label_follows: follows
688 690 label_end_to_start: end to start
689 691 label_end_to_end: end to end
690 692 label_start_to_start: start to start
691 693 label_start_to_end: start to end
692 694 label_stay_logged_in: Stay logged in
693 695 label_disabled: disabled
694 696 label_show_completed_versions: Show completed versions
695 697 label_me: me
696 698 label_board: Forum
697 699 label_board_new: New forum
698 700 label_board_plural: Forums
699 701 label_board_locked: Locked
700 702 label_board_sticky: Sticky
701 703 label_topic_plural: Topics
702 704 label_message_plural: Messages
703 705 label_message_last: Last message
704 706 label_message_new: New message
705 707 label_message_posted: Message added
706 708 label_reply_plural: Replies
707 709 label_send_information: Send account information to the user
708 710 label_year: Year
709 711 label_month: Month
710 712 label_week: Week
711 713 label_date_from: From
712 714 label_date_to: To
713 715 label_language_based: Based on user's language
714 716 label_sort_by: "Sort by {{value}}"
715 717 label_send_test_email: Send a test email
716 718 label_feeds_access_key: RSS access key
717 719 label_missing_feeds_access_key: Missing a RSS access key
718 720 label_feeds_access_key_created_on: "RSS access key created {{value}} ago"
719 721 label_module_plural: Modules
720 722 label_added_time_by: "Added by {{author}} {{age}} ago"
721 723 label_updated_time_by: "Updated by {{author}} {{age}} ago"
722 724 label_updated_time: "Updated {{value}} ago"
723 725 label_jump_to_a_project: Jump to a project...
724 726 label_file_plural: Files
725 727 label_changeset_plural: Changesets
726 728 label_default_columns: Default columns
727 729 label_no_change_option: (No change)
728 730 label_bulk_edit_selected_issues: Bulk edit selected issues
729 731 label_theme: Theme
730 732 label_default: Default
731 733 label_search_titles_only: Search titles only
732 734 label_user_mail_option_all: "For any event on all my projects"
733 735 label_user_mail_option_selected: "For any event on the selected projects only..."
734 736 label_user_mail_option_none: "No events"
735 737 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
736 738 label_user_mail_option_only_assigned: "Only for things I am assigned to"
737 739 label_user_mail_option_only_owner: "Only for things I am the owner of"
738 740 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
739 741 label_registration_activation_by_email: account activation by email
740 742 label_registration_manual_activation: manual account activation
741 743 label_registration_automatic_activation: automatic account activation
742 744 label_display_per_page: "Per page: {{value}}"
743 745 label_age: Age
744 746 label_change_properties: Change properties
745 747 label_general: General
746 748 label_more: More
747 749 label_scm: SCM
748 750 label_plugins: Plugins
749 751 label_ldap_authentication: LDAP authentication
750 752 label_downloads_abbr: D/L
751 753 label_optional_description: Optional description
752 754 label_add_another_file: Add another file
753 755 label_preferences: Preferences
754 756 label_chronological_order: In chronological order
755 757 label_reverse_chronological_order: In reverse chronological order
756 758 label_planning: Planning
757 759 label_incoming_emails: Incoming emails
758 760 label_generate_key: Generate a key
759 761 label_issue_watchers: Watchers
760 762 label_example: Example
761 763 label_display: Display
762 764 label_sort: Sort
763 765 label_ascending: Ascending
764 766 label_descending: Descending
765 767 label_date_from_to: From {{start}} to {{end}}
766 768 label_wiki_content_added: Wiki page added
767 769 label_wiki_content_updated: Wiki page updated
768 770 label_group: Group
769 771 label_group_plural: Groups
770 772 label_group_new: New group
771 773 label_time_entry_plural: Spent time
772 774 label_version_sharing_none: Not shared
773 775 label_version_sharing_descendants: With subprojects
774 776 label_version_sharing_hierarchy: With project hierarchy
775 777 label_version_sharing_tree: With project tree
776 778 label_version_sharing_system: With all projects
777 779 label_update_issue_done_ratios: Update issue done ratios
778 780 label_copy_source: Source
779 781 label_copy_target: Target
780 782 label_copy_same_as_target: Same as target
781 783 label_display_used_statuses_only: Only display statuses that are used by this tracker
782 784 label_api_access_key: API access key
783 785 label_missing_api_access_key: Missing an API access key
784 786 label_api_access_key_created_on: "API access key created {{value}} ago"
785 787 label_profile: Profile
786 788 label_subtask_plural: Subtasks
787 789 label_project_copy_notifications: Send email notifications during the project copy
788 790 label_principal_search: "Search for user or group:"
789 791 label_user_search: "Search for user:"
790 792
791 793 button_login: Login
792 794 button_submit: Submit
793 795 button_save: Save
794 796 button_check_all: Check all
795 797 button_uncheck_all: Uncheck all
796 798 button_delete: Delete
797 799 button_create: Create
798 800 button_create_and_continue: Create and continue
799 801 button_test: Test
800 802 button_edit: Edit
801 803 button_edit_associated_wikipage: "Edit associated Wiki page: {{page_title}}"
802 804 button_add: Add
803 805 button_change: Change
804 806 button_apply: Apply
805 807 button_clear: Clear
806 808 button_lock: Lock
807 809 button_unlock: Unlock
808 810 button_download: Download
809 811 button_list: List
810 812 button_view: View
811 813 button_move: Move
812 814 button_move_and_follow: Move and follow
813 815 button_back: Back
814 816 button_cancel: Cancel
815 817 button_activate: Activate
816 818 button_sort: Sort
817 819 button_log_time: Log time
818 820 button_rollback: Rollback to this version
819 821 button_watch: Watch
820 822 button_unwatch: Unwatch
821 823 button_reply: Reply
822 824 button_archive: Archive
823 825 button_unarchive: Unarchive
824 826 button_reset: Reset
825 827 button_rename: Rename
826 828 button_change_password: Change password
827 829 button_copy: Copy
828 830 button_copy_and_follow: Copy and follow
829 831 button_annotate: Annotate
830 832 button_update: Update
831 833 button_configure: Configure
832 834 button_quote: Quote
833 835 button_duplicate: Duplicate
834 836 button_show: Show
835 837
836 838 status_active: active
837 839 status_registered: registered
838 840 status_locked: locked
839 841
840 842 version_status_open: open
841 843 version_status_locked: locked
842 844 version_status_closed: closed
843 845
844 846 field_active: Active
845 847
846 848 text_select_mail_notifications: Select actions for which email notifications should be sent.
847 849 text_regexp_info: eg. ^[A-Z0-9]+$
848 850 text_min_max_length_info: 0 means no restriction
849 851 text_project_destroy_confirmation: Are you sure you want to delete this project and related data ?
850 852 text_subprojects_destroy_warning: "Its subproject(s): {{value}} will be also deleted."
851 853 text_workflow_edit: Select a role and a tracker to edit the workflow
852 854 text_are_you_sure: Are you sure ?
853 855 text_are_you_sure_with_children: "Delete issue and all child issues?"
854 856 text_journal_changed: "{{label}} changed from {{old}} to {{new}}"
855 857 text_journal_set_to: "{{label}} set to {{value}}"
856 858 text_journal_deleted: "{{label}} deleted ({{old}})"
857 859 text_journal_added: "{{label}} {{value}} added"
858 860 text_tip_issue_begin_day: issue beginning this day
859 861 text_tip_issue_end_day: issue ending this day
860 862 text_tip_issue_begin_end_day: issue beginning and ending this day
861 863 text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier can not be changed.'
862 864 text_caracters_maximum: "{{count}} characters maximum."
863 865 text_caracters_minimum: "Must be at least {{count}} characters long."
864 866 text_length_between: "Length between {{min}} and {{max}} characters."
865 867 text_tracker_no_workflow: No workflow defined for this tracker
866 868 text_unallowed_characters: Unallowed characters
867 869 text_comma_separated: Multiple values allowed (comma separated).
868 870 text_line_separated: Multiple values allowed (one line for each value).
869 871 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
870 872 text_issue_added: "Issue {{id}} has been reported by {{author}}."
871 873 text_issue_updated: "Issue {{id}} has been updated by {{author}}."
872 874 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content ?
873 875 text_issue_category_destroy_question: "Some issues ({{count}}) are assigned to this category. What do you want to do ?"
874 876 text_issue_category_destroy_assignments: Remove category assignments
875 877 text_issue_category_reassign_to: Reassign issues to this category
876 878 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)."
877 879 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."
878 880 text_load_default_configuration: Load the default configuration
879 881 text_status_changed_by_changeset: "Applied in changeset {{value}}."
880 882 text_time_logged_by_changeset: "Applied in changeset {{value}}."
881 883 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s) ?'
882 884 text_select_project_modules: 'Select modules to enable for this project:'
883 885 text_default_administrator_account_changed: Default administrator account changed
884 886 text_file_repository_writable: Attachments directory writable
885 887 text_plugin_assets_writable: Plugin assets directory writable
886 888 text_rmagick_available: RMagick available (optional)
887 889 text_destroy_time_entries_question: "{{hours}} hours were reported on the issues you are about to delete. What do you want to do ?"
888 890 text_destroy_time_entries: Delete reported hours
889 891 text_assign_time_entries_to_project: Assign reported hours to the project
890 892 text_reassign_time_entries: 'Reassign reported hours to this issue:'
891 893 text_user_wrote: "{{value}} wrote:"
892 894 text_enumeration_destroy_question: "{{count}} objects are assigned to this value."
893 895 text_enumeration_category_reassign_to: 'Reassign them to this value:'
894 896 text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
895 897 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."
896 898 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
897 899 text_custom_field_possible_values_info: 'One line for each value'
898 900 text_wiki_page_destroy_question: "This page has {{descendants}} child page(s) and descendant(s). What do you want to do?"
899 901 text_wiki_page_nullify_children: "Keep child pages as root pages"
900 902 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
901 903 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
902 904 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?"
903 905 text_zoom_in: Zoom in
904 906 text_zoom_out: Zoom out
905 907
906 908 default_role_manager: Manager
907 909 default_role_developer: Developer
908 910 default_role_reporter: Reporter
909 911 default_tracker_bug: Bug
910 912 default_tracker_feature: Feature
911 913 default_tracker_support: Support
912 914 default_issue_status_new: New
913 915 default_issue_status_in_progress: In Progress
914 916 default_issue_status_resolved: Resolved
915 917 default_issue_status_feedback: Feedback
916 918 default_issue_status_closed: Closed
917 919 default_issue_status_rejected: Rejected
918 920 default_doc_category_user: User documentation
919 921 default_doc_category_tech: Technical documentation
920 922 default_priority_low: Low
921 923 default_priority_normal: Normal
922 924 default_priority_high: High
923 925 default_priority_urgent: Urgent
924 926 default_priority_immediate: Immediate
925 927 default_activity_design: Design
926 928 default_activity_development: Development
927 929
928 930 enumeration_issue_priorities: Issue priorities
929 931 enumeration_doc_categories: Document categories
930 932 enumeration_activities: Activities (time tracking)
931 933 enumeration_system_activity: System Activity
932 934
@@ -1,950 +1,952
1 1 # French translations for Ruby on Rails
2 2 # by Christian Lescuyer (christian@flyingcoders.com)
3 3 # contributor: Sebastien Grosjean - ZenCocoon.com
4 4 # contributor: Thibaut Cuvelier - Developpez.com
5 5
6 6 fr:
7 7 direction: ltr
8 8 date:
9 9 formats:
10 10 default: "%d/%m/%Y"
11 11 short: "%e %b"
12 12 long: "%e %B %Y"
13 13 long_ordinal: "%e %B %Y"
14 14 only_day: "%e"
15 15
16 16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
17 17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
18 18 month_names: [~, janvier, fΓ©vrier, mars, avril, mai, juin, juillet, aoΓ»t, septembre, octobre, novembre, dΓ©cembre]
19 19 abbr_month_names: [~, jan., fΓ©v., mar., avr., mai, juin, juil., aoΓ»t, sept., oct., nov., dΓ©c.]
20 20 order: [ :day, :month, :year ]
21 21
22 22 time:
23 23 formats:
24 24 default: "%d/%m/%Y %H:%M"
25 25 time: "%H:%M"
26 26 short: "%d %b %H:%M"
27 27 long: "%A %d %B %Y %H:%M:%S %Z"
28 28 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
29 29 only_second: "%S"
30 30 am: 'am'
31 31 pm: 'pm'
32 32
33 33 datetime:
34 34 distance_in_words:
35 35 half_a_minute: "30 secondes"
36 36 less_than_x_seconds:
37 37 zero: "moins d'une seconde"
38 38 one: "moins d'uneΒ seconde"
39 39 other: "moins de {{count}}Β secondes"
40 40 x_seconds:
41 41 one: "1Β seconde"
42 42 other: "{{count}}Β secondes"
43 43 less_than_x_minutes:
44 44 zero: "moins d'une minute"
45 45 one: "moins d'uneΒ minute"
46 46 other: "moins de {{count}}Β minutes"
47 47 x_minutes:
48 48 one: "1Β minute"
49 49 other: "{{count}}Β minutes"
50 50 about_x_hours:
51 51 one: "environ une heure"
52 52 other: "environ {{count}}Β heures"
53 53 x_days:
54 54 one: "unΒ jour"
55 55 other: "{{count}}Β jours"
56 56 about_x_months:
57 57 one: "environ un mois"
58 58 other: "environ {{count}}Β mois"
59 59 x_months:
60 60 one: "unΒ mois"
61 61 other: "{{count}}Β mois"
62 62 about_x_years:
63 63 one: "environ un an"
64 64 other: "environ {{count}}Β ans"
65 65 over_x_years:
66 66 one: "plus d'un an"
67 67 other: "plus de {{count}}Β ans"
68 68 almost_x_years:
69 69 one: "presqu'un an"
70 70 other: "presque {{count}} ans"
71 71 prompts:
72 72 year: "AnnΓ©e"
73 73 month: "Mois"
74 74 day: "Jour"
75 75 hour: "Heure"
76 76 minute: "Minute"
77 77 second: "Seconde"
78 78
79 79 number:
80 80 format:
81 81 precision: 3
82 82 separator: ','
83 83 delimiter: 'Β '
84 84 currency:
85 85 format:
86 86 unit: '€'
87 87 precision: 2
88 88 format: '%nΒ %u'
89 89 human:
90 90 format:
91 91 precision: 2
92 92 storage_units:
93 93 format: "%n %u"
94 94 units:
95 95 byte:
96 96 one: "octet"
97 97 other: "octet"
98 98 kb: "ko"
99 99 mb: "Mo"
100 100 gb: "Go"
101 101 tb: "To"
102 102
103 103 support:
104 104 array:
105 105 sentence_connector: 'et'
106 106 skip_last_comma: true
107 107 word_connector: ", "
108 108 two_words_connector: " et "
109 109 last_word_connector: " et "
110 110
111 111 activerecord:
112 112 errors:
113 113 template:
114 114 header:
115 115 one: "Impossible d'enregistrer {{model}} : une erreur"
116 116 other: "Impossible d'enregistrer {{model}} : {{count}} erreurs."
117 117 body: "Veuillez vΓ©rifier les champs suivantsΒ :"
118 118 messages:
119 119 inclusion: "n'est pas inclus(e) dans la liste"
120 120 exclusion: "n'est pas disponible"
121 121 invalid: "n'est pas valide"
122 122 confirmation: "ne concorde pas avec la confirmation"
123 123 accepted: "doit Γͺtre acceptΓ©(e)"
124 124 empty: "doit Γͺtre renseignΓ©(e)"
125 125 blank: "doit Γͺtre renseignΓ©(e)"
126 126 too_long: "est trop long (pas plus de {{count}} caractères)"
127 127 too_short: "est trop court (au moins {{count}} caractères)"
128 128 wrong_length: "ne fait pas la bonne longueur (doit comporter {{count}} caractères)"
129 129 taken: "est dΓ©jΓ  utilisΓ©"
130 130 not_a_number: "n'est pas un nombre"
131 131 greater_than: "doit Γͺtre supΓ©rieur Γ  {{count}}"
132 132 greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ  {{count}}"
133 133 equal_to: "doit Γͺtre Γ©gal Γ  {{count}}"
134 134 less_than: "doit Γͺtre infΓ©rieur Γ  {{count}}"
135 135 less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ  {{count}}"
136 136 odd: "doit Γͺtre impair"
137 137 even: "doit Γͺtre pair"
138 138 greater_than_start_date: "doit Γͺtre postΓ©rieure Γ  la date de dΓ©but"
139 139 not_same_project: "n'appartient pas au mΓͺme projet"
140 140 circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire"
141 141 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ  l'une de ses sous-tΓ’ches"
142 142
143 143 actionview_instancetag_blank_option: Choisir
144 144
145 145 general_text_No: 'Non'
146 146 general_text_Yes: 'Oui'
147 147 general_text_no: 'non'
148 148 general_text_yes: 'oui'
149 149 general_lang_name: 'FranΓ§ais'
150 150 general_csv_separator: ';'
151 151 general_csv_decimal_separator: ','
152 152 general_csv_encoding: ISO-8859-1
153 153 general_pdf_encoding: ISO-8859-1
154 154 general_first_day_of_week: '1'
155 155
156 156 notice_account_updated: Le compte a été mis à jour avec succès.
157 157 notice_account_invalid_creditentials: Identifiant ou mot de passe invalide.
158 158 notice_account_password_updated: Mot de passe mis à jour avec succès.
159 159 notice_account_wrong_password: Mot de passe incorrect
160 160 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ©.
161 161 notice_account_unknown_email: Aucun compte ne correspond Γ  cette adresse.
162 162 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
163 163 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©.
164 164 notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ  prΓ©sent vous connecter.
165 165 notice_successful_create: Création effectuée avec succès.
166 166 notice_successful_update: Mise à jour effectuée avec succès.
167 167 notice_successful_delete: Suppression effectuée avec succès.
168 168 notice_successful_connection: Connection rΓ©ussie.
169 169 notice_file_not_found: "La page Γ  laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e."
170 170 notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ  jour par un autre utilisateur. Mise Γ  jour impossible.
171 171 notice_not_authorized: "Vous n'Γͺtes pas autorisΓ©s Γ  accΓ©der Γ  cette page."
172 172 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©.
173 173 notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ  {{value}}"
174 174 notice_email_error: "Erreur lors de l'envoi de l'email ({{value}})"
175 175 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux RSS a été réinitialisée."
176 176 notice_failed_to_save_issues: "{{count}} demande(s) sur les {{total}} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ  jour : {{ids}}."
177 177 notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ  jour."
178 178 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
179 179 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
180 180 notice_unable_delete_version: Impossible de supprimer cette version.
181 181 notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ  jour.
182 182 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
183 notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s ({{max}})"
183 184
184 185 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : {{value}}"
185 186 error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t."
186 187 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : {{value}}"
187 188 error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e."
188 189 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ  ce projet"
189 190 error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ  une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte'
190 191 error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©"
191 192 error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source'
192 193 error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles'
193 194 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ  jour.
194 195
195 196 warning_attachments_not_saved: "{{count}} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s."
196 197
197 198 mail_subject_lost_password: "Votre mot de passe {{value}}"
198 199 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
199 200 mail_subject_register: "Activation de votre compte {{value}}"
200 201 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
201 202 mail_body_account_information_external: "Vous pouvez utiliser votre compte {{value}} pour vous connecter."
202 203 mail_body_account_information: Paramètres de connexion de votre compte
203 204 mail_subject_account_activation_request: "Demande d'activation d'un compte {{value}}"
204 205 mail_body_account_activation_request: "Un nouvel utilisateur ({{value}}) s'est inscrit. Son compte nΓ©cessite votre approbation :"
205 206 mail_subject_reminder: "{{count}} demande(s) arrivent Γ  Γ©chΓ©ance ({{days}})"
206 207 mail_body_reminder: "{{count}} demande(s) qui vous sont assignΓ©es arrivent Γ  Γ©chΓ©ance dans les {{days}} prochains jours :"
207 208 mail_subject_wiki_content_added: "Page wiki '{{id}}' ajoutΓ©e"
208 209 mail_body_wiki_content_added: "La page wiki '{{id}}' a Γ©tΓ© ajoutΓ©e par {{author}}."
209 210 mail_subject_wiki_content_updated: "Page wiki '{{id}}' mise Γ  jour"
210 211 mail_body_wiki_content_updated: "La page wiki '{{id}}' a Γ©tΓ© mise Γ  jour par {{author}}."
211 212
212 213 gui_validation_error: 1 erreur
213 214 gui_validation_error_plural: "{{count}} erreurs"
214 215
215 216 field_name: Nom
216 217 field_description: Description
217 218 field_summary: RΓ©sumΓ©
218 219 field_is_required: Obligatoire
219 220 field_firstname: PrΓ©nom
220 221 field_lastname: Nom
221 222 field_mail: "Email "
222 223 field_filename: Fichier
223 224 field_filesize: Taille
224 225 field_downloads: TΓ©lΓ©chargements
225 226 field_author: Auteur
226 227 field_created_on: "Créé "
227 228 field_updated_on: "Mis-Γ -jour "
228 229 field_field_format: Format
229 230 field_is_for_all: Pour tous les projets
230 231 field_possible_values: Valeurs possibles
231 232 field_regexp: Expression régulière
232 233 field_min_length: Longueur minimum
233 234 field_max_length: Longueur maximum
234 235 field_value: Valeur
235 236 field_category: CatΓ©gorie
236 237 field_title: Titre
237 238 field_project: Projet
238 239 field_issue: Demande
239 240 field_status: Statut
240 241 field_notes: Notes
241 242 field_is_closed: Demande fermΓ©e
242 243 field_is_default: Valeur par dΓ©faut
243 244 field_tracker: Tracker
244 245 field_subject: Sujet
245 246 field_due_date: EchΓ©ance
246 247 field_assigned_to: AssignΓ© Γ 
247 248 field_priority: PrioritΓ©
248 249 field_fixed_version: Version cible
249 250 field_user: Utilisateur
250 251 field_role: RΓ΄le
251 252 field_homepage: "Site web "
252 253 field_is_public: Public
253 254 field_parent: Sous-projet de
254 255 field_is_in_roadmap: Demandes affichΓ©es dans la roadmap
255 256 field_login: "Identifiant "
256 257 field_mail_notification: Notifications par mail
257 258 field_admin: Administrateur
258 259 field_last_login_on: "Dernière connexion "
259 260 field_language: Langue
260 261 field_effective_date: Date
261 262 field_password: Mot de passe
262 263 field_new_password: Nouveau mot de passe
263 264 field_password_confirmation: Confirmation
264 265 field_version: Version
265 266 field_type: Type
266 267 field_host: HΓ΄te
267 268 field_port: Port
268 269 field_account: Compte
269 270 field_base_dn: Base DN
270 271 field_attr_login: Attribut Identifiant
271 272 field_attr_firstname: Attribut PrΓ©nom
272 273 field_attr_lastname: Attribut Nom
273 274 field_attr_mail: Attribut Email
274 275 field_onthefly: CrΓ©ation des utilisateurs Γ  la volΓ©e
275 276 field_done_ratio: % rΓ©alisΓ©
276 277 field_auth_source: Mode d'authentification
277 278 field_hide_mail: Cacher mon adresse mail
278 279 field_comments: Commentaire
279 280 field_url: URL
280 281 field_start_page: Page de dΓ©marrage
281 282 field_subproject: Sous-projet
282 283 field_hours: Heures
283 284 field_activity: ActivitΓ©
284 285 field_spent_on: Date
285 286 field_identifier: Identifiant
286 287 field_is_filter: UtilisΓ© comme filtre
287 288 field_issue_to: Demande liΓ©e
288 289 field_delay: Retard
289 290 field_assignable: Demandes assignables Γ  ce rΓ΄le
290 291 field_redirect_existing_links: Rediriger les liens existants
291 292 field_estimated_hours: Temps estimΓ©
292 293 field_column_names: Colonnes
293 294 field_time_zone: Fuseau horaire
294 295 field_searchable: UtilisΓ© pour les recherches
295 296 field_default_value: Valeur par dΓ©faut
296 297 field_comments_sorting: Afficher les commentaires
297 298 field_parent_title: Page parent
298 299 field_editable: Modifiable
299 300 field_watcher: Observateur
300 301 field_identity_url: URL OpenID
301 302 field_content: Contenu
302 303 field_group_by: Grouper par
303 304 field_sharing: Partage
304 305 field_active: Actif
305 306 field_parent_issue: TΓ’che parente
306 307 field_visible: Visible
307 308
308 309 setting_app_title: Titre de l'application
309 310 setting_app_subtitle: Sous-titre de l'application
310 311 setting_welcome_text: Texte d'accueil
311 312 setting_default_language: Langue par dΓ©faut
312 313 setting_login_required: Authentification obligatoire
313 314 setting_self_registration: Inscription des nouveaux utilisateurs
314 315 setting_attachment_max_size: Taille max des fichiers
315 316 setting_issues_export_limit: Limite export demandes
316 317 setting_mail_from: Adresse d'Γ©mission
317 318 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
318 319 setting_plain_text_mail: Mail texte brut (non HTML)
319 320 setting_host_name: Nom d'hΓ΄te et chemin
320 321 setting_text_formatting: Formatage du texte
321 322 setting_wiki_compression: Compression historique wiki
322 323 setting_feeds_limit: Limite du contenu des flux RSS
323 324 setting_default_projects_public: DΓ©finir les nouveaux projects comme publics par dΓ©faut
324 325 setting_autofetch_changesets: RΓ©cupΓ©ration auto. des commits
325 326 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
326 327 setting_commit_ref_keywords: Mot-clΓ©s de rΓ©fΓ©rencement
327 328 setting_commit_fix_keywords: Mot-clΓ©s de rΓ©solution
328 329 setting_autologin: Autologin
329 330 setting_date_format: Format de date
330 331 setting_time_format: Format d'heure
331 332 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
332 333 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
333 334 setting_repositories_encodings: Encodages des dΓ©pΓ΄ts
334 335 setting_commit_logs_encoding: Encodage des messages de commit
335 336 setting_emails_footer: Pied-de-page des emails
336 337 setting_protocol: Protocole
337 338 setting_per_page_options: Options d'objets affichΓ©s par page
338 339 setting_user_format: Format d'affichage des utilisateurs
339 340 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
340 341 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
341 342 setting_enabled_scm: SCM activΓ©s
342 343 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
343 344 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
344 345 setting_mail_handler_api_key: ClΓ© de protection de l'API
345 346 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
346 347 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
347 348 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
348 349 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
349 350 setting_repository_log_display_limit: "Nombre maximum de revisions affichΓ©es sur l'historique d'un fichier"
350 351 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
351 352 setting_password_min_length: Longueur minimum des mots de passe
352 353 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
353 354 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
354 355 setting_issue_done_ratio: Calcul de l'avancement des demandes
355 356 setting_issue_done_ratio_issue_status: Utiliser le statut
356 357 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
357 358 setting_rest_api_enabled: Activer l'API REST
358 359 setting_gravatar_default: Image Gravatar par dΓ©faut
359 360 setting_start_of_week: Jour de dΓ©but des calendriers
360 361 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
361 362 setting_commit_logtime_enabled: Permettre la saisie de temps
362 363 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
364 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
363 365
364 366 permission_add_project: CrΓ©er un projet
365 367 permission_add_subprojects: CrΓ©er des sous-projets
366 368 permission_edit_project: Modifier le projet
367 369 permission_select_project_modules: Choisir les modules
368 370 permission_manage_members: GΓ©rer les members
369 371 permission_manage_versions: GΓ©rer les versions
370 372 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
371 373 permission_view_issues: Voir les demandes
372 374 permission_add_issues: CrΓ©er des demandes
373 375 permission_edit_issues: Modifier les demandes
374 376 permission_manage_issue_relations: GΓ©rer les relations
375 377 permission_add_issue_notes: Ajouter des notes
376 378 permission_edit_issue_notes: Modifier les notes
377 379 permission_edit_own_issue_notes: Modifier ses propres notes
378 380 permission_move_issues: DΓ©placer les demandes
379 381 permission_delete_issues: Supprimer les demandes
380 382 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
381 383 permission_save_queries: Sauvegarder les requΓͺtes
382 384 permission_view_gantt: Voir le gantt
383 385 permission_view_calendar: Voir le calendrier
384 386 permission_view_issue_watchers: Voir la liste des observateurs
385 387 permission_add_issue_watchers: Ajouter des observateurs
386 388 permission_delete_issue_watchers: Supprimer des observateurs
387 389 permission_log_time: Saisir le temps passΓ©
388 390 permission_view_time_entries: Voir le temps passΓ©
389 391 permission_edit_time_entries: Modifier les temps passΓ©s
390 392 permission_edit_own_time_entries: Modifier son propre temps passΓ©
391 393 permission_manage_news: GΓ©rer les annonces
392 394 permission_comment_news: Commenter les annonces
393 395 permission_manage_documents: GΓ©rer les documents
394 396 permission_view_documents: Voir les documents
395 397 permission_manage_files: GΓ©rer les fichiers
396 398 permission_view_files: Voir les fichiers
397 399 permission_manage_wiki: GΓ©rer le wiki
398 400 permission_rename_wiki_pages: Renommer les pages
399 401 permission_delete_wiki_pages: Supprimer les pages
400 402 permission_view_wiki_pages: Voir le wiki
401 403 permission_view_wiki_edits: "Voir l'historique des modifications"
402 404 permission_edit_wiki_pages: Modifier les pages
403 405 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
404 406 permission_protect_wiki_pages: ProtΓ©ger les pages
405 407 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
406 408 permission_browse_repository: Parcourir les sources
407 409 permission_view_changesets: Voir les rΓ©visions
408 410 permission_commit_access: Droit de commit
409 411 permission_manage_boards: GΓ©rer les forums
410 412 permission_view_messages: Voir les messages
411 413 permission_add_messages: Poster un message
412 414 permission_edit_messages: Modifier les messages
413 415 permission_edit_own_messages: Modifier ses propres messages
414 416 permission_delete_messages: Supprimer les messages
415 417 permission_delete_own_messages: Supprimer ses propres messages
416 418 permission_export_wiki_pages: Exporter les pages
417 419 permission_manage_project_activities: GΓ©rer les activitΓ©s
418 420 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
419 421
420 422 project_module_issue_tracking: Suivi des demandes
421 423 project_module_time_tracking: Suivi du temps passΓ©
422 424 project_module_news: Publication d'annonces
423 425 project_module_documents: Publication de documents
424 426 project_module_files: Publication de fichiers
425 427 project_module_wiki: Wiki
426 428 project_module_repository: DΓ©pΓ΄t de sources
427 429 project_module_boards: Forums de discussion
428 430
429 431 label_user: Utilisateur
430 432 label_user_plural: Utilisateurs
431 433 label_user_new: Nouvel utilisateur
432 434 label_user_anonymous: Anonyme
433 435 label_project: Projet
434 436 label_project_new: Nouveau projet
435 437 label_project_plural: Projets
436 438 label_x_projects:
437 439 zero: aucun projet
438 440 one: un projet
439 441 other: "{{count}} projets"
440 442 label_project_all: Tous les projets
441 443 label_project_latest: Derniers projets
442 444 label_issue: Demande
443 445 label_issue_new: Nouvelle demande
444 446 label_issue_plural: Demandes
445 447 label_issue_view_all: Voir toutes les demandes
446 448 label_issue_added: Demande ajoutΓ©e
447 449 label_issue_updated: Demande mise Γ  jour
448 450 label_issues_by: "Demandes par {{value}}"
449 451 label_document: Document
450 452 label_document_new: Nouveau document
451 453 label_document_plural: Documents
452 454 label_document_added: Document ajoutΓ©
453 455 label_role: RΓ΄le
454 456 label_role_plural: RΓ΄les
455 457 label_role_new: Nouveau rΓ΄le
456 458 label_role_and_permissions: RΓ΄les et permissions
457 459 label_member: Membre
458 460 label_member_new: Nouveau membre
459 461 label_member_plural: Membres
460 462 label_tracker: Tracker
461 463 label_tracker_plural: Trackers
462 464 label_tracker_new: Nouveau tracker
463 465 label_workflow: Workflow
464 466 label_issue_status: Statut de demandes
465 467 label_issue_status_plural: Statuts de demandes
466 468 label_issue_status_new: Nouveau statut
467 469 label_issue_category: CatΓ©gorie de demandes
468 470 label_issue_category_plural: CatΓ©gories de demandes
469 471 label_issue_category_new: Nouvelle catΓ©gorie
470 472 label_custom_field: Champ personnalisΓ©
471 473 label_custom_field_plural: Champs personnalisΓ©s
472 474 label_custom_field_new: Nouveau champ personnalisΓ©
473 475 label_enumerations: Listes de valeurs
474 476 label_enumeration_new: Nouvelle valeur
475 477 label_information: Information
476 478 label_information_plural: Informations
477 479 label_please_login: Identification
478 480 label_register: S'enregistrer
479 481 label_login_with_open_id_option: S'authentifier avec OpenID
480 482 label_password_lost: Mot de passe perdu
481 483 label_home: Accueil
482 484 label_my_page: Ma page
483 485 label_my_account: Mon compte
484 486 label_my_projects: Mes projets
485 487 label_my_page_block: Ma page bloque
486 488 label_administration: Administration
487 489 label_login: Connexion
488 490 label_logout: DΓ©connexion
489 491 label_help: Aide
490 492 label_reported_issues: "Demandes soumises "
491 493 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
492 494 label_last_login: "Dernière connexion "
493 495 label_registered_on: "Inscrit le "
494 496 label_activity: ActivitΓ©
495 497 label_overall_activity: ActivitΓ© globale
496 498 label_user_activity: "ActivitΓ© de {{value}}"
497 499 label_new: Nouveau
498 500 label_logged_as: ConnectΓ© en tant que
499 501 label_environment: Environnement
500 502 label_authentication: Authentification
501 503 label_auth_source: Mode d'authentification
502 504 label_auth_source_new: Nouveau mode d'authentification
503 505 label_auth_source_plural: Modes d'authentification
504 506 label_subproject_plural: Sous-projets
505 507 label_subproject_new: Nouveau sous-projet
506 508 label_and_its_subprojects: "{{value}} et ses sous-projets"
507 509 label_min_max_length: Longueurs mini - maxi
508 510 label_list: Liste
509 511 label_date: Date
510 512 label_integer: Entier
511 513 label_float: Nombre dΓ©cimal
512 514 label_boolean: BoolΓ©en
513 515 label_string: Texte
514 516 label_text: Texte long
515 517 label_attribute: Attribut
516 518 label_attribute_plural: Attributs
517 519 label_download: "{{count}} tΓ©lΓ©chargement"
518 520 label_download_plural: "{{count}} tΓ©lΓ©chargements"
519 521 label_no_data: Aucune donnΓ©e Γ  afficher
520 522 label_change_status: Changer le statut
521 523 label_history: Historique
522 524 label_attachment: Fichier
523 525 label_attachment_new: Nouveau fichier
524 526 label_attachment_delete: Supprimer le fichier
525 527 label_attachment_plural: Fichiers
526 528 label_file_added: Fichier ajoutΓ©
527 529 label_report: Rapport
528 530 label_report_plural: Rapports
529 531 label_news: Annonce
530 532 label_news_new: Nouvelle annonce
531 533 label_news_plural: Annonces
532 534 label_news_latest: Dernières annonces
533 535 label_news_view_all: Voir toutes les annonces
534 536 label_news_added: Annonce ajoutΓ©e
535 537 label_settings: Configuration
536 538 label_overview: AperΓ§u
537 539 label_version: Version
538 540 label_version_new: Nouvelle version
539 541 label_version_plural: Versions
540 542 label_confirmation: Confirmation
541 543 label_export_to: 'Formats disponibles :'
542 544 label_read: Lire...
543 545 label_public_projects: Projets publics
544 546 label_open_issues: ouvert
545 547 label_open_issues_plural: ouverts
546 548 label_closed_issues: fermΓ©
547 549 label_closed_issues_plural: fermΓ©s
548 550 label_x_open_issues_abbr_on_total:
549 551 zero: 0 ouvert sur {{total}}
550 552 one: 1 ouvert sur {{total}}
551 553 other: "{{count}} ouverts sur {{total}}"
552 554 label_x_open_issues_abbr:
553 555 zero: 0 ouvert
554 556 one: 1 ouvert
555 557 other: "{{count}} ouverts"
556 558 label_x_closed_issues_abbr:
557 559 zero: 0 fermΓ©
558 560 one: 1 fermΓ©
559 561 other: "{{count}} fermΓ©s"
560 562 label_total: Total
561 563 label_permissions: Permissions
562 564 label_current_status: Statut actuel
563 565 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
564 566 label_all: tous
565 567 label_none: aucun
566 568 label_nobody: personne
567 569 label_next: Suivant
568 570 label_previous: PrΓ©cΓ©dent
569 571 label_used_by: UtilisΓ© par
570 572 label_details: DΓ©tails
571 573 label_add_note: Ajouter une note
572 574 label_per_page: Par page
573 575 label_calendar: Calendrier
574 576 label_months_from: mois depuis
575 577 label_gantt: Gantt
576 578 label_internal: Interne
577 579 label_last_changes: "{{count}} derniers changements"
578 580 label_change_view_all: Voir tous les changements
579 581 label_personalize_page: Personnaliser cette page
580 582 label_comment: Commentaire
581 583 label_comment_plural: Commentaires
582 584 label_x_comments:
583 585 zero: aucun commentaire
584 586 one: un commentaire
585 587 other: "{{count}} commentaires"
586 588 label_comment_add: Ajouter un commentaire
587 589 label_comment_added: Commentaire ajoutΓ©
588 590 label_comment_delete: Supprimer les commentaires
589 591 label_query: Rapport personnalisΓ©
590 592 label_query_plural: Rapports personnalisΓ©s
591 593 label_query_new: Nouveau rapport
592 594 label_filter_add: "Ajouter le filtre "
593 595 label_filter_plural: Filtres
594 596 label_equals: Γ©gal
595 597 label_not_equals: diffΓ©rent
596 598 label_in_less_than: dans moins de
597 599 label_in_more_than: dans plus de
598 600 label_in: dans
599 601 label_today: aujourd'hui
600 602 label_all_time: toute la pΓ©riode
601 603 label_yesterday: hier
602 604 label_this_week: cette semaine
603 605 label_last_week: la semaine dernière
604 606 label_last_n_days: "les {{count}} derniers jours"
605 607 label_this_month: ce mois-ci
606 608 label_last_month: le mois dernier
607 609 label_this_year: cette annΓ©e
608 610 label_date_range: PΓ©riode
609 611 label_less_than_ago: il y a moins de
610 612 label_more_than_ago: il y a plus de
611 613 label_ago: il y a
612 614 label_contains: contient
613 615 label_not_contains: ne contient pas
614 616 label_day_plural: jours
615 617 label_repository: DΓ©pΓ΄t
616 618 label_repository_plural: DΓ©pΓ΄ts
617 619 label_browse: Parcourir
618 620 label_modification: "{{count}} modification"
619 621 label_modification_plural: "{{count}} modifications"
620 622 label_revision: "RΓ©vision "
621 623 label_revision_plural: RΓ©visions
622 624 label_associated_revisions: RΓ©visions associΓ©es
623 625 label_added: ajoutΓ©
624 626 label_modified: modifiΓ©
625 627 label_copied: copiΓ©
626 628 label_renamed: renommΓ©
627 629 label_deleted: supprimΓ©
628 630 label_latest_revision: Dernière révision
629 631 label_latest_revision_plural: Dernières révisions
630 632 label_view_revisions: Voir les rΓ©visions
631 633 label_max_size: Taille maximale
632 634 label_sort_highest: Remonter en premier
633 635 label_sort_higher: Remonter
634 636 label_sort_lower: Descendre
635 637 label_sort_lowest: Descendre en dernier
636 638 label_roadmap: Roadmap
637 639 label_roadmap_due_in: "Γ‰chΓ©ance dans {{value}}"
638 640 label_roadmap_overdue: "En retard de {{value}}"
639 641 label_roadmap_no_issues: Aucune demande pour cette version
640 642 label_search: "Recherche "
641 643 label_result_plural: RΓ©sultats
642 644 label_all_words: Tous les mots
643 645 label_wiki: Wiki
644 646 label_wiki_edit: RΓ©vision wiki
645 647 label_wiki_edit_plural: RΓ©visions wiki
646 648 label_wiki_page: Page wiki
647 649 label_wiki_page_plural: Pages wiki
648 650 label_index_by_title: Index par titre
649 651 label_index_by_date: Index par date
650 652 label_current_version: Version actuelle
651 653 label_preview: PrΓ©visualisation
652 654 label_feed_plural: Flux RSS
653 655 label_changes_details: DΓ©tails de tous les changements
654 656 label_issue_tracking: Suivi des demandes
655 657 label_spent_time: Temps passΓ©
656 658 label_f_hour: "{{value}} heure"
657 659 label_f_hour_plural: "{{value}} heures"
658 660 label_time_tracking: Suivi du temps
659 661 label_change_plural: Changements
660 662 label_statistics: Statistiques
661 663 label_commits_per_month: Commits par mois
662 664 label_commits_per_author: Commits par auteur
663 665 label_view_diff: Voir les diffΓ©rences
664 666 label_diff_inline: en ligne
665 667 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
666 668 label_options: Options
667 669 label_copy_workflow_from: Copier le workflow de
668 670 label_permissions_report: Synthèse des permissions
669 671 label_watched_issues: Demandes surveillΓ©es
670 672 label_related_issues: Demandes liΓ©es
671 673 label_applied_status: Statut appliquΓ©
672 674 label_loading: Chargement...
673 675 label_relation_new: Nouvelle relation
674 676 label_relation_delete: Supprimer la relation
675 677 label_relates_to: liΓ© Γ 
676 678 label_duplicates: duplique
677 679 label_duplicated_by: dupliquΓ© par
678 680 label_blocks: bloque
679 681 label_blocked_by: bloquΓ© par
680 682 label_precedes: précède
681 683 label_follows: suit
682 684 label_end_to_start: fin Γ  dΓ©but
683 685 label_end_to_end: fin Γ  fin
684 686 label_start_to_start: dΓ©but Γ  dΓ©but
685 687 label_start_to_end: dΓ©but Γ  fin
686 688 label_stay_logged_in: Rester connectΓ©
687 689 label_disabled: dΓ©sactivΓ©
688 690 label_show_completed_versions: Voir les versions passΓ©es
689 691 label_me: moi
690 692 label_board: Forum
691 693 label_board_new: Nouveau forum
692 694 label_board_plural: Forums
693 695 label_topic_plural: Discussions
694 696 label_message_plural: Messages
695 697 label_message_last: Dernier message
696 698 label_message_new: Nouveau message
697 699 label_message_posted: Message ajoutΓ©
698 700 label_reply_plural: RΓ©ponses
699 701 label_send_information: Envoyer les informations Γ  l'utilisateur
700 702 label_year: AnnΓ©e
701 703 label_month: Mois
702 704 label_week: Semaine
703 705 label_date_from: Du
704 706 label_date_to: Au
705 707 label_language_based: BasΓ© sur la langue de l'utilisateur
706 708 label_sort_by: "Trier par {{value}}"
707 709 label_send_test_email: Envoyer un email de test
708 710 label_feeds_access_key_created_on: "Clé d'accès RSS créée il y a {{value}}"
709 711 label_module_plural: Modules
710 712 label_added_time_by: "AjoutΓ© par {{author}} il y a {{age}}"
711 713 label_updated_time_by: "Mis Γ  jour par {{author}} il y a {{age}}"
712 714 label_updated_time: "Mis Γ  jour il y a {{value}}"
713 715 label_jump_to_a_project: Aller Γ  un projet...
714 716 label_file_plural: Fichiers
715 717 label_changeset_plural: RΓ©visions
716 718 label_default_columns: Colonnes par dΓ©faut
717 719 label_no_change_option: (Pas de changement)
718 720 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
719 721 label_theme: Thème
720 722 label_default: DΓ©faut
721 723 label_search_titles_only: Uniquement dans les titres
722 724 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
723 725 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
724 726 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
725 727 label_registration_activation_by_email: activation du compte par email
726 728 label_registration_manual_activation: activation manuelle du compte
727 729 label_registration_automatic_activation: activation automatique du compte
728 730 label_display_per_page: "Par page : {{value}}"
729 731 label_age: Γ‚ge
730 732 label_change_properties: Changer les propriΓ©tΓ©s
731 733 label_general: GΓ©nΓ©ral
732 734 label_more: Plus
733 735 label_scm: SCM
734 736 label_plugins: Plugins
735 737 label_ldap_authentication: Authentification LDAP
736 738 label_downloads_abbr: D/L
737 739 label_optional_description: Description facultative
738 740 label_add_another_file: Ajouter un autre fichier
739 741 label_preferences: PrΓ©fΓ©rences
740 742 label_chronological_order: Dans l'ordre chronologique
741 743 label_reverse_chronological_order: Dans l'ordre chronologique inverse
742 744 label_planning: Planning
743 745 label_incoming_emails: Emails entrants
744 746 label_generate_key: GΓ©nΓ©rer une clΓ©
745 747 label_issue_watchers: Observateurs
746 748 label_example: Exemple
747 749 label_display: Affichage
748 750 label_sort: Tri
749 751 label_ascending: Croissant
750 752 label_descending: DΓ©croissant
751 753 label_date_from_to: Du {{start}} au {{end}}
752 754 label_wiki_content_added: Page wiki ajoutΓ©e
753 755 label_wiki_content_updated: Page wiki mise Γ  jour
754 756 label_group_plural: Groupes
755 757 label_group: Groupe
756 758 label_group_new: Nouveau groupe
757 759 label_time_entry_plural: Temps passΓ©
758 760 label_version_sharing_none: Non partagΓ©
759 761 label_version_sharing_descendants: Avec les sous-projets
760 762 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
761 763 label_version_sharing_tree: Avec tout l'arbre
762 764 label_version_sharing_system: Avec tous les projets
763 765 label_copy_source: Source
764 766 label_copy_target: Cible
765 767 label_copy_same_as_target: Comme la cible
766 768 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
767 769 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
768 770 label_api_access_key: Clé d'accès API
769 771 label_api_access_key_created_on: Clé d'accès API créée il y a {{value}}
770 772 label_feeds_access_key: Clé d'accès RSS
771 773 label_missing_api_access_key: Clé d'accès API manquante
772 774 label_missing_feeds_access_key: Clé d'accès RSS manquante
773 775 label_close_versions: Fermer les versions terminΓ©es
774 776 label_revision_id: Revision {{value}}
775 777 label_profile: Profil
776 778 label_subtask_plural: Sous-tΓ’ches
777 779 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
778 780 label_principal_search: "Rechercher un utilisateur ou un groupe :"
779 781 label_user_search: "Rechercher un utilisateur :"
780 782
781 783 button_login: Connexion
782 784 button_submit: Soumettre
783 785 button_save: Sauvegarder
784 786 button_check_all: Tout cocher
785 787 button_uncheck_all: Tout dΓ©cocher
786 788 button_delete: Supprimer
787 789 button_create: CrΓ©er
788 790 button_create_and_continue: CrΓ©er et continuer
789 791 button_test: Tester
790 792 button_edit: Modifier
791 793 button_add: Ajouter
792 794 button_change: Changer
793 795 button_apply: Appliquer
794 796 button_clear: Effacer
795 797 button_lock: Verrouiller
796 798 button_unlock: DΓ©verrouiller
797 799 button_download: TΓ©lΓ©charger
798 800 button_list: Lister
799 801 button_view: Voir
800 802 button_move: DΓ©placer
801 803 button_move_and_follow: DΓ©placer et suivre
802 804 button_back: Retour
803 805 button_cancel: Annuler
804 806 button_activate: Activer
805 807 button_sort: Trier
806 808 button_log_time: Saisir temps
807 809 button_rollback: Revenir Γ  cette version
808 810 button_watch: Surveiller
809 811 button_unwatch: Ne plus surveiller
810 812 button_reply: RΓ©pondre
811 813 button_archive: Archiver
812 814 button_unarchive: DΓ©sarchiver
813 815 button_reset: RΓ©initialiser
814 816 button_rename: Renommer
815 817 button_change_password: Changer de mot de passe
816 818 button_copy: Copier
817 819 button_copy_and_follow: Copier et suivre
818 820 button_annotate: Annoter
819 821 button_update: Mettre Γ  jour
820 822 button_configure: Configurer
821 823 button_quote: Citer
822 824 button_duplicate: Dupliquer
823 825 button_show: Afficher
824 826
825 827 status_active: actif
826 828 status_registered: enregistrΓ©
827 829 status_locked: verrouillΓ©
828 830
829 831 version_status_open: ouvert
830 832 version_status_locked: verrouillΓ©
831 833 version_status_closed: fermΓ©
832 834
833 835 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
834 836 text_regexp_info: ex. ^[A-Z0-9]+$
835 837 text_min_max_length_info: 0 pour aucune restriction
836 838 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
837 839 text_subprojects_destroy_warning: "Ses sous-projets : {{value}} seront Γ©galement supprimΓ©s."
838 840 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
839 841 text_are_you_sure: Êtes-vous sûr ?
840 842 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
841 843 text_tip_issue_end_day: tΓ’che finissant ce jour
842 844 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
843 845 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres et tirets sont autorisΓ©s.<br />Un fois sauvegardΓ©, l''identifiant ne pourra plus Γͺtre modifiΓ©.'
844 846 text_caracters_maximum: "{{count}} caractères maximum."
845 847 text_caracters_minimum: "{{count}} caractères minimum."
846 848 text_length_between: "Longueur comprise entre {{min}} et {{max}} caractères."
847 849 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
848 850 text_unallowed_characters: Caractères non autorisés
849 851 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
850 852 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
851 853 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
852 854 text_issue_added: "La demande {{id}} a Γ©tΓ© soumise par {{author}}."
853 855 text_issue_updated: "La demande {{id}} a Γ©tΓ© mise Γ  jour par {{author}}."
854 856 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
855 857 text_issue_category_destroy_question: "{{count}} demandes sont affectΓ©es Γ  cette catΓ©gories. Que voulez-vous faire ?"
856 858 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
857 859 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
858 860 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)."
859 861 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Γ©."
860 862 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
861 863 text_status_changed_by_changeset: "AppliquΓ© par commit {{value}}."
862 864 text_time_logged_by_changeset: "AppliquΓ© par commit {{value}}"
863 865 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer le(s) demandes(s) selectionnée(s) ?'
864 866 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
865 867 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
866 868 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
867 869 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
868 870 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
869 871 text_destroy_time_entries_question: "{{hours}} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
870 872 text_destroy_time_entries: Supprimer les heures
871 873 text_assign_time_entries_to_project: Reporter les heures sur le projet
872 874 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
873 875 text_user_wrote: "{{value}} a Γ©crit :"
874 876 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  {{count}} objets."
875 877 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
876 878 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/email.yml et redΓ©marrez l'application pour les activer."
877 879 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."
878 880 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
879 881 text_custom_field_possible_values_info: 'Une ligne par valeur'
880 882 text_wiki_page_destroy_question: "Cette page possède {{descendants}} sous-page(s) et descendante(s). Que voulez-vous faire ?"
881 883 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
882 884 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
883 885 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
884 886 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 ?"
885 887
886 888 default_role_manager: "Manager "
887 889 default_role_developer: "DΓ©veloppeur "
888 890 default_role_reporter: "Rapporteur "
889 891 default_tracker_bug: Anomalie
890 892 default_tracker_feature: Evolution
891 893 default_tracker_support: Assistance
892 894 default_issue_status_new: Nouveau
893 895 default_issue_status_in_progress: En cours
894 896 default_issue_status_resolved: RΓ©solu
895 897 default_issue_status_feedback: Commentaire
896 898 default_issue_status_closed: FermΓ©
897 899 default_issue_status_rejected: RejetΓ©
898 900 default_doc_category_user: Documentation utilisateur
899 901 default_doc_category_tech: Documentation technique
900 902 default_priority_low: Bas
901 903 default_priority_normal: Normal
902 904 default_priority_high: Haut
903 905 default_priority_urgent: Urgent
904 906 default_priority_immediate: ImmΓ©diat
905 907 default_activity_design: Conception
906 908 default_activity_development: DΓ©veloppement
907 909
908 910 enumeration_issue_priorities: PrioritΓ©s des demandes
909 911 enumeration_doc_categories: CatΓ©gories des documents
910 912 enumeration_activities: ActivitΓ©s (suivi du temps)
911 913 label_greater_or_equal: ">="
912 914 label_less_or_equal: "<="
913 915 label_view_all_revisions: Voir toutes les rΓ©visions
914 916 label_tag: Tag
915 917 label_branch: Branche
916 918 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
917 919 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
918 920 text_journal_changed: "{{label}} changΓ© de {{old}} Γ  {{new}}"
919 921 text_journal_set_to: "{{label}} mis Γ  {{value}}"
920 922 text_journal_deleted: "{{label}} {{old}} supprimΓ©"
921 923 text_journal_added: "{{label}} {{value}} ajoutΓ©"
922 924 enumeration_system_activity: Activité système
923 925 label_board_sticky: Sticky
924 926 label_board_locked: VerrouillΓ©
925 927 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
926 928 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
927 929 error_unable_to_connect: Connexion impossible ({{value}})
928 930 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
929 931 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
930 932 field_principal: Principal
931 933 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: {{errors}}."
932 934 text_zoom_out: Zoom arrière
933 935 text_zoom_in: Zoom avant
934 936 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
935 937 label_overall_spent_time: Temps passΓ© global
936 938 field_time_entries: Log time
937 939 project_module_gantt: Gantt
938 940 project_module_calendar: Calendrier
939 941 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: {{page_title}}"
940 942 text_are_you_sure_with_children: Supprimer la demande et toutes ses sous-demandes ?
941 943 field_text: Champ texte
942 944 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
943 945 setting_default_notification_option: Option de notification par dΓ©faut
944 946 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
945 947 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
946 948 label_user_mail_option_none: Aucune notification
947 949 field_member_of_group: Groupe de l'assignΓ©
948 950 field_assigned_to_role: RΓ΄le de l'assignΓ©
949 951 field_start_date: Start date
950 952 setting_emails_header: Emails header
@@ -1,195 +1,198
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18
19 19 # DO NOT MODIFY THIS FILE !!!
20 20 # Settings can be defined through the application in Admin -> Settings
21 21
22 22 app_title:
23 23 default: Redmine
24 24 app_subtitle:
25 25 default: Project management
26 26 welcome_text:
27 27 default:
28 28 login_required:
29 29 default: 0
30 30 self_registration:
31 31 default: '2'
32 32 lost_password:
33 33 default: 1
34 34 password_min_length:
35 35 format: int
36 36 default: 4
37 37 attachment_max_size:
38 38 format: int
39 39 default: 5120
40 40 issues_export_limit:
41 41 format: int
42 42 default: 500
43 43 activity_days_default:
44 44 format: int
45 45 default: 30
46 46 per_page_options:
47 47 default: '25,50,100'
48 48 mail_from:
49 49 default: redmine@example.net
50 50 bcc_recipients:
51 51 default: 1
52 52 plain_text_mail:
53 53 default: 0
54 54 text_formatting:
55 55 default: textile
56 56 cache_formatted_text:
57 57 default: 0
58 58 wiki_compression:
59 59 default: ""
60 60 default_language:
61 61 default: en
62 62 host_name:
63 63 default: localhost:3000
64 64 protocol:
65 65 default: http
66 66 feeds_limit:
67 67 format: int
68 68 default: 15
69 gantt_items_limit:
70 format: int
71 default: 500
69 72 # Maximum size of files that can be displayed
70 73 # inline through the file viewer (in KB)
71 74 file_max_size_displayed:
72 75 format: int
73 76 default: 512
74 77 diff_max_lines_displayed:
75 78 format: int
76 79 default: 1500
77 80 enabled_scm:
78 81 serialized: true
79 82 default:
80 83 - Subversion
81 84 - Darcs
82 85 - Mercurial
83 86 - Cvs
84 87 - Bazaar
85 88 - Git
86 89 autofetch_changesets:
87 90 default: 1
88 91 sys_api_enabled:
89 92 default: 0
90 93 sys_api_key:
91 94 default: ''
92 95 commit_ref_keywords:
93 96 default: 'refs,references,IssueID'
94 97 commit_fix_keywords:
95 98 default: 'fixes,closes'
96 99 commit_fix_status_id:
97 100 format: int
98 101 default: 0
99 102 commit_fix_done_ratio:
100 103 default: 100
101 104 commit_logtime_enabled:
102 105 default: 0
103 106 commit_logtime_activity_id:
104 107 format: int
105 108 default: 0
106 109 # autologin duration in days
107 110 # 0 means autologin is disabled
108 111 autologin:
109 112 format: int
110 113 default: 0
111 114 # date format
112 115 date_format:
113 116 default: ''
114 117 time_format:
115 118 default: ''
116 119 user_format:
117 120 default: :firstname_lastname
118 121 format: symbol
119 122 cross_project_issue_relations:
120 123 default: 0
121 124 notified_events:
122 125 serialized: true
123 126 default:
124 127 - issue_added
125 128 - issue_updated
126 129 mail_handler_body_delimiters:
127 130 default: ''
128 131 mail_handler_api_enabled:
129 132 default: 0
130 133 mail_handler_api_key:
131 134 default:
132 135 issue_list_default_columns:
133 136 serialized: true
134 137 default:
135 138 - tracker
136 139 - status
137 140 - priority
138 141 - subject
139 142 - assigned_to
140 143 - updated_on
141 144 display_subprojects_issues:
142 145 default: 1
143 146 issue_done_ratio:
144 147 default: 'issue_field'
145 148 default_projects_public:
146 149 default: 1
147 150 default_projects_modules:
148 151 serialized: true
149 152 default:
150 153 - issue_tracking
151 154 - time_tracking
152 155 - news
153 156 - documents
154 157 - files
155 158 - wiki
156 159 - repository
157 160 - boards
158 161 - calendar
159 162 - gantt
160 163 # Role given to a non-admin user who creates a project
161 164 new_project_user_role_id:
162 165 format: int
163 166 default: ''
164 167 sequential_project_identifiers:
165 168 default: 0
166 169 # encodings used to convert repository files content to UTF-8
167 170 # multiple values accepted, comma separated
168 171 repositories_encodings:
169 172 default: ''
170 173 # encoding used to convert commit logs to UTF-8
171 174 commit_logs_encoding:
172 175 default: 'UTF-8'
173 176 repository_log_display_limit:
174 177 format: int
175 178 default: 100
176 179 ui_theme:
177 180 default: ''
178 181 emails_footer:
179 182 default: |-
180 183 You have received this notification because you have either subscribed to it, or are involved in it.
181 184 To change your notification preferences, please click here: http://hostname/my/account
182 185 gravatar_enabled:
183 186 default: 0
184 187 openid:
185 188 default: 0
186 189 gravatar_default:
187 190 default: ''
188 191 start_of_week:
189 192 default: ''
190 193 rest_api_enabled:
191 194 default: 0
192 195 default_notification_option:
193 196 default: 'only_my_events'
194 197 emails_header:
195 198 default: ''
@@ -1,974 +1,1004
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2008 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 module Redmine
19 19 module Helpers
20 20 # Simple class to handle gantt chart data
21 21 class Gantt
22 22 include ERB::Util
23 23 include Redmine::I18n
24 24
25 25 # :nodoc:
26 26 # Some utility methods for the PDF export
27 27 class PDF
28 28 MaxCharactorsForSubject = 45
29 29 TotalWidth = 280
30 30 LeftPaneWidth = 100
31 31
32 32 def self.right_pane_width
33 33 TotalWidth - LeftPaneWidth
34 34 end
35 35 end
36 36
37 attr_reader :year_from, :month_from, :date_from, :date_to, :zoom, :months
37 attr_reader :year_from, :month_from, :date_from, :date_to, :zoom, :months, :truncated, :max_rows
38 38 attr_accessor :query
39 39 attr_accessor :project
40 40 attr_accessor :view
41 41
42 42 def initialize(options={})
43 43 options = options.dup
44 44
45 45 if options[:year] && options[:year].to_i >0
46 46 @year_from = options[:year].to_i
47 47 if options[:month] && options[:month].to_i >=1 && options[:month].to_i <= 12
48 48 @month_from = options[:month].to_i
49 49 else
50 50 @month_from = 1
51 51 end
52 52 else
53 53 @month_from ||= Date.today.month
54 54 @year_from ||= Date.today.year
55 55 end
56 56
57 57 zoom = (options[:zoom] || User.current.pref[:gantt_zoom]).to_i
58 58 @zoom = (zoom > 0 && zoom < 5) ? zoom : 2
59 59 months = (options[:months] || User.current.pref[:gantt_months]).to_i
60 60 @months = (months > 0 && months < 25) ? months : 6
61 61
62 62 # Save gantt parameters as user preference (zoom and months count)
63 63 if (User.current.logged? && (@zoom != User.current.pref[:gantt_zoom] || @months != User.current.pref[:gantt_months]))
64 64 User.current.pref[:gantt_zoom], User.current.pref[:gantt_months] = @zoom, @months
65 65 User.current.preference.save
66 66 end
67 67
68 68 @date_from = Date.civil(@year_from, @month_from, 1)
69 69 @date_to = (@date_from >> @months) - 1
70 70
71 71 @subjects = ''
72 72 @lines = ''
73 73 @number_of_rows = nil
74
75 @truncated = false
76 if options.has_key?(:max_rows)
77 @max_rows = options[:max_rows]
78 else
79 @max_rows = Setting.gantt_items_limit.blank? ? nil : Setting.gantt_items_limit.to_i
80 end
74 81 end
75 82
76 83 def common_params
77 84 { :controller => 'gantts', :action => 'show', :project_id => @project }
78 85 end
79 86
80 87 def params
81 88 common_params.merge({ :zoom => zoom, :year => year_from, :month => month_from, :months => months })
82 89 end
83 90
84 91 def params_previous
85 92 common_params.merge({:year => (date_from << months).year, :month => (date_from << months).month, :zoom => zoom, :months => months })
86 93 end
87 94
88 95 def params_next
89 96 common_params.merge({:year => (date_from >> months).year, :month => (date_from >> months).month, :zoom => zoom, :months => months })
90 97 end
91 98
92 99 ### Extracted from the HTML view/helpers
93 100 # Returns the number of rows that will be rendered on the Gantt chart
94 101 def number_of_rows
95 102 return @number_of_rows if @number_of_rows
96 103
97 if @project
98 return number_of_rows_on_project(@project)
104 rows = if @project
105 number_of_rows_on_project(@project)
99 106 else
100 107 Project.roots.visible.has_module('issue_tracking').inject(0) do |total, project|
101 108 total += number_of_rows_on_project(project)
102 109 end
103 110 end
111
112 rows > @max_rows ? @max_rows : rows
104 113 end
105 114
106 115 # Returns the number of rows that will be used to list a project on
107 116 # the Gantt chart. This will recurse for each subproject.
108 117 def number_of_rows_on_project(project)
109 118 # Remove the project requirement for Versions because it will
110 119 # restrict issues to only be on the current project. This
111 120 # ends up missing issues which are assigned to shared versions.
112 121 @query.project = nil if @query.project
113 122
114 123 # One Root project
115 124 count = 1
116 125 # Issues without a Version
117 126 count += project.issues.for_gantt.without_version.with_query(@query).count
118 127
119 128 # Versions
120 129 count += project.versions.count
121 130
122 131 # Issues on the Versions
123 132 project.versions.each do |version|
124 133 count += version.fixed_issues.for_gantt.with_query(@query).count
125 134 end
126 135
127 136 # Subprojects
128 137 project.children.visible.has_module('issue_tracking').each do |subproject|
129 138 count += number_of_rows_on_project(subproject)
130 139 end
131 140
132 141 count
133 142 end
134 143
135 144 # Renders the subjects of the Gantt chart, the left side.
136 145 def subjects(options={})
137 146 render(options.merge(:only => :subjects)) unless @subjects_rendered
138 147 @subjects
139 148 end
140 149
141 150 # Renders the lines of the Gantt chart, the right side
142 151 def lines(options={})
143 152 render(options.merge(:only => :lines)) unless @lines_rendered
144 153 @lines
145 154 end
146 155
147 156 def render(options={})
148 157 options = {:indent => 4, :render => :subject, :format => :html}.merge(options)
149 158
150 159 @subjects = '' unless options[:only] == :lines
151 160 @lines = '' unless options[:only] == :subjects
152 161 @number_of_rows = 0
153 162
154 163 if @project
155 164 render_project(@project, options)
156 165 else
157 166 Project.roots.visible.has_module('issue_tracking').each do |project|
158 167 render_project(project, options)
168 break if abort?
159 169 end
160 170 end
161 171
162 172 @subjects_rendered = true unless options[:only] == :lines
163 173 @lines_rendered = true unless options[:only] == :subjects
164 174
165 175 render_end(options)
166 176 end
167 177
168 178 def render_project(project, options={})
169 179 options[:top] = 0 unless options.key? :top
170 180 options[:indent_increment] = 20 unless options.key? :indent_increment
171 181 options[:top_increment] = 20 unless options.key? :top_increment
172 182
173 183 subject_for_project(project, options) unless options[:only] == :lines
174 184 line_for_project(project, options) unless options[:only] == :subjects
175 185
176 186 options[:top] += options[:top_increment]
177 187 options[:indent] += options[:indent_increment]
178 188 @number_of_rows += 1
189 return if abort?
179 190
180 191 # Second, Issues without a version
181 issues = project.issues.for_gantt.without_version.with_query(@query)
192 issues = project.issues.for_gantt.without_version.with_query(@query).all(:limit => current_limit)
182 193 sort_issues!(issues)
183 194 if issues
184 195 render_issues(issues, options)
196 return if abort?
185 197 end
186 198
187 199 # Third, Versions
188 200 project.versions.sort.each do |version|
189 201 render_version(version, options)
202 return if abort?
190 203 end
191 204
192 205 # Fourth, subprojects
193 206 project.children.visible.has_module('issue_tracking').each do |project|
194 207 render_project(project, options)
208 return if abort?
195 209 end
196 210
197 211 # Remove indent to hit the next sibling
198 212 options[:indent] -= options[:indent_increment]
199 213 end
200 214
201 215 def render_issues(issues, options={})
202 216 issues.each do |i|
203 217 subject_for_issue(i, options) unless options[:only] == :lines
204 218 line_for_issue(i, options) unless options[:only] == :subjects
205 219
206 220 options[:top] += options[:top_increment]
207 221 @number_of_rows += 1
222 return if abort?
208 223 end
209 224 end
210 225
211 226 def render_version(version, options={})
212 227 # Version header
213 228 subject_for_version(version, options) unless options[:only] == :lines
214 229 line_for_version(version, options) unless options[:only] == :subjects
215 230
216 231 options[:top] += options[:top_increment]
217 232 @number_of_rows += 1
233 return if abort?
218 234
219 235 # Remove the project requirement for Versions because it will
220 236 # restrict issues to only be on the current project. This
221 237 # ends up missing issues which are assigned to shared versions.
222 238 @query.project = nil if @query.project
223 239
224 issues = version.fixed_issues.for_gantt.with_query(@query)
240 issues = version.fixed_issues.for_gantt.with_query(@query).all(:limit => current_limit)
225 241 if issues
226 242 sort_issues!(issues)
227 243 # Indent issues
228 244 options[:indent] += options[:indent_increment]
229 245 render_issues(issues, options)
230 246 options[:indent] -= options[:indent_increment]
231 247 end
232 248 end
233 249
234 250 def render_end(options={})
235 251 case options[:format]
236 252 when :pdf
237 253 options[:pdf].Line(15, options[:top], PDF::TotalWidth, options[:top])
238 254 end
239 255 end
240 256
241 257 def subject_for_project(project, options)
242 258 case options[:format]
243 259 when :html
244 260 output = ''
245 261
246 262 output << "<div class='project-name' style='position: absolute;line-height:1.2em;height:16px;top:#{options[:top]}px;left:#{options[:indent]}px;overflow:hidden;'><small> "
247 263 if project.is_a? Project
248 264 output << "<span class='icon icon-projects #{project.overdue? ? 'project-overdue' : ''}'>"
249 265 output << view.link_to_project(project)
250 266 output << '</span>'
251 267 else
252 268 ActiveRecord::Base.logger.debug "Gantt#subject_for_project was not given a project"
253 269 ''
254 270 end
255 271 output << "</small></div>"
256 272 @subjects << output
257 273 output
258 274 when :image
259 275
260 276 options[:image].fill('black')
261 277 options[:image].stroke('transparent')
262 278 options[:image].stroke_width(1)
263 279 options[:image].text(options[:indent], options[:top] + 2, project.name)
264 280 when :pdf
265 281 pdf_new_page?(options)
266 282 options[:pdf].SetY(options[:top])
267 283 options[:pdf].SetX(15)
268 284
269 285 char_limit = PDF::MaxCharactorsForSubject - options[:indent]
270 286 options[:pdf].Cell(options[:subject_width]-15, 5, (" " * options[:indent]) +"#{project.name}".sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
271 287
272 288 options[:pdf].SetY(options[:top])
273 289 options[:pdf].SetX(options[:subject_width])
274 290 options[:pdf].Cell(options[:g_width], 5, "", "LR")
275 291 end
276 292 end
277 293
278 294 def line_for_project(project, options)
279 295 # Skip versions that don't have a start_date or due date
280 296 if project.is_a?(Project) && project.start_date && project.due_date
281 297 options[:zoom] ||= 1
282 298 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom]
283 299
284 300
285 301 case options[:format]
286 302 when :html
287 303 output = ''
288 304 i_left = ((project.start_date - self.date_from)*options[:zoom]).floor
289 305
290 306 start_date = project.start_date
291 307 start_date ||= self.date_from
292 308 start_left = ((start_date - self.date_from)*options[:zoom]).floor
293 309
294 310 i_end_date = ((project.due_date <= self.date_to) ? project.due_date : self.date_to )
295 311 i_done_date = start_date + ((project.due_date - start_date+1)* project.completed_percent(:include_subprojects => true)/100).floor
296 312 i_done_date = (i_done_date <= self.date_from ? self.date_from : i_done_date )
297 313 i_done_date = (i_done_date >= self.date_to ? self.date_to : i_done_date )
298 314
299 315 i_late_date = [i_end_date, Date.today].min if start_date < Date.today
300 316 i_end = ((i_end_date - self.date_from) * options[:zoom]).floor
301 317
302 318 i_width = (i_end - i_left + 1).floor - 2 # total width of the issue (- 2 for left and right borders)
303 319 d_width = ((i_done_date - start_date)*options[:zoom]).floor - 2 # done width
304 320 l_width = i_late_date ? ((i_late_date - start_date+1)*options[:zoom]).floor - 2 : 0 # delay width
305 321
306 322 # Bar graphic
307 323
308 324 # Make sure that negative i_left and i_width don't
309 325 # overflow the subject
310 326 if i_end > 0 && i_left <= options[:g_width]
311 327 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ i_width }px;' class='task project_todo'>&nbsp;</div>"
312 328 end
313 329
314 330 if l_width > 0 && i_left <= options[:g_width]
315 331 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ l_width }px;' class='task project_late'>&nbsp;</div>"
316 332 end
317 333 if d_width > 0 && i_left <= options[:g_width]
318 334 output<< "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ d_width }px;' class='task project_done'>&nbsp;</div>"
319 335 end
320 336
321 337
322 338 # Starting diamond
323 339 if start_left <= options[:g_width] && start_left > 0
324 340 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:15px;' class='task project-line starting'>&nbsp;</div>"
325 341 output << "<div style='top:#{ options[:top] }px;left:#{ start_left + 12 }px;' class='task label'>"
326 342 output << "</div>"
327 343 end
328 344
329 345 # Ending diamond
330 346 # Don't show items too far ahead
331 347 if i_end <= options[:g_width] && i_end > 0
332 348 output << "<div style='top:#{ options[:top] }px;left:#{ i_end }px;width:15px;' class='task project-line ending'>&nbsp;</div>"
333 349 end
334 350
335 351 # DIsplay the Project name and %
336 352 if i_end <= options[:g_width]
337 353 # Display the status even if it's floated off to the left
338 354 status_px = i_end + 12 # 12px for the diamond
339 355 status_px = 0 if status_px <= 0
340 356
341 357 output << "<div style='top:#{ options[:top] }px;left:#{ status_px }px;' class='task label project-name'>"
342 358 output << "<strong>#{h project } #{h project.completed_percent(:include_subprojects => true).to_i.to_s}%</strong>"
343 359 output << "</div>"
344 360 end
345 361 @lines << output
346 362 output
347 363 when :image
348 364 options[:image].stroke('transparent')
349 365 i_left = options[:subject_width] + ((project.due_date - self.date_from)*options[:zoom]).floor
350 366
351 367 # Make sure negative i_left doesn't overflow the subject
352 368 if i_left > options[:subject_width]
353 369 options[:image].fill('blue')
354 370 options[:image].rectangle(i_left, options[:top], i_left + 6, options[:top] - 6)
355 371 options[:image].fill('black')
356 372 options[:image].text(i_left + 11, options[:top] + 1, project.name)
357 373 end
358 374 when :pdf
359 375 options[:pdf].SetY(options[:top]+1.5)
360 376 i_left = ((project.due_date - @date_from)*options[:zoom])
361 377
362 378 # Make sure negative i_left doesn't overflow the subject
363 379 if i_left > 0
364 380 options[:pdf].SetX(options[:subject_width] + i_left)
365 381 options[:pdf].SetFillColor(50,50,200)
366 382 options[:pdf].Cell(2, 2, "", 0, 0, "", 1)
367 383
368 384 options[:pdf].SetY(options[:top]+1.5)
369 385 options[:pdf].SetX(options[:subject_width] + i_left + 3)
370 386 options[:pdf].Cell(30, 2, "#{project.name}")
371 387 end
372 388 end
373 389 else
374 390 ActiveRecord::Base.logger.debug "Gantt#line_for_project was not given a project with a start_date"
375 391 ''
376 392 end
377 393 end
378 394
379 395 def subject_for_version(version, options)
380 396 case options[:format]
381 397 when :html
382 398 output = ''
383 399 output << "<div class='version-name' style='position: absolute;line-height:1.2em;height:16px;top:#{options[:top]}px;left:#{options[:indent]}px;overflow:hidden;'><small> "
384 400 if version.is_a? Version
385 401 output << "<span class='icon icon-package #{version.behind_schedule? ? 'version-behind-schedule' : ''} #{version.overdue? ? 'version-overdue' : ''}'>"
386 402 output << view.link_to_version(version)
387 403 output << '</span>'
388 404 else
389 405 ActiveRecord::Base.logger.debug "Gantt#subject_for_version was not given a version"
390 406 ''
391 407 end
392 408 output << "</small></div>"
393 409 @subjects << output
394 410 output
395 411 when :image
396 412 options[:image].fill('black')
397 413 options[:image].stroke('transparent')
398 414 options[:image].stroke_width(1)
399 415 options[:image].text(options[:indent], options[:top] + 2, version.to_s_with_project)
400 416 when :pdf
401 417 pdf_new_page?(options)
402 418 options[:pdf].SetY(options[:top])
403 419 options[:pdf].SetX(15)
404 420
405 421 char_limit = PDF::MaxCharactorsForSubject - options[:indent]
406 422 options[:pdf].Cell(options[:subject_width]-15, 5, (" " * options[:indent]) +"#{version.to_s_with_project}".sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
407 423
408 424 options[:pdf].SetY(options[:top])
409 425 options[:pdf].SetX(options[:subject_width])
410 426 options[:pdf].Cell(options[:g_width], 5, "", "LR")
411 427 end
412 428 end
413 429
414 430 def line_for_version(version, options)
415 431 # Skip versions that don't have a start_date
416 432 if version.is_a?(Version) && version.start_date && version.due_date
417 433 options[:zoom] ||= 1
418 434 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom]
419 435
420 436 case options[:format]
421 437 when :html
422 438 output = ''
423 439 i_left = ((version.start_date - self.date_from)*options[:zoom]).floor
424 440 # TODO: or version.fixed_issues.collect(&:start_date).min
425 441 start_date = version.fixed_issues.minimum('start_date') if version.fixed_issues.present?
426 442 start_date ||= self.date_from
427 443 start_left = ((start_date - self.date_from)*options[:zoom]).floor
428 444
429 445 i_end_date = ((version.due_date <= self.date_to) ? version.due_date : self.date_to )
430 446 i_done_date = start_date + ((version.due_date - start_date+1)* version.completed_pourcent/100).floor
431 447 i_done_date = (i_done_date <= self.date_from ? self.date_from : i_done_date )
432 448 i_done_date = (i_done_date >= self.date_to ? self.date_to : i_done_date )
433 449
434 450 i_late_date = [i_end_date, Date.today].min if start_date < Date.today
435 451
436 452 i_width = (i_left - start_left + 1).floor - 2 # total width of the issue (- 2 for left and right borders)
437 453 d_width = ((i_done_date - start_date)*options[:zoom]).floor - 2 # done width
438 454 l_width = i_late_date ? ((i_late_date - start_date+1)*options[:zoom]).floor - 2 : 0 # delay width
439 455
440 456 i_end = ((i_end_date - self.date_from) * options[:zoom]).floor # Ending pixel
441 457
442 458 # Bar graphic
443 459
444 460 # Make sure that negative i_left and i_width don't
445 461 # overflow the subject
446 462 if i_width > 0 && i_left <= options[:g_width]
447 463 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ i_width }px;' class='task milestone_todo'>&nbsp;</div>"
448 464 end
449 465 if l_width > 0 && i_left <= options[:g_width]
450 466 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ l_width }px;' class='task milestone_late'>&nbsp;</div>"
451 467 end
452 468 if d_width > 0 && i_left <= options[:g_width]
453 469 output<< "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:#{ d_width }px;' class='task milestone_done'>&nbsp;</div>"
454 470 end
455 471
456 472
457 473 # Starting diamond
458 474 if start_left <= options[:g_width] && start_left > 0
459 475 output << "<div style='top:#{ options[:top] }px;left:#{ start_left }px;width:15px;' class='task milestone starting'>&nbsp;</div>"
460 476 output << "<div style='top:#{ options[:top] }px;left:#{ start_left + 12 }px;background:#fff;' class='task'>"
461 477 output << "</div>"
462 478 end
463 479
464 480 # Ending diamond
465 481 # Don't show items too far ahead
466 482 if i_left <= options[:g_width] && i_end > 0
467 483 output << "<div style='top:#{ options[:top] }px;left:#{ i_end }px;width:15px;' class='task milestone ending'>&nbsp;</div>"
468 484 end
469 485
470 486 # Display the Version name and %
471 487 if i_end <= options[:g_width]
472 488 # Display the status even if it's floated off to the left
473 489 status_px = i_end + 12 # 12px for the diamond
474 490 status_px = 0 if status_px <= 0
475 491
476 492 output << "<div style='top:#{ options[:top] }px;left:#{ status_px }px;' class='task label version-name'>"
477 493 output << h("#{version.project} -") unless @project && @project == version.project
478 494 output << "<strong>#{h version } #{h version.completed_pourcent.to_i.to_s}%</strong>"
479 495 output << "</div>"
480 496 end
481 497 @lines << output
482 498 output
483 499 when :image
484 500 options[:image].stroke('transparent')
485 501 i_left = options[:subject_width] + ((version.start_date - @date_from)*options[:zoom]).floor
486 502
487 503 # Make sure negative i_left doesn't overflow the subject
488 504 if i_left > options[:subject_width]
489 505 options[:image].fill('green')
490 506 options[:image].rectangle(i_left, options[:top], i_left + 6, options[:top] - 6)
491 507 options[:image].fill('black')
492 508 options[:image].text(i_left + 11, options[:top] + 1, version.name)
493 509 end
494 510 when :pdf
495 511 options[:pdf].SetY(options[:top]+1.5)
496 512 i_left = ((version.start_date - @date_from)*options[:zoom])
497 513
498 514 # Make sure negative i_left doesn't overflow the subject
499 515 if i_left > 0
500 516 options[:pdf].SetX(options[:subject_width] + i_left)
501 517 options[:pdf].SetFillColor(50,200,50)
502 518 options[:pdf].Cell(2, 2, "", 0, 0, "", 1)
503 519
504 520 options[:pdf].SetY(options[:top]+1.5)
505 521 options[:pdf].SetX(options[:subject_width] + i_left + 3)
506 522 options[:pdf].Cell(30, 2, "#{version.name}")
507 523 end
508 524 end
509 525 else
510 526 ActiveRecord::Base.logger.debug "Gantt#line_for_version was not given a version with a start_date"
511 527 ''
512 528 end
513 529 end
514 530
515 531 def subject_for_issue(issue, options)
516 532 case options[:format]
517 533 when :html
518 534 output = ''
519 535 output << "<div class='tooltip'>"
520 536 output << "<div class='issue-subject' style='position: absolute;line-height:1.2em;height:16px;top:#{options[:top]}px;left:#{options[:indent]}px;overflow:hidden;'><small> "
521 537 if issue.is_a? Issue
522 538 css_classes = []
523 539 css_classes << 'issue-overdue' if issue.overdue?
524 540 css_classes << 'issue-behind-schedule' if issue.behind_schedule?
525 541 css_classes << 'icon icon-issue' unless Setting.gravatar_enabled? && issue.assigned_to
526 542
527 543 if issue.assigned_to.present?
528 544 assigned_string = l(:field_assigned_to) + ": " + issue.assigned_to.name
529 545 output << view.avatar(issue.assigned_to, :class => 'gravatar icon-gravatar', :size => 10, :title => assigned_string)
530 546 end
531 547 output << "<span class='#{css_classes.join(' ')}'>"
532 548 output << view.link_to_issue(issue)
533 549 output << '</span>'
534 550 else
535 551 ActiveRecord::Base.logger.debug "Gantt#subject_for_issue was not given an issue"
536 552 ''
537 553 end
538 554 output << "</small></div>"
539 555
540 556 # Tooltip
541 557 if issue.is_a? Issue
542 558 output << "<span class='tip' style='position: absolute;top:#{ options[:top].to_i + 16 }px;left:#{ options[:indent].to_i + 20 }px;'>"
543 559 output << view.render_issue_tooltip(issue)
544 560 output << "</span>"
545 561 end
546 562
547 563 output << "</div>"
548 564 @subjects << output
549 565 output
550 566 when :image
551 567 options[:image].fill('black')
552 568 options[:image].stroke('transparent')
553 569 options[:image].stroke_width(1)
554 570 options[:image].text(options[:indent], options[:top] + 2, issue.subject)
555 571 when :pdf
556 572 pdf_new_page?(options)
557 573 options[:pdf].SetY(options[:top])
558 574 options[:pdf].SetX(15)
559 575
560 576 char_limit = PDF::MaxCharactorsForSubject - options[:indent]
561 577 options[:pdf].Cell(options[:subject_width]-15, 5, (" " * options[:indent]) +"#{issue.tracker} #{issue.id}: #{issue.subject}".sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
562 578
563 579 options[:pdf].SetY(options[:top])
564 580 options[:pdf].SetX(options[:subject_width])
565 581 options[:pdf].Cell(options[:g_width], 5, "", "LR")
566 582 end
567 583 end
568 584
569 585 def line_for_issue(issue, options)
570 586 # Skip issues that don't have a due_before (due_date or version's due_date)
571 587 if issue.is_a?(Issue) && issue.due_before
572 588 case options[:format]
573 589 when :html
574 590 output = ''
575 591 # Handle nil start_dates, rare but can happen.
576 592 i_start_date = if issue.start_date && issue.start_date >= self.date_from
577 593 issue.start_date
578 594 else
579 595 self.date_from
580 596 end
581 597
582 598 i_end_date = ((issue.due_before && issue.due_before <= self.date_to) ? issue.due_before : self.date_to )
583 599 i_done_date = i_start_date + ((issue.due_before - i_start_date+1)*issue.done_ratio/100).floor
584 600 i_done_date = (i_done_date <= self.date_from ? self.date_from : i_done_date )
585 601 i_done_date = (i_done_date >= self.date_to ? self.date_to : i_done_date )
586 602
587 603 i_late_date = [i_end_date, Date.today].min if i_start_date < Date.today
588 604
589 605 i_left = ((i_start_date - self.date_from)*options[:zoom]).floor
590 606 i_width = ((i_end_date - i_start_date + 1)*options[:zoom]).floor - 2 # total width of the issue (- 2 for left and right borders)
591 607 d_width = ((i_done_date - i_start_date)*options[:zoom]).floor - 2 # done width
592 608 l_width = i_late_date ? ((i_late_date - i_start_date+1)*options[:zoom]).floor - 2 : 0 # delay width
593 609 css = "task " + (issue.leaf? ? 'leaf' : 'parent')
594 610
595 611 # Make sure that negative i_left and i_width don't
596 612 # overflow the subject
597 613 if i_width > 0
598 614 output << "<div style='top:#{ options[:top] }px;left:#{ i_left }px;width:#{ i_width }px;' class='#{css} task_todo'>&nbsp;</div>"
599 615 end
600 616 if l_width > 0
601 617 output << "<div style='top:#{ options[:top] }px;left:#{ i_left }px;width:#{ l_width }px;' class='#{css} task_late'>&nbsp;</div>"
602 618 end
603 619 if d_width > 0
604 620 output<< "<div style='top:#{ options[:top] }px;left:#{ i_left }px;width:#{ d_width }px;' class='#{css} task_done'>&nbsp;</div>"
605 621 end
606 622
607 623 # Display the status even if it's floated off to the left
608 624 status_px = i_left + i_width + 5
609 625 status_px = 5 if status_px <= 0
610 626
611 627 output << "<div style='top:#{ options[:top] }px;left:#{ status_px }px;' class='#{css} label issue-name'>"
612 628 output << issue.status.name
613 629 output << ' '
614 630 output << (issue.done_ratio).to_i.to_s
615 631 output << "%"
616 632 output << "</div>"
617 633
618 634 output << "<div class='tooltip' style='position: absolute;top:#{ options[:top] }px;left:#{ i_left }px;width:#{ i_width }px;height:12px;'>"
619 635 output << '<span class="tip">'
620 636 output << view.render_issue_tooltip(issue)
621 637 output << "</span></div>"
622 638 @lines << output
623 639 output
624 640
625 641 when :image
626 642 # Handle nil start_dates, rare but can happen.
627 643 i_start_date = if issue.start_date && issue.start_date >= @date_from
628 644 issue.start_date
629 645 else
630 646 @date_from
631 647 end
632 648
633 649 i_end_date = (issue.due_before <= date_to ? issue.due_before : date_to )
634 650 i_done_date = i_start_date + ((issue.due_before - i_start_date+1)*issue.done_ratio/100).floor
635 651 i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
636 652 i_done_date = (i_done_date >= date_to ? date_to : i_done_date )
637 653 i_late_date = [i_end_date, Date.today].min if i_start_date < Date.today
638 654
639 655 i_left = options[:subject_width] + ((i_start_date - @date_from)*options[:zoom]).floor
640 656 i_width = ((i_end_date - i_start_date + 1)*options[:zoom]).floor # total width of the issue
641 657 d_width = ((i_done_date - i_start_date)*options[:zoom]).floor # done width
642 658 l_width = i_late_date ? ((i_late_date - i_start_date+1)*options[:zoom]).floor : 0 # delay width
643 659
644 660
645 661 # Make sure that negative i_left and i_width don't
646 662 # overflow the subject
647 663 if i_width > 0
648 664 options[:image].fill('grey')
649 665 options[:image].rectangle(i_left, options[:top], i_left + i_width, options[:top] - 6)
650 666 options[:image].fill('red')
651 667 options[:image].rectangle(i_left, options[:top], i_left + l_width, options[:top] - 6) if l_width > 0
652 668 options[:image].fill('blue')
653 669 options[:image].rectangle(i_left, options[:top], i_left + d_width, options[:top] - 6) if d_width > 0
654 670 end
655 671
656 672 # Show the status and % done next to the subject if it overflows
657 673 options[:image].fill('black')
658 674 if i_width > 0
659 675 options[:image].text(i_left + i_width + 5,options[:top] + 1, "#{issue.status.name} #{issue.done_ratio}%")
660 676 else
661 677 options[:image].text(options[:subject_width] + 5,options[:top] + 1, "#{issue.status.name} #{issue.done_ratio}%")
662 678 end
663 679
664 680 when :pdf
665 681 options[:pdf].SetY(options[:top]+1.5)
666 682 # Handle nil start_dates, rare but can happen.
667 683 i_start_date = if issue.start_date && issue.start_date >= @date_from
668 684 issue.start_date
669 685 else
670 686 @date_from
671 687 end
672 688
673 689 i_end_date = (issue.due_before <= @date_to ? issue.due_before : @date_to )
674 690
675 691 i_done_date = i_start_date + ((issue.due_before - i_start_date+1)*issue.done_ratio/100).floor
676 692 i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
677 693 i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )
678 694
679 695 i_late_date = [i_end_date, Date.today].min if i_start_date < Date.today
680 696
681 697 i_left = ((i_start_date - @date_from)*options[:zoom])
682 698 i_width = ((i_end_date - i_start_date + 1)*options[:zoom])
683 699 d_width = ((i_done_date - i_start_date)*options[:zoom])
684 700 l_width = ((i_late_date - i_start_date+1)*options[:zoom]) if i_late_date
685 701 l_width ||= 0
686 702
687 703 # Make sure that negative i_left and i_width don't
688 704 # overflow the subject
689 705 if i_width > 0
690 706 options[:pdf].SetX(options[:subject_width] + i_left)
691 707 options[:pdf].SetFillColor(200,200,200)
692 708 options[:pdf].Cell(i_width, 2, "", 0, 0, "", 1)
693 709 end
694 710
695 711 if l_width > 0
696 712 options[:pdf].SetY(options[:top]+1.5)
697 713 options[:pdf].SetX(options[:subject_width] + i_left)
698 714 options[:pdf].SetFillColor(255,100,100)
699 715 options[:pdf].Cell(l_width, 2, "", 0, 0, "", 1)
700 716 end
701 717 if d_width > 0
702 718 options[:pdf].SetY(options[:top]+1.5)
703 719 options[:pdf].SetX(options[:subject_width] + i_left)
704 720 options[:pdf].SetFillColor(100,100,255)
705 721 options[:pdf].Cell(d_width, 2, "", 0, 0, "", 1)
706 722 end
707 723
708 724 options[:pdf].SetY(options[:top]+1.5)
709 725
710 726 # Make sure that negative i_left and i_width don't
711 727 # overflow the subject
712 728 if (i_left + i_width) >= 0
713 729 options[:pdf].SetX(options[:subject_width] + i_left + i_width)
714 730 else
715 731 options[:pdf].SetX(options[:subject_width])
716 732 end
717 733 options[:pdf].Cell(30, 2, "#{issue.status} #{issue.done_ratio}%")
718 734 end
719 735 else
720 736 ActiveRecord::Base.logger.debug "GanttHelper#line_for_issue was not given an issue with a due_before"
721 737 ''
722 738 end
723 739 end
724 740
725 741 # Generates a gantt image
726 742 # Only defined if RMagick is avalaible
727 743 def to_image(format='PNG')
728 744 date_to = (@date_from >> @months)-1
729 745 show_weeks = @zoom > 1
730 746 show_days = @zoom > 2
731 747
732 748 subject_width = 400
733 749 header_heigth = 18
734 750 # width of one day in pixels
735 751 zoom = @zoom*2
736 752 g_width = (@date_to - @date_from + 1)*zoom
737 753 g_height = 20 * number_of_rows + 30
738 754 headers_heigth = (show_weeks ? 2*header_heigth : header_heigth)
739 755 height = g_height + headers_heigth
740 756
741 757 imgl = Magick::ImageList.new
742 758 imgl.new_image(subject_width+g_width+1, height)
743 759 gc = Magick::Draw.new
744 760
745 761 # Subjects
746 762 subjects(:image => gc, :top => (headers_heigth + 20), :indent => 4, :format => :image)
747 763
748 764 # Months headers
749 765 month_f = @date_from
750 766 left = subject_width
751 767 @months.times do
752 768 width = ((month_f >> 1) - month_f) * zoom
753 769 gc.fill('white')
754 770 gc.stroke('grey')
755 771 gc.stroke_width(1)
756 772 gc.rectangle(left, 0, left + width, height)
757 773 gc.fill('black')
758 774 gc.stroke('transparent')
759 775 gc.stroke_width(1)
760 776 gc.text(left.round + 8, 14, "#{month_f.year}-#{month_f.month}")
761 777 left = left + width
762 778 month_f = month_f >> 1
763 779 end
764 780
765 781 # Weeks headers
766 782 if show_weeks
767 783 left = subject_width
768 784 height = header_heigth
769 785 if @date_from.cwday == 1
770 786 # date_from is monday
771 787 week_f = date_from
772 788 else
773 789 # find next monday after date_from
774 790 week_f = @date_from + (7 - @date_from.cwday + 1)
775 791 width = (7 - @date_from.cwday + 1) * zoom
776 792 gc.fill('white')
777 793 gc.stroke('grey')
778 794 gc.stroke_width(1)
779 795 gc.rectangle(left, header_heigth, left + width, 2*header_heigth + g_height-1)
780 796 left = left + width
781 797 end
782 798 while week_f <= date_to
783 799 width = (week_f + 6 <= date_to) ? 7 * zoom : (date_to - week_f + 1) * zoom
784 800 gc.fill('white')
785 801 gc.stroke('grey')
786 802 gc.stroke_width(1)
787 803 gc.rectangle(left.round, header_heigth, left.round + width, 2*header_heigth + g_height-1)
788 804 gc.fill('black')
789 805 gc.stroke('transparent')
790 806 gc.stroke_width(1)
791 807 gc.text(left.round + 2, header_heigth + 14, week_f.cweek.to_s)
792 808 left = left + width
793 809 week_f = week_f+7
794 810 end
795 811 end
796 812
797 813 # Days details (week-end in grey)
798 814 if show_days
799 815 left = subject_width
800 816 height = g_height + header_heigth - 1
801 817 wday = @date_from.cwday
802 818 (date_to - @date_from + 1).to_i.times do
803 819 width = zoom
804 820 gc.fill(wday == 6 || wday == 7 ? '#eee' : 'white')
805 821 gc.stroke('grey')
806 822 gc.stroke_width(1)
807 823 gc.rectangle(left, 2*header_heigth, left + width, 2*header_heigth + g_height-1)
808 824 left = left + width
809 825 wday = wday + 1
810 826 wday = 1 if wday > 7
811 827 end
812 828 end
813 829
814 830 # border
815 831 gc.fill('transparent')
816 832 gc.stroke('grey')
817 833 gc.stroke_width(1)
818 834 gc.rectangle(0, 0, subject_width+g_width, headers_heigth)
819 835 gc.stroke('black')
820 836 gc.rectangle(0, 0, subject_width+g_width, g_height+ headers_heigth-1)
821 837
822 838 # content
823 839 top = headers_heigth + 20
824 840
825 841 lines(:image => gc, :top => top, :zoom => zoom, :subject_width => subject_width, :format => :image)
826 842
827 843 # today red line
828 844 if Date.today >= @date_from and Date.today <= date_to
829 845 gc.stroke('red')
830 846 x = (Date.today-@date_from+1)*zoom + subject_width
831 847 gc.line(x, headers_heigth, x, headers_heigth + g_height-1)
832 848 end
833 849
834 850 gc.draw(imgl)
835 851 imgl.format = format
836 852 imgl.to_blob
837 853 end if Object.const_defined?(:Magick)
838 854
839 855 def to_pdf
840 856 pdf = ::Redmine::Export::PDF::IFPDF.new(current_language)
841 857 pdf.SetTitle("#{l(:label_gantt)} #{project}")
842 858 pdf.AliasNbPages
843 859 pdf.footer_date = format_date(Date.today)
844 860 pdf.AddPage("L")
845 861 pdf.SetFontStyle('B',12)
846 862 pdf.SetX(15)
847 863 pdf.Cell(PDF::LeftPaneWidth, 20, project.to_s)
848 864 pdf.Ln
849 865 pdf.SetFontStyle('B',9)
850 866
851 867 subject_width = PDF::LeftPaneWidth
852 868 header_heigth = 5
853 869
854 870 headers_heigth = header_heigth
855 871 show_weeks = false
856 872 show_days = false
857 873
858 874 if self.months < 7
859 875 show_weeks = true
860 876 headers_heigth = 2*header_heigth
861 877 if self.months < 3
862 878 show_days = true
863 879 headers_heigth = 3*header_heigth
864 880 end
865 881 end
866 882
867 883 g_width = PDF.right_pane_width
868 884 zoom = (g_width) / (self.date_to - self.date_from + 1)
869 885 g_height = 120
870 886 t_height = g_height + headers_heigth
871 887
872 888 y_start = pdf.GetY
873 889
874 890 # Months headers
875 891 month_f = self.date_from
876 892 left = subject_width
877 893 height = header_heigth
878 894 self.months.times do
879 895 width = ((month_f >> 1) - month_f) * zoom
880 896 pdf.SetY(y_start)
881 897 pdf.SetX(left)
882 898 pdf.Cell(width, height, "#{month_f.year}-#{month_f.month}", "LTR", 0, "C")
883 899 left = left + width
884 900 month_f = month_f >> 1
885 901 end
886 902
887 903 # Weeks headers
888 904 if show_weeks
889 905 left = subject_width
890 906 height = header_heigth
891 907 if self.date_from.cwday == 1
892 908 # self.date_from is monday
893 909 week_f = self.date_from
894 910 else
895 911 # find next monday after self.date_from
896 912 week_f = self.date_from + (7 - self.date_from.cwday + 1)
897 913 width = (7 - self.date_from.cwday + 1) * zoom-1
898 914 pdf.SetY(y_start + header_heigth)
899 915 pdf.SetX(left)
900 916 pdf.Cell(width + 1, height, "", "LTR")
901 917 left = left + width+1
902 918 end
903 919 while week_f <= self.date_to
904 920 width = (week_f + 6 <= self.date_to) ? 7 * zoom : (self.date_to - week_f + 1) * zoom
905 921 pdf.SetY(y_start + header_heigth)
906 922 pdf.SetX(left)
907 923 pdf.Cell(width, height, (width >= 5 ? week_f.cweek.to_s : ""), "LTR", 0, "C")
908 924 left = left + width
909 925 week_f = week_f+7
910 926 end
911 927 end
912 928
913 929 # Days headers
914 930 if show_days
915 931 left = subject_width
916 932 height = header_heigth
917 933 wday = self.date_from.cwday
918 934 pdf.SetFontStyle('B',7)
919 935 (self.date_to - self.date_from + 1).to_i.times do
920 936 width = zoom
921 937 pdf.SetY(y_start + 2 * header_heigth)
922 938 pdf.SetX(left)
923 939 pdf.Cell(width, height, day_name(wday).first, "LTR", 0, "C")
924 940 left = left + width
925 941 wday = wday + 1
926 942 wday = 1 if wday > 7
927 943 end
928 944 end
929 945
930 946 pdf.SetY(y_start)
931 947 pdf.SetX(15)
932 948 pdf.Cell(subject_width+g_width-15, headers_heigth, "", 1)
933 949
934 950 # Tasks
935 951 top = headers_heigth + y_start
936 952 options = {
937 953 :top => top,
938 954 :zoom => zoom,
939 955 :subject_width => subject_width,
940 956 :g_width => g_width,
941 957 :indent => 0,
942 958 :indent_increment => 5,
943 959 :top_increment => 5,
944 960 :format => :pdf,
945 961 :pdf => pdf
946 962 }
947 963 render(options)
948 964 pdf.Output
949 965 end
950 966
951 967 private
952 968
953 969 # Sorts a collection of issues by start_date, due_date, id for gantt rendering
954 970 def sort_issues!(issues)
955 971 issues.sort! do |a, b|
956 972 cmp = 0
957 973 cmp = (a.start_date <=> b.start_date) if a.start_date? && b.start_date?
958 974 cmp = (a.due_date <=> b.due_date) if cmp == 0 && a.due_date? && b.due_date?
959 975 cmp = (a.id <=> b.id) if cmp == 0
960 976 cmp
961 977 end
962 978 end
963 979
980 def current_limit
981 if @max_rows
982 @max_rows - @number_of_rows
983 else
984 nil
985 end
986 end
987
988 def abort?
989 if @max_rows && @number_of_rows >= @max_rows
990 @truncated = true
991 end
992 end
993
964 994 def pdf_new_page?(options)
965 995 if options[:top] > 180
966 996 options[:pdf].Line(15, options[:top], PDF::TotalWidth, options[:top])
967 997 options[:pdf].AddPage("L")
968 998 options[:top] = 15
969 999 options[:pdf].Line(15, options[:top] - 0.1, PDF::TotalWidth, options[:top] - 0.1)
970 1000 end
971 1001 end
972 1002 end
973 1003 end
974 1004 end
@@ -1,703 +1,719
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2008 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.expand_path('../../../../../test_helper', __FILE__)
19 19
20 20 class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
21 21 # Utility methods and classes so assert_select can be used.
22 22 class GanttViewTest < ActionView::Base
23 23 include ActionView::Helpers::UrlHelper
24 24 include ActionView::Helpers::TextHelper
25 25 include ActionController::UrlWriter
26 26 include ApplicationHelper
27 27 include ProjectsHelper
28 28 include IssuesHelper
29 29
30 30 def self.default_url_options
31 31 {:only_path => true }
32 32 end
33 33
34 34 end
35 35
36 36 include ActionController::Assertions::SelectorAssertions
37 37
38 38 def setup
39 39 @response = ActionController::TestResponse.new
40 40 # Fixtures
41 41 ProjectCustomField.delete_all
42 42 Project.destroy_all
43 43
44 44 User.current = User.find(1)
45 45 end
46 46
47 47 def build_view
48 48 @view = GanttViewTest.new
49 49 end
50 50
51 51 def html_document
52 52 HTML::Document.new(@response.body)
53 53 end
54 54
55 55 # Creates a Gantt chart for a 4 week span
56 def create_gantt(project=Project.generate!)
56 def create_gantt(project=Project.generate!, options={})
57 57 @project = project
58 @gantt = Redmine::Helpers::Gantt.new
58 @gantt = Redmine::Helpers::Gantt.new(options)
59 59 @gantt.project = @project
60 60 @gantt.query = Query.generate_default!(:project => @project)
61 61 @gantt.view = build_view
62 62 @gantt.instance_variable_set('@date_from', 2.weeks.ago.to_date)
63 63 @gantt.instance_variable_set('@date_to', 2.weeks.from_now.to_date)
64 64 end
65 65
66 66 context "#number_of_rows" do
67 67
68 68 context "with one project" do
69 69 should "return the number of rows just for that project"
70 70 end
71 71
72 72 context "with no project" do
73 73 should "return the total number of rows for all the projects, resursively"
74 74 end
75 75
76 should "not exceed max_rows option" do
77 p = Project.generate!
78 5.times do
79 Issue.generate_for_project!(p)
80 end
81
82 create_gantt(p)
83 @gantt.render
84 assert_equal 6, @gantt.number_of_rows
85 assert !@gantt.truncated
86
87 create_gantt(p, :max_rows => 3)
88 @gantt.render
89 assert_equal 3, @gantt.number_of_rows
90 assert @gantt.truncated
91 end
76 92 end
77 93
78 94 context "#number_of_rows_on_project" do
79 95 setup do
80 96 create_gantt
81 97 end
82 98
83 99 should "clear the @query.project so cross-project issues and versions can be counted" do
84 100 assert @gantt.query.project
85 101 @gantt.number_of_rows_on_project(@project)
86 102 assert_nil @gantt.query.project
87 103 end
88 104
89 105 should "count 1 for the project itself" do
90 106 assert_equal 1, @gantt.number_of_rows_on_project(@project)
91 107 end
92 108
93 109 should "count the number of issues without a version" do
94 110 @project.issues << Issue.generate_for_project!(@project, :fixed_version => nil)
95 111 assert_equal 2, @gantt.number_of_rows_on_project(@project)
96 112 end
97 113
98 114 should "count the number of versions" do
99 115 @project.versions << Version.generate!
100 116 @project.versions << Version.generate!
101 117 assert_equal 3, @gantt.number_of_rows_on_project(@project)
102 118 end
103 119
104 120 should "count the number of issues on versions, including cross-project" do
105 121 version = Version.generate!
106 122 @project.versions << version
107 123 @project.issues << Issue.generate_for_project!(@project, :fixed_version => version)
108 124
109 125 assert_equal 3, @gantt.number_of_rows_on_project(@project)
110 126 end
111 127
112 128 should "recursive and count the number of rows on each subproject" do
113 129 @project.versions << Version.generate! # +1
114 130
115 131 @subproject = Project.generate!(:enabled_module_names => ['issue_tracking']) # +1
116 132 @subproject.set_parent!(@project)
117 133 @subproject.issues << Issue.generate_for_project!(@subproject) # +1
118 134 @subproject.issues << Issue.generate_for_project!(@subproject) # +1
119 135
120 136 @subsubproject = Project.generate!(:enabled_module_names => ['issue_tracking']) # +1
121 137 @subsubproject.set_parent!(@subproject)
122 138 @subsubproject.issues << Issue.generate_for_project!(@subsubproject) # +1
123 139
124 140 assert_equal 7, @gantt.number_of_rows_on_project(@project) # +1 for self
125 141 end
126 142 end
127 143
128 144 # TODO: more of an integration test
129 145 context "#subjects" do
130 146 setup do
131 147 create_gantt
132 148 @project.enabled_module_names = [:issue_tracking]
133 149 @tracker = Tracker.generate!
134 150 @project.trackers << @tracker
135 151 @version = Version.generate!(:effective_date => 1.week.from_now.to_date, :sharing => 'none')
136 152 @project.versions << @version
137 153
138 154 @issue = Issue.generate!(:fixed_version => @version,
139 155 :subject => "gantt#line_for_project",
140 156 :tracker => @tracker,
141 157 :project => @project,
142 158 :done_ratio => 30,
143 159 :start_date => Date.yesterday,
144 160 :due_date => 1.week.from_now.to_date)
145 161 @project.issues << @issue
146 162
147 163 @response.body = @gantt.subjects
148 164 end
149 165
150 166 context "project" do
151 167 should "be rendered" do
152 168 assert_select "div.project-name a", /#{@project.name}/
153 169 end
154 170
155 171 should "have an indent of 4" do
156 172 assert_select "div.project-name[style*=left:4px]"
157 173 end
158 174 end
159 175
160 176 context "version" do
161 177 should "be rendered" do
162 178 assert_select "div.version-name a", /#{@version.name}/
163 179 end
164 180
165 181 should "be indented 24 (one level)" do
166 182 assert_select "div.version-name[style*=left:24px]"
167 183 end
168 184 end
169 185
170 186 context "issue" do
171 187 should "be rendered" do
172 188 assert_select "div.issue-subject", /#{@issue.subject}/
173 189 end
174 190
175 191 should "be indented 44 (two levels)" do
176 192 assert_select "div.issue-subject[style*=left:44px]"
177 193 end
178 194 end
179 195 end
180 196
181 197 context "#lines" do
182 198 setup do
183 199 create_gantt
184 200 @project.enabled_module_names = [:issue_tracking]
185 201 @tracker = Tracker.generate!
186 202 @project.trackers << @tracker
187 203 @version = Version.generate!(:effective_date => 1.week.from_now.to_date)
188 204 @project.versions << @version
189 205 @issue = Issue.generate!(:fixed_version => @version,
190 206 :subject => "gantt#line_for_project",
191 207 :tracker => @tracker,
192 208 :project => @project,
193 209 :done_ratio => 30,
194 210 :start_date => Date.yesterday,
195 211 :due_date => 1.week.from_now.to_date)
196 212 @project.issues << @issue
197 213
198 214 @response.body = @gantt.lines
199 215 end
200 216
201 217 context "project" do
202 218 should "be rendered" do
203 219 assert_select "div.project_todo"
204 220 assert_select "div.project-line.starting"
205 221 assert_select "div.project-line.ending"
206 222 assert_select "div.label.project-name", /#{@project.name}/
207 223 end
208 224 end
209 225
210 226 context "version" do
211 227 should "be rendered" do
212 228 assert_select "div.milestone_todo"
213 229 assert_select "div.milestone.starting"
214 230 assert_select "div.milestone.ending"
215 231 assert_select "div.label.version-name", /#{@version.name}/
216 232 end
217 233 end
218 234
219 235 context "issue" do
220 236 should "be rendered" do
221 237 assert_select "div.task_todo"
222 238 assert_select "div.label.issue-name", /#{@issue.done_ratio}/
223 239 assert_select "div.tooltip", /#{@issue.subject}/
224 240 end
225 241 end
226 242 end
227 243
228 244 context "#render_project" do
229 245 should "be tested"
230 246 end
231 247
232 248 context "#render_issues" do
233 249 should "be tested"
234 250 end
235 251
236 252 context "#render_version" do
237 253 should "be tested"
238 254 end
239 255
240 256 context "#subject_for_project" do
241 257 setup do
242 258 create_gantt
243 259 end
244 260
245 261 context ":html format" do
246 262 should "add an absolute positioned div" do
247 263 @response.body = @gantt.subject_for_project(@project, {:format => :html})
248 264 assert_select "div[style*=absolute]"
249 265 end
250 266
251 267 should "use the indent option to move the div to the right" do
252 268 @response.body = @gantt.subject_for_project(@project, {:format => :html, :indent => 40})
253 269 assert_select "div[style*=left:40]"
254 270 end
255 271
256 272 should "include the project name" do
257 273 @response.body = @gantt.subject_for_project(@project, {:format => :html})
258 274 assert_select 'div', :text => /#{@project.name}/
259 275 end
260 276
261 277 should "include a link to the project" do
262 278 @response.body = @gantt.subject_for_project(@project, {:format => :html})
263 279 assert_select 'a[href=?]', "/projects/#{@project.identifier}", :text => /#{@project.name}/
264 280 end
265 281
266 282 should "style overdue projects" do
267 283 @project.enabled_module_names = [:issue_tracking]
268 284 @project.versions << Version.generate!(:effective_date => Date.yesterday)
269 285
270 286 assert @project.overdue?, "Need an overdue project for this test"
271 287 @response.body = @gantt.subject_for_project(@project, {:format => :html})
272 288
273 289 assert_select 'div span.project-overdue'
274 290 end
275 291
276 292
277 293 end
278 294
279 295 should "test the PNG format"
280 296 should "test the PDF format"
281 297 end
282 298
283 299 context "#line_for_project" do
284 300 setup do
285 301 create_gantt
286 302 @project.enabled_module_names = [:issue_tracking]
287 303 @tracker = Tracker.generate!
288 304 @project.trackers << @tracker
289 305 @version = Version.generate!(:effective_date => Date.yesterday)
290 306 @project.versions << @version
291 307
292 308 @project.issues << Issue.generate!(:fixed_version => @version,
293 309 :subject => "gantt#line_for_project",
294 310 :tracker => @tracker,
295 311 :project => @project,
296 312 :done_ratio => 30,
297 313 :start_date => Date.yesterday,
298 314 :due_date => 1.week.from_now.to_date)
299 315 end
300 316
301 317 context ":html format" do
302 318 context "todo line" do
303 319 should "start from the starting point on the left" do
304 320 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
305 321 assert_select "div.project_todo[style*=left:52px]"
306 322 end
307 323
308 324 should "be the total width of the project" do
309 325 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
310 326 assert_select "div.project_todo[style*=width:31px]"
311 327 end
312 328
313 329 end
314 330
315 331 context "late line" do
316 332 should "start from the starting point on the left" do
317 333 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
318 334 assert_select "div.project_late[style*=left:52px]"
319 335 end
320 336
321 337 should "be the total delayed width of the project" do
322 338 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
323 339 assert_select "div.project_late[style*=width:6px]"
324 340 end
325 341 end
326 342
327 343 context "done line" do
328 344 should "start from the starting point on the left" do
329 345 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
330 346 assert_select "div.project_done[style*=left:52px]"
331 347 end
332 348
333 349 should "Be the total done width of the project" do
334 350 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
335 351 assert_select "div.project_done[style*=left:52px]"
336 352 end
337 353 end
338 354
339 355 context "starting marker" do
340 356 should "not appear if the starting point is off the gantt chart" do
341 357 # Shift the date range of the chart
342 358 @gantt.instance_variable_set('@date_from', Date.today)
343 359
344 360 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
345 361 assert_select "div.project-line.starting", false
346 362 end
347 363
348 364 should "appear at the starting point" do
349 365 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
350 366 assert_select "div.project-line.starting[style*=left:52px]"
351 367 end
352 368 end
353 369
354 370 context "ending marker" do
355 371 should "not appear if the starting point is off the gantt chart" do
356 372 # Shift the date range of the chart
357 373 @gantt.instance_variable_set('@date_to', 2.weeks.ago.to_date)
358 374
359 375 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
360 376 assert_select "div.project-line.ending", false
361 377
362 378 end
363 379
364 380 should "appear at the end of the date range" do
365 381 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
366 382 assert_select "div.project-line.ending[style*=left:84px]"
367 383 end
368 384 end
369 385
370 386 context "status content" do
371 387 should "appear at the far left, even if it's far in the past" do
372 388 @gantt.instance_variable_set('@date_to', 2.weeks.ago.to_date)
373 389
374 390 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
375 391 assert_select "div.project-name", /#{@project.name}/
376 392 end
377 393
378 394 should "show the project name" do
379 395 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
380 396 assert_select "div.project-name", /#{@project.name}/
381 397 end
382 398
383 399 should "show the percent complete" do
384 400 @response.body = @gantt.line_for_project(@project, {:format => :html, :zoom => 4})
385 401 assert_select "div.project-name", /0%/
386 402 end
387 403 end
388 404 end
389 405
390 406 should "test the PNG format"
391 407 should "test the PDF format"
392 408 end
393 409
394 410 context "#subject_for_version" do
395 411 setup do
396 412 create_gantt
397 413 @project.enabled_module_names = [:issue_tracking]
398 414 @tracker = Tracker.generate!
399 415 @project.trackers << @tracker
400 416 @version = Version.generate!(:effective_date => Date.yesterday)
401 417 @project.versions << @version
402 418
403 419 @project.issues << Issue.generate!(:fixed_version => @version,
404 420 :subject => "gantt#subject_for_version",
405 421 :tracker => @tracker,
406 422 :project => @project,
407 423 :start_date => Date.today)
408 424
409 425 end
410 426
411 427 context ":html format" do
412 428 should "add an absolute positioned div" do
413 429 @response.body = @gantt.subject_for_version(@version, {:format => :html})
414 430 assert_select "div[style*=absolute]"
415 431 end
416 432
417 433 should "use the indent option to move the div to the right" do
418 434 @response.body = @gantt.subject_for_version(@version, {:format => :html, :indent => 40})
419 435 assert_select "div[style*=left:40]"
420 436 end
421 437
422 438 should "include the version name" do
423 439 @response.body = @gantt.subject_for_version(@version, {:format => :html})
424 440 assert_select 'div', :text => /#{@version.name}/
425 441 end
426 442
427 443 should "include a link to the version" do
428 444 @response.body = @gantt.subject_for_version(@version, {:format => :html})
429 445 assert_select 'a[href=?]', Regexp.escape("/versions/show/#{@version.to_param}"), :text => /#{@version.name}/
430 446 end
431 447
432 448 should "style late versions" do
433 449 assert @version.overdue?, "Need an overdue version for this test"
434 450 @response.body = @gantt.subject_for_version(@version, {:format => :html})
435 451
436 452 assert_select 'div span.version-behind-schedule'
437 453 end
438 454
439 455 should "style behind schedule versions" do
440 456 assert @version.behind_schedule?, "Need a behind schedule version for this test"
441 457 @response.body = @gantt.subject_for_version(@version, {:format => :html})
442 458
443 459 assert_select 'div span.version-behind-schedule'
444 460 end
445 461 end
446 462 should "test the PNG format"
447 463 should "test the PDF format"
448 464 end
449 465
450 466 context "#line_for_version" do
451 467 setup do
452 468 create_gantt
453 469 @project.enabled_module_names = [:issue_tracking]
454 470 @tracker = Tracker.generate!
455 471 @project.trackers << @tracker
456 472 @version = Version.generate!(:effective_date => 1.week.from_now.to_date)
457 473 @project.versions << @version
458 474
459 475 @project.issues << Issue.generate!(:fixed_version => @version,
460 476 :subject => "gantt#line_for_project",
461 477 :tracker => @tracker,
462 478 :project => @project,
463 479 :done_ratio => 30,
464 480 :start_date => Date.yesterday,
465 481 :due_date => 1.week.from_now.to_date)
466 482 end
467 483
468 484 context ":html format" do
469 485 context "todo line" do
470 486 should "start from the starting point on the left" do
471 487 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
472 488 assert_select "div.milestone_todo[style*=left:52px]"
473 489 end
474 490
475 491 should "be the total width of the version" do
476 492 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
477 493 assert_select "div.milestone_todo[style*=width:31px]"
478 494 end
479 495
480 496 end
481 497
482 498 context "late line" do
483 499 should "start from the starting point on the left" do
484 500 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
485 501 assert_select "div.milestone_late[style*=left:52px]"
486 502 end
487 503
488 504 should "be the total delayed width of the version" do
489 505 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
490 506 assert_select "div.milestone_late[style*=width:6px]"
491 507 end
492 508 end
493 509
494 510 context "done line" do
495 511 should "start from the starting point on the left" do
496 512 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
497 513 assert_select "div.milestone_done[style*=left:52px]"
498 514 end
499 515
500 516 should "Be the total done width of the version" do
501 517 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
502 518 assert_select "div.milestone_done[style*=left:52px]"
503 519 end
504 520 end
505 521
506 522 context "starting marker" do
507 523 should "not appear if the starting point is off the gantt chart" do
508 524 # Shift the date range of the chart
509 525 @gantt.instance_variable_set('@date_from', Date.today)
510 526
511 527 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
512 528 assert_select "div.milestone.starting", false
513 529 end
514 530
515 531 should "appear at the starting point" do
516 532 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
517 533 assert_select "div.milestone.starting[style*=left:52px]"
518 534 end
519 535 end
520 536
521 537 context "ending marker" do
522 538 should "not appear if the starting point is off the gantt chart" do
523 539 # Shift the date range of the chart
524 540 @gantt.instance_variable_set('@date_to', 2.weeks.ago.to_date)
525 541
526 542 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
527 543 assert_select "div.milestone.ending", false
528 544
529 545 end
530 546
531 547 should "appear at the end of the date range" do
532 548 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
533 549 assert_select "div.milestone.ending[style*=left:84px]"
534 550 end
535 551 end
536 552
537 553 context "status content" do
538 554 should "appear at the far left, even if it's far in the past" do
539 555 @gantt.instance_variable_set('@date_to', 2.weeks.ago.to_date)
540 556
541 557 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
542 558 assert_select "div.version-name", /#{@version.name}/
543 559 end
544 560
545 561 should "show the version name" do
546 562 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
547 563 assert_select "div.version-name", /#{@version.name}/
548 564 end
549 565
550 566 should "show the percent complete" do
551 567 @response.body = @gantt.line_for_version(@version, {:format => :html, :zoom => 4})
552 568 assert_select "div.version-name", /30%/
553 569 end
554 570 end
555 571 end
556 572
557 573 should "test the PNG format"
558 574 should "test the PDF format"
559 575 end
560 576
561 577 context "#subject_for_issue" do
562 578 setup do
563 579 create_gantt
564 580 @project.enabled_module_names = [:issue_tracking]
565 581 @tracker = Tracker.generate!
566 582 @project.trackers << @tracker
567 583
568 584 @issue = Issue.generate!(:subject => "gantt#subject_for_issue",
569 585 :tracker => @tracker,
570 586 :project => @project,
571 587 :start_date => 3.days.ago.to_date,
572 588 :due_date => Date.yesterday)
573 589 @project.issues << @issue
574 590
575 591 end
576 592
577 593 context ":html format" do
578 594 should "add an absolute positioned div" do
579 595 @response.body = @gantt.subject_for_issue(@issue, {:format => :html})
580 596 assert_select "div[style*=absolute]"
581 597 end
582 598
583 599 should "use the indent option to move the div to the right" do
584 600 @response.body = @gantt.subject_for_issue(@issue, {:format => :html, :indent => 40})
585 601 assert_select "div[style*=left:40]"
586 602 end
587 603
588 604 should "include the issue subject" do
589 605 @response.body = @gantt.subject_for_issue(@issue, {:format => :html})
590 606 assert_select 'div', :text => /#{@issue.subject}/
591 607 end
592 608
593 609 should "include a link to the issue" do
594 610 @response.body = @gantt.subject_for_issue(@issue, {:format => :html})
595 611 assert_select 'a[href=?]', Regexp.escape("/issues/#{@issue.to_param}"), :text => /#{@tracker.name} ##{@issue.id}/
596 612 end
597 613
598 614 should "style overdue issues" do
599 615 assert @issue.overdue?, "Need an overdue issue for this test"
600 616 @response.body = @gantt.subject_for_issue(@issue, {:format => :html})
601 617
602 618 assert_select 'div span.issue-overdue'
603 619 end
604 620
605 621 end
606 622 should "test the PNG format"
607 623 should "test the PDF format"
608 624 end
609 625
610 626 context "#line_for_issue" do
611 627 setup do
612 628 create_gantt
613 629 @project.enabled_module_names = [:issue_tracking]
614 630 @tracker = Tracker.generate!
615 631 @project.trackers << @tracker
616 632 @version = Version.generate!(:effective_date => 1.week.from_now.to_date)
617 633 @project.versions << @version
618 634 @issue = Issue.generate!(:fixed_version => @version,
619 635 :subject => "gantt#line_for_project",
620 636 :tracker => @tracker,
621 637 :project => @project,
622 638 :done_ratio => 30,
623 639 :start_date => Date.yesterday,
624 640 :due_date => 1.week.from_now.to_date)
625 641 @project.issues << @issue
626 642 end
627 643
628 644 context ":html format" do
629 645 context "todo line" do
630 646 should "start from the starting point on the left" do
631 647 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
632 648 assert_select "div.task_todo[style*=left:52px]"
633 649 end
634 650
635 651 should "be the total width of the issue" do
636 652 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
637 653 assert_select "div.task_todo[style*=width:34px]"
638 654 end
639 655
640 656 end
641 657
642 658 context "late line" do
643 659 should "start from the starting point on the left" do
644 660 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
645 661 assert_select "div.task_late[style*=left:52px]"
646 662 end
647 663
648 664 should "be the total delayed width of the issue" do
649 665 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
650 666 assert_select "div.task_late[style*=width:6px]"
651 667 end
652 668 end
653 669
654 670 context "done line" do
655 671 should "start from the starting point on the left" do
656 672 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
657 673 assert_select "div.task_done[style*=left:52px]"
658 674 end
659 675
660 676 should "Be the total done width of the issue" do
661 677 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
662 678 assert_select "div.task_done[style*=left:52px]"
663 679 end
664 680 end
665 681
666 682 context "status content" do
667 683 should "appear at the far left, even if it's far in the past" do
668 684 @gantt.instance_variable_set('@date_to', 2.weeks.ago.to_date)
669 685
670 686 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
671 687 assert_select "div.issue-name"
672 688 end
673 689
674 690 should "show the issue status" do
675 691 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
676 692 assert_select "div.issue-name", /#{@issue.status.name}/
677 693 end
678 694
679 695 should "show the percent complete" do
680 696 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
681 697 assert_select "div.issue-name", /30%/
682 698 end
683 699 end
684 700 end
685 701
686 702 should "have an issue tooltip" do
687 703 @response.body = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4})
688 704 assert_select "div.tooltip", /#{@issue.subject}/
689 705 end
690 706
691 707 should "test the PNG format"
692 708 should "test the PDF format"
693 709 end
694 710
695 711 context "#to_image" do
696 712 should "be tested"
697 713 end
698 714
699 715 context "#to_pdf" do
700 716 should "be tested"
701 717 end
702 718
703 719 end
General Comments 0
You need to be logged in to leave comments. Login now