@@ -1,939 +1,948 | |||
|
1 | 1 | # Redmine - project management software |
|
2 | 2 | # Copyright (C) 2006-2010 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 'forwardable' |
|
19 | 19 | require 'cgi' |
|
20 | 20 | |
|
21 | 21 | module ApplicationHelper |
|
22 | 22 | include Redmine::WikiFormatting::Macros::Definitions |
|
23 | 23 | include Redmine::I18n |
|
24 | 24 | include GravatarHelper::PublicMethods |
|
25 | 25 | |
|
26 | 26 | extend Forwardable |
|
27 | 27 | def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter |
|
28 | 28 | |
|
29 | 29 | # Return true if user is authorized for controller/action, otherwise false |
|
30 | 30 | def authorize_for(controller, action) |
|
31 | 31 | User.current.allowed_to?({:controller => controller, :action => action}, @project) |
|
32 | 32 | end |
|
33 | 33 | |
|
34 | 34 | # Display a link if user is authorized |
|
35 | 35 | # |
|
36 | 36 | # @param [String] name Anchor text (passed to link_to) |
|
37 | 37 | # @param [Hash] options Hash params. This will checked by authorize_for to see if the user is authorized |
|
38 | 38 | # @param [optional, Hash] html_options Options passed to link_to |
|
39 | 39 | # @param [optional, Hash] parameters_for_method_reference Extra parameters for link_to |
|
40 | 40 | def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference) |
|
41 | 41 | link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action]) |
|
42 | 42 | end |
|
43 | 43 | |
|
44 | 44 | # Display a link to remote if user is authorized |
|
45 | 45 | def link_to_remote_if_authorized(name, options = {}, html_options = nil) |
|
46 | 46 | url = options[:url] || {} |
|
47 | 47 | link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action]) |
|
48 | 48 | end |
|
49 | 49 | |
|
50 | 50 | # Displays a link to user's account page if active |
|
51 | 51 | def link_to_user(user, options={}) |
|
52 | 52 | if user.is_a?(User) |
|
53 | 53 | name = h(user.name(options[:format])) |
|
54 | 54 | if user.active? |
|
55 | 55 | link_to name, :controller => 'users', :action => 'show', :id => user |
|
56 | 56 | else |
|
57 | 57 | name |
|
58 | 58 | end |
|
59 | 59 | else |
|
60 | 60 | h(user.to_s) |
|
61 | 61 | end |
|
62 | 62 | end |
|
63 | 63 | |
|
64 | 64 | # Displays a link to +issue+ with its subject. |
|
65 | 65 | # Examples: |
|
66 | 66 | # |
|
67 | 67 | # link_to_issue(issue) # => Defect #6: This is the subject |
|
68 | 68 | # link_to_issue(issue, :truncate => 6) # => Defect #6: This i... |
|
69 | 69 | # link_to_issue(issue, :subject => false) # => Defect #6 |
|
70 | 70 | # link_to_issue(issue, :project => true) # => Foo - Defect #6 |
|
71 | 71 | # |
|
72 | 72 | def link_to_issue(issue, options={}) |
|
73 | 73 | title = nil |
|
74 | 74 | subject = nil |
|
75 | 75 | if options[:subject] == false |
|
76 | 76 | title = truncate(issue.subject, :length => 60) |
|
77 | 77 | else |
|
78 | 78 | subject = issue.subject |
|
79 | 79 | if options[:truncate] |
|
80 | 80 | subject = truncate(subject, :length => options[:truncate]) |
|
81 | 81 | end |
|
82 | 82 | end |
|
83 | 83 | s = link_to "#{issue.tracker} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, |
|
84 | 84 | :class => issue.css_classes, |
|
85 | 85 | :title => title |
|
86 | 86 | s << ": #{h subject}" if subject |
|
87 | 87 | s = "#{h issue.project} - " + s if options[:project] |
|
88 | 88 | s |
|
89 | 89 | end |
|
90 | 90 | |
|
91 | 91 | # Generates a link to an attachment. |
|
92 | 92 | # Options: |
|
93 | 93 | # * :text - Link text (default to attachment filename) |
|
94 | 94 | # * :download - Force download (default: false) |
|
95 | 95 | def link_to_attachment(attachment, options={}) |
|
96 | 96 | text = options.delete(:text) || attachment.filename |
|
97 | 97 | action = options.delete(:download) ? 'download' : 'show' |
|
98 | 98 | |
|
99 | 99 | link_to(h(text), {:controller => 'attachments', :action => action, :id => attachment, :filename => attachment.filename }, options) |
|
100 | 100 | end |
|
101 | 101 | |
|
102 | 102 | # Generates a link to a SCM revision |
|
103 | 103 | # Options: |
|
104 | 104 | # * :text - Link text (default to the formatted revision) |
|
105 | 105 | def link_to_revision(revision, project, options={}) |
|
106 | 106 | text = options.delete(:text) || format_revision(revision) |
|
107 | 107 | rev = revision.respond_to?(:identifier) ? revision.identifier : revision |
|
108 | 108 | |
|
109 | 109 | link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev}, |
|
110 | 110 | :title => l(:label_revision_id, format_revision(revision))) |
|
111 | 111 | end |
|
112 | 112 | |
|
113 | 113 | # Generates a link to a message |
|
114 | 114 | def link_to_message(message, options={}, html_options = nil) |
|
115 | 115 | link_to( |
|
116 | 116 | h(truncate(message.subject, :length => 60)), |
|
117 | 117 | { :controller => 'messages', :action => 'show', |
|
118 | 118 | :board_id => message.board_id, |
|
119 | 119 | :id => message.root, |
|
120 | 120 | :r => (message.parent_id && message.id), |
|
121 | 121 | :anchor => (message.parent_id ? "message-#{message.id}" : nil) |
|
122 | 122 | }.merge(options), |
|
123 | 123 | html_options |
|
124 | 124 | ) |
|
125 | 125 | end |
|
126 | 126 | |
|
127 | 127 | # Generates a link to a project if active |
|
128 | 128 | # Examples: |
|
129 | 129 | # |
|
130 | 130 | # link_to_project(project) # => link to the specified project overview |
|
131 | 131 | # link_to_project(project, :action=>'settings') # => link to project settings |
|
132 | 132 | # link_to_project(project, {:only_path => false}, :class => "project") # => 3rd arg adds html options |
|
133 | 133 | # link_to_project(project, {}, :class => "project") # => html options with default url (project overview) |
|
134 | 134 | # |
|
135 | 135 | def link_to_project(project, options={}, html_options = nil) |
|
136 | 136 | if project.active? |
|
137 | 137 | url = {:controller => 'projects', :action => 'show', :id => project}.merge(options) |
|
138 | 138 | link_to(h(project), url, html_options) |
|
139 | 139 | else |
|
140 | 140 | h(project) |
|
141 | 141 | end |
|
142 | 142 | end |
|
143 | 143 | |
|
144 | 144 | def toggle_link(name, id, options={}) |
|
145 | 145 | onclick = "Element.toggle('#{id}'); " |
|
146 | 146 | onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ") |
|
147 | 147 | onclick << "return false;" |
|
148 | 148 | link_to(name, "#", :onclick => onclick) |
|
149 | 149 | end |
|
150 | 150 | |
|
151 | 151 | def image_to_function(name, function, html_options = {}) |
|
152 | 152 | html_options.symbolize_keys! |
|
153 | 153 | tag(:input, html_options.merge({ |
|
154 | 154 | :type => "image", :src => image_path(name), |
|
155 | 155 | :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};" |
|
156 | 156 | })) |
|
157 | 157 | end |
|
158 | 158 | |
|
159 | 159 | def prompt_to_remote(name, text, param, url, html_options = {}) |
|
160 | 160 | html_options[:onclick] = "promptToRemote('#{text}', '#{param}', '#{url_for(url)}'); return false;" |
|
161 | 161 | link_to name, {}, html_options |
|
162 | 162 | end |
|
163 | 163 | |
|
164 | 164 | def format_activity_title(text) |
|
165 | 165 | h(truncate_single_line(text, :length => 100)) |
|
166 | 166 | end |
|
167 | 167 | |
|
168 | 168 | def format_activity_day(date) |
|
169 | 169 | date == Date.today ? l(:label_today).titleize : format_date(date) |
|
170 | 170 | end |
|
171 | 171 | |
|
172 | 172 | def format_activity_description(text) |
|
173 | 173 | h(truncate(text.to_s, :length => 120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).gsub(/[\r\n]+/, "<br />") |
|
174 | 174 | end |
|
175 | 175 | |
|
176 | 176 | def format_version_name(version) |
|
177 | 177 | if version.project == @project |
|
178 | 178 | h(version) |
|
179 | 179 | else |
|
180 | 180 | h("#{version.project} - #{version}") |
|
181 | 181 | end |
|
182 | 182 | end |
|
183 | 183 | |
|
184 | 184 | def due_date_distance_in_words(date) |
|
185 | 185 | if date |
|
186 | 186 | l((date < Date.today ? :label_roadmap_overdue : :label_roadmap_due_in), distance_of_date_in_words(Date.today, date)) |
|
187 | 187 | end |
|
188 | 188 | end |
|
189 | 189 | |
|
190 | 190 | def render_page_hierarchy(pages, node=nil) |
|
191 | 191 | content = '' |
|
192 | 192 | if pages[node] |
|
193 | 193 | content << "<ul class=\"pages-hierarchy\">\n" |
|
194 | 194 | pages[node].each do |page| |
|
195 | 195 | content << "<li>" |
|
196 | 196 | content << link_to(h(page.pretty_title), {:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title}, |
|
197 | 197 | :title => (page.respond_to?(:updated_on) ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil)) |
|
198 | 198 | content << "\n" + render_page_hierarchy(pages, page.id) if pages[page.id] |
|
199 | 199 | content << "</li>\n" |
|
200 | 200 | end |
|
201 | 201 | content << "</ul>\n" |
|
202 | 202 | end |
|
203 | 203 | content |
|
204 | 204 | end |
|
205 | 205 | |
|
206 | 206 | # Renders flash messages |
|
207 | 207 | def render_flash_messages |
|
208 | 208 | s = '' |
|
209 | 209 | flash.each do |k,v| |
|
210 | 210 | s << content_tag('div', v, :class => "flash #{k}") |
|
211 | 211 | end |
|
212 | 212 | s |
|
213 | 213 | end |
|
214 | 214 | |
|
215 | 215 | # Renders tabs and their content |
|
216 | 216 | def render_tabs(tabs) |
|
217 | 217 | if tabs.any? |
|
218 | 218 | render :partial => 'common/tabs', :locals => {:tabs => tabs} |
|
219 | 219 | else |
|
220 | 220 | content_tag 'p', l(:label_no_data), :class => "nodata" |
|
221 | 221 | end |
|
222 | 222 | end |
|
223 | 223 | |
|
224 | 224 | # Renders the project quick-jump box |
|
225 | 225 | def render_project_jump_box |
|
226 | 226 | # Retrieve them now to avoid a COUNT query |
|
227 | 227 | projects = User.current.projects.all |
|
228 | 228 | if projects.any? |
|
229 | 229 | s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' + |
|
230 | 230 | "<option value=''>#{ l(:label_jump_to_a_project) }</option>" + |
|
231 | 231 | '<option value="" disabled="disabled">---</option>' |
|
232 | 232 | s << project_tree_options_for_select(projects, :selected => @project) do |p| |
|
233 | 233 | { :value => url_for(:controller => 'projects', :action => 'show', :id => p, :jump => current_menu_item) } |
|
234 | 234 | end |
|
235 | 235 | s << '</select>' |
|
236 | 236 | s |
|
237 | 237 | end |
|
238 | 238 | end |
|
239 | 239 | |
|
240 | 240 | def project_tree_options_for_select(projects, options = {}) |
|
241 | 241 | s = '' |
|
242 | 242 | project_tree(projects) do |project, level| |
|
243 | 243 | name_prefix = (level > 0 ? (' ' * 2 * level + '» ') : '') |
|
244 | 244 | tag_options = {:value => project.id} |
|
245 | 245 | if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project)) |
|
246 | 246 | tag_options[:selected] = 'selected' |
|
247 | 247 | else |
|
248 | 248 | tag_options[:selected] = nil |
|
249 | 249 | end |
|
250 | 250 | tag_options.merge!(yield(project)) if block_given? |
|
251 | 251 | s << content_tag('option', name_prefix + h(project), tag_options) |
|
252 | 252 | end |
|
253 | 253 | s |
|
254 | 254 | end |
|
255 | 255 | |
|
256 | 256 | # Yields the given block for each project with its level in the tree |
|
257 | 257 | # |
|
258 | 258 | # Wrapper for Project#project_tree |
|
259 | 259 | def project_tree(projects, &block) |
|
260 | 260 | Project.project_tree(projects, &block) |
|
261 | 261 | end |
|
262 | 262 | |
|
263 | 263 | def project_nested_ul(projects, &block) |
|
264 | 264 | s = '' |
|
265 | 265 | if projects.any? |
|
266 | 266 | ancestors = [] |
|
267 | 267 | projects.sort_by(&:lft).each do |project| |
|
268 | 268 | if (ancestors.empty? || project.is_descendant_of?(ancestors.last)) |
|
269 | 269 | s << "<ul>\n" |
|
270 | 270 | else |
|
271 | 271 | ancestors.pop |
|
272 | 272 | s << "</li>" |
|
273 | 273 | while (ancestors.any? && !project.is_descendant_of?(ancestors.last)) |
|
274 | 274 | ancestors.pop |
|
275 | 275 | s << "</ul></li>\n" |
|
276 | 276 | end |
|
277 | 277 | end |
|
278 | 278 | s << "<li>" |
|
279 | 279 | s << yield(project).to_s |
|
280 | 280 | ancestors << project |
|
281 | 281 | end |
|
282 | 282 | s << ("</li></ul>\n" * ancestors.size) |
|
283 | 283 | end |
|
284 | 284 | s |
|
285 | 285 | end |
|
286 | 286 | |
|
287 | 287 | def principals_check_box_tags(name, principals) |
|
288 | 288 | s = '' |
|
289 | 289 | principals.sort.each do |principal| |
|
290 | 290 | s << "<label>#{ check_box_tag name, principal.id, false } #{h principal}</label>\n" |
|
291 | 291 | end |
|
292 | 292 | s |
|
293 | 293 | end |
|
294 | 294 | |
|
295 | 295 | # Truncates and returns the string as a single line |
|
296 | 296 | def truncate_single_line(string, *args) |
|
297 | 297 | truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ') |
|
298 | 298 | end |
|
299 | 299 | |
|
300 | 300 | # Truncates at line break after 250 characters or options[:length] |
|
301 | 301 | def truncate_lines(string, options={}) |
|
302 | 302 | length = options[:length] || 250 |
|
303 | 303 | if string.to_s =~ /\A(.{#{length}}.*?)$/m |
|
304 | 304 | "#{$1}..." |
|
305 | 305 | else |
|
306 | 306 | string |
|
307 | 307 | end |
|
308 | 308 | end |
|
309 | 309 | |
|
310 | 310 | def html_hours(text) |
|
311 | 311 | text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>') |
|
312 | 312 | end |
|
313 | 313 | |
|
314 | 314 | def authoring(created, author, options={}) |
|
315 | 315 | l(options[:label] || :label_added_time_by, :author => link_to_user(author), :age => time_tag(created)) |
|
316 | 316 | end |
|
317 | 317 | |
|
318 | 318 | def time_tag(time) |
|
319 | 319 | text = distance_of_time_in_words(Time.now, time) |
|
320 | 320 | if @project |
|
321 | 321 | link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => time.to_date}, :title => format_time(time)) |
|
322 | 322 | else |
|
323 | 323 | content_tag('acronym', text, :title => format_time(time)) |
|
324 | 324 | end |
|
325 | 325 | end |
|
326 | 326 | |
|
327 | 327 | def syntax_highlight(name, content) |
|
328 | 328 | Redmine::SyntaxHighlighting.highlight_by_filename(content, name) |
|
329 | 329 | end |
|
330 | 330 | |
|
331 | 331 | def to_path_param(path) |
|
332 | 332 | path.to_s.split(%r{[/\\]}).select {|p| !p.blank?} |
|
333 | 333 | end |
|
334 | 334 | |
|
335 | 335 | def pagination_links_full(paginator, count=nil, options={}) |
|
336 | 336 | page_param = options.delete(:page_param) || :page |
|
337 | 337 | per_page_links = options.delete(:per_page_links) |
|
338 | 338 | url_param = params.dup |
|
339 | 339 | # don't reuse query params if filters are present |
|
340 | 340 | url_param.merge!(:fields => nil, :values => nil, :operators => nil) if url_param.delete(:set_filter) |
|
341 | 341 | |
|
342 | 342 | html = '' |
|
343 | 343 | if paginator.current.previous |
|
344 | 344 | html << link_to_remote_content_update('« ' + l(:label_previous), url_param.merge(page_param => paginator.current.previous)) + ' ' |
|
345 | 345 | end |
|
346 | 346 | |
|
347 | 347 | html << (pagination_links_each(paginator, options) do |n| |
|
348 | 348 | link_to_remote_content_update(n.to_s, url_param.merge(page_param => n)) |
|
349 | 349 | end || '') |
|
350 | 350 | |
|
351 | 351 | if paginator.current.next |
|
352 | 352 | html << ' ' + link_to_remote_content_update((l(:label_next) + ' »'), url_param.merge(page_param => paginator.current.next)) |
|
353 | 353 | end |
|
354 | 354 | |
|
355 | 355 | unless count.nil? |
|
356 | 356 | html << " (#{paginator.current.first_item}-#{paginator.current.last_item}/#{count})" |
|
357 | 357 | if per_page_links != false && links = per_page_links(paginator.items_per_page) |
|
358 | 358 | html << " | #{links}" |
|
359 | 359 | end |
|
360 | 360 | end |
|
361 | 361 | |
|
362 | 362 | html |
|
363 | 363 | end |
|
364 | 364 | |
|
365 | 365 | def per_page_links(selected=nil) |
|
366 | 366 | url_param = params.dup |
|
367 | 367 | url_param.clear if url_param.has_key?(:set_filter) |
|
368 | 368 | |
|
369 | 369 | links = Setting.per_page_options_array.collect do |n| |
|
370 | 370 | n == selected ? n : link_to_remote(n, {:update => "content", |
|
371 | 371 | :url => params.dup.merge(:per_page => n), |
|
372 | 372 | :method => :get}, |
|
373 | 373 | {:href => url_for(url_param.merge(:per_page => n))}) |
|
374 | 374 | end |
|
375 | 375 | links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil |
|
376 | 376 | end |
|
377 | 377 | |
|
378 | 378 | def reorder_links(name, url) |
|
379 | 379 | link_to(image_tag('2uparrow.png', :alt => l(:label_sort_highest)), url.merge({"#{name}[move_to]" => 'highest'}), :method => :post, :title => l(:label_sort_highest)) + |
|
380 | 380 | link_to(image_tag('1uparrow.png', :alt => l(:label_sort_higher)), url.merge({"#{name}[move_to]" => 'higher'}), :method => :post, :title => l(:label_sort_higher)) + |
|
381 | 381 | link_to(image_tag('1downarrow.png', :alt => l(:label_sort_lower)), url.merge({"#{name}[move_to]" => 'lower'}), :method => :post, :title => l(:label_sort_lower)) + |
|
382 | 382 | link_to(image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), url.merge({"#{name}[move_to]" => 'lowest'}), :method => :post, :title => l(:label_sort_lowest)) |
|
383 | 383 | end |
|
384 | 384 | |
|
385 | 385 | def breadcrumb(*args) |
|
386 | 386 | elements = args.flatten |
|
387 | 387 | elements.any? ? content_tag('p', args.join(' » ') + ' » ', :class => 'breadcrumb') : nil |
|
388 | 388 | end |
|
389 | 389 | |
|
390 | 390 | def other_formats_links(&block) |
|
391 | 391 | concat('<p class="other-formats">' + l(:label_export_to)) |
|
392 | 392 | yield Redmine::Views::OtherFormatsBuilder.new(self) |
|
393 | 393 | concat('</p>') |
|
394 | 394 | end |
|
395 | 395 | |
|
396 | 396 | def page_header_title |
|
397 | 397 | if @project.nil? || @project.new_record? |
|
398 | 398 | h(Setting.app_title) |
|
399 | 399 | else |
|
400 | 400 | b = [] |
|
401 | 401 | ancestors = (@project.root? ? [] : @project.ancestors.visible) |
|
402 | 402 | if ancestors.any? |
|
403 | 403 | root = ancestors.shift |
|
404 | 404 | b << link_to_project(root, {:jump => current_menu_item}, :class => 'root') |
|
405 | 405 | if ancestors.size > 2 |
|
406 | 406 | b << '…' |
|
407 | 407 | ancestors = ancestors[-2, 2] |
|
408 | 408 | end |
|
409 | 409 | b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') } |
|
410 | 410 | end |
|
411 | 411 | b << h(@project) |
|
412 | 412 | b.join(' » ') |
|
413 | 413 | end |
|
414 | 414 | end |
|
415 | 415 | |
|
416 | 416 | def html_title(*args) |
|
417 | 417 | if args.empty? |
|
418 | 418 | title = [] |
|
419 | 419 | title << @project.name if @project |
|
420 | 420 | title += @html_title if @html_title |
|
421 | 421 | title << Setting.app_title |
|
422 | 422 | title.select {|t| !t.blank? }.join(' - ') |
|
423 | 423 | else |
|
424 | 424 | @html_title ||= [] |
|
425 | 425 | @html_title += args |
|
426 | 426 | end |
|
427 | 427 | end |
|
428 | 428 | |
|
429 | 429 | # Returns the theme, controller name, and action as css classes for the |
|
430 | 430 | # HTML body. |
|
431 | 431 | def body_css_classes |
|
432 | 432 | css = [] |
|
433 | 433 | if theme = Redmine::Themes.theme(Setting.ui_theme) |
|
434 | 434 | css << 'theme-' + theme.name |
|
435 | 435 | end |
|
436 | 436 | |
|
437 | 437 | css << 'controller-' + params[:controller] |
|
438 | 438 | css << 'action-' + params[:action] |
|
439 | 439 | css.join(' ') |
|
440 | 440 | end |
|
441 | 441 | |
|
442 | 442 | def accesskey(s) |
|
443 | 443 | Redmine::AccessKeys.key_for s |
|
444 | 444 | end |
|
445 | 445 | |
|
446 | 446 | # Formats text according to system settings. |
|
447 | 447 | # 2 ways to call this method: |
|
448 | 448 | # * with a String: textilizable(text, options) |
|
449 | 449 | # * with an object and one of its attribute: textilizable(issue, :description, options) |
|
450 | 450 | def textilizable(*args) |
|
451 | 451 | options = args.last.is_a?(Hash) ? args.pop : {} |
|
452 | 452 | case args.size |
|
453 | 453 | when 1 |
|
454 | 454 | obj = options[:object] |
|
455 | 455 | text = args.shift |
|
456 | 456 | when 2 |
|
457 | 457 | obj = args.shift |
|
458 | 458 | attr = args.shift |
|
459 | 459 | text = obj.send(attr).to_s |
|
460 | 460 | else |
|
461 | 461 | raise ArgumentError, 'invalid arguments to textilizable' |
|
462 | 462 | end |
|
463 | 463 | return '' if text.blank? |
|
464 | 464 | project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil) |
|
465 | 465 | only_path = options.delete(:only_path) == false ? false : true |
|
466 | 466 | |
|
467 | 467 | text = Redmine::WikiFormatting.to_html(Setting.text_formatting, text, :object => obj, :attribute => attr) { |macro, args| exec_macro(macro, obj, args) } |
|
468 | 468 | |
|
469 | 469 | @parsed_headings = [] |
|
470 | 470 | text = parse_non_pre_blocks(text) do |text| |
|
471 | 471 | [:parse_inline_attachments, :parse_wiki_links, :parse_redmine_links, :parse_headings].each do |method_name| |
|
472 | 472 | send method_name, text, project, obj, attr, only_path, options |
|
473 | 473 | end |
|
474 | 474 | end |
|
475 | 475 | |
|
476 | 476 | if @parsed_headings.any? |
|
477 | 477 | replace_toc(text, @parsed_headings) |
|
478 | 478 | end |
|
479 | 479 | |
|
480 | 480 | text |
|
481 | 481 | end |
|
482 | 482 | |
|
483 | 483 | def parse_non_pre_blocks(text) |
|
484 | 484 | s = StringScanner.new(text) |
|
485 | 485 | tags = [] |
|
486 | 486 | parsed = '' |
|
487 | 487 | while !s.eos? |
|
488 | 488 | s.scan(/(.*?)(<(\/)?(pre|code)(.*?)>|\z)/im) |
|
489 | 489 | text, full_tag, closing, tag = s[1], s[2], s[3], s[4] |
|
490 | 490 | if tags.empty? |
|
491 | 491 | yield text |
|
492 | 492 | end |
|
493 | 493 | parsed << text |
|
494 | 494 | if tag |
|
495 | 495 | if closing |
|
496 | 496 | if tags.last == tag.downcase |
|
497 | 497 | tags.pop |
|
498 | 498 | end |
|
499 | 499 | else |
|
500 | 500 | tags << tag.downcase |
|
501 | 501 | end |
|
502 | 502 | parsed << full_tag |
|
503 | 503 | end |
|
504 | 504 | end |
|
505 | 505 | # Close any non closing tags |
|
506 | 506 | while tag = tags.pop |
|
507 | 507 | parsed << "</#{tag}>" |
|
508 | 508 | end |
|
509 | 509 | parsed |
|
510 | 510 | end |
|
511 | 511 | |
|
512 | 512 | def parse_inline_attachments(text, project, obj, attr, only_path, options) |
|
513 | 513 | # when using an image link, try to use an attachment, if possible |
|
514 | 514 | if options[:attachments] || (obj && obj.respond_to?(:attachments)) |
|
515 | 515 | attachments = nil |
|
516 | 516 | text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m| |
|
517 | 517 | filename, ext, alt, alttext = $1.downcase, $2, $3, $4 |
|
518 | 518 | attachments ||= (options[:attachments] || obj.attachments).sort_by(&:created_on).reverse |
|
519 | 519 | # search for the picture in attachments |
|
520 | 520 | if found = attachments.detect { |att| att.filename.downcase == filename } |
|
521 | 521 | image_url = url_for :only_path => only_path, :controller => 'attachments', :action => 'download', :id => found |
|
522 | 522 | desc = found.description.to_s.gsub('"', '') |
|
523 | 523 | if !desc.blank? && alttext.blank? |
|
524 | 524 | alt = " title=\"#{desc}\" alt=\"#{desc}\"" |
|
525 | 525 | end |
|
526 | 526 | "src=\"#{image_url}\"#{alt}" |
|
527 | 527 | else |
|
528 | 528 | m |
|
529 | 529 | end |
|
530 | 530 | end |
|
531 | 531 | end |
|
532 | 532 | end |
|
533 | 533 | |
|
534 | 534 | # Wiki links |
|
535 | 535 | # |
|
536 | 536 | # Examples: |
|
537 | 537 | # [[mypage]] |
|
538 | 538 | # [[mypage|mytext]] |
|
539 | 539 | # wiki links can refer other project wikis, using project name or identifier: |
|
540 | 540 | # [[project:]] -> wiki starting page |
|
541 | 541 | # [[project:|mytext]] |
|
542 | 542 | # [[project:mypage]] |
|
543 | 543 | # [[project:mypage|mytext]] |
|
544 | 544 | def parse_wiki_links(text, project, obj, attr, only_path, options) |
|
545 | 545 | text.gsub!(/(!)?(\[\[([^\]\n\|]+)(\|([^\]\n\|]+))?\]\])/) do |m| |
|
546 | 546 | link_project = project |
|
547 | 547 | esc, all, page, title = $1, $2, $3, $5 |
|
548 | 548 | if esc.nil? |
|
549 | 549 | if page =~ /^([^\:]+)\:(.*)$/ |
|
550 | 550 | link_project = Project.find_by_identifier($1) || Project.find_by_name($1) |
|
551 | 551 | page = $2 |
|
552 | 552 | title ||= $1 if page.blank? |
|
553 | 553 | end |
|
554 | 554 | |
|
555 | 555 | if link_project && link_project.wiki |
|
556 | 556 | # extract anchor |
|
557 | 557 | anchor = nil |
|
558 | 558 | if page =~ /^(.+?)\#(.+)$/ |
|
559 | 559 | page, anchor = $1, $2 |
|
560 | 560 | end |
|
561 | 561 | # check if page exists |
|
562 | 562 | wiki_page = link_project.wiki.find_page(page) |
|
563 | 563 | url = case options[:wiki_links] |
|
564 | 564 | when :local; "#{title}.html" |
|
565 | 565 | when :anchor; "##{title}" # used for single-file wiki export |
|
566 | 566 | else |
|
567 | 567 | wiki_page_id = page.present? ? Wiki.titleize(page) : nil |
|
568 | 568 | url_for(:only_path => only_path, :controller => 'wiki', :action => 'show', :project_id => link_project, :id => wiki_page_id, :anchor => anchor) |
|
569 | 569 | end |
|
570 | 570 | link_to((title || page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new'))) |
|
571 | 571 | else |
|
572 | 572 | # project or wiki doesn't exist |
|
573 | 573 | all |
|
574 | 574 | end |
|
575 | 575 | else |
|
576 | 576 | all |
|
577 | 577 | end |
|
578 | 578 | end |
|
579 | 579 | end |
|
580 | 580 | |
|
581 | 581 | # Redmine links |
|
582 | 582 | # |
|
583 | 583 | # Examples: |
|
584 | 584 | # Issues: |
|
585 | 585 | # #52 -> Link to issue #52 |
|
586 | 586 | # Changesets: |
|
587 | 587 | # r52 -> Link to revision 52 |
|
588 | 588 | # commit:a85130f -> Link to scmid starting with a85130f |
|
589 | 589 | # Documents: |
|
590 | 590 | # document#17 -> Link to document with id 17 |
|
591 | 591 | # document:Greetings -> Link to the document with title "Greetings" |
|
592 | 592 | # document:"Some document" -> Link to the document with title "Some document" |
|
593 | 593 | # Versions: |
|
594 | 594 | # version#3 -> Link to version with id 3 |
|
595 | 595 | # version:1.0.0 -> Link to version named "1.0.0" |
|
596 | 596 | # version:"1.0 beta 2" -> Link to version named "1.0 beta 2" |
|
597 | 597 | # Attachments: |
|
598 | 598 | # attachment:file.zip -> Link to the attachment of the current object named file.zip |
|
599 | 599 | # Source files: |
|
600 | 600 | # source:some/file -> Link to the file located at /some/file in the project's repository |
|
601 | 601 | # source:some/file@52 -> Link to the file's revision 52 |
|
602 | 602 | # source:some/file#L120 -> Link to line 120 of the file |
|
603 | 603 | # source:some/file@52#L120 -> Link to line 120 of the file's revision 52 |
|
604 | 604 | # export:some/file -> Force the download of the file |
|
605 | 605 | # Forum messages: |
|
606 | 606 | # message#1218 -> Link to message with id 1218 |
|
607 | 607 | # |
|
608 | 608 | # Links can refer other objects from other projects, using project identifier: |
|
609 | 609 | # identifier:r52 |
|
610 | 610 | # identifier:document:"Some document" |
|
611 | 611 | # identifier:version:1.0.0 |
|
612 | 612 | # identifier:source:some/file |
|
613 | 613 | def parse_redmine_links(text, project, obj, attr, only_path, options) |
|
614 | 614 | text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(([a-z0-9\-]+):)?(attachment|document|version|commit|source|export|message|project)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|,|\s|\]|<|$)}) do |m| |
|
615 | 615 | leading, esc, project_prefix, project_identifier, prefix, sep, identifier = $1, $2, $3, $4, $5, $7 || $9, $8 || $10 |
|
616 | 616 | link = nil |
|
617 | 617 | if project_identifier |
|
618 | 618 | project = Project.visible.find_by_identifier(project_identifier) |
|
619 | 619 | end |
|
620 | 620 | if esc.nil? |
|
621 | 621 | if prefix.nil? && sep == 'r' |
|
622 | 622 | # project.changesets.visible raises an SQL error because of a double join on repositories |
|
623 | 623 | if project && project.repository && (changeset = Changeset.visible.find_by_repository_id_and_revision(project.repository.id, identifier)) |
|
624 | 624 | link = link_to("#{project_prefix}r#{identifier}", {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision}, |
|
625 | 625 | :class => 'changeset', |
|
626 | 626 | :title => truncate_single_line(changeset.comments, :length => 100)) |
|
627 | 627 | end |
|
628 | 628 | elsif sep == '#' |
|
629 | 629 | oid = identifier.to_i |
|
630 | 630 | case prefix |
|
631 | 631 | when nil |
|
632 | 632 | if issue = Issue.visible.find_by_id(oid, :include => :status) |
|
633 | 633 | link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid}, |
|
634 | 634 | :class => issue.css_classes, |
|
635 | 635 | :title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})") |
|
636 | 636 | end |
|
637 | 637 | when 'document' |
|
638 | 638 | if document = Document.visible.find_by_id(oid) |
|
639 | 639 | link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document}, |
|
640 | 640 | :class => 'document' |
|
641 | 641 | end |
|
642 | 642 | when 'version' |
|
643 | 643 | if version = Version.visible.find_by_id(oid) |
|
644 | 644 | link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version}, |
|
645 | 645 | :class => 'version' |
|
646 | 646 | end |
|
647 | 647 | when 'message' |
|
648 | 648 | if message = Message.visible.find_by_id(oid, :include => :parent) |
|
649 | 649 | link = link_to_message(message, {:only_path => only_path}, :class => 'message') |
|
650 | 650 | end |
|
651 | 651 | when 'project' |
|
652 | 652 | if p = Project.visible.find_by_id(oid) |
|
653 | 653 | link = link_to_project(p, {:only_path => only_path}, :class => 'project') |
|
654 | 654 | end |
|
655 | 655 | end |
|
656 | 656 | elsif sep == ':' |
|
657 | 657 | # removes the double quotes if any |
|
658 | 658 | name = identifier.gsub(%r{^"(.*)"$}, "\\1") |
|
659 | 659 | case prefix |
|
660 | 660 | when 'document' |
|
661 | 661 | if project && document = project.documents.visible.find_by_title(name) |
|
662 | 662 | link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document}, |
|
663 | 663 | :class => 'document' |
|
664 | 664 | end |
|
665 | 665 | when 'version' |
|
666 | 666 | if project && version = project.versions.visible.find_by_name(name) |
|
667 | 667 | link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version}, |
|
668 | 668 | :class => 'version' |
|
669 | 669 | end |
|
670 | 670 | when 'commit' |
|
671 | 671 | if project && project.repository && (changeset = Changeset.visible.find(:first, :conditions => ["repository_id = ? AND scmid LIKE ?", project.repository.id, "#{name}%"])) |
|
672 | 672 | link = link_to h("#{project_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.identifier}, |
|
673 | 673 | :class => 'changeset', |
|
674 | 674 | :title => truncate_single_line(changeset.comments, :length => 100) |
|
675 | 675 | end |
|
676 | 676 | when 'source', 'export' |
|
677 | 677 | if project && project.repository && User.current.allowed_to?(:browse_repository, project) |
|
678 | 678 | name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$} |
|
679 | 679 | path, rev, anchor = $1, $3, $5 |
|
680 | 680 | link = link_to h("#{project_prefix}#{prefix}:#{name}"), {:controller => 'repositories', :action => 'entry', :id => project, |
|
681 | 681 | :path => to_path_param(path), |
|
682 | 682 | :rev => rev, |
|
683 | 683 | :anchor => anchor, |
|
684 | 684 | :format => (prefix == 'export' ? 'raw' : nil)}, |
|
685 | 685 | :class => (prefix == 'export' ? 'source download' : 'source') |
|
686 | 686 | end |
|
687 | 687 | when 'attachment' |
|
688 | 688 | attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil) |
|
689 | 689 | if attachments && attachment = attachments.detect {|a| a.filename == name } |
|
690 | 690 | link = link_to h(attachment.filename), {:only_path => only_path, :controller => 'attachments', :action => 'download', :id => attachment}, |
|
691 | 691 | :class => 'attachment' |
|
692 | 692 | end |
|
693 | 693 | when 'project' |
|
694 | 694 | if p = Project.visible.find(:first, :conditions => ["identifier = :s OR LOWER(name) = :s", {:s => name.downcase}]) |
|
695 | 695 | link = link_to_project(p, {:only_path => only_path}, :class => 'project') |
|
696 | 696 | end |
|
697 | 697 | end |
|
698 | 698 | end |
|
699 | 699 | end |
|
700 | 700 | leading + (link || "#{project_prefix}#{prefix}#{sep}#{identifier}") |
|
701 | 701 | end |
|
702 | 702 | end |
|
703 | 703 | |
|
704 | 704 | HEADING_RE = /<h(1|2|3|4)( [^>]+)?>(.+?)<\/h(1|2|3|4)>/i unless const_defined?(:HEADING_RE) |
|
705 | 705 | |
|
706 | 706 | # Headings and TOC |
|
707 | 707 | # Adds ids and links to headings unless options[:headings] is set to false |
|
708 | 708 | def parse_headings(text, project, obj, attr, only_path, options) |
|
709 | 709 | return if options[:headings] == false |
|
710 | 710 | |
|
711 | 711 | text.gsub!(HEADING_RE) do |
|
712 | 712 | level, attrs, content = $1.to_i, $2, $3 |
|
713 | 713 | item = strip_tags(content).strip |
|
714 | 714 | anchor = item.gsub(%r{[^\w\s\-]}, '').gsub(%r{\s+(\-+\s*)?}, '-') |
|
715 | 715 | @parsed_headings << [level, anchor, item] |
|
716 | 716 | "<h#{level} #{attrs} id=\"#{anchor}\">#{content}<a href=\"##{anchor}\" class=\"wiki-anchor\">¶</a></h#{level}>" |
|
717 | 717 | end |
|
718 | 718 | end |
|
719 | 719 | |
|
720 | 720 | TOC_RE = /<p>\{\{([<>]?)toc\}\}<\/p>/i unless const_defined?(:TOC_RE) |
|
721 | 721 | |
|
722 | 722 | # Renders the TOC with given headings |
|
723 | 723 | def replace_toc(text, headings) |
|
724 | 724 | text.gsub!(TOC_RE) do |
|
725 | 725 | if headings.empty? |
|
726 | 726 | '' |
|
727 | 727 | else |
|
728 | 728 | div_class = 'toc' |
|
729 | 729 | div_class << ' right' if $1 == '>' |
|
730 | 730 | div_class << ' left' if $1 == '<' |
|
731 | 731 | out = "<ul class=\"#{div_class}\"><li>" |
|
732 | 732 | root = headings.map(&:first).min |
|
733 | 733 | current = root |
|
734 | 734 | started = false |
|
735 | 735 | headings.each do |level, anchor, item| |
|
736 | 736 | if level > current |
|
737 | 737 | out << '<ul><li>' * (level - current) |
|
738 | 738 | elsif level < current |
|
739 | 739 | out << "</li></ul>\n" * (current - level) + "</li><li>" |
|
740 | 740 | elsif started |
|
741 | 741 | out << '</li><li>' |
|
742 | 742 | end |
|
743 | 743 | out << "<a href=\"##{anchor}\">#{item}</a>" |
|
744 | 744 | current = level |
|
745 | 745 | started = true |
|
746 | 746 | end |
|
747 | 747 | out << '</li></ul>' * (current - root) |
|
748 | 748 | out << '</li></ul>' |
|
749 | 749 | end |
|
750 | 750 | end |
|
751 | 751 | end |
|
752 | 752 | |
|
753 | 753 | # Same as Rails' simple_format helper without using paragraphs |
|
754 | 754 | def simple_format_without_paragraph(text) |
|
755 | 755 | text.to_s. |
|
756 | 756 | gsub(/\r\n?/, "\n"). # \r\n and \r -> \n |
|
757 | 757 | gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br |
|
758 | 758 | gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br |
|
759 | 759 | end |
|
760 | 760 | |
|
761 | 761 | def lang_options_for_select(blank=true) |
|
762 | 762 | (blank ? [["(auto)", ""]] : []) + |
|
763 | 763 | valid_languages.collect{|lang| [ ll(lang.to_s, :general_lang_name), lang.to_s]}.sort{|x,y| x.last <=> y.last } |
|
764 | 764 | end |
|
765 | 765 | |
|
766 | 766 | def label_tag_for(name, option_tags = nil, options = {}) |
|
767 | 767 | label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "") |
|
768 | 768 | content_tag("label", label_text) |
|
769 | 769 | end |
|
770 | 770 | |
|
771 | 771 | def labelled_tabular_form_for(name, object, options, &proc) |
|
772 | 772 | options[:html] ||= {} |
|
773 | 773 | options[:html][:class] = 'tabular' unless options[:html].has_key?(:class) |
|
774 | 774 | form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc) |
|
775 | 775 | end |
|
776 | 776 | |
|
777 | 777 | def back_url_hidden_field_tag |
|
778 | 778 | back_url = params[:back_url] || request.env['HTTP_REFERER'] |
|
779 | 779 | back_url = CGI.unescape(back_url.to_s) |
|
780 | 780 | hidden_field_tag('back_url', CGI.escape(back_url)) unless back_url.blank? |
|
781 | 781 | end |
|
782 | 782 | |
|
783 | 783 | def check_all_links(form_name) |
|
784 | 784 | link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") + |
|
785 | 785 | " | " + |
|
786 | 786 | link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)") |
|
787 | 787 | end |
|
788 | 788 | |
|
789 | 789 | def progress_bar(pcts, options={}) |
|
790 | 790 | pcts = [pcts, pcts] unless pcts.is_a?(Array) |
|
791 | 791 | pcts = pcts.collect(&:round) |
|
792 | 792 | pcts[1] = pcts[1] - pcts[0] |
|
793 | 793 | pcts << (100 - pcts[1] - pcts[0]) |
|
794 | 794 | width = options[:width] || '100px;' |
|
795 | 795 | legend = options[:legend] || '' |
|
796 | 796 | content_tag('table', |
|
797 | 797 | content_tag('tr', |
|
798 | 798 | (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : '') + |
|
799 | 799 | (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : '') + |
|
800 | 800 | (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : '') |
|
801 | 801 | ), :class => 'progress', :style => "width: #{width};") + |
|
802 | 802 | content_tag('p', legend, :class => 'pourcent') |
|
803 | 803 | end |
|
804 | 804 | |
|
805 | 805 | def checked_image(checked=true) |
|
806 | 806 | if checked |
|
807 | 807 | image_tag 'toggle_check.png' |
|
808 | 808 | end |
|
809 | 809 | end |
|
810 | 810 | |
|
811 | 811 | def context_menu(url) |
|
812 | 812 | unless @context_menu_included |
|
813 | 813 | content_for :header_tags do |
|
814 | 814 | javascript_include_tag('context_menu') + |
|
815 | 815 | stylesheet_link_tag('context_menu') |
|
816 | 816 | end |
|
817 | 817 | if l(:direction) == 'rtl' |
|
818 | 818 | content_for :header_tags do |
|
819 | 819 | stylesheet_link_tag('context_menu_rtl') |
|
820 | 820 | end |
|
821 | 821 | end |
|
822 | 822 | @context_menu_included = true |
|
823 | 823 | end |
|
824 | 824 | javascript_tag "new ContextMenu('#{ url_for(url) }')" |
|
825 | 825 | end |
|
826 | 826 | |
|
827 | 827 | def context_menu_link(name, url, options={}) |
|
828 | 828 | options[:class] ||= '' |
|
829 | 829 | if options.delete(:selected) |
|
830 | 830 | options[:class] << ' icon-checked disabled' |
|
831 | 831 | options[:disabled] = true |
|
832 | 832 | end |
|
833 | 833 | if options.delete(:disabled) |
|
834 | 834 | options.delete(:method) |
|
835 | 835 | options.delete(:confirm) |
|
836 | 836 | options.delete(:onclick) |
|
837 | 837 | options[:class] << ' disabled' |
|
838 | 838 | url = '#' |
|
839 | 839 | end |
|
840 | 840 | link_to name, url, options |
|
841 | 841 | end |
|
842 | 842 | |
|
843 | 843 | def calendar_for(field_id) |
|
844 | 844 | include_calendar_headers_tags |
|
845 | 845 | image_tag("calendar.png", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) + |
|
846 | 846 | javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });") |
|
847 | 847 | end |
|
848 | 848 | |
|
849 | 849 | def include_calendar_headers_tags |
|
850 | 850 | unless @calendar_headers_tags_included |
|
851 | 851 | @calendar_headers_tags_included = true |
|
852 | 852 | content_for :header_tags do |
|
853 | 853 | start_of_week = case Setting.start_of_week.to_i |
|
854 | 854 | when 1 |
|
855 | 855 | 'Calendar._FD = 1;' # Monday |
|
856 | 856 | when 7 |
|
857 | 857 | 'Calendar._FD = 0;' # Sunday |
|
858 | 858 | else |
|
859 | 859 | '' # use language |
|
860 | 860 | end |
|
861 | 861 | |
|
862 | 862 | javascript_include_tag('calendar/calendar') + |
|
863 | 863 | javascript_include_tag("calendar/lang/calendar-#{current_language.to_s.downcase}.js") + |
|
864 | 864 | javascript_tag(start_of_week) + |
|
865 | 865 | javascript_include_tag('calendar/calendar-setup') + |
|
866 | 866 | stylesheet_link_tag('calendar') |
|
867 | 867 | end |
|
868 | 868 | end |
|
869 | 869 | end |
|
870 | 870 | |
|
871 | 871 | def content_for(name, content = nil, &block) |
|
872 | 872 | @has_content ||= {} |
|
873 | 873 | @has_content[name] = true |
|
874 | 874 | super(name, content, &block) |
|
875 | 875 | end |
|
876 | 876 | |
|
877 | 877 | def has_content?(name) |
|
878 | 878 | (@has_content && @has_content[name]) || false |
|
879 | 879 | end |
|
880 | 880 | |
|
881 | 881 | # Returns the avatar image tag for the given +user+ if avatars are enabled |
|
882 | 882 | # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>') |
|
883 | 883 | def avatar(user, options = { }) |
|
884 | 884 | if Setting.gravatar_enabled? |
|
885 | 885 | options.merge!({:ssl => (defined?(request) && request.ssl?), :default => Setting.gravatar_default}) |
|
886 | 886 | email = nil |
|
887 | 887 | if user.respond_to?(:mail) |
|
888 | 888 | email = user.mail |
|
889 | 889 | elsif user.to_s =~ %r{<(.+?)>} |
|
890 | 890 | email = $1 |
|
891 | 891 | end |
|
892 | 892 | return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil |
|
893 | 893 | else |
|
894 | 894 | '' |
|
895 | 895 | end |
|
896 | 896 | end |
|
897 | ||
|
898 | # Returns the javascript tags that are included in the html layout head | |
|
899 | def javascript_heads | |
|
900 | tags = javascript_include_tag(:defaults) | |
|
901 | unless User.current.pref.warn_on_leaving_unsaved == '0' | |
|
902 | tags << "\n" + javascript_tag("Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('#{escape_javascript( l(:text_warn_on_leaving_unsaved) )}'); });") | |
|
903 | end | |
|
904 | tags | |
|
905 | end | |
|
897 | 906 | |
|
898 | 907 | def favicon |
|
899 | 908 | "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />" |
|
900 | 909 | end |
|
901 | 910 | |
|
902 | 911 | # Returns true if arg is expected in the API response |
|
903 | 912 | def include_in_api_response?(arg) |
|
904 | 913 | unless @included_in_api_response |
|
905 | 914 | param = params[:include] |
|
906 | 915 | @included_in_api_response = param.is_a?(Array) ? param.collect(&:to_s) : param.to_s.split(',') |
|
907 | 916 | @included_in_api_response.collect!(&:strip) |
|
908 | 917 | end |
|
909 | 918 | @included_in_api_response.include?(arg.to_s) |
|
910 | 919 | end |
|
911 | 920 | |
|
912 | 921 | # Returns options or nil if nometa param or X-Redmine-Nometa header |
|
913 | 922 | # was set in the request |
|
914 | 923 | def api_meta(options) |
|
915 | 924 | if params[:nometa].present? || request.headers['X-Redmine-Nometa'] |
|
916 | 925 | # compatibility mode for activeresource clients that raise |
|
917 | 926 | # an error when unserializing an array with attributes |
|
918 | 927 | nil |
|
919 | 928 | else |
|
920 | 929 | options |
|
921 | 930 | end |
|
922 | 931 | end |
|
923 | 932 | |
|
924 | 933 | private |
|
925 | 934 | |
|
926 | 935 | def wiki_helper |
|
927 | 936 | helper = Redmine::WikiFormatting.helper_for(Setting.text_formatting) |
|
928 | 937 | extend helper |
|
929 | 938 | return self |
|
930 | 939 | end |
|
931 | 940 | |
|
932 | 941 | def link_to_remote_content_update(text, url_params) |
|
933 | 942 | link_to_remote(text, |
|
934 | 943 | {:url => url_params, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, |
|
935 | 944 | {:href => url_for(:params => url_params)} |
|
936 | 945 | ) |
|
937 | 946 | end |
|
938 | 947 | |
|
939 | 948 | end |
@@ -1,54 +1,57 | |||
|
1 | 1 | # redMine - project management software |
|
2 | 2 | # Copyright (C) 2006 Jean-Philippe Lang |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
|
6 | 6 | # as published by the Free Software Foundation; either version 2 |
|
7 | 7 | # of the License, or (at your option) any later version. |
|
8 | 8 | # |
|
9 | 9 | # This program is distributed in the hope that it will be useful, |
|
10 | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | 12 | # GNU General Public License for more details. |
|
13 | 13 | # |
|
14 | 14 | # You should have received a copy of the GNU General Public License |
|
15 | 15 | # along with this program; if not, write to the Free Software |
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class UserPreference < ActiveRecord::Base |
|
19 | 19 | belongs_to :user |
|
20 | 20 | serialize :others |
|
21 | 21 | |
|
22 | 22 | attr_protected :others |
|
23 | 23 | |
|
24 | 24 | def initialize(attributes = nil) |
|
25 | 25 | super |
|
26 | 26 | self.others ||= {} |
|
27 | 27 | end |
|
28 | 28 | |
|
29 | 29 | def before_save |
|
30 | 30 | self.others ||= {} |
|
31 | 31 | end |
|
32 | 32 | |
|
33 | 33 | def [](attr_name) |
|
34 | 34 | if attribute_present? attr_name |
|
35 | 35 | super |
|
36 | 36 | else |
|
37 | 37 | others ? others[attr_name] : nil |
|
38 | 38 | end |
|
39 | 39 | end |
|
40 | 40 | |
|
41 | 41 | def []=(attr_name, value) |
|
42 | 42 | if attribute_present? attr_name |
|
43 | 43 | super |
|
44 | 44 | else |
|
45 | 45 | h = read_attribute(:others).dup || {} |
|
46 | 46 | h.update(attr_name => value) |
|
47 | 47 | write_attribute(:others, h) |
|
48 | 48 | value |
|
49 | 49 | end |
|
50 | 50 | end |
|
51 | 51 | |
|
52 | 52 | def comments_sorting; self[:comments_sorting] end |
|
53 | 53 | def comments_sorting=(order); self[:comments_sorting]=order end |
|
54 | ||
|
55 | def warn_on_leaving_unsaved; self[:warn_on_leaving_unsaved] || '1'; end | |
|
56 | def warn_on_leaving_unsaved=(value); self[:warn_on_leaving_unsaved]=value; end | |
|
54 | 57 | end |
@@ -1,79 +1,79 | |||
|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
3 | 3 | <head> |
|
4 | 4 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
5 | 5 | <title><%=h html_title %></title> |
|
6 | 6 | <meta name="description" content="<%= Redmine::Info.app_name %>" /> |
|
7 | 7 | <meta name="keywords" content="issue,bug,tracker" /> |
|
8 | 8 | <%= favicon %> |
|
9 | 9 | <%= stylesheet_link_tag 'application', :media => 'all' %> |
|
10 | 10 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> |
|
11 |
<%= javascript_ |
|
|
11 | <%= javascript_heads %> | |
|
12 | 12 | <%= heads_for_theme %> |
|
13 | 13 | <%= heads_for_wiki_formatter %> |
|
14 | 14 | <!--[if IE 6]> |
|
15 | 15 | <style type="text/css"> |
|
16 | 16 | * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); } |
|
17 | 17 | body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} |
|
18 | 18 | </style> |
|
19 | 19 | <![endif]--> |
|
20 | 20 | <%= call_hook :view_layouts_base_html_head %> |
|
21 | 21 | <!-- page specific tags --> |
|
22 | 22 | <%= yield :header_tags -%> |
|
23 | 23 | </head> |
|
24 | 24 | <body class="<%= body_css_classes %>"> |
|
25 | 25 | <div id="wrapper"> |
|
26 | 26 | <div id="wrapper2"> |
|
27 | 27 | <div id="top-menu"> |
|
28 | 28 | <div id="account"> |
|
29 | 29 | <%= render_menu :account_menu -%> |
|
30 | 30 | </div> |
|
31 | 31 | <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %> |
|
32 | 32 | <%= render_menu :top_menu -%> |
|
33 | 33 | </div> |
|
34 | 34 | |
|
35 | 35 | <div id="header"> |
|
36 | 36 | <div id="quick-search"> |
|
37 | 37 | <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> |
|
38 | 38 | <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> |
|
39 | 39 | <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>: |
|
40 | 40 | <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> |
|
41 | 41 | <% end %> |
|
42 | 42 | <%= render_project_jump_box %> |
|
43 | 43 | </div> |
|
44 | 44 | |
|
45 | 45 | <h1><%= page_header_title %></h1> |
|
46 | 46 | |
|
47 | 47 | <% if display_main_menu?(@project) %> |
|
48 | 48 | <div id="main-menu"> |
|
49 | 49 | <%= render_main_menu(@project) %> |
|
50 | 50 | </div> |
|
51 | 51 | <% end %> |
|
52 | 52 | </div> |
|
53 | 53 | |
|
54 | 54 | <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %> |
|
55 | 55 | <div id="sidebar"> |
|
56 | 56 | <%= yield :sidebar %> |
|
57 | 57 | <%= call_hook :view_layouts_base_sidebar %> |
|
58 | 58 | </div> |
|
59 | 59 | |
|
60 | 60 | <div id="content"> |
|
61 | 61 | <%= render_flash_messages %> |
|
62 | 62 | <%= yield %> |
|
63 | 63 | <%= call_hook :view_layouts_base_content %> |
|
64 | 64 | <div style="clear:both;"></div> |
|
65 | 65 | </div> |
|
66 | 66 | </div> |
|
67 | 67 | |
|
68 | 68 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
|
69 | 69 | |
|
70 | 70 | <div id="footer"> |
|
71 | 71 | <div class="bgl"><div class="bgr"> |
|
72 | 72 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2011 Jean-Philippe Lang |
|
73 | 73 | </div></div> |
|
74 | 74 | </div> |
|
75 | 75 | </div> |
|
76 | 76 | </div> |
|
77 | 77 | <%= call_hook :view_layouts_base_body_bottom %> |
|
78 | 78 | </body> |
|
79 | 79 | </html> |
@@ -1,6 +1,7 | |||
|
1 | 1 | <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> |
|
2 | 2 | <p><%= pref_fields.check_box :hide_mail %></p> |
|
3 | 3 | <p><%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p> |
|
4 | 4 | <p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p> |
|
5 | <p><%= pref_fields.check_box :warn_on_leaving_unsaved %></p> | |
|
5 | 6 | <% end %> |
|
6 | 7 |
@@ -1,938 +1,940 | |||
|
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 | template: |
|
99 | 99 | header: |
|
100 | 100 | one: "1 error prohibited this %{model} from being saved" |
|
101 | 101 | other: "%{count} errors prohibited this %{model} from being saved" |
|
102 | 102 | messages: |
|
103 | 103 | inclusion: "is not included in the list" |
|
104 | 104 | exclusion: "is reserved" |
|
105 | 105 | invalid: "is invalid" |
|
106 | 106 | confirmation: "doesn't match confirmation" |
|
107 | 107 | accepted: "must be accepted" |
|
108 | 108 | empty: "can't be empty" |
|
109 | 109 | blank: "can't be blank" |
|
110 | 110 | too_long: "is too long (maximum is %{count} characters)" |
|
111 | 111 | too_short: "is too short (minimum is %{count} characters)" |
|
112 | 112 | wrong_length: "is the wrong length (should be %{count} characters)" |
|
113 | 113 | taken: "has already been taken" |
|
114 | 114 | not_a_number: "is not a number" |
|
115 | 115 | not_a_date: "is not a valid date" |
|
116 | 116 | greater_than: "must be greater than %{count}" |
|
117 | 117 | greater_than_or_equal_to: "must be greater than or equal to %{count}" |
|
118 | 118 | equal_to: "must be equal to %{count}" |
|
119 | 119 | less_than: "must be less than %{count}" |
|
120 | 120 | less_than_or_equal_to: "must be less than or equal to %{count}" |
|
121 | 121 | odd: "must be odd" |
|
122 | 122 | even: "must be even" |
|
123 | 123 | greater_than_start_date: "must be greater than start date" |
|
124 | 124 | not_same_project: "doesn't belong to the same project" |
|
125 | 125 | circular_dependency: "This relation would create a circular dependency" |
|
126 | 126 | cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks" |
|
127 | 127 | |
|
128 | 128 | actionview_instancetag_blank_option: Please select |
|
129 | 129 | |
|
130 | 130 | general_text_No: 'No' |
|
131 | 131 | general_text_Yes: 'Yes' |
|
132 | 132 | general_text_no: 'no' |
|
133 | 133 | general_text_yes: 'yes' |
|
134 | 134 | general_lang_name: 'English' |
|
135 | 135 | general_csv_separator: ',' |
|
136 | 136 | general_csv_decimal_separator: '.' |
|
137 | 137 | general_csv_encoding: ISO-8859-1 |
|
138 | 138 | general_pdf_encoding: ISO-8859-1 |
|
139 | 139 | general_first_day_of_week: '7' |
|
140 | 140 | |
|
141 | 141 | notice_account_updated: Account was successfully updated. |
|
142 | 142 | notice_account_invalid_creditentials: Invalid user or password |
|
143 | 143 | notice_account_password_updated: Password was successfully updated. |
|
144 | 144 | notice_account_wrong_password: Wrong password |
|
145 | 145 | notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you. |
|
146 | 146 | notice_account_unknown_email: Unknown user. |
|
147 | 147 | notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password. |
|
148 | 148 | notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you. |
|
149 | 149 | notice_account_activated: Your account has been activated. You can now log in. |
|
150 | 150 | notice_successful_create: Successful creation. |
|
151 | 151 | notice_successful_update: Successful update. |
|
152 | 152 | notice_successful_delete: Successful deletion. |
|
153 | 153 | notice_successful_connection: Successful connection. |
|
154 | 154 | notice_file_not_found: The page you were trying to access doesn't exist or has been removed. |
|
155 | 155 | notice_locking_conflict: Data has been updated by another user. |
|
156 | 156 | notice_not_authorized: You are not authorized to access this page. |
|
157 | 157 | notice_not_authorized_archived_project: The project you're trying to access has been archived. |
|
158 | 158 | notice_email_sent: "An email was sent to %{value}" |
|
159 | 159 | notice_email_error: "An error occurred while sending mail (%{value})" |
|
160 | 160 | notice_feeds_access_key_reseted: Your RSS access key was reset. |
|
161 | 161 | notice_api_access_key_reseted: Your API access key was reset. |
|
162 | 162 | notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}." |
|
163 | 163 | notice_failed_to_save_members: "Failed to save member(s): %{errors}." |
|
164 | 164 | notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit." |
|
165 | 165 | notice_account_pending: "Your account was created and is now pending administrator approval." |
|
166 | 166 | notice_default_data_loaded: Default configuration successfully loaded. |
|
167 | 167 | notice_unable_delete_version: Unable to delete version. |
|
168 | 168 | notice_unable_delete_time_entry: Unable to delete time log entry. |
|
169 | 169 | notice_issue_done_ratios_updated: Issue done ratios updated. |
|
170 | 170 | notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})" |
|
171 | 171 | |
|
172 | 172 | error_can_t_load_default_data: "Default configuration could not be loaded: %{value}" |
|
173 | 173 | error_scm_not_found: "The entry or revision was not found in the repository." |
|
174 | 174 | error_scm_command_failed: "An error occurred when trying to access the repository: %{value}" |
|
175 | 175 | error_scm_annotate: "The entry does not exist or can not be annotated." |
|
176 | 176 | error_issue_not_found_in_project: 'The issue was not found or does not belong to this project' |
|
177 | 177 | error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.' |
|
178 | 178 | error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").' |
|
179 | 179 | error_can_not_delete_custom_field: Unable to delete custom field |
|
180 | 180 | error_can_not_delete_tracker: "This tracker contains issues and can't be deleted." |
|
181 | 181 | error_can_not_remove_role: "This role is in use and can not be deleted." |
|
182 | 182 | error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version can not be reopened' |
|
183 | 183 | error_can_not_archive_project: This project can not be archived |
|
184 | 184 | error_issue_done_ratios_not_updated: "Issue done ratios not updated." |
|
185 | 185 | error_workflow_copy_source: 'Please select a source tracker or role' |
|
186 | 186 | error_workflow_copy_target: 'Please select target tracker(s) and role(s)' |
|
187 | 187 | error_unable_delete_issue_status: 'Unable to delete issue status' |
|
188 | 188 | error_unable_to_connect: "Unable to connect (%{value})" |
|
189 | 189 | warning_attachments_not_saved: "%{count} file(s) could not be saved." |
|
190 | 190 | |
|
191 | 191 | mail_subject_lost_password: "Your %{value} password" |
|
192 | 192 | mail_body_lost_password: 'To change your password, click on the following link:' |
|
193 | 193 | mail_subject_register: "Your %{value} account activation" |
|
194 | 194 | mail_body_register: 'To activate your account, click on the following link:' |
|
195 | 195 | mail_body_account_information_external: "You can use your %{value} account to log in." |
|
196 | 196 | mail_body_account_information: Your account information |
|
197 | 197 | mail_subject_account_activation_request: "%{value} account activation request" |
|
198 | 198 | mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:" |
|
199 | 199 | mail_subject_reminder: "%{count} issue(s) due in the next %{days} days" |
|
200 | 200 | mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:" |
|
201 | 201 | mail_subject_wiki_content_added: "'%{id}' wiki page has been added" |
|
202 | 202 | mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}." |
|
203 | 203 | mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated" |
|
204 | 204 | mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}." |
|
205 | 205 | |
|
206 | 206 | gui_validation_error: 1 error |
|
207 | 207 | gui_validation_error_plural: "%{count} errors" |
|
208 | 208 | |
|
209 | 209 | field_name: Name |
|
210 | 210 | field_description: Description |
|
211 | 211 | field_summary: Summary |
|
212 | 212 | field_is_required: Required |
|
213 | 213 | field_firstname: Firstname |
|
214 | 214 | field_lastname: Lastname |
|
215 | 215 | field_mail: Email |
|
216 | 216 | field_filename: File |
|
217 | 217 | field_filesize: Size |
|
218 | 218 | field_downloads: Downloads |
|
219 | 219 | field_author: Author |
|
220 | 220 | field_created_on: Created |
|
221 | 221 | field_updated_on: Updated |
|
222 | 222 | field_field_format: Format |
|
223 | 223 | field_is_for_all: For all projects |
|
224 | 224 | field_possible_values: Possible values |
|
225 | 225 | field_regexp: Regular expression |
|
226 | 226 | field_min_length: Minimum length |
|
227 | 227 | field_max_length: Maximum length |
|
228 | 228 | field_value: Value |
|
229 | 229 | field_category: Category |
|
230 | 230 | field_title: Title |
|
231 | 231 | field_project: Project |
|
232 | 232 | field_issue: Issue |
|
233 | 233 | field_status: Status |
|
234 | 234 | field_notes: Notes |
|
235 | 235 | field_is_closed: Issue closed |
|
236 | 236 | field_is_default: Default value |
|
237 | 237 | field_tracker: Tracker |
|
238 | 238 | field_subject: Subject |
|
239 | 239 | field_due_date: Due date |
|
240 | 240 | field_assigned_to: Assignee |
|
241 | 241 | field_priority: Priority |
|
242 | 242 | field_fixed_version: Target version |
|
243 | 243 | field_user: User |
|
244 | 244 | field_principal: Principal |
|
245 | 245 | field_role: Role |
|
246 | 246 | field_homepage: Homepage |
|
247 | 247 | field_is_public: Public |
|
248 | 248 | field_parent: Subproject of |
|
249 | 249 | field_is_in_roadmap: Issues displayed in roadmap |
|
250 | 250 | field_login: Login |
|
251 | 251 | field_mail_notification: Email notifications |
|
252 | 252 | field_admin: Administrator |
|
253 | 253 | field_last_login_on: Last connection |
|
254 | 254 | field_language: Language |
|
255 | 255 | field_effective_date: Date |
|
256 | 256 | field_password: Password |
|
257 | 257 | field_new_password: New password |
|
258 | 258 | field_password_confirmation: Confirmation |
|
259 | 259 | field_version: Version |
|
260 | 260 | field_type: Type |
|
261 | 261 | field_host: Host |
|
262 | 262 | field_port: Port |
|
263 | 263 | field_account: Account |
|
264 | 264 | field_base_dn: Base DN |
|
265 | 265 | field_attr_login: Login attribute |
|
266 | 266 | field_attr_firstname: Firstname attribute |
|
267 | 267 | field_attr_lastname: Lastname attribute |
|
268 | 268 | field_attr_mail: Email attribute |
|
269 | 269 | field_onthefly: On-the-fly user creation |
|
270 | 270 | field_start_date: Start date |
|
271 | 271 | field_done_ratio: % Done |
|
272 | 272 | field_auth_source: Authentication mode |
|
273 | 273 | field_hide_mail: Hide my email address |
|
274 | 274 | field_comments: Comment |
|
275 | 275 | field_url: URL |
|
276 | 276 | field_start_page: Start page |
|
277 | 277 | field_subproject: Subproject |
|
278 | 278 | field_hours: Hours |
|
279 | 279 | field_activity: Activity |
|
280 | 280 | field_spent_on: Date |
|
281 | 281 | field_identifier: Identifier |
|
282 | 282 | field_is_filter: Used as a filter |
|
283 | 283 | field_issue_to: Related issue |
|
284 | 284 | field_delay: Delay |
|
285 | 285 | field_assignable: Issues can be assigned to this role |
|
286 | 286 | field_redirect_existing_links: Redirect existing links |
|
287 | 287 | field_estimated_hours: Estimated time |
|
288 | 288 | field_column_names: Columns |
|
289 | 289 | field_time_entries: Log time |
|
290 | 290 | field_time_zone: Time zone |
|
291 | 291 | field_searchable: Searchable |
|
292 | 292 | field_default_value: Default value |
|
293 | 293 | field_comments_sorting: Display comments |
|
294 | 294 | field_parent_title: Parent page |
|
295 | 295 | field_editable: Editable |
|
296 | 296 | field_watcher: Watcher |
|
297 | 297 | field_identity_url: OpenID URL |
|
298 | 298 | field_content: Content |
|
299 | 299 | field_group_by: Group results by |
|
300 | 300 | field_sharing: Sharing |
|
301 | 301 | field_parent_issue: Parent task |
|
302 | 302 | field_member_of_group: "Assignee's group" |
|
303 | 303 | field_assigned_to_role: "Assignee's role" |
|
304 | 304 | field_text: Text field |
|
305 | 305 | field_visible: Visible |
|
306 | field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text" | |
|
306 | 307 | |
|
307 | 308 | setting_app_title: Application title |
|
308 | 309 | setting_app_subtitle: Application subtitle |
|
309 | 310 | setting_welcome_text: Welcome text |
|
310 | 311 | setting_default_language: Default language |
|
311 | 312 | setting_login_required: Authentication required |
|
312 | 313 | setting_self_registration: Self-registration |
|
313 | 314 | setting_attachment_max_size: Attachment max. size |
|
314 | 315 | setting_issues_export_limit: Issues export limit |
|
315 | 316 | setting_mail_from: Emission email address |
|
316 | 317 | setting_bcc_recipients: Blind carbon copy recipients (bcc) |
|
317 | 318 | setting_plain_text_mail: Plain text mail (no HTML) |
|
318 | 319 | setting_host_name: Host name and path |
|
319 | 320 | setting_text_formatting: Text formatting |
|
320 | 321 | setting_wiki_compression: Wiki history compression |
|
321 | 322 | setting_feeds_limit: Feed content limit |
|
322 | 323 | setting_default_projects_public: New projects are public by default |
|
323 | 324 | setting_autofetch_changesets: Autofetch commits |
|
324 | 325 | setting_sys_api_enabled: Enable WS for repository management |
|
325 | 326 | setting_commit_ref_keywords: Referencing keywords |
|
326 | 327 | setting_commit_fix_keywords: Fixing keywords |
|
327 | 328 | setting_autologin: Autologin |
|
328 | 329 | setting_date_format: Date format |
|
329 | 330 | setting_time_format: Time format |
|
330 | 331 | setting_cross_project_issue_relations: Allow cross-project issue relations |
|
331 | 332 | setting_issue_list_default_columns: Default columns displayed on the issue list |
|
332 | 333 | setting_repositories_encodings: Repositories encodings |
|
333 | 334 | setting_commit_logs_encoding: Commit messages encoding |
|
334 | 335 | setting_emails_header: Emails header |
|
335 | 336 | setting_emails_footer: Emails footer |
|
336 | 337 | setting_protocol: Protocol |
|
337 | 338 | setting_per_page_options: Objects per page options |
|
338 | 339 | setting_user_format: Users display format |
|
339 | 340 | setting_activity_days_default: Days displayed on project activity |
|
340 | 341 | setting_display_subprojects_issues: Display subprojects issues on main projects by default |
|
341 | 342 | setting_enabled_scm: Enabled SCM |
|
342 | 343 | setting_mail_handler_body_delimiters: "Truncate emails after one of these lines" |
|
343 | 344 | setting_mail_handler_api_enabled: Enable WS for incoming emails |
|
344 | 345 | setting_mail_handler_api_key: API key |
|
345 | 346 | setting_sequential_project_identifiers: Generate sequential project identifiers |
|
346 | 347 | setting_gravatar_enabled: Use Gravatar user icons |
|
347 | 348 | setting_gravatar_default: Default Gravatar image |
|
348 | 349 | setting_diff_max_lines_displayed: Max number of diff lines displayed |
|
349 | 350 | setting_file_max_size_displayed: Max size of text files displayed inline |
|
350 | 351 | setting_repository_log_display_limit: Maximum number of revisions displayed on file log |
|
351 | 352 | setting_openid: Allow OpenID login and registration |
|
352 | 353 | setting_password_min_length: Minimum password length |
|
353 | 354 | setting_new_project_user_role_id: Role given to a non-admin user who creates a project |
|
354 | 355 | setting_default_projects_modules: Default enabled modules for new projects |
|
355 | 356 | setting_issue_done_ratio: Calculate the issue done ratio with |
|
356 | 357 | setting_issue_done_ratio_issue_field: Use the issue field |
|
357 | 358 | setting_issue_done_ratio_issue_status: Use the issue status |
|
358 | 359 | setting_start_of_week: Start calendars on |
|
359 | 360 | setting_rest_api_enabled: Enable REST web service |
|
360 | 361 | setting_cache_formatted_text: Cache formatted text |
|
361 | 362 | setting_default_notification_option: Default notification option |
|
362 | 363 | setting_commit_logtime_enabled: Enable time logging |
|
363 | 364 | setting_commit_logtime_activity_id: Activity for logged time |
|
364 | 365 | setting_gantt_items_limit: Maximum number of items displayed on the gantt chart |
|
365 | 366 | |
|
366 | 367 | permission_add_project: Create project |
|
367 | 368 | permission_add_subprojects: Create subprojects |
|
368 | 369 | permission_edit_project: Edit project |
|
369 | 370 | permission_select_project_modules: Select project modules |
|
370 | 371 | permission_manage_members: Manage members |
|
371 | 372 | permission_manage_project_activities: Manage project activities |
|
372 | 373 | permission_manage_versions: Manage versions |
|
373 | 374 | permission_manage_categories: Manage issue categories |
|
374 | 375 | permission_view_issues: View Issues |
|
375 | 376 | permission_add_issues: Add issues |
|
376 | 377 | permission_edit_issues: Edit issues |
|
377 | 378 | permission_manage_issue_relations: Manage issue relations |
|
378 | 379 | permission_add_issue_notes: Add notes |
|
379 | 380 | permission_edit_issue_notes: Edit notes |
|
380 | 381 | permission_edit_own_issue_notes: Edit own notes |
|
381 | 382 | permission_move_issues: Move issues |
|
382 | 383 | permission_delete_issues: Delete issues |
|
383 | 384 | permission_manage_public_queries: Manage public queries |
|
384 | 385 | permission_save_queries: Save queries |
|
385 | 386 | permission_view_gantt: View gantt chart |
|
386 | 387 | permission_view_calendar: View calendar |
|
387 | 388 | permission_view_issue_watchers: View watchers list |
|
388 | 389 | permission_add_issue_watchers: Add watchers |
|
389 | 390 | permission_delete_issue_watchers: Delete watchers |
|
390 | 391 | permission_log_time: Log spent time |
|
391 | 392 | permission_view_time_entries: View spent time |
|
392 | 393 | permission_edit_time_entries: Edit time logs |
|
393 | 394 | permission_edit_own_time_entries: Edit own time logs |
|
394 | 395 | permission_manage_news: Manage news |
|
395 | 396 | permission_comment_news: Comment news |
|
396 | 397 | permission_manage_documents: Manage documents |
|
397 | 398 | permission_view_documents: View documents |
|
398 | 399 | permission_manage_files: Manage files |
|
399 | 400 | permission_view_files: View files |
|
400 | 401 | permission_manage_wiki: Manage wiki |
|
401 | 402 | permission_rename_wiki_pages: Rename wiki pages |
|
402 | 403 | permission_delete_wiki_pages: Delete wiki pages |
|
403 | 404 | permission_view_wiki_pages: View wiki |
|
404 | 405 | permission_view_wiki_edits: View wiki history |
|
405 | 406 | permission_edit_wiki_pages: Edit wiki pages |
|
406 | 407 | permission_delete_wiki_pages_attachments: Delete attachments |
|
407 | 408 | permission_protect_wiki_pages: Protect wiki pages |
|
408 | 409 | permission_manage_repository: Manage repository |
|
409 | 410 | permission_browse_repository: Browse repository |
|
410 | 411 | permission_view_changesets: View changesets |
|
411 | 412 | permission_commit_access: Commit access |
|
412 | 413 | permission_manage_boards: Manage boards |
|
413 | 414 | permission_view_messages: View messages |
|
414 | 415 | permission_add_messages: Post messages |
|
415 | 416 | permission_edit_messages: Edit messages |
|
416 | 417 | permission_edit_own_messages: Edit own messages |
|
417 | 418 | permission_delete_messages: Delete messages |
|
418 | 419 | permission_delete_own_messages: Delete own messages |
|
419 | 420 | permission_export_wiki_pages: Export wiki pages |
|
420 | 421 | permission_manage_subtasks: Manage subtasks |
|
421 | 422 | |
|
422 | 423 | project_module_issue_tracking: Issue tracking |
|
423 | 424 | project_module_time_tracking: Time tracking |
|
424 | 425 | project_module_news: News |
|
425 | 426 | project_module_documents: Documents |
|
426 | 427 | project_module_files: Files |
|
427 | 428 | project_module_wiki: Wiki |
|
428 | 429 | project_module_repository: Repository |
|
429 | 430 | project_module_boards: Boards |
|
430 | 431 | project_module_calendar: Calendar |
|
431 | 432 | project_module_gantt: Gantt |
|
432 | 433 | |
|
433 | 434 | label_user: User |
|
434 | 435 | label_user_plural: Users |
|
435 | 436 | label_user_new: New user |
|
436 | 437 | label_user_anonymous: Anonymous |
|
437 | 438 | label_project: Project |
|
438 | 439 | label_project_new: New project |
|
439 | 440 | label_project_plural: Projects |
|
440 | 441 | label_x_projects: |
|
441 | 442 | zero: no projects |
|
442 | 443 | one: 1 project |
|
443 | 444 | other: "%{count} projects" |
|
444 | 445 | label_project_all: All Projects |
|
445 | 446 | label_project_latest: Latest projects |
|
446 | 447 | label_issue: Issue |
|
447 | 448 | label_issue_new: New issue |
|
448 | 449 | label_issue_plural: Issues |
|
449 | 450 | label_issue_view_all: View all issues |
|
450 | 451 | label_issues_by: "Issues by %{value}" |
|
451 | 452 | label_issue_added: Issue added |
|
452 | 453 | label_issue_updated: Issue updated |
|
453 | 454 | label_document: Document |
|
454 | 455 | label_document_new: New document |
|
455 | 456 | label_document_plural: Documents |
|
456 | 457 | label_document_added: Document added |
|
457 | 458 | label_role: Role |
|
458 | 459 | label_role_plural: Roles |
|
459 | 460 | label_role_new: New role |
|
460 | 461 | label_role_and_permissions: Roles and permissions |
|
461 | 462 | label_member: Member |
|
462 | 463 | label_member_new: New member |
|
463 | 464 | label_member_plural: Members |
|
464 | 465 | label_tracker: Tracker |
|
465 | 466 | label_tracker_plural: Trackers |
|
466 | 467 | label_tracker_new: New tracker |
|
467 | 468 | label_workflow: Workflow |
|
468 | 469 | label_issue_status: Issue status |
|
469 | 470 | label_issue_status_plural: Issue statuses |
|
470 | 471 | label_issue_status_new: New status |
|
471 | 472 | label_issue_category: Issue category |
|
472 | 473 | label_issue_category_plural: Issue categories |
|
473 | 474 | label_issue_category_new: New category |
|
474 | 475 | label_custom_field: Custom field |
|
475 | 476 | label_custom_field_plural: Custom fields |
|
476 | 477 | label_custom_field_new: New custom field |
|
477 | 478 | label_enumerations: Enumerations |
|
478 | 479 | label_enumeration_new: New value |
|
479 | 480 | label_information: Information |
|
480 | 481 | label_information_plural: Information |
|
481 | 482 | label_please_login: Please log in |
|
482 | 483 | label_register: Register |
|
483 | 484 | label_login_with_open_id_option: or login with OpenID |
|
484 | 485 | label_password_lost: Lost password |
|
485 | 486 | label_home: Home |
|
486 | 487 | label_my_page: My page |
|
487 | 488 | label_my_account: My account |
|
488 | 489 | label_my_projects: My projects |
|
489 | 490 | label_my_page_block: My page block |
|
490 | 491 | label_administration: Administration |
|
491 | 492 | label_login: Sign in |
|
492 | 493 | label_logout: Sign out |
|
493 | 494 | label_help: Help |
|
494 | 495 | label_reported_issues: Reported issues |
|
495 | 496 | label_assigned_to_me_issues: Issues assigned to me |
|
496 | 497 | label_last_login: Last connection |
|
497 | 498 | label_registered_on: Registered on |
|
498 | 499 | label_activity: Activity |
|
499 | 500 | label_overall_activity: Overall activity |
|
500 | 501 | label_user_activity: "%{value}'s activity" |
|
501 | 502 | label_new: New |
|
502 | 503 | label_logged_as: Logged in as |
|
503 | 504 | label_environment: Environment |
|
504 | 505 | label_authentication: Authentication |
|
505 | 506 | label_auth_source: Authentication mode |
|
506 | 507 | label_auth_source_new: New authentication mode |
|
507 | 508 | label_auth_source_plural: Authentication modes |
|
508 | 509 | label_subproject_plural: Subprojects |
|
509 | 510 | label_subproject_new: New subproject |
|
510 | 511 | label_and_its_subprojects: "%{value} and its subprojects" |
|
511 | 512 | label_min_max_length: Min - Max length |
|
512 | 513 | label_list: List |
|
513 | 514 | label_date: Date |
|
514 | 515 | label_integer: Integer |
|
515 | 516 | label_float: Float |
|
516 | 517 | label_boolean: Boolean |
|
517 | 518 | label_string: Text |
|
518 | 519 | label_text: Long text |
|
519 | 520 | label_attribute: Attribute |
|
520 | 521 | label_attribute_plural: Attributes |
|
521 | 522 | label_download: "%{count} Download" |
|
522 | 523 | label_download_plural: "%{count} Downloads" |
|
523 | 524 | label_no_data: No data to display |
|
524 | 525 | label_change_status: Change status |
|
525 | 526 | label_history: History |
|
526 | 527 | label_attachment: File |
|
527 | 528 | label_attachment_new: New file |
|
528 | 529 | label_attachment_delete: Delete file |
|
529 | 530 | label_attachment_plural: Files |
|
530 | 531 | label_file_added: File added |
|
531 | 532 | label_report: Report |
|
532 | 533 | label_report_plural: Reports |
|
533 | 534 | label_news: News |
|
534 | 535 | label_news_new: Add news |
|
535 | 536 | label_news_plural: News |
|
536 | 537 | label_news_latest: Latest news |
|
537 | 538 | label_news_view_all: View all news |
|
538 | 539 | label_news_added: News added |
|
539 | 540 | label_settings: Settings |
|
540 | 541 | label_overview: Overview |
|
541 | 542 | label_version: Version |
|
542 | 543 | label_version_new: New version |
|
543 | 544 | label_version_plural: Versions |
|
544 | 545 | label_close_versions: Close completed versions |
|
545 | 546 | label_confirmation: Confirmation |
|
546 | 547 | label_export_to: 'Also available in:' |
|
547 | 548 | label_read: Read... |
|
548 | 549 | label_public_projects: Public projects |
|
549 | 550 | label_open_issues: open |
|
550 | 551 | label_open_issues_plural: open |
|
551 | 552 | label_closed_issues: closed |
|
552 | 553 | label_closed_issues_plural: closed |
|
553 | 554 | label_x_open_issues_abbr_on_total: |
|
554 | 555 | zero: 0 open / %{total} |
|
555 | 556 | one: 1 open / %{total} |
|
556 | 557 | other: "%{count} open / %{total}" |
|
557 | 558 | label_x_open_issues_abbr: |
|
558 | 559 | zero: 0 open |
|
559 | 560 | one: 1 open |
|
560 | 561 | other: "%{count} open" |
|
561 | 562 | label_x_closed_issues_abbr: |
|
562 | 563 | zero: 0 closed |
|
563 | 564 | one: 1 closed |
|
564 | 565 | other: "%{count} closed" |
|
565 | 566 | label_total: Total |
|
566 | 567 | label_permissions: Permissions |
|
567 | 568 | label_current_status: Current status |
|
568 | 569 | label_new_statuses_allowed: New statuses allowed |
|
569 | 570 | label_all: all |
|
570 | 571 | label_none: none |
|
571 | 572 | label_nobody: nobody |
|
572 | 573 | label_next: Next |
|
573 | 574 | label_previous: Previous |
|
574 | 575 | label_used_by: Used by |
|
575 | 576 | label_details: Details |
|
576 | 577 | label_add_note: Add a note |
|
577 | 578 | label_per_page: Per page |
|
578 | 579 | label_calendar: Calendar |
|
579 | 580 | label_months_from: months from |
|
580 | 581 | label_gantt: Gantt |
|
581 | 582 | label_internal: Internal |
|
582 | 583 | label_last_changes: "last %{count} changes" |
|
583 | 584 | label_change_view_all: View all changes |
|
584 | 585 | label_personalize_page: Personalize this page |
|
585 | 586 | label_comment: Comment |
|
586 | 587 | label_comment_plural: Comments |
|
587 | 588 | label_x_comments: |
|
588 | 589 | zero: no comments |
|
589 | 590 | one: 1 comment |
|
590 | 591 | other: "%{count} comments" |
|
591 | 592 | label_comment_add: Add a comment |
|
592 | 593 | label_comment_added: Comment added |
|
593 | 594 | label_comment_delete: Delete comments |
|
594 | 595 | label_query: Custom query |
|
595 | 596 | label_query_plural: Custom queries |
|
596 | 597 | label_query_new: New query |
|
597 | 598 | label_filter_add: Add filter |
|
598 | 599 | label_filter_plural: Filters |
|
599 | 600 | label_equals: is |
|
600 | 601 | label_not_equals: is not |
|
601 | 602 | label_in_less_than: in less than |
|
602 | 603 | label_in_more_than: in more than |
|
603 | 604 | label_greater_or_equal: '>=' |
|
604 | 605 | label_less_or_equal: '<=' |
|
605 | 606 | label_in: in |
|
606 | 607 | label_today: today |
|
607 | 608 | label_all_time: all time |
|
608 | 609 | label_yesterday: yesterday |
|
609 | 610 | label_this_week: this week |
|
610 | 611 | label_last_week: last week |
|
611 | 612 | label_last_n_days: "last %{count} days" |
|
612 | 613 | label_this_month: this month |
|
613 | 614 | label_last_month: last month |
|
614 | 615 | label_this_year: this year |
|
615 | 616 | label_date_range: Date range |
|
616 | 617 | label_less_than_ago: less than days ago |
|
617 | 618 | label_more_than_ago: more than days ago |
|
618 | 619 | label_ago: days ago |
|
619 | 620 | label_contains: contains |
|
620 | 621 | label_not_contains: doesn't contain |
|
621 | 622 | label_day_plural: days |
|
622 | 623 | label_repository: Repository |
|
623 | 624 | label_repository_plural: Repositories |
|
624 | 625 | label_browse: Browse |
|
625 | 626 | label_modification: "%{count} change" |
|
626 | 627 | label_modification_plural: "%{count} changes" |
|
627 | 628 | label_branch: Branch |
|
628 | 629 | label_tag: Tag |
|
629 | 630 | label_revision: Revision |
|
630 | 631 | label_revision_plural: Revisions |
|
631 | 632 | label_revision_id: "Revision %{value}" |
|
632 | 633 | label_associated_revisions: Associated revisions |
|
633 | 634 | label_added: added |
|
634 | 635 | label_modified: modified |
|
635 | 636 | label_copied: copied |
|
636 | 637 | label_renamed: renamed |
|
637 | 638 | label_deleted: deleted |
|
638 | 639 | label_latest_revision: Latest revision |
|
639 | 640 | label_latest_revision_plural: Latest revisions |
|
640 | 641 | label_view_revisions: View revisions |
|
641 | 642 | label_view_all_revisions: View all revisions |
|
642 | 643 | label_max_size: Maximum size |
|
643 | 644 | label_sort_highest: Move to top |
|
644 | 645 | label_sort_higher: Move up |
|
645 | 646 | label_sort_lower: Move down |
|
646 | 647 | label_sort_lowest: Move to bottom |
|
647 | 648 | label_roadmap: Roadmap |
|
648 | 649 | label_roadmap_due_in: "Due in %{value}" |
|
649 | 650 | label_roadmap_overdue: "%{value} late" |
|
650 | 651 | label_roadmap_no_issues: No issues for this version |
|
651 | 652 | label_search: Search |
|
652 | 653 | label_result_plural: Results |
|
653 | 654 | label_all_words: All words |
|
654 | 655 | label_wiki: Wiki |
|
655 | 656 | label_wiki_edit: Wiki edit |
|
656 | 657 | label_wiki_edit_plural: Wiki edits |
|
657 | 658 | label_wiki_page: Wiki page |
|
658 | 659 | label_wiki_page_plural: Wiki pages |
|
659 | 660 | label_index_by_title: Index by title |
|
660 | 661 | label_index_by_date: Index by date |
|
661 | 662 | label_current_version: Current version |
|
662 | 663 | label_preview: Preview |
|
663 | 664 | label_feed_plural: Feeds |
|
664 | 665 | label_changes_details: Details of all changes |
|
665 | 666 | label_issue_tracking: Issue tracking |
|
666 | 667 | label_spent_time: Spent time |
|
667 | 668 | label_overall_spent_time: Overall spent time |
|
668 | 669 | label_f_hour: "%{value} hour" |
|
669 | 670 | label_f_hour_plural: "%{value} hours" |
|
670 | 671 | label_time_tracking: Time tracking |
|
671 | 672 | label_change_plural: Changes |
|
672 | 673 | label_statistics: Statistics |
|
673 | 674 | label_commits_per_month: Commits per month |
|
674 | 675 | label_commits_per_author: Commits per author |
|
675 | 676 | label_view_diff: View differences |
|
676 | 677 | label_diff_inline: inline |
|
677 | 678 | label_diff_side_by_side: side by side |
|
678 | 679 | label_options: Options |
|
679 | 680 | label_copy_workflow_from: Copy workflow from |
|
680 | 681 | label_permissions_report: Permissions report |
|
681 | 682 | label_watched_issues: Watched issues |
|
682 | 683 | label_related_issues: Related issues |
|
683 | 684 | label_applied_status: Applied status |
|
684 | 685 | label_loading: Loading... |
|
685 | 686 | label_relation_new: New relation |
|
686 | 687 | label_relation_delete: Delete relation |
|
687 | 688 | label_relates_to: related to |
|
688 | 689 | label_duplicates: duplicates |
|
689 | 690 | label_duplicated_by: duplicated by |
|
690 | 691 | label_blocks: blocks |
|
691 | 692 | label_blocked_by: blocked by |
|
692 | 693 | label_precedes: precedes |
|
693 | 694 | label_follows: follows |
|
694 | 695 | label_end_to_start: end to start |
|
695 | 696 | label_end_to_end: end to end |
|
696 | 697 | label_start_to_start: start to start |
|
697 | 698 | label_start_to_end: start to end |
|
698 | 699 | label_stay_logged_in: Stay logged in |
|
699 | 700 | label_disabled: disabled |
|
700 | 701 | label_show_completed_versions: Show completed versions |
|
701 | 702 | label_me: me |
|
702 | 703 | label_board: Forum |
|
703 | 704 | label_board_new: New forum |
|
704 | 705 | label_board_plural: Forums |
|
705 | 706 | label_board_locked: Locked |
|
706 | 707 | label_board_sticky: Sticky |
|
707 | 708 | label_topic_plural: Topics |
|
708 | 709 | label_message_plural: Messages |
|
709 | 710 | label_message_last: Last message |
|
710 | 711 | label_message_new: New message |
|
711 | 712 | label_message_posted: Message added |
|
712 | 713 | label_reply_plural: Replies |
|
713 | 714 | label_send_information: Send account information to the user |
|
714 | 715 | label_year: Year |
|
715 | 716 | label_month: Month |
|
716 | 717 | label_week: Week |
|
717 | 718 | label_date_from: From |
|
718 | 719 | label_date_to: To |
|
719 | 720 | label_language_based: Based on user's language |
|
720 | 721 | label_sort_by: "Sort by %{value}" |
|
721 | 722 | label_send_test_email: Send a test email |
|
722 | 723 | label_feeds_access_key: RSS access key |
|
723 | 724 | label_missing_feeds_access_key: Missing a RSS access key |
|
724 | 725 | label_feeds_access_key_created_on: "RSS access key created %{value} ago" |
|
725 | 726 | label_module_plural: Modules |
|
726 | 727 | label_added_time_by: "Added by %{author} %{age} ago" |
|
727 | 728 | label_updated_time_by: "Updated by %{author} %{age} ago" |
|
728 | 729 | label_updated_time: "Updated %{value} ago" |
|
729 | 730 | label_jump_to_a_project: Jump to a project... |
|
730 | 731 | label_file_plural: Files |
|
731 | 732 | label_changeset_plural: Changesets |
|
732 | 733 | label_default_columns: Default columns |
|
733 | 734 | label_no_change_option: (No change) |
|
734 | 735 | label_bulk_edit_selected_issues: Bulk edit selected issues |
|
735 | 736 | label_theme: Theme |
|
736 | 737 | label_default: Default |
|
737 | 738 | label_search_titles_only: Search titles only |
|
738 | 739 | label_user_mail_option_all: "For any event on all my projects" |
|
739 | 740 | label_user_mail_option_selected: "For any event on the selected projects only..." |
|
740 | 741 | label_user_mail_option_none: "No events" |
|
741 | 742 | label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in" |
|
742 | 743 | label_user_mail_option_only_assigned: "Only for things I am assigned to" |
|
743 | 744 | label_user_mail_option_only_owner: "Only for things I am the owner of" |
|
744 | 745 | label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself" |
|
745 | 746 | label_registration_activation_by_email: account activation by email |
|
746 | 747 | label_registration_manual_activation: manual account activation |
|
747 | 748 | label_registration_automatic_activation: automatic account activation |
|
748 | 749 | label_display_per_page: "Per page: %{value}" |
|
749 | 750 | label_age: Age |
|
750 | 751 | label_change_properties: Change properties |
|
751 | 752 | label_general: General |
|
752 | 753 | label_more: More |
|
753 | 754 | label_scm: SCM |
|
754 | 755 | label_plugins: Plugins |
|
755 | 756 | label_ldap_authentication: LDAP authentication |
|
756 | 757 | label_downloads_abbr: D/L |
|
757 | 758 | label_optional_description: Optional description |
|
758 | 759 | label_add_another_file: Add another file |
|
759 | 760 | label_preferences: Preferences |
|
760 | 761 | label_chronological_order: In chronological order |
|
761 | 762 | label_reverse_chronological_order: In reverse chronological order |
|
762 | 763 | label_planning: Planning |
|
763 | 764 | label_incoming_emails: Incoming emails |
|
764 | 765 | label_generate_key: Generate a key |
|
765 | 766 | label_issue_watchers: Watchers |
|
766 | 767 | label_example: Example |
|
767 | 768 | label_display: Display |
|
768 | 769 | label_sort: Sort |
|
769 | 770 | label_ascending: Ascending |
|
770 | 771 | label_descending: Descending |
|
771 | 772 | label_date_from_to: From %{start} to %{end} |
|
772 | 773 | label_wiki_content_added: Wiki page added |
|
773 | 774 | label_wiki_content_updated: Wiki page updated |
|
774 | 775 | label_group: Group |
|
775 | 776 | label_group_plural: Groups |
|
776 | 777 | label_group_new: New group |
|
777 | 778 | label_time_entry_plural: Spent time |
|
778 | 779 | label_version_sharing_none: Not shared |
|
779 | 780 | label_version_sharing_descendants: With subprojects |
|
780 | 781 | label_version_sharing_hierarchy: With project hierarchy |
|
781 | 782 | label_version_sharing_tree: With project tree |
|
782 | 783 | label_version_sharing_system: With all projects |
|
783 | 784 | label_update_issue_done_ratios: Update issue done ratios |
|
784 | 785 | label_copy_source: Source |
|
785 | 786 | label_copy_target: Target |
|
786 | 787 | label_copy_same_as_target: Same as target |
|
787 | 788 | label_display_used_statuses_only: Only display statuses that are used by this tracker |
|
788 | 789 | label_api_access_key: API access key |
|
789 | 790 | label_missing_api_access_key: Missing an API access key |
|
790 | 791 | label_api_access_key_created_on: "API access key created %{value} ago" |
|
791 | 792 | label_profile: Profile |
|
792 | 793 | label_subtask_plural: Subtasks |
|
793 | 794 | label_project_copy_notifications: Send email notifications during the project copy |
|
794 | 795 | label_principal_search: "Search for user or group:" |
|
795 | 796 | label_user_search: "Search for user:" |
|
796 | 797 | |
|
797 | 798 | button_login: Login |
|
798 | 799 | button_submit: Submit |
|
799 | 800 | button_save: Save |
|
800 | 801 | button_check_all: Check all |
|
801 | 802 | button_uncheck_all: Uncheck all |
|
802 | 803 | button_delete: Delete |
|
803 | 804 | button_create: Create |
|
804 | 805 | button_create_and_continue: Create and continue |
|
805 | 806 | button_test: Test |
|
806 | 807 | button_edit: Edit |
|
807 | 808 | button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}" |
|
808 | 809 | button_add: Add |
|
809 | 810 | button_change: Change |
|
810 | 811 | button_apply: Apply |
|
811 | 812 | button_clear: Clear |
|
812 | 813 | button_lock: Lock |
|
813 | 814 | button_unlock: Unlock |
|
814 | 815 | button_download: Download |
|
815 | 816 | button_list: List |
|
816 | 817 | button_view: View |
|
817 | 818 | button_move: Move |
|
818 | 819 | button_move_and_follow: Move and follow |
|
819 | 820 | button_back: Back |
|
820 | 821 | button_cancel: Cancel |
|
821 | 822 | button_activate: Activate |
|
822 | 823 | button_sort: Sort |
|
823 | 824 | button_log_time: Log time |
|
824 | 825 | button_rollback: Rollback to this version |
|
825 | 826 | button_watch: Watch |
|
826 | 827 | button_unwatch: Unwatch |
|
827 | 828 | button_reply: Reply |
|
828 | 829 | button_archive: Archive |
|
829 | 830 | button_unarchive: Unarchive |
|
830 | 831 | button_reset: Reset |
|
831 | 832 | button_rename: Rename |
|
832 | 833 | button_change_password: Change password |
|
833 | 834 | button_copy: Copy |
|
834 | 835 | button_copy_and_follow: Copy and follow |
|
835 | 836 | button_annotate: Annotate |
|
836 | 837 | button_update: Update |
|
837 | 838 | button_configure: Configure |
|
838 | 839 | button_quote: Quote |
|
839 | 840 | button_duplicate: Duplicate |
|
840 | 841 | button_show: Show |
|
841 | 842 | |
|
842 | 843 | status_active: active |
|
843 | 844 | status_registered: registered |
|
844 | 845 | status_locked: locked |
|
845 | 846 | |
|
846 | 847 | version_status_open: open |
|
847 | 848 | version_status_locked: locked |
|
848 | 849 | version_status_closed: closed |
|
849 | 850 | |
|
850 | 851 | field_active: Active |
|
851 | 852 | |
|
852 | 853 | text_select_mail_notifications: Select actions for which email notifications should be sent. |
|
853 | 854 | text_regexp_info: eg. ^[A-Z0-9]+$ |
|
854 | 855 | text_min_max_length_info: 0 means no restriction |
|
855 | 856 | text_project_destroy_confirmation: Are you sure you want to delete this project and related data ? |
|
856 | 857 | text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted." |
|
857 | 858 | text_workflow_edit: Select a role and a tracker to edit the workflow |
|
858 | 859 | text_are_you_sure: Are you sure ? |
|
859 | 860 | text_are_you_sure_with_children: "Delete issue and all child issues?" |
|
860 | 861 | text_journal_changed: "%{label} changed from %{old} to %{new}" |
|
861 | 862 | text_journal_set_to: "%{label} set to %{value}" |
|
862 | 863 | text_journal_deleted: "%{label} deleted (%{old})" |
|
863 | 864 | text_journal_added: "%{label} %{value} added" |
|
864 | 865 | text_tip_issue_begin_day: issue beginning this day |
|
865 | 866 | text_tip_issue_end_day: issue ending this day |
|
866 | 867 | text_tip_issue_begin_end_day: issue beginning and ending this day |
|
867 | 868 | text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier can not be changed.' |
|
868 | 869 | text_caracters_maximum: "%{count} characters maximum." |
|
869 | 870 | text_caracters_minimum: "Must be at least %{count} characters long." |
|
870 | 871 | text_length_between: "Length between %{min} and %{max} characters." |
|
871 | 872 | text_tracker_no_workflow: No workflow defined for this tracker |
|
872 | 873 | text_unallowed_characters: Unallowed characters |
|
873 | 874 | text_comma_separated: Multiple values allowed (comma separated). |
|
874 | 875 | text_line_separated: Multiple values allowed (one line for each value). |
|
875 | 876 | text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages |
|
876 | 877 | text_issue_added: "Issue %{id} has been reported by %{author}." |
|
877 | 878 | text_issue_updated: "Issue %{id} has been updated by %{author}." |
|
878 | 879 | text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content ? |
|
879 | 880 | text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do ?" |
|
880 | 881 | text_issue_category_destroy_assignments: Remove category assignments |
|
881 | 882 | text_issue_category_reassign_to: Reassign issues to this category |
|
882 | 883 | 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)." |
|
883 | 884 | 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." |
|
884 | 885 | text_load_default_configuration: Load the default configuration |
|
885 | 886 | text_status_changed_by_changeset: "Applied in changeset %{value}." |
|
886 | 887 | text_time_logged_by_changeset: "Applied in changeset %{value}." |
|
887 | 888 | text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s) ?' |
|
888 | 889 | text_select_project_modules: 'Select modules to enable for this project:' |
|
889 | 890 | text_default_administrator_account_changed: Default administrator account changed |
|
890 | 891 | text_file_repository_writable: Attachments directory writable |
|
891 | 892 | text_plugin_assets_writable: Plugin assets directory writable |
|
892 | 893 | text_rmagick_available: RMagick available (optional) |
|
893 | 894 | text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do ?" |
|
894 | 895 | text_destroy_time_entries: Delete reported hours |
|
895 | 896 | text_assign_time_entries_to_project: Assign reported hours to the project |
|
896 | 897 | text_reassign_time_entries: 'Reassign reported hours to this issue:' |
|
897 | 898 | text_user_wrote: "%{value} wrote:" |
|
898 | 899 | text_enumeration_destroy_question: "%{count} objects are assigned to this value." |
|
899 | 900 | text_enumeration_category_reassign_to: 'Reassign them to this value:' |
|
900 | 901 | text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/configuration.yml and restart the application to enable them." |
|
901 | 902 | 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." |
|
902 | 903 | text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.' |
|
903 | 904 | text_custom_field_possible_values_info: 'One line for each value' |
|
904 | 905 | text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?" |
|
905 | 906 | text_wiki_page_nullify_children: "Keep child pages as root pages" |
|
906 | 907 | text_wiki_page_destroy_children: "Delete child pages and all their descendants" |
|
907 | 908 | text_wiki_page_reassign_children: "Reassign child pages to this parent page" |
|
908 | 909 | 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?" |
|
909 | 910 | text_zoom_in: Zoom in |
|
910 | 911 | text_zoom_out: Zoom out |
|
912 | text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page." | |
|
911 | 913 | |
|
912 | 914 | default_role_manager: Manager |
|
913 | 915 | default_role_developer: Developer |
|
914 | 916 | default_role_reporter: Reporter |
|
915 | 917 | default_tracker_bug: Bug |
|
916 | 918 | default_tracker_feature: Feature |
|
917 | 919 | default_tracker_support: Support |
|
918 | 920 | default_issue_status_new: New |
|
919 | 921 | default_issue_status_in_progress: In Progress |
|
920 | 922 | default_issue_status_resolved: Resolved |
|
921 | 923 | default_issue_status_feedback: Feedback |
|
922 | 924 | default_issue_status_closed: Closed |
|
923 | 925 | default_issue_status_rejected: Rejected |
|
924 | 926 | default_doc_category_user: User documentation |
|
925 | 927 | default_doc_category_tech: Technical documentation |
|
926 | 928 | default_priority_low: Low |
|
927 | 929 | default_priority_normal: Normal |
|
928 | 930 | default_priority_high: High |
|
929 | 931 | default_priority_urgent: Urgent |
|
930 | 932 | default_priority_immediate: Immediate |
|
931 | 933 | default_activity_design: Design |
|
932 | 934 | default_activity_development: Development |
|
933 | 935 | |
|
934 | 936 | enumeration_issue_priorities: Issue priorities |
|
935 | 937 | enumeration_doc_categories: Document categories |
|
936 | 938 | enumeration_activities: Activities (time tracking) |
|
937 | 939 | enumeration_system_activity: System Activity |
|
938 | 940 |
@@ -1,956 +1,958 | |||
|
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 | not_a_date: "n'est pas une date valide" |
|
132 | 132 | greater_than: "doit Γͺtre supΓ©rieur Γ %{count}" |
|
133 | 133 | greater_than_or_equal_to: "doit Γͺtre supΓ©rieur ou Γ©gal Γ %{count}" |
|
134 | 134 | equal_to: "doit Γͺtre Γ©gal Γ %{count}" |
|
135 | 135 | less_than: "doit Γͺtre infΓ©rieur Γ %{count}" |
|
136 | 136 | less_than_or_equal_to: "doit Γͺtre infΓ©rieur ou Γ©gal Γ %{count}" |
|
137 | 137 | odd: "doit Γͺtre impair" |
|
138 | 138 | even: "doit Γͺtre pair" |
|
139 | 139 | greater_than_start_date: "doit Γͺtre postΓ©rieure Γ la date de dΓ©but" |
|
140 | 140 | not_same_project: "n'appartient pas au mΓͺme projet" |
|
141 | 141 | circular_dependency: "Cette relation crΓ©erait une dΓ©pendance circulaire" |
|
142 | 142 | cant_link_an_issue_with_a_descendant: "Une demande ne peut pas Γͺtre liΓ©e Γ l'une de ses sous-tΓ’ches" |
|
143 | 143 | |
|
144 | 144 | actionview_instancetag_blank_option: Choisir |
|
145 | 145 | |
|
146 | 146 | general_text_No: 'Non' |
|
147 | 147 | general_text_Yes: 'Oui' |
|
148 | 148 | general_text_no: 'non' |
|
149 | 149 | general_text_yes: 'oui' |
|
150 | 150 | general_lang_name: 'FranΓ§ais' |
|
151 | 151 | general_csv_separator: ';' |
|
152 | 152 | general_csv_decimal_separator: ',' |
|
153 | 153 | general_csv_encoding: ISO-8859-1 |
|
154 | 154 | general_pdf_encoding: ISO-8859-1 |
|
155 | 155 | general_first_day_of_week: '1' |
|
156 | 156 | |
|
157 | 157 | notice_account_updated: Le compte a été mis à jour avec succès. |
|
158 | 158 | notice_account_invalid_creditentials: Identifiant ou mot de passe invalide. |
|
159 | 159 | notice_account_password_updated: Mot de passe mis à jour avec succès. |
|
160 | 160 | notice_account_wrong_password: Mot de passe incorrect |
|
161 | 161 | notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a Γ©tΓ© envoyΓ©. |
|
162 | 162 | notice_account_unknown_email: Aucun compte ne correspond Γ cette adresse. |
|
163 | 163 | notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe. |
|
164 | 164 | notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a Γ©tΓ© envoyΓ©. |
|
165 | 165 | notice_account_activated: Votre compte a Γ©tΓ© activΓ©. Vous pouvez Γ prΓ©sent vous connecter. |
|
166 | 166 | notice_successful_create: Création effectuée avec succès. |
|
167 | 167 | notice_successful_update: Mise à jour effectuée avec succès. |
|
168 | 168 | notice_successful_delete: Suppression effectuée avec succès. |
|
169 | 169 | notice_successful_connection: Connexion rΓ©ussie. |
|
170 | 170 | notice_file_not_found: "La page Γ laquelle vous souhaitez accΓ©der n'existe pas ou a Γ©tΓ© supprimΓ©e." |
|
171 | 171 | notice_locking_conflict: Les donnΓ©es ont Γ©tΓ© mises Γ jour par un autre utilisateur. Mise Γ jour impossible. |
|
172 | 172 | notice_not_authorized: "Vous n'Γͺtes pas autorisΓ© Γ accΓ©der Γ cette page." |
|
173 | 173 | notice_not_authorized_archived_project: Le projet auquel vous tentez d'accΓ©der a Γ©tΓ© archivΓ©. |
|
174 | 174 | notice_email_sent: "Un email a Γ©tΓ© envoyΓ© Γ %{value}" |
|
175 | 175 | notice_email_error: "Erreur lors de l'envoi de l'email (%{value})" |
|
176 | 176 | notice_feeds_access_key_reseted: "Votre clé d'accès aux flux RSS a été réinitialisée." |
|
177 | 177 | notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sΓ©lectionnΓ©es n'ont pas pu Γͺtre mise(s) Γ jour : %{ids}." |
|
178 | 178 | notice_no_issue_selected: "Aucune demande sΓ©lectionnΓ©e ! Cochez les demandes que vous voulez mettre Γ jour." |
|
179 | 179 | notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur." |
|
180 | 180 | notice_default_data_loaded: Paramétrage par défaut chargé avec succès. |
|
181 | 181 | notice_unable_delete_version: Impossible de supprimer cette version. |
|
182 | 182 | notice_issue_done_ratios_updated: L'avancement des demandes a Γ©tΓ© mis Γ jour. |
|
183 | 183 | notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée. |
|
184 | 184 | notice_gantt_chart_truncated: "Le diagramme a Γ©tΓ© tronquΓ© car il excΓ¨de le nombre maximal d'Γ©lΓ©ments pouvant Γͺtre affichΓ©s (%{max})" |
|
185 | 185 | |
|
186 | 186 | error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramΓ©trage : %{value}" |
|
187 | 187 | error_scm_not_found: "L'entrΓ©e et/ou la rΓ©vision demandΓ©e n'existe pas dans le dΓ©pΓ΄t." |
|
188 | 188 | error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}" |
|
189 | 189 | error_scm_annotate: "L'entrΓ©e n'existe pas ou ne peut pas Γͺtre annotΓ©e." |
|
190 | 190 | error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas Γ ce projet" |
|
191 | 191 | error_can_not_reopen_issue_on_closed_version: 'Une demande assignΓ©e Γ une version fermΓ©e ne peut pas Γͺtre rΓ©ouverte' |
|
192 | 192 | error_can_not_archive_project: "Ce projet ne peut pas Γͺtre archivΓ©" |
|
193 | 193 | error_workflow_copy_source: 'Veuillez sΓ©lectionner un tracker et/ou un rΓ΄le source' |
|
194 | 194 | error_workflow_copy_target: 'Veuillez sΓ©lectionner les trackers et rΓ΄les cibles' |
|
195 | 195 | error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu Γͺtre mis Γ jour. |
|
196 | 196 | |
|
197 | 197 | warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu Γͺtre sauvegardΓ©s." |
|
198 | 198 | |
|
199 | 199 | mail_subject_lost_password: "Votre mot de passe %{value}" |
|
200 | 200 | mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :' |
|
201 | 201 | mail_subject_register: "Activation de votre compte %{value}" |
|
202 | 202 | mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :' |
|
203 | 203 | mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter." |
|
204 | 204 | mail_body_account_information: Paramètres de connexion de votre compte |
|
205 | 205 | mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}" |
|
206 | 206 | mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nΓ©cessite votre approbation :" |
|
207 | 207 | mail_subject_reminder: "%{count} demande(s) arrivent Γ Γ©chΓ©ance (%{days})" |
|
208 | 208 | mail_body_reminder: "%{count} demande(s) qui vous sont assignΓ©es arrivent Γ Γ©chΓ©ance dans les %{days} prochains jours :" |
|
209 | 209 | mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutΓ©e" |
|
210 | 210 | mail_body_wiki_content_added: "La page wiki '%{id}' a Γ©tΓ© ajoutΓ©e par %{author}." |
|
211 | 211 | mail_subject_wiki_content_updated: "Page wiki '%{id}' mise Γ jour" |
|
212 | 212 | mail_body_wiki_content_updated: "La page wiki '%{id}' a Γ©tΓ© mise Γ jour par %{author}." |
|
213 | 213 | |
|
214 | 214 | gui_validation_error: 1 erreur |
|
215 | 215 | gui_validation_error_plural: "%{count} erreurs" |
|
216 | 216 | |
|
217 | 217 | field_name: Nom |
|
218 | 218 | field_description: Description |
|
219 | 219 | field_summary: RΓ©sumΓ© |
|
220 | 220 | field_is_required: Obligatoire |
|
221 | 221 | field_firstname: PrΓ©nom |
|
222 | 222 | field_lastname: Nom |
|
223 | 223 | field_mail: "Email " |
|
224 | 224 | field_filename: Fichier |
|
225 | 225 | field_filesize: Taille |
|
226 | 226 | field_downloads: TΓ©lΓ©chargements |
|
227 | 227 | field_author: Auteur |
|
228 | 228 | field_created_on: "Créé " |
|
229 | 229 | field_updated_on: "Mis-Γ -jour " |
|
230 | 230 | field_field_format: Format |
|
231 | 231 | field_is_for_all: Pour tous les projets |
|
232 | 232 | field_possible_values: Valeurs possibles |
|
233 | 233 | field_regexp: Expression régulière |
|
234 | 234 | field_min_length: Longueur minimum |
|
235 | 235 | field_max_length: Longueur maximum |
|
236 | 236 | field_value: Valeur |
|
237 | 237 | field_category: CatΓ©gorie |
|
238 | 238 | field_title: Titre |
|
239 | 239 | field_project: Projet |
|
240 | 240 | field_issue: Demande |
|
241 | 241 | field_status: Statut |
|
242 | 242 | field_notes: Notes |
|
243 | 243 | field_is_closed: Demande fermΓ©e |
|
244 | 244 | field_is_default: Valeur par dΓ©faut |
|
245 | 245 | field_tracker: Tracker |
|
246 | 246 | field_subject: Sujet |
|
247 | 247 | field_due_date: EchΓ©ance |
|
248 | 248 | field_assigned_to: AssignΓ© Γ |
|
249 | 249 | field_priority: PrioritΓ© |
|
250 | 250 | field_fixed_version: Version cible |
|
251 | 251 | field_user: Utilisateur |
|
252 | 252 | field_role: RΓ΄le |
|
253 | 253 | field_homepage: "Site web " |
|
254 | 254 | field_is_public: Public |
|
255 | 255 | field_parent: Sous-projet de |
|
256 | 256 | field_is_in_roadmap: Demandes affichΓ©es dans la roadmap |
|
257 | 257 | field_login: "Identifiant " |
|
258 | 258 | field_mail_notification: Notifications par mail |
|
259 | 259 | field_admin: Administrateur |
|
260 | 260 | field_last_login_on: "Dernière connexion " |
|
261 | 261 | field_language: Langue |
|
262 | 262 | field_effective_date: Date |
|
263 | 263 | field_password: Mot de passe |
|
264 | 264 | field_new_password: Nouveau mot de passe |
|
265 | 265 | field_password_confirmation: Confirmation |
|
266 | 266 | field_version: Version |
|
267 | 267 | field_type: Type |
|
268 | 268 | field_host: HΓ΄te |
|
269 | 269 | field_port: Port |
|
270 | 270 | field_account: Compte |
|
271 | 271 | field_base_dn: Base DN |
|
272 | 272 | field_attr_login: Attribut Identifiant |
|
273 | 273 | field_attr_firstname: Attribut PrΓ©nom |
|
274 | 274 | field_attr_lastname: Attribut Nom |
|
275 | 275 | field_attr_mail: Attribut Email |
|
276 | 276 | field_onthefly: CrΓ©ation des utilisateurs Γ la volΓ©e |
|
277 | 277 | field_start_date: DΓ©but |
|
278 | 278 | field_done_ratio: % rΓ©alisΓ© |
|
279 | 279 | field_auth_source: Mode d'authentification |
|
280 | 280 | field_hide_mail: Cacher mon adresse mail |
|
281 | 281 | field_comments: Commentaire |
|
282 | 282 | field_url: URL |
|
283 | 283 | field_start_page: Page de dΓ©marrage |
|
284 | 284 | field_subproject: Sous-projet |
|
285 | 285 | field_hours: Heures |
|
286 | 286 | field_activity: ActivitΓ© |
|
287 | 287 | field_spent_on: Date |
|
288 | 288 | field_identifier: Identifiant |
|
289 | 289 | field_is_filter: UtilisΓ© comme filtre |
|
290 | 290 | field_issue_to: Demande liΓ©e |
|
291 | 291 | field_delay: Retard |
|
292 | 292 | field_assignable: Demandes assignables Γ ce rΓ΄le |
|
293 | 293 | field_redirect_existing_links: Rediriger les liens existants |
|
294 | 294 | field_estimated_hours: Temps estimΓ© |
|
295 | 295 | field_column_names: Colonnes |
|
296 | 296 | field_time_zone: Fuseau horaire |
|
297 | 297 | field_searchable: UtilisΓ© pour les recherches |
|
298 | 298 | field_default_value: Valeur par dΓ©faut |
|
299 | 299 | field_comments_sorting: Afficher les commentaires |
|
300 | 300 | field_parent_title: Page parent |
|
301 | 301 | field_editable: Modifiable |
|
302 | 302 | field_watcher: Observateur |
|
303 | 303 | field_identity_url: URL OpenID |
|
304 | 304 | field_content: Contenu |
|
305 | 305 | field_group_by: Grouper par |
|
306 | 306 | field_sharing: Partage |
|
307 | 307 | field_active: Actif |
|
308 | 308 | field_parent_issue: TΓ’che parente |
|
309 | 309 | field_visible: Visible |
|
310 | field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©" | |
|
310 | 311 | |
|
311 | 312 | setting_app_title: Titre de l'application |
|
312 | 313 | setting_app_subtitle: Sous-titre de l'application |
|
313 | 314 | setting_welcome_text: Texte d'accueil |
|
314 | 315 | setting_default_language: Langue par dΓ©faut |
|
315 | 316 | setting_login_required: Authentification obligatoire |
|
316 | 317 | setting_self_registration: Inscription des nouveaux utilisateurs |
|
317 | 318 | setting_attachment_max_size: Taille max des fichiers |
|
318 | 319 | setting_issues_export_limit: Limite export demandes |
|
319 | 320 | setting_mail_from: Adresse d'Γ©mission |
|
320 | 321 | setting_bcc_recipients: Destinataires en copie cachΓ©e (cci) |
|
321 | 322 | setting_plain_text_mail: Mail texte brut (non HTML) |
|
322 | 323 | setting_host_name: Nom d'hΓ΄te et chemin |
|
323 | 324 | setting_text_formatting: Formatage du texte |
|
324 | 325 | setting_wiki_compression: Compression historique wiki |
|
325 | 326 | setting_feeds_limit: Limite du contenu des flux RSS |
|
326 | 327 | setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut |
|
327 | 328 | setting_autofetch_changesets: RΓ©cupΓ©ration auto. des commits |
|
328 | 329 | setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts |
|
329 | 330 | setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement |
|
330 | 331 | setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution |
|
331 | 332 | setting_autologin: Autologin |
|
332 | 333 | setting_date_format: Format de date |
|
333 | 334 | setting_time_format: Format d'heure |
|
334 | 335 | setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets |
|
335 | 336 | setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes |
|
336 | 337 | setting_repositories_encodings: Encodages des dΓ©pΓ΄ts |
|
337 | 338 | setting_commit_logs_encoding: Encodage des messages de commit |
|
338 | 339 | setting_emails_footer: Pied-de-page des emails |
|
339 | 340 | setting_protocol: Protocole |
|
340 | 341 | setting_per_page_options: Options d'objets affichΓ©s par page |
|
341 | 342 | setting_user_format: Format d'affichage des utilisateurs |
|
342 | 343 | setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets |
|
343 | 344 | setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux |
|
344 | 345 | setting_enabled_scm: SCM activΓ©s |
|
345 | 346 | setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes" |
|
346 | 347 | setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails" |
|
347 | 348 | setting_mail_handler_api_key: ClΓ© de protection de l'API |
|
348 | 349 | setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels |
|
349 | 350 | setting_gravatar_enabled: Afficher les Gravatar des utilisateurs |
|
350 | 351 | setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es |
|
351 | 352 | setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne |
|
352 | 353 | setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier" |
|
353 | 354 | setting_openid: "Autoriser l'authentification et l'enregistrement OpenID" |
|
354 | 355 | setting_password_min_length: Longueur minimum des mots de passe |
|
355 | 356 | setting_new_project_user_role_id: RΓ΄le donnΓ© Γ un utilisateur non-administrateur qui crΓ©e un projet |
|
356 | 357 | setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets |
|
357 | 358 | setting_issue_done_ratio: Calcul de l'avancement des demandes |
|
358 | 359 | setting_issue_done_ratio_issue_status: Utiliser le statut |
|
359 | 360 | setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©' |
|
360 | 361 | setting_rest_api_enabled: Activer l'API REST |
|
361 | 362 | setting_gravatar_default: Image Gravatar par dΓ©faut |
|
362 | 363 | setting_start_of_week: Jour de dΓ©but des calendriers |
|
363 | 364 | setting_cache_formatted_text: Mettre en cache le texte formatΓ© |
|
364 | 365 | setting_commit_logtime_enabled: Permettre la saisie de temps |
|
365 | 366 | setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi |
|
366 | 367 | setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt |
|
367 | 368 | |
|
368 | 369 | permission_add_project: CrΓ©er un projet |
|
369 | 370 | permission_add_subprojects: CrΓ©er des sous-projets |
|
370 | 371 | permission_edit_project: Modifier le projet |
|
371 | 372 | permission_select_project_modules: Choisir les modules |
|
372 | 373 | permission_manage_members: GΓ©rer les membres |
|
373 | 374 | permission_manage_versions: GΓ©rer les versions |
|
374 | 375 | permission_manage_categories: GΓ©rer les catΓ©gories de demandes |
|
375 | 376 | permission_view_issues: Voir les demandes |
|
376 | 377 | permission_add_issues: CrΓ©er des demandes |
|
377 | 378 | permission_edit_issues: Modifier les demandes |
|
378 | 379 | permission_manage_issue_relations: GΓ©rer les relations |
|
379 | 380 | permission_add_issue_notes: Ajouter des notes |
|
380 | 381 | permission_edit_issue_notes: Modifier les notes |
|
381 | 382 | permission_edit_own_issue_notes: Modifier ses propres notes |
|
382 | 383 | permission_move_issues: DΓ©placer les demandes |
|
383 | 384 | permission_delete_issues: Supprimer les demandes |
|
384 | 385 | permission_manage_public_queries: GΓ©rer les requΓͺtes publiques |
|
385 | 386 | permission_save_queries: Sauvegarder les requΓͺtes |
|
386 | 387 | permission_view_gantt: Voir le gantt |
|
387 | 388 | permission_view_calendar: Voir le calendrier |
|
388 | 389 | permission_view_issue_watchers: Voir la liste des observateurs |
|
389 | 390 | permission_add_issue_watchers: Ajouter des observateurs |
|
390 | 391 | permission_delete_issue_watchers: Supprimer des observateurs |
|
391 | 392 | permission_log_time: Saisir le temps passΓ© |
|
392 | 393 | permission_view_time_entries: Voir le temps passΓ© |
|
393 | 394 | permission_edit_time_entries: Modifier les temps passΓ©s |
|
394 | 395 | permission_edit_own_time_entries: Modifier son propre temps passΓ© |
|
395 | 396 | permission_manage_news: GΓ©rer les annonces |
|
396 | 397 | permission_comment_news: Commenter les annonces |
|
397 | 398 | permission_manage_documents: GΓ©rer les documents |
|
398 | 399 | permission_view_documents: Voir les documents |
|
399 | 400 | permission_manage_files: GΓ©rer les fichiers |
|
400 | 401 | permission_view_files: Voir les fichiers |
|
401 | 402 | permission_manage_wiki: GΓ©rer le wiki |
|
402 | 403 | permission_rename_wiki_pages: Renommer les pages |
|
403 | 404 | permission_delete_wiki_pages: Supprimer les pages |
|
404 | 405 | permission_view_wiki_pages: Voir le wiki |
|
405 | 406 | permission_view_wiki_edits: "Voir l'historique des modifications" |
|
406 | 407 | permission_edit_wiki_pages: Modifier les pages |
|
407 | 408 | permission_delete_wiki_pages_attachments: Supprimer les fichiers joints |
|
408 | 409 | permission_protect_wiki_pages: ProtΓ©ger les pages |
|
409 | 410 | permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources |
|
410 | 411 | permission_browse_repository: Parcourir les sources |
|
411 | 412 | permission_view_changesets: Voir les rΓ©visions |
|
412 | 413 | permission_commit_access: Droit de commit |
|
413 | 414 | permission_manage_boards: GΓ©rer les forums |
|
414 | 415 | permission_view_messages: Voir les messages |
|
415 | 416 | permission_add_messages: Poster un message |
|
416 | 417 | permission_edit_messages: Modifier les messages |
|
417 | 418 | permission_edit_own_messages: Modifier ses propres messages |
|
418 | 419 | permission_delete_messages: Supprimer les messages |
|
419 | 420 | permission_delete_own_messages: Supprimer ses propres messages |
|
420 | 421 | permission_export_wiki_pages: Exporter les pages |
|
421 | 422 | permission_manage_project_activities: GΓ©rer les activitΓ©s |
|
422 | 423 | permission_manage_subtasks: GΓ©rer les sous-tΓ’ches |
|
423 | 424 | |
|
424 | 425 | project_module_issue_tracking: Suivi des demandes |
|
425 | 426 | project_module_time_tracking: Suivi du temps passΓ© |
|
426 | 427 | project_module_news: Publication d'annonces |
|
427 | 428 | project_module_documents: Publication de documents |
|
428 | 429 | project_module_files: Publication de fichiers |
|
429 | 430 | project_module_wiki: Wiki |
|
430 | 431 | project_module_repository: DΓ©pΓ΄t de sources |
|
431 | 432 | project_module_boards: Forums de discussion |
|
432 | 433 | |
|
433 | 434 | label_user: Utilisateur |
|
434 | 435 | label_user_plural: Utilisateurs |
|
435 | 436 | label_user_new: Nouvel utilisateur |
|
436 | 437 | label_user_anonymous: Anonyme |
|
437 | 438 | label_project: Projet |
|
438 | 439 | label_project_new: Nouveau projet |
|
439 | 440 | label_project_plural: Projets |
|
440 | 441 | label_x_projects: |
|
441 | 442 | zero: aucun projet |
|
442 | 443 | one: un projet |
|
443 | 444 | other: "%{count} projets" |
|
444 | 445 | label_project_all: Tous les projets |
|
445 | 446 | label_project_latest: Derniers projets |
|
446 | 447 | label_issue: Demande |
|
447 | 448 | label_issue_new: Nouvelle demande |
|
448 | 449 | label_issue_plural: Demandes |
|
449 | 450 | label_issue_view_all: Voir toutes les demandes |
|
450 | 451 | label_issue_added: Demande ajoutΓ©e |
|
451 | 452 | label_issue_updated: Demande mise Γ jour |
|
452 | 453 | label_issue_note_added: Note ajoutΓ©e |
|
453 | 454 | label_issue_status_updated: Statut changΓ© |
|
454 | 455 | label_issue_priority_updated: PrioritΓ© changΓ©e |
|
455 | 456 | label_issues_by: "Demandes par %{value}" |
|
456 | 457 | label_document: Document |
|
457 | 458 | label_document_new: Nouveau document |
|
458 | 459 | label_document_plural: Documents |
|
459 | 460 | label_document_added: Document ajoutΓ© |
|
460 | 461 | label_role: RΓ΄le |
|
461 | 462 | label_role_plural: RΓ΄les |
|
462 | 463 | label_role_new: Nouveau rΓ΄le |
|
463 | 464 | label_role_and_permissions: RΓ΄les et permissions |
|
464 | 465 | label_member: Membre |
|
465 | 466 | label_member_new: Nouveau membre |
|
466 | 467 | label_member_plural: Membres |
|
467 | 468 | label_tracker: Tracker |
|
468 | 469 | label_tracker_plural: Trackers |
|
469 | 470 | label_tracker_new: Nouveau tracker |
|
470 | 471 | label_workflow: Workflow |
|
471 | 472 | label_issue_status: Statut de demandes |
|
472 | 473 | label_issue_status_plural: Statuts de demandes |
|
473 | 474 | label_issue_status_new: Nouveau statut |
|
474 | 475 | label_issue_category: CatΓ©gorie de demandes |
|
475 | 476 | label_issue_category_plural: CatΓ©gories de demandes |
|
476 | 477 | label_issue_category_new: Nouvelle catΓ©gorie |
|
477 | 478 | label_custom_field: Champ personnalisΓ© |
|
478 | 479 | label_custom_field_plural: Champs personnalisΓ©s |
|
479 | 480 | label_custom_field_new: Nouveau champ personnalisΓ© |
|
480 | 481 | label_enumerations: Listes de valeurs |
|
481 | 482 | label_enumeration_new: Nouvelle valeur |
|
482 | 483 | label_information: Information |
|
483 | 484 | label_information_plural: Informations |
|
484 | 485 | label_please_login: Identification |
|
485 | 486 | label_register: S'enregistrer |
|
486 | 487 | label_login_with_open_id_option: S'authentifier avec OpenID |
|
487 | 488 | label_password_lost: Mot de passe perdu |
|
488 | 489 | label_home: Accueil |
|
489 | 490 | label_my_page: Ma page |
|
490 | 491 | label_my_account: Mon compte |
|
491 | 492 | label_my_projects: Mes projets |
|
492 | 493 | label_my_page_block: Blocs disponibles |
|
493 | 494 | label_administration: Administration |
|
494 | 495 | label_login: Connexion |
|
495 | 496 | label_logout: DΓ©connexion |
|
496 | 497 | label_help: Aide |
|
497 | 498 | label_reported_issues: "Demandes soumises " |
|
498 | 499 | label_assigned_to_me_issues: Demandes qui me sont assignΓ©es |
|
499 | 500 | label_last_login: "Dernière connexion " |
|
500 | 501 | label_registered_on: "Inscrit le " |
|
501 | 502 | label_activity: ActivitΓ© |
|
502 | 503 | label_overall_activity: ActivitΓ© globale |
|
503 | 504 | label_user_activity: "ActivitΓ© de %{value}" |
|
504 | 505 | label_new: Nouveau |
|
505 | 506 | label_logged_as: ConnectΓ© en tant que |
|
506 | 507 | label_environment: Environnement |
|
507 | 508 | label_authentication: Authentification |
|
508 | 509 | label_auth_source: Mode d'authentification |
|
509 | 510 | label_auth_source_new: Nouveau mode d'authentification |
|
510 | 511 | label_auth_source_plural: Modes d'authentification |
|
511 | 512 | label_subproject_plural: Sous-projets |
|
512 | 513 | label_subproject_new: Nouveau sous-projet |
|
513 | 514 | label_and_its_subprojects: "%{value} et ses sous-projets" |
|
514 | 515 | label_min_max_length: Longueurs mini - maxi |
|
515 | 516 | label_list: Liste |
|
516 | 517 | label_date: Date |
|
517 | 518 | label_integer: Entier |
|
518 | 519 | label_float: Nombre dΓ©cimal |
|
519 | 520 | label_boolean: BoolΓ©en |
|
520 | 521 | label_string: Texte |
|
521 | 522 | label_text: Texte long |
|
522 | 523 | label_attribute: Attribut |
|
523 | 524 | label_attribute_plural: Attributs |
|
524 | 525 | label_download: "%{count} tΓ©lΓ©chargement" |
|
525 | 526 | label_download_plural: "%{count} tΓ©lΓ©chargements" |
|
526 | 527 | label_no_data: Aucune donnΓ©e Γ afficher |
|
527 | 528 | label_change_status: Changer le statut |
|
528 | 529 | label_history: Historique |
|
529 | 530 | label_attachment: Fichier |
|
530 | 531 | label_attachment_new: Nouveau fichier |
|
531 | 532 | label_attachment_delete: Supprimer le fichier |
|
532 | 533 | label_attachment_plural: Fichiers |
|
533 | 534 | label_file_added: Fichier ajoutΓ© |
|
534 | 535 | label_report: Rapport |
|
535 | 536 | label_report_plural: Rapports |
|
536 | 537 | label_news: Annonce |
|
537 | 538 | label_news_new: Nouvelle annonce |
|
538 | 539 | label_news_plural: Annonces |
|
539 | 540 | label_news_latest: Dernières annonces |
|
540 | 541 | label_news_view_all: Voir toutes les annonces |
|
541 | 542 | label_news_added: Annonce ajoutΓ©e |
|
542 | 543 | label_settings: Configuration |
|
543 | 544 | label_overview: AperΓ§u |
|
544 | 545 | label_version: Version |
|
545 | 546 | label_version_new: Nouvelle version |
|
546 | 547 | label_version_plural: Versions |
|
547 | 548 | label_confirmation: Confirmation |
|
548 | 549 | label_export_to: 'Formats disponibles :' |
|
549 | 550 | label_read: Lire... |
|
550 | 551 | label_public_projects: Projets publics |
|
551 | 552 | label_open_issues: ouvert |
|
552 | 553 | label_open_issues_plural: ouverts |
|
553 | 554 | label_closed_issues: fermΓ© |
|
554 | 555 | label_closed_issues_plural: fermΓ©s |
|
555 | 556 | label_x_open_issues_abbr_on_total: |
|
556 | 557 | zero: 0 ouvert sur %{total} |
|
557 | 558 | one: 1 ouvert sur %{total} |
|
558 | 559 | other: "%{count} ouverts sur %{total}" |
|
559 | 560 | label_x_open_issues_abbr: |
|
560 | 561 | zero: 0 ouvert |
|
561 | 562 | one: 1 ouvert |
|
562 | 563 | other: "%{count} ouverts" |
|
563 | 564 | label_x_closed_issues_abbr: |
|
564 | 565 | zero: 0 fermΓ© |
|
565 | 566 | one: 1 fermΓ© |
|
566 | 567 | other: "%{count} fermΓ©s" |
|
567 | 568 | label_total: Total |
|
568 | 569 | label_permissions: Permissions |
|
569 | 570 | label_current_status: Statut actuel |
|
570 | 571 | label_new_statuses_allowed: Nouveaux statuts autorisΓ©s |
|
571 | 572 | label_all: tous |
|
572 | 573 | label_none: aucun |
|
573 | 574 | label_nobody: personne |
|
574 | 575 | label_next: Suivant |
|
575 | 576 | label_previous: PrΓ©cΓ©dent |
|
576 | 577 | label_used_by: UtilisΓ© par |
|
577 | 578 | label_details: DΓ©tails |
|
578 | 579 | label_add_note: Ajouter une note |
|
579 | 580 | label_per_page: Par page |
|
580 | 581 | label_calendar: Calendrier |
|
581 | 582 | label_months_from: mois depuis |
|
582 | 583 | label_gantt: Gantt |
|
583 | 584 | label_internal: Interne |
|
584 | 585 | label_last_changes: "%{count} derniers changements" |
|
585 | 586 | label_change_view_all: Voir tous les changements |
|
586 | 587 | label_personalize_page: Personnaliser cette page |
|
587 | 588 | label_comment: Commentaire |
|
588 | 589 | label_comment_plural: Commentaires |
|
589 | 590 | label_x_comments: |
|
590 | 591 | zero: aucun commentaire |
|
591 | 592 | one: un commentaire |
|
592 | 593 | other: "%{count} commentaires" |
|
593 | 594 | label_comment_add: Ajouter un commentaire |
|
594 | 595 | label_comment_added: Commentaire ajoutΓ© |
|
595 | 596 | label_comment_delete: Supprimer les commentaires |
|
596 | 597 | label_query: Rapport personnalisΓ© |
|
597 | 598 | label_query_plural: Rapports personnalisΓ©s |
|
598 | 599 | label_query_new: Nouveau rapport |
|
599 | 600 | label_filter_add: "Ajouter le filtre " |
|
600 | 601 | label_filter_plural: Filtres |
|
601 | 602 | label_equals: Γ©gal |
|
602 | 603 | label_not_equals: diffΓ©rent |
|
603 | 604 | label_in_less_than: dans moins de |
|
604 | 605 | label_in_more_than: dans plus de |
|
605 | 606 | label_in: dans |
|
606 | 607 | label_today: aujourd'hui |
|
607 | 608 | label_all_time: toute la pΓ©riode |
|
608 | 609 | label_yesterday: hier |
|
609 | 610 | label_this_week: cette semaine |
|
610 | 611 | label_last_week: la semaine dernière |
|
611 | 612 | label_last_n_days: "les %{count} derniers jours" |
|
612 | 613 | label_this_month: ce mois-ci |
|
613 | 614 | label_last_month: le mois dernier |
|
614 | 615 | label_this_year: cette annΓ©e |
|
615 | 616 | label_date_range: PΓ©riode |
|
616 | 617 | label_less_than_ago: il y a moins de |
|
617 | 618 | label_more_than_ago: il y a plus de |
|
618 | 619 | label_ago: il y a |
|
619 | 620 | label_contains: contient |
|
620 | 621 | label_not_contains: ne contient pas |
|
621 | 622 | label_day_plural: jours |
|
622 | 623 | label_repository: DΓ©pΓ΄t |
|
623 | 624 | label_repository_plural: DΓ©pΓ΄ts |
|
624 | 625 | label_browse: Parcourir |
|
625 | 626 | label_modification: "%{count} modification" |
|
626 | 627 | label_modification_plural: "%{count} modifications" |
|
627 | 628 | label_revision: "RΓ©vision " |
|
628 | 629 | label_revision_plural: RΓ©visions |
|
629 | 630 | label_associated_revisions: RΓ©visions associΓ©es |
|
630 | 631 | label_added: ajoutΓ© |
|
631 | 632 | label_modified: modifiΓ© |
|
632 | 633 | label_copied: copiΓ© |
|
633 | 634 | label_renamed: renommΓ© |
|
634 | 635 | label_deleted: supprimΓ© |
|
635 | 636 | label_latest_revision: Dernière révision |
|
636 | 637 | label_latest_revision_plural: Dernières révisions |
|
637 | 638 | label_view_revisions: Voir les rΓ©visions |
|
638 | 639 | label_max_size: Taille maximale |
|
639 | 640 | label_sort_highest: Remonter en premier |
|
640 | 641 | label_sort_higher: Remonter |
|
641 | 642 | label_sort_lower: Descendre |
|
642 | 643 | label_sort_lowest: Descendre en dernier |
|
643 | 644 | label_roadmap: Roadmap |
|
644 | 645 | label_roadmap_due_in: "ΓchΓ©ance dans %{value}" |
|
645 | 646 | label_roadmap_overdue: "En retard de %{value}" |
|
646 | 647 | label_roadmap_no_issues: Aucune demande pour cette version |
|
647 | 648 | label_search: "Recherche " |
|
648 | 649 | label_result_plural: RΓ©sultats |
|
649 | 650 | label_all_words: Tous les mots |
|
650 | 651 | label_wiki: Wiki |
|
651 | 652 | label_wiki_edit: RΓ©vision wiki |
|
652 | 653 | label_wiki_edit_plural: RΓ©visions wiki |
|
653 | 654 | label_wiki_page: Page wiki |
|
654 | 655 | label_wiki_page_plural: Pages wiki |
|
655 | 656 | label_index_by_title: Index par titre |
|
656 | 657 | label_index_by_date: Index par date |
|
657 | 658 | label_current_version: Version actuelle |
|
658 | 659 | label_preview: PrΓ©visualisation |
|
659 | 660 | label_feed_plural: Flux RSS |
|
660 | 661 | label_changes_details: DΓ©tails de tous les changements |
|
661 | 662 | label_issue_tracking: Suivi des demandes |
|
662 | 663 | label_spent_time: Temps passΓ© |
|
663 | 664 | label_f_hour: "%{value} heure" |
|
664 | 665 | label_f_hour_plural: "%{value} heures" |
|
665 | 666 | label_time_tracking: Suivi du temps |
|
666 | 667 | label_change_plural: Changements |
|
667 | 668 | label_statistics: Statistiques |
|
668 | 669 | label_commits_per_month: Commits par mois |
|
669 | 670 | label_commits_per_author: Commits par auteur |
|
670 | 671 | label_view_diff: Voir les diffΓ©rences |
|
671 | 672 | label_diff_inline: en ligne |
|
672 | 673 | label_diff_side_by_side: cΓ΄te Γ cΓ΄te |
|
673 | 674 | label_options: Options |
|
674 | 675 | label_copy_workflow_from: Copier le workflow de |
|
675 | 676 | label_permissions_report: Synthèse des permissions |
|
676 | 677 | label_watched_issues: Demandes surveillΓ©es |
|
677 | 678 | label_related_issues: Demandes liΓ©es |
|
678 | 679 | label_applied_status: Statut appliquΓ© |
|
679 | 680 | label_loading: Chargement... |
|
680 | 681 | label_relation_new: Nouvelle relation |
|
681 | 682 | label_relation_delete: Supprimer la relation |
|
682 | 683 | label_relates_to: liΓ© Γ |
|
683 | 684 | label_duplicates: duplique |
|
684 | 685 | label_duplicated_by: dupliquΓ© par |
|
685 | 686 | label_blocks: bloque |
|
686 | 687 | label_blocked_by: bloquΓ© par |
|
687 | 688 | label_precedes: précède |
|
688 | 689 | label_follows: suit |
|
689 | 690 | label_end_to_start: fin Γ dΓ©but |
|
690 | 691 | label_end_to_end: fin Γ fin |
|
691 | 692 | label_start_to_start: dΓ©but Γ dΓ©but |
|
692 | 693 | label_start_to_end: dΓ©but Γ fin |
|
693 | 694 | label_stay_logged_in: Rester connectΓ© |
|
694 | 695 | label_disabled: dΓ©sactivΓ© |
|
695 | 696 | label_show_completed_versions: Voir les versions passΓ©es |
|
696 | 697 | label_me: moi |
|
697 | 698 | label_board: Forum |
|
698 | 699 | label_board_new: Nouveau forum |
|
699 | 700 | label_board_plural: Forums |
|
700 | 701 | label_topic_plural: Discussions |
|
701 | 702 | label_message_plural: Messages |
|
702 | 703 | label_message_last: Dernier message |
|
703 | 704 | label_message_new: Nouveau message |
|
704 | 705 | label_message_posted: Message ajoutΓ© |
|
705 | 706 | label_reply_plural: RΓ©ponses |
|
706 | 707 | label_send_information: Envoyer les informations Γ l'utilisateur |
|
707 | 708 | label_year: AnnΓ©e |
|
708 | 709 | label_month: Mois |
|
709 | 710 | label_week: Semaine |
|
710 | 711 | label_date_from: Du |
|
711 | 712 | label_date_to: Au |
|
712 | 713 | label_language_based: BasΓ© sur la langue de l'utilisateur |
|
713 | 714 | label_sort_by: "Trier par %{value}" |
|
714 | 715 | label_send_test_email: Envoyer un email de test |
|
715 | 716 | label_feeds_access_key_created_on: "Clé d'accès RSS créée il y a %{value}" |
|
716 | 717 | label_module_plural: Modules |
|
717 | 718 | label_added_time_by: "AjoutΓ© par %{author} il y a %{age}" |
|
718 | 719 | label_updated_time_by: "Mis Γ jour par %{author} il y a %{age}" |
|
719 | 720 | label_updated_time: "Mis Γ jour il y a %{value}" |
|
720 | 721 | label_jump_to_a_project: Aller Γ un projet... |
|
721 | 722 | label_file_plural: Fichiers |
|
722 | 723 | label_changeset_plural: RΓ©visions |
|
723 | 724 | label_default_columns: Colonnes par dΓ©faut |
|
724 | 725 | label_no_change_option: (Pas de changement) |
|
725 | 726 | label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es |
|
726 | 727 | label_theme: Thème |
|
727 | 728 | label_default: DΓ©faut |
|
728 | 729 | label_search_titles_only: Uniquement dans les titres |
|
729 | 730 | label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets" |
|
730 | 731 | label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..." |
|
731 | 732 | label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue" |
|
732 | 733 | label_registration_activation_by_email: activation du compte par email |
|
733 | 734 | label_registration_manual_activation: activation manuelle du compte |
|
734 | 735 | label_registration_automatic_activation: activation automatique du compte |
|
735 | 736 | label_display_per_page: "Par page : %{value}" |
|
736 | 737 | label_age: Γge |
|
737 | 738 | label_change_properties: Changer les propriΓ©tΓ©s |
|
738 | 739 | label_general: GΓ©nΓ©ral |
|
739 | 740 | label_more: Plus |
|
740 | 741 | label_scm: SCM |
|
741 | 742 | label_plugins: Plugins |
|
742 | 743 | label_ldap_authentication: Authentification LDAP |
|
743 | 744 | label_downloads_abbr: D/L |
|
744 | 745 | label_optional_description: Description facultative |
|
745 | 746 | label_add_another_file: Ajouter un autre fichier |
|
746 | 747 | label_preferences: PrΓ©fΓ©rences |
|
747 | 748 | label_chronological_order: Dans l'ordre chronologique |
|
748 | 749 | label_reverse_chronological_order: Dans l'ordre chronologique inverse |
|
749 | 750 | label_planning: Planning |
|
750 | 751 | label_incoming_emails: Emails entrants |
|
751 | 752 | label_generate_key: GΓ©nΓ©rer une clΓ© |
|
752 | 753 | label_issue_watchers: Observateurs |
|
753 | 754 | label_example: Exemple |
|
754 | 755 | label_display: Affichage |
|
755 | 756 | label_sort: Tri |
|
756 | 757 | label_ascending: Croissant |
|
757 | 758 | label_descending: DΓ©croissant |
|
758 | 759 | label_date_from_to: Du %{start} au %{end} |
|
759 | 760 | label_wiki_content_added: Page wiki ajoutΓ©e |
|
760 | 761 | label_wiki_content_updated: Page wiki mise Γ jour |
|
761 | 762 | label_group_plural: Groupes |
|
762 | 763 | label_group: Groupe |
|
763 | 764 | label_group_new: Nouveau groupe |
|
764 | 765 | label_time_entry_plural: Temps passΓ© |
|
765 | 766 | label_version_sharing_none: Non partagΓ© |
|
766 | 767 | label_version_sharing_descendants: Avec les sous-projets |
|
767 | 768 | label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie |
|
768 | 769 | label_version_sharing_tree: Avec tout l'arbre |
|
769 | 770 | label_version_sharing_system: Avec tous les projets |
|
770 | 771 | label_copy_source: Source |
|
771 | 772 | label_copy_target: Cible |
|
772 | 773 | label_copy_same_as_target: Comme la cible |
|
773 | 774 | label_update_issue_done_ratios: Mettre Γ jour l'avancement des demandes |
|
774 | 775 | label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker |
|
775 | 776 | label_api_access_key: Clé d'accès API |
|
776 | 777 | label_api_access_key_created_on: Clé d'accès API créée il y a %{value} |
|
777 | 778 | label_feeds_access_key: Clé d'accès RSS |
|
778 | 779 | label_missing_api_access_key: Clé d'accès API manquante |
|
779 | 780 | label_missing_feeds_access_key: Clé d'accès RSS manquante |
|
780 | 781 | label_close_versions: Fermer les versions terminΓ©es |
|
781 | 782 | label_revision_id: Revision %{value} |
|
782 | 783 | label_profile: Profil |
|
783 | 784 | label_subtask_plural: Sous-tΓ’ches |
|
784 | 785 | label_project_copy_notifications: Envoyer les notifications durant la copie du projet |
|
785 | 786 | label_principal_search: "Rechercher un utilisateur ou un groupe :" |
|
786 | 787 | label_user_search: "Rechercher un utilisateur :" |
|
787 | 788 | |
|
788 | 789 | button_login: Connexion |
|
789 | 790 | button_submit: Soumettre |
|
790 | 791 | button_save: Sauvegarder |
|
791 | 792 | button_check_all: Tout cocher |
|
792 | 793 | button_uncheck_all: Tout dΓ©cocher |
|
793 | 794 | button_delete: Supprimer |
|
794 | 795 | button_create: CrΓ©er |
|
795 | 796 | button_create_and_continue: CrΓ©er et continuer |
|
796 | 797 | button_test: Tester |
|
797 | 798 | button_edit: Modifier |
|
798 | 799 | button_add: Ajouter |
|
799 | 800 | button_change: Changer |
|
800 | 801 | button_apply: Appliquer |
|
801 | 802 | button_clear: Effacer |
|
802 | 803 | button_lock: Verrouiller |
|
803 | 804 | button_unlock: DΓ©verrouiller |
|
804 | 805 | button_download: TΓ©lΓ©charger |
|
805 | 806 | button_list: Lister |
|
806 | 807 | button_view: Voir |
|
807 | 808 | button_move: DΓ©placer |
|
808 | 809 | button_move_and_follow: DΓ©placer et suivre |
|
809 | 810 | button_back: Retour |
|
810 | 811 | button_cancel: Annuler |
|
811 | 812 | button_activate: Activer |
|
812 | 813 | button_sort: Trier |
|
813 | 814 | button_log_time: Saisir temps |
|
814 | 815 | button_rollback: Revenir Γ cette version |
|
815 | 816 | button_watch: Surveiller |
|
816 | 817 | button_unwatch: Ne plus surveiller |
|
817 | 818 | button_reply: RΓ©pondre |
|
818 | 819 | button_archive: Archiver |
|
819 | 820 | button_unarchive: DΓ©sarchiver |
|
820 | 821 | button_reset: RΓ©initialiser |
|
821 | 822 | button_rename: Renommer |
|
822 | 823 | button_change_password: Changer de mot de passe |
|
823 | 824 | button_copy: Copier |
|
824 | 825 | button_copy_and_follow: Copier et suivre |
|
825 | 826 | button_annotate: Annoter |
|
826 | 827 | button_update: Mettre Γ jour |
|
827 | 828 | button_configure: Configurer |
|
828 | 829 | button_quote: Citer |
|
829 | 830 | button_duplicate: Dupliquer |
|
830 | 831 | button_show: Afficher |
|
831 | 832 | |
|
832 | 833 | status_active: actif |
|
833 | 834 | status_registered: enregistrΓ© |
|
834 | 835 | status_locked: verrouillΓ© |
|
835 | 836 | |
|
836 | 837 | version_status_open: ouvert |
|
837 | 838 | version_status_locked: verrouillΓ© |
|
838 | 839 | version_status_closed: fermΓ© |
|
839 | 840 | |
|
840 | 841 | text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e |
|
841 | 842 | text_regexp_info: ex. ^[A-Z0-9]+$ |
|
842 | 843 | text_min_max_length_info: 0 pour aucune restriction |
|
843 | 844 | text_project_destroy_confirmation: Γtes-vous sΓ»r de vouloir supprimer ce projet et toutes ses donnΓ©es ? |
|
844 | 845 | text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s." |
|
845 | 846 | text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow |
|
846 | 847 | text_are_you_sure: Γtes-vous sΓ»r ? |
|
847 | 848 | text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour |
|
848 | 849 | text_tip_issue_end_day: tΓ’che finissant ce jour |
|
849 | 850 | text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour |
|
850 | 851 | 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Γ©.' |
|
851 | 852 | text_caracters_maximum: "%{count} caractères maximum." |
|
852 | 853 | text_caracters_minimum: "%{count} caractères minimum." |
|
853 | 854 | text_length_between: "Longueur comprise entre %{min} et %{max} caractères." |
|
854 | 855 | text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker |
|
855 | 856 | text_unallowed_characters: Caractères non autorisés |
|
856 | 857 | text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules). |
|
857 | 858 | text_line_separated: Plusieurs valeurs possibles (une valeur par ligne). |
|
858 | 859 | text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits |
|
859 | 860 | text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}." |
|
860 | 861 | text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ jour par %{author}." |
|
861 | 862 | text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ? |
|
862 | 863 | text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ cette catΓ©gorie. Que voulez-vous faire ?" |
|
863 | 864 | text_issue_category_destroy_assignments: N'affecter les demandes Γ aucune autre catΓ©gorie |
|
864 | 865 | text_issue_category_reassign_to: RΓ©affecter les demandes Γ cette catΓ©gorie |
|
865 | 866 | 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)." |
|
866 | 867 | 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Γ©." |
|
867 | 868 | text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut |
|
868 | 869 | text_status_changed_by_changeset: "AppliquΓ© par commit %{value}." |
|
869 | 870 | text_time_logged_by_changeset: "AppliquΓ© par commit %{value}" |
|
870 | 871 | text_issues_destroy_confirmation: 'Γtes-vous sΓ»r de vouloir supprimer le(s) demandes(s) selectionnΓ©e(s) ?' |
|
871 | 872 | text_select_project_modules: 'SΓ©lectionner les modules Γ activer pour ce projet :' |
|
872 | 873 | text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ© |
|
873 | 874 | text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture |
|
874 | 875 | text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture |
|
875 | 876 | text_rmagick_available: Bibliothèque RMagick présente (optionnelle) |
|
876 | 877 | text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ supprimer. Que voulez-vous faire ?" |
|
877 | 878 | text_destroy_time_entries: Supprimer les heures |
|
878 | 879 | text_assign_time_entries_to_project: Reporter les heures sur le projet |
|
879 | 880 | text_reassign_time_entries: 'Reporter les heures sur cette demande:' |
|
880 | 881 | text_user_wrote: "%{value} a Γ©crit :" |
|
881 | 882 | text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ %{count} objets." |
|
882 | 883 | text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ cette valeur:' |
|
883 | 884 | text_email_delivery_not_configured: "L'envoi de mail n'est pas configurΓ©, les notifications sont dΓ©sactivΓ©es.\nConfigurez votre serveur SMTP dans config/configuration.yml et redΓ©marrez l'application pour les activer." |
|
884 | 885 | 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." |
|
885 | 886 | text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.' |
|
886 | 887 | text_custom_field_possible_values_info: 'Une ligne par valeur' |
|
887 | 888 | text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?" |
|
888 | 889 | text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines" |
|
889 | 890 | text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes" |
|
890 | 891 | text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ cette page" |
|
891 | 892 | 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 ?" |
|
893 | text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page." | |
|
892 | 894 | |
|
893 | 895 | default_role_manager: "Manager " |
|
894 | 896 | default_role_developer: "DΓ©veloppeur " |
|
895 | 897 | default_role_reporter: "Rapporteur " |
|
896 | 898 | default_tracker_bug: Anomalie |
|
897 | 899 | default_tracker_feature: Evolution |
|
898 | 900 | default_tracker_support: Assistance |
|
899 | 901 | default_issue_status_new: Nouveau |
|
900 | 902 | default_issue_status_in_progress: En cours |
|
901 | 903 | default_issue_status_resolved: RΓ©solu |
|
902 | 904 | default_issue_status_feedback: Commentaire |
|
903 | 905 | default_issue_status_closed: FermΓ© |
|
904 | 906 | default_issue_status_rejected: RejetΓ© |
|
905 | 907 | default_doc_category_user: Documentation utilisateur |
|
906 | 908 | default_doc_category_tech: Documentation technique |
|
907 | 909 | default_priority_low: Bas |
|
908 | 910 | default_priority_normal: Normal |
|
909 | 911 | default_priority_high: Haut |
|
910 | 912 | default_priority_urgent: Urgent |
|
911 | 913 | default_priority_immediate: ImmΓ©diat |
|
912 | 914 | default_activity_design: Conception |
|
913 | 915 | default_activity_development: DΓ©veloppement |
|
914 | 916 | |
|
915 | 917 | enumeration_issue_priorities: PrioritΓ©s des demandes |
|
916 | 918 | enumeration_doc_categories: CatΓ©gories des documents |
|
917 | 919 | enumeration_activities: ActivitΓ©s (suivi du temps) |
|
918 | 920 | label_greater_or_equal: ">=" |
|
919 | 921 | label_less_or_equal: "<=" |
|
920 | 922 | label_view_all_revisions: Voir toutes les rΓ©visions |
|
921 | 923 | label_tag: Tag |
|
922 | 924 | label_branch: Branche |
|
923 | 925 | error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ ce projet. VΓ©rifier la configuration du projet." |
|
924 | 926 | error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)." |
|
925 | 927 | text_journal_changed: "%{label} changΓ© de %{old} Γ %{new}" |
|
926 | 928 | text_journal_set_to: "%{label} mis Γ %{value}" |
|
927 | 929 | text_journal_deleted: "%{label} %{old} supprimΓ©" |
|
928 | 930 | text_journal_added: "%{label} %{value} ajoutΓ©" |
|
929 | 931 | enumeration_system_activity: Activité système |
|
930 | 932 | label_board_sticky: Sticky |
|
931 | 933 | label_board_locked: VerrouillΓ© |
|
932 | 934 | error_unable_delete_issue_status: Impossible de supprimer le statut de demande |
|
933 | 935 | error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ© |
|
934 | 936 | error_unable_to_connect: Connexion impossible (%{value}) |
|
935 | 937 | error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©. |
|
936 | 938 | error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©. |
|
937 | 939 | field_principal: Principal |
|
938 | 940 | notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}." |
|
939 | 941 | text_zoom_out: Zoom arrière |
|
940 | 942 | text_zoom_in: Zoom avant |
|
941 | 943 | notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©. |
|
942 | 944 | label_overall_spent_time: Temps passΓ© global |
|
943 | 945 | field_time_entries: Log time |
|
944 | 946 | project_module_gantt: Gantt |
|
945 | 947 | project_module_calendar: Calendrier |
|
946 | 948 | button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}" |
|
947 | 949 | text_are_you_sure_with_children: Supprimer la demande et toutes ses sous-demandes ? |
|
948 | 950 | field_text: Champ texte |
|
949 | 951 | label_user_mail_option_only_owner: Seulement pour ce que j'ai créé |
|
950 | 952 | setting_default_notification_option: Option de notification par dΓ©faut |
|
951 | 953 | label_user_mail_option_only_my_events: Seulement pour ce que je surveille |
|
952 | 954 | label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ© |
|
953 | 955 | label_user_mail_option_none: Aucune notification |
|
954 | 956 | field_member_of_group: Groupe de l'assignΓ© |
|
955 | 957 | field_assigned_to_role: RΓ΄le de l'assignΓ© |
|
956 | 958 | setting_emails_header: Emails header |
@@ -1,279 +1,322 | |||
|
1 | 1 | /* redMine - project management software |
|
2 | 2 | Copyright (C) 2006-2008 Jean-Philippe Lang */ |
|
3 | 3 | |
|
4 | 4 | function checkAll (id, checked) { |
|
5 | 5 | var els = Element.descendants(id); |
|
6 | 6 | for (var i = 0; i < els.length; i++) { |
|
7 | 7 | if (els[i].disabled==false) { |
|
8 | 8 | els[i].checked = checked; |
|
9 | 9 | } |
|
10 | 10 | } |
|
11 | 11 | } |
|
12 | 12 | |
|
13 | 13 | function toggleCheckboxesBySelector(selector) { |
|
14 | 14 | boxes = $$(selector); |
|
15 | 15 | var all_checked = true; |
|
16 | 16 | for (i = 0; i < boxes.length; i++) { if (boxes[i].checked == false) { all_checked = false; } } |
|
17 | 17 | for (i = 0; i < boxes.length; i++) { boxes[i].checked = !all_checked; } |
|
18 | 18 | } |
|
19 | 19 | |
|
20 | 20 | function setCheckboxesBySelector(checked, selector) { |
|
21 | 21 | var boxes = $$(selector); |
|
22 | 22 | boxes.each(function(ele) { |
|
23 | 23 | ele.checked = checked; |
|
24 | 24 | }); |
|
25 | 25 | } |
|
26 | 26 | |
|
27 | 27 | function showAndScrollTo(id, focus) { |
|
28 | 28 | Element.show(id); |
|
29 | 29 | if (focus!=null) { Form.Element.focus(focus); } |
|
30 | 30 | Element.scrollTo(id); |
|
31 | 31 | } |
|
32 | 32 | |
|
33 | 33 | function toggleRowGroup(el) { |
|
34 | 34 | var tr = Element.up(el, 'tr'); |
|
35 | 35 | var n = Element.next(tr); |
|
36 | 36 | tr.toggleClassName('open'); |
|
37 | 37 | while (n != undefined && !n.hasClassName('group')) { |
|
38 | 38 | Element.toggle(n); |
|
39 | 39 | n = Element.next(n); |
|
40 | 40 | } |
|
41 | 41 | } |
|
42 | 42 | |
|
43 | 43 | function toggleFieldset(el) { |
|
44 | 44 | var fieldset = Element.up(el, 'fieldset'); |
|
45 | 45 | fieldset.toggleClassName('collapsed'); |
|
46 | 46 | Effect.toggle(fieldset.down('div'), 'slide', {duration:0.2}); |
|
47 | 47 | } |
|
48 | 48 | |
|
49 | 49 | function hideFieldset(el) { |
|
50 | 50 | var fieldset = Element.up(el, 'fieldset'); |
|
51 | 51 | fieldset.toggleClassName('collapsed'); |
|
52 | 52 | fieldset.down('div').hide(); |
|
53 | 53 | } |
|
54 | 54 | |
|
55 | 55 | var fileFieldCount = 1; |
|
56 | 56 | |
|
57 | 57 | function addFileField() { |
|
58 | 58 | if (fileFieldCount >= 10) return false |
|
59 | 59 | fileFieldCount++; |
|
60 | 60 | var f = document.createElement("input"); |
|
61 | 61 | f.type = "file"; |
|
62 | 62 | f.name = "attachments[" + fileFieldCount + "][file]"; |
|
63 | 63 | f.size = 30; |
|
64 | 64 | var d = document.createElement("input"); |
|
65 | 65 | d.type = "text"; |
|
66 | 66 | d.name = "attachments[" + fileFieldCount + "][description]"; |
|
67 | 67 | d.size = 60; |
|
68 | 68 | var dLabel = new Element('label'); |
|
69 | 69 | dLabel.addClassName('inline'); |
|
70 | 70 | // Pulls the languge value used for Optional Description |
|
71 | 71 | dLabel.update($('attachment_description_label_content').innerHTML) |
|
72 | 72 | p = document.getElementById("attachments_fields"); |
|
73 | 73 | p.appendChild(document.createElement("br")); |
|
74 | 74 | p.appendChild(f); |
|
75 | 75 | p.appendChild(dLabel); |
|
76 | 76 | dLabel.appendChild(d); |
|
77 | 77 | |
|
78 | 78 | } |
|
79 | 79 | |
|
80 | 80 | function showTab(name) { |
|
81 | 81 | var f = $$('div#content .tab-content'); |
|
82 | 82 | for(var i=0; i<f.length; i++){ |
|
83 | 83 | Element.hide(f[i]); |
|
84 | 84 | } |
|
85 | 85 | var f = $$('div.tabs a'); |
|
86 | 86 | for(var i=0; i<f.length; i++){ |
|
87 | 87 | Element.removeClassName(f[i], "selected"); |
|
88 | 88 | } |
|
89 | 89 | Element.show('tab-content-' + name); |
|
90 | 90 | Element.addClassName('tab-' + name, "selected"); |
|
91 | 91 | return false; |
|
92 | 92 | } |
|
93 | 93 | |
|
94 | 94 | function moveTabRight(el) { |
|
95 | 95 | var lis = Element.up(el, 'div.tabs').down('ul').childElements(); |
|
96 | 96 | var tabsWidth = 0; |
|
97 | 97 | var i; |
|
98 | 98 | for (i=0; i<lis.length; i++) { |
|
99 | 99 | if (lis[i].visible()) { |
|
100 | 100 | tabsWidth += lis[i].getWidth() + 6; |
|
101 | 101 | } |
|
102 | 102 | } |
|
103 | 103 | if (tabsWidth < Element.up(el, 'div.tabs').getWidth() - 60) { |
|
104 | 104 | return; |
|
105 | 105 | } |
|
106 | 106 | i=0; |
|
107 | 107 | while (i<lis.length && !lis[i].visible()) { |
|
108 | 108 | i++; |
|
109 | 109 | } |
|
110 | 110 | lis[i].hide(); |
|
111 | 111 | } |
|
112 | 112 | |
|
113 | 113 | function moveTabLeft(el) { |
|
114 | 114 | var lis = Element.up(el, 'div.tabs').down('ul').childElements(); |
|
115 | 115 | var i = 0; |
|
116 | 116 | while (i<lis.length && !lis[i].visible()) { |
|
117 | 117 | i++; |
|
118 | 118 | } |
|
119 | 119 | if (i>0) { |
|
120 | 120 | lis[i-1].show(); |
|
121 | 121 | } |
|
122 | 122 | } |
|
123 | 123 | |
|
124 | 124 | function displayTabsButtons() { |
|
125 | 125 | var lis; |
|
126 | 126 | var tabsWidth = 0; |
|
127 | 127 | var i; |
|
128 | 128 | $$('div.tabs').each(function(el) { |
|
129 | 129 | lis = el.down('ul').childElements(); |
|
130 | 130 | for (i=0; i<lis.length; i++) { |
|
131 | 131 | if (lis[i].visible()) { |
|
132 | 132 | tabsWidth += lis[i].getWidth() + 6; |
|
133 | 133 | } |
|
134 | 134 | } |
|
135 | 135 | if ((tabsWidth < el.getWidth() - 60) && (lis[0].visible())) { |
|
136 | 136 | el.down('div.tabs-buttons').hide(); |
|
137 | 137 | } else { |
|
138 | 138 | el.down('div.tabs-buttons').show(); |
|
139 | 139 | } |
|
140 | 140 | }); |
|
141 | 141 | } |
|
142 | 142 | |
|
143 | 143 | function setPredecessorFieldsVisibility() { |
|
144 | 144 | relationType = $('relation_relation_type'); |
|
145 | 145 | if (relationType && (relationType.value == "precedes" || relationType.value == "follows")) { |
|
146 | 146 | Element.show('predecessor_fields'); |
|
147 | 147 | } else { |
|
148 | 148 | Element.hide('predecessor_fields'); |
|
149 | 149 | } |
|
150 | 150 | } |
|
151 | 151 | |
|
152 | 152 | function promptToRemote(text, param, url) { |
|
153 | 153 | value = prompt(text + ':'); |
|
154 | 154 | if (value) { |
|
155 | 155 | new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); |
|
156 | 156 | return false; |
|
157 | 157 | } |
|
158 | 158 | } |
|
159 | 159 | |
|
160 | 160 | function collapseScmEntry(id) { |
|
161 | 161 | var els = document.getElementsByClassName(id, 'browser'); |
|
162 | 162 | for (var i = 0; i < els.length; i++) { |
|
163 | 163 | if (els[i].hasClassName('open')) { |
|
164 | 164 | collapseScmEntry(els[i].id); |
|
165 | 165 | } |
|
166 | 166 | Element.hide(els[i]); |
|
167 | 167 | } |
|
168 | 168 | $(id).removeClassName('open'); |
|
169 | 169 | } |
|
170 | 170 | |
|
171 | 171 | function expandScmEntry(id) { |
|
172 | 172 | var els = document.getElementsByClassName(id, 'browser'); |
|
173 | 173 | for (var i = 0; i < els.length; i++) { |
|
174 | 174 | Element.show(els[i]); |
|
175 | 175 | if (els[i].hasClassName('loaded') && !els[i].hasClassName('collapsed')) { |
|
176 | 176 | expandScmEntry(els[i].id); |
|
177 | 177 | } |
|
178 | 178 | } |
|
179 | 179 | $(id).addClassName('open'); |
|
180 | 180 | } |
|
181 | 181 | |
|
182 | 182 | function scmEntryClick(id) { |
|
183 | 183 | el = $(id); |
|
184 | 184 | if (el.hasClassName('open')) { |
|
185 | 185 | collapseScmEntry(id); |
|
186 | 186 | el.addClassName('collapsed'); |
|
187 | 187 | return false; |
|
188 | 188 | } else if (el.hasClassName('loaded')) { |
|
189 | 189 | expandScmEntry(id); |
|
190 | 190 | el.removeClassName('collapsed'); |
|
191 | 191 | return false; |
|
192 | 192 | } |
|
193 | 193 | if (el.hasClassName('loading')) { |
|
194 | 194 | return false; |
|
195 | 195 | } |
|
196 | 196 | el.addClassName('loading'); |
|
197 | 197 | return true; |
|
198 | 198 | } |
|
199 | 199 | |
|
200 | 200 | function scmEntryLoaded(id) { |
|
201 | 201 | Element.addClassName(id, 'open'); |
|
202 | 202 | Element.addClassName(id, 'loaded'); |
|
203 | 203 | Element.removeClassName(id, 'loading'); |
|
204 | 204 | } |
|
205 | 205 | |
|
206 | 206 | function randomKey(size) { |
|
207 | 207 | var chars = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'); |
|
208 | 208 | var key = ''; |
|
209 | 209 | for (i = 0; i < size; i++) { |
|
210 | 210 | key += chars[Math.floor(Math.random() * chars.length)]; |
|
211 | 211 | } |
|
212 | 212 | return key; |
|
213 | 213 | } |
|
214 | 214 | |
|
215 | 215 | function observeParentIssueField(url) { |
|
216 | 216 | new Ajax.Autocompleter('issue_parent_issue_id', |
|
217 | 217 | 'parent_issue_candidates', |
|
218 | 218 | url, |
|
219 | 219 | { minChars: 3, |
|
220 | 220 | frequency: 0.5, |
|
221 | 221 | paramName: 'q', |
|
222 | 222 | updateElement: function(value) { |
|
223 | 223 | document.getElementById('issue_parent_issue_id').value = value.id; |
|
224 | 224 | }}); |
|
225 | 225 | } |
|
226 | 226 | |
|
227 | 227 | function observeRelatedIssueField(url) { |
|
228 | 228 | new Ajax.Autocompleter('relation_issue_to_id', |
|
229 | 229 | 'related_issue_candidates', |
|
230 | 230 | url, |
|
231 | 231 | { minChars: 3, |
|
232 | 232 | frequency: 0.5, |
|
233 | 233 | paramName: 'q', |
|
234 | 234 | updateElement: function(value) { |
|
235 | 235 | document.getElementById('relation_issue_to_id').value = value.id; |
|
236 | 236 | }, |
|
237 | 237 | parameters: 'scope=all' |
|
238 | 238 | }); |
|
239 | 239 | } |
|
240 | 240 | |
|
241 | 241 | function setVisible(id, visible) { |
|
242 | 242 | var el = $(id); |
|
243 | 243 | if (el) {if (visible) {el.show();} else {el.hide();}} |
|
244 | 244 | } |
|
245 | 245 | |
|
246 | 246 | function observeProjectModules() { |
|
247 | 247 | var f = function() { |
|
248 | 248 | /* Hides trackers and issues custom fields on the new project form when issue_tracking module is disabled */ |
|
249 | 249 | var c = ($('project_enabled_module_names_issue_tracking').checked == true); |
|
250 | 250 | setVisible('project_trackers', c); |
|
251 | 251 | setVisible('project_issue_custom_fields', c); |
|
252 | 252 | }; |
|
253 | 253 | |
|
254 | 254 | Event.observe(window, 'load', f); |
|
255 | 255 | Event.observe('project_enabled_module_names_issue_tracking', 'change', f); |
|
256 | 256 | } |
|
257 | 257 | |
|
258 | /* | |
|
259 | * Class used to warn user when leaving a page with unsaved textarea | |
|
260 | * Author: mathias.fischer@berlinonline.de | |
|
261 | */ | |
|
262 | ||
|
263 | var WarnLeavingUnsaved = Class.create({ | |
|
264 | observedForms: false, | |
|
265 | observedElements: false, | |
|
266 | changedForms: false, | |
|
267 | message: null, | |
|
268 | ||
|
269 | initialize: function(message){ | |
|
270 | this.observedForms = $$('form'); | |
|
271 | this.observedElements = $$('textarea'); | |
|
272 | this.message = message; | |
|
273 | ||
|
274 | this.observedElements.each(this.observeChange.bind(this)); | |
|
275 | this.observedForms.each(this.submitAction.bind(this)); | |
|
276 | ||
|
277 | window.onbeforeunload = this.unload.bind(this); | |
|
278 | }, | |
|
279 | ||
|
280 | unload: function(){ | |
|
281 | if(this.changedForms) | |
|
282 | return this.message; | |
|
283 | }, | |
|
284 | ||
|
285 | setChanged: function(){ | |
|
286 | this.changedForms = true; | |
|
287 | }, | |
|
288 | ||
|
289 | setUnchanged: function(){ | |
|
290 | this.changedForms = false; | |
|
291 | }, | |
|
292 | ||
|
293 | observeChange: function(element){ | |
|
294 | element.observe('change',this.setChanged.bindAsEventListener(this)); | |
|
295 | }, | |
|
296 | ||
|
297 | submitAction: function(element){ | |
|
298 | element.observe('submit',this.setUnchanged.bindAsEventListener(this)); | |
|
299 | } | |
|
300 | }); | |
|
258 | 301 | |
|
259 | 302 |
|
|
260 | 303 | Ajax.Responders.register({ |
|
261 | 304 | onCreate: function(){ |
|
262 | 305 | if ($('ajax-indicator') && Ajax.activeRequestCount > 0) { |
|
263 | 306 | Element.show('ajax-indicator'); |
|
264 | 307 | } |
|
265 | 308 | }, |
|
266 | 309 | onComplete: function(){ |
|
267 | 310 | if ($('ajax-indicator') && Ajax.activeRequestCount == 0) { |
|
268 | 311 | Element.hide('ajax-indicator'); |
|
269 | 312 | } |
|
270 | 313 | } |
|
271 | 314 | }); |
|
272 | 315 | |
|
273 | 316 | function hideOnLoad() { |
|
274 | 317 | $$('.hol').each(function(el) { |
|
275 | 318 | el.hide(); |
|
276 | 319 | }); |
|
277 | 320 | } |
|
278 | 321 | |
|
279 | 322 | Event.observe(window, 'load', hideOnLoad); |
@@ -1,70 +1,94 | |||
|
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 | require File.expand_path('../../test_helper', __FILE__) |
|
19 | 19 | require 'welcome_controller' |
|
20 | 20 | |
|
21 | 21 | # Re-raise errors caught by the controller. |
|
22 | 22 | class WelcomeController; def rescue_action(e) raise e end; end |
|
23 | 23 | |
|
24 | 24 | class WelcomeControllerTest < ActionController::TestCase |
|
25 | 25 | fixtures :projects, :news |
|
26 | 26 | |
|
27 | 27 | def setup |
|
28 | 28 | @controller = WelcomeController.new |
|
29 | 29 | @request = ActionController::TestRequest.new |
|
30 | 30 | @response = ActionController::TestResponse.new |
|
31 | 31 | User.current = nil |
|
32 | 32 | end |
|
33 | 33 | |
|
34 | 34 | def test_index |
|
35 | 35 | get :index |
|
36 | 36 | assert_response :success |
|
37 | 37 | assert_template 'index' |
|
38 | 38 | assert_not_nil assigns(:news) |
|
39 | 39 | assert_not_nil assigns(:projects) |
|
40 | 40 | assert !assigns(:projects).include?(Project.find(:first, :conditions => {:is_public => false})) |
|
41 | 41 | end |
|
42 | 42 | |
|
43 | 43 | def test_browser_language |
|
44 | 44 | Setting.default_language = 'en' |
|
45 | 45 | @request.env['HTTP_ACCEPT_LANGUAGE'] = 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3' |
|
46 | 46 | get :index |
|
47 | 47 | assert_equal :fr, @controller.current_language |
|
48 | 48 | end |
|
49 | 49 | |
|
50 | 50 | def test_browser_language_alternate |
|
51 | 51 | Setting.default_language = 'en' |
|
52 | 52 | @request.env['HTTP_ACCEPT_LANGUAGE'] = 'zh-TW' |
|
53 | 53 | get :index |
|
54 | 54 | assert_equal :"zh-TW", @controller.current_language |
|
55 | 55 | end |
|
56 | 56 | |
|
57 | 57 | def test_browser_language_alternate_not_valid |
|
58 | 58 | Setting.default_language = 'en' |
|
59 | 59 | @request.env['HTTP_ACCEPT_LANGUAGE'] = 'fr-CA' |
|
60 | 60 | get :index |
|
61 | 61 | assert_equal :fr, @controller.current_language |
|
62 | 62 | end |
|
63 | 63 | |
|
64 | 64 | def test_robots |
|
65 | 65 | get :robots |
|
66 | 66 | assert_response :success |
|
67 | 67 | assert_equal 'text/plain', @response.content_type |
|
68 | 68 | assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$}) |
|
69 | 69 | end |
|
70 | ||
|
71 | def test_warn_on_leaving_unsaved_turn_on | |
|
72 | user = User.find(2) | |
|
73 | user.pref.warn_on_leaving_unsaved = '1' | |
|
74 | user.pref.save! | |
|
75 | @request.session[:user_id] = 2 | |
|
76 | ||
|
77 | get :index | |
|
78 | assert_tag 'script', | |
|
79 | :attributes => {:type => "text/javascript"}, | |
|
80 | :content => %r{new WarnLeavingUnsaved} | |
|
81 | end | |
|
82 | ||
|
83 | def test_warn_on_leaving_unsaved_turn_off | |
|
84 | user = User.find(2) | |
|
85 | user.pref.warn_on_leaving_unsaved = '0' | |
|
86 | user.pref.save! | |
|
87 | @request.session[:user_id] = 2 | |
|
88 | ||
|
89 | get :index | |
|
90 | assert_no_tag 'script', | |
|
91 | :attributes => {:type => "text/javascript"}, | |
|
92 | :content => %r{new WarnLeavingUnsaved} | |
|
93 | end | |
|
70 | 94 | end |
General Comments 0
You need to be logged in to leave comments.
Login now