##// END OF EJS Templates
Adds email notifications support for news comments (#2074)....
Jean-Philippe Lang -
r4883:36009de154e0
parent child
Show More
@@ -0,0 +1,24
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18 class CommentObserver < ActiveRecord::Observer
19 def after_create(comment)
20 if comment.commented.is_a?(News) && Setting.notified_events.include?('news_comment_added')
21 Mailer.deliver_news_comment_added(comment)
22 end
23 end
24 end
@@ -0,0 +1,5
1 <h1><%= link_to(h(@news.title), @news_url) %></h1>
2
3 <p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
4
5 <%= textilizable @comment, :comments, :only_path => false %>
@@ -0,0 +1,6
1 <%= @news.title %>
2 <%= @news_url %>
3
4 <%= l(:text_user_wrote, :value => @comment.author) %>
5
6 <%= @comment.comments %>
@@ -1,106 +1,108
1 # redMine - project management software
2 # Copyright (C) 2006 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 class NewsController < ApplicationController
19 19 default_search_scope :news
20 20 model_object News
21 21 before_filter :find_model_object, :except => [:new, :create, :index]
22 22 before_filter :find_project_from_association, :except => [:new, :create, :index]
23 23 before_filter :find_project, :only => [:new, :create]
24 24 before_filter :authorize, :except => [:index]
25 25 before_filter :find_optional_project, :only => :index
26 26 accept_key_auth :index
27 27
28 helper :watchers
29
28 30 def index
29 31 case params[:format]
30 32 when 'xml', 'json'
31 33 @offset, @limit = api_offset_and_limit
32 34 else
33 35 @limit = 10
34 36 end
35 37
36 38 scope = @project ? @project.news.visible : News.visible
37 39
38 40 @news_count = scope.count
39 41 @news_pages = Paginator.new self, @news_count, @limit, params['page']
40 42 @offset ||= @news_pages.current.offset
41 43 @newss = scope.all(:include => [:author, :project],
42 44 :order => "#{News.table_name}.created_on DESC",
43 45 :offset => @offset,
44 46 :limit => @limit)
45 47
46 48 respond_to do |format|
47 49 format.html { render :layout => false if request.xhr? }
48 50 format.api
49 51 format.atom { render_feed(@newss, :title => (@project ? @project.name : Setting.app_title) + ": #{l(:label_news_plural)}") }
50 52 end
51 53 end
52 54
53 55 def show
54 56 @comments = @news.comments
55 57 @comments.reverse! if User.current.wants_comments_in_reverse_order?
56 58 end
57 59
58 60 def new
59 61 @news = News.new(:project => @project, :author => User.current)
60 62 end
61 63
62 64 def create
63 65 @news = News.new(:project => @project, :author => User.current)
64 66 if request.post?
65 67 @news.attributes = params[:news]
66 68 if @news.save
67 69 flash[:notice] = l(:notice_successful_create)
68 70 redirect_to :controller => 'news', :action => 'index', :project_id => @project
69 71 else
70 72 render :action => 'new'
71 73 end
72 74 end
73 75 end
74 76
75 77 def edit
76 78 end
77 79
78 80 def update
79 81 if request.put? and @news.update_attributes(params[:news])
80 82 flash[:notice] = l(:notice_successful_update)
81 83 redirect_to :action => 'show', :id => @news
82 84 else
83 85 render :action => 'edit'
84 86 end
85 87 end
86 88
87 89 def destroy
88 90 @news.destroy
89 91 redirect_to :action => 'index', :project_id => @project
90 92 end
91 93
92 94 private
93 95 def find_project
94 96 @project = Project.find(params[:project_id])
95 97 rescue ActiveRecord::RecordNotFound
96 98 render_404
97 99 end
98 100
99 101 def find_optional_project
100 102 return true unless params[:project_id]
101 103 @project = Project.find(params[:project_id])
102 104 authorize
103 105 rescue ActiveRecord::RecordNotFound
104 106 render_404
105 107 end
106 108 end
@@ -1,442 +1,460
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require 'ar_condition'
19 19
20 20 class Mailer < ActionMailer::Base
21 21 layout 'mailer'
22 22 helper :application
23 23 helper :issues
24 24 helper :custom_fields
25 25
26 26 include ActionController::UrlWriter
27 27 include Redmine::I18n
28 28
29 29 def self.default_url_options
30 30 h = Setting.host_name
31 31 h = h.to_s.gsub(%r{\/.*$}, '') unless Redmine::Utils.relative_url_root.blank?
32 32 { :host => h, :protocol => Setting.protocol }
33 33 end
34 34
35 35 # Builds a tmail object used to email recipients of the added issue.
36 36 #
37 37 # Example:
38 38 # issue_add(issue) => tmail object
39 39 # Mailer.deliver_issue_add(issue) => sends an email to issue recipients
40 40 def issue_add(issue)
41 41 redmine_headers 'Project' => issue.project.identifier,
42 42 'Issue-Id' => issue.id,
43 43 'Issue-Author' => issue.author.login
44 44 redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
45 45 message_id issue
46 46 recipients issue.recipients
47 47 cc(issue.watcher_recipients - @recipients)
48 48 subject "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}"
49 49 body :issue => issue,
50 50 :issue_url => url_for(:controller => 'issues', :action => 'show', :id => issue)
51 51 render_multipart('issue_add', body)
52 52 end
53 53
54 54 # Builds a tmail object used to email recipients of the edited issue.
55 55 #
56 56 # Example:
57 57 # issue_edit(journal) => tmail object
58 58 # Mailer.deliver_issue_edit(journal) => sends an email to issue recipients
59 59 def issue_edit(journal)
60 60 issue = journal.journalized.reload
61 61 redmine_headers 'Project' => issue.project.identifier,
62 62 'Issue-Id' => issue.id,
63 63 'Issue-Author' => issue.author.login
64 64 redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
65 65 message_id journal
66 66 references issue
67 67 @author = journal.user
68 68 recipients issue.recipients
69 69 # Watchers in cc
70 70 cc(issue.watcher_recipients - @recipients)
71 71 s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] "
72 72 s << "(#{issue.status.name}) " if journal.new_value_for('status_id')
73 73 s << issue.subject
74 74 subject s
75 75 body :issue => issue,
76 76 :journal => journal,
77 77 :issue_url => url_for(:controller => 'issues', :action => 'show', :id => issue)
78 78
79 79 render_multipart('issue_edit', body)
80 80 end
81 81
82 82 def reminder(user, issues, days)
83 83 set_language_if_valid user.language
84 84 recipients user.mail
85 85 subject l(:mail_subject_reminder, :count => issues.size, :days => days)
86 86 body :issues => issues,
87 87 :days => days,
88 88 :issues_url => url_for(:controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => user.id, :sort_key => 'due_date', :sort_order => 'asc')
89 89 render_multipart('reminder', body)
90 90 end
91 91
92 92 # Builds a tmail object used to email users belonging to the added document's project.
93 93 #
94 94 # Example:
95 95 # document_added(document) => tmail object
96 96 # Mailer.deliver_document_added(document) => sends an email to the document's project recipients
97 97 def document_added(document)
98 98 redmine_headers 'Project' => document.project.identifier
99 99 recipients document.recipients
100 100 subject "[#{document.project.name}] #{l(:label_document_new)}: #{document.title}"
101 101 body :document => document,
102 102 :document_url => url_for(:controller => 'documents', :action => 'show', :id => document)
103 103 render_multipart('document_added', body)
104 104 end
105 105
106 106 # Builds a tmail object used to email recipients of a project when an attachements are added.
107 107 #
108 108 # Example:
109 109 # attachments_added(attachments) => tmail object
110 110 # Mailer.deliver_attachments_added(attachments) => sends an email to the project's recipients
111 111 def attachments_added(attachments)
112 112 container = attachments.first.container
113 113 added_to = ''
114 114 added_to_url = ''
115 115 case container.class.name
116 116 when 'Project'
117 117 added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
118 118 added_to = "#{l(:label_project)}: #{container}"
119 119 recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
120 120 when 'Version'
121 121 added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container.project_id)
122 122 added_to = "#{l(:label_version)}: #{container.name}"
123 123 recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
124 124 when 'Document'
125 125 added_to_url = url_for(:controller => 'documents', :action => 'show', :id => container.id)
126 126 added_to = "#{l(:label_document)}: #{container.title}"
127 127 recipients container.recipients
128 128 end
129 129 redmine_headers 'Project' => container.project.identifier
130 130 subject "[#{container.project.name}] #{l(:label_attachment_new)}"
131 131 body :attachments => attachments,
132 132 :added_to => added_to,
133 133 :added_to_url => added_to_url
134 134 render_multipart('attachments_added', body)
135 135 end
136 136
137 137 # Builds a tmail object used to email recipients of a news' project when a news item is added.
138 138 #
139 139 # Example:
140 140 # news_added(news) => tmail object
141 141 # Mailer.deliver_news_added(news) => sends an email to the news' project recipients
142 142 def news_added(news)
143 143 redmine_headers 'Project' => news.project.identifier
144 144 message_id news
145 145 recipients news.recipients
146 146 subject "[#{news.project.name}] #{l(:label_news)}: #{news.title}"
147 147 body :news => news,
148 148 :news_url => url_for(:controller => 'news', :action => 'show', :id => news)
149 149 render_multipart('news_added', body)
150 150 end
151 151
152 # Builds a tmail object used to email recipients of a news' project when a news comment is added.
153 #
154 # Example:
155 # news_comment_added(comment) => tmail object
156 # Mailer.news_comment_added(comment) => sends an email to the news' project recipients
157 def news_comment_added(comment)
158 news = comment.commented
159 redmine_headers 'Project' => news.project.identifier
160 message_id comment
161 recipients news.recipients
162 cc news.watcher_recipients
163 subject "Re: [#{news.project.name}] #{l(:label_news)}: #{news.title}"
164 body :news => news,
165 :comment => comment,
166 :news_url => url_for(:controller => 'news', :action => 'show', :id => news)
167 render_multipart('news_comment_added', body)
168 end
169
152 170 # Builds a tmail object used to email the recipients of the specified message that was posted.
153 171 #
154 172 # Example:
155 173 # message_posted(message) => tmail object
156 174 # Mailer.deliver_message_posted(message) => sends an email to the recipients
157 175 def message_posted(message)
158 176 redmine_headers 'Project' => message.project.identifier,
159 177 'Topic-Id' => (message.parent_id || message.id)
160 178 message_id message
161 179 references message.parent unless message.parent.nil?
162 180 recipients(message.recipients)
163 181 cc((message.root.watcher_recipients + message.board.watcher_recipients).uniq - @recipients)
164 182 subject "[#{message.board.project.name} - #{message.board.name} - msg#{message.root.id}] #{message.subject}"
165 183 body :message => message,
166 184 :message_url => url_for(message.event_url)
167 185 render_multipart('message_posted', body)
168 186 end
169 187
170 188 # Builds a tmail object used to email the recipients of a project of the specified wiki content was added.
171 189 #
172 190 # Example:
173 191 # wiki_content_added(wiki_content) => tmail object
174 192 # Mailer.deliver_wiki_content_added(wiki_content) => sends an email to the project's recipients
175 193 def wiki_content_added(wiki_content)
176 194 redmine_headers 'Project' => wiki_content.project.identifier,
177 195 'Wiki-Page-Id' => wiki_content.page.id
178 196 message_id wiki_content
179 197 recipients wiki_content.recipients
180 198 cc(wiki_content.page.wiki.watcher_recipients - recipients)
181 199 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_added, :id => wiki_content.page.pretty_title)}"
182 200 body :wiki_content => wiki_content,
183 201 :wiki_content_url => url_for(:controller => 'wiki', :action => 'show', :project_id => wiki_content.project, :id => wiki_content.page.title)
184 202 render_multipart('wiki_content_added', body)
185 203 end
186 204
187 205 # Builds a tmail object used to email the recipients of a project of the specified wiki content was updated.
188 206 #
189 207 # Example:
190 208 # wiki_content_updated(wiki_content) => tmail object
191 209 # Mailer.deliver_wiki_content_updated(wiki_content) => sends an email to the project's recipients
192 210 def wiki_content_updated(wiki_content)
193 211 redmine_headers 'Project' => wiki_content.project.identifier,
194 212 'Wiki-Page-Id' => wiki_content.page.id
195 213 message_id wiki_content
196 214 recipients wiki_content.recipients
197 215 cc(wiki_content.page.wiki.watcher_recipients + wiki_content.page.watcher_recipients - recipients)
198 216 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_updated, :id => wiki_content.page.pretty_title)}"
199 217 body :wiki_content => wiki_content,
200 218 :wiki_content_url => url_for(:controller => 'wiki', :action => 'show', :project_id => wiki_content.project, :id => wiki_content.page.title),
201 219 :wiki_diff_url => url_for(:controller => 'wiki', :action => 'diff', :project_id => wiki_content.project, :id => wiki_content.page.title, :version => wiki_content.version)
202 220 render_multipart('wiki_content_updated', body)
203 221 end
204 222
205 223 # Builds a tmail object used to email the specified user their account information.
206 224 #
207 225 # Example:
208 226 # account_information(user, password) => tmail object
209 227 # Mailer.deliver_account_information(user, password) => sends account information to the user
210 228 def account_information(user, password)
211 229 set_language_if_valid user.language
212 230 recipients user.mail
213 231 subject l(:mail_subject_register, Setting.app_title)
214 232 body :user => user,
215 233 :password => password,
216 234 :login_url => url_for(:controller => 'account', :action => 'login')
217 235 render_multipart('account_information', body)
218 236 end
219 237
220 238 # Builds a tmail object used to email all active administrators of an account activation request.
221 239 #
222 240 # Example:
223 241 # account_activation_request(user) => tmail object
224 242 # Mailer.deliver_account_activation_request(user)=> sends an email to all active administrators
225 243 def account_activation_request(user)
226 244 # Send the email to all active administrators
227 245 recipients User.active.find(:all, :conditions => {:admin => true}).collect { |u| u.mail }.compact
228 246 subject l(:mail_subject_account_activation_request, Setting.app_title)
229 247 body :user => user,
230 248 :url => url_for(:controller => 'users', :action => 'index', :status => User::STATUS_REGISTERED, :sort_key => 'created_on', :sort_order => 'desc')
231 249 render_multipart('account_activation_request', body)
232 250 end
233 251
234 252 # Builds a tmail object used to email the specified user that their account was activated by an administrator.
235 253 #
236 254 # Example:
237 255 # account_activated(user) => tmail object
238 256 # Mailer.deliver_account_activated(user) => sends an email to the registered user
239 257 def account_activated(user)
240 258 set_language_if_valid user.language
241 259 recipients user.mail
242 260 subject l(:mail_subject_register, Setting.app_title)
243 261 body :user => user,
244 262 :login_url => url_for(:controller => 'account', :action => 'login')
245 263 render_multipart('account_activated', body)
246 264 end
247 265
248 266 def lost_password(token)
249 267 set_language_if_valid(token.user.language)
250 268 recipients token.user.mail
251 269 subject l(:mail_subject_lost_password, Setting.app_title)
252 270 body :token => token,
253 271 :url => url_for(:controller => 'account', :action => 'lost_password', :token => token.value)
254 272 render_multipart('lost_password', body)
255 273 end
256 274
257 275 def register(token)
258 276 set_language_if_valid(token.user.language)
259 277 recipients token.user.mail
260 278 subject l(:mail_subject_register, Setting.app_title)
261 279 body :token => token,
262 280 :url => url_for(:controller => 'account', :action => 'activate', :token => token.value)
263 281 render_multipart('register', body)
264 282 end
265 283
266 284 def test(user)
267 285 set_language_if_valid(user.language)
268 286 recipients user.mail
269 287 subject 'Redmine test'
270 288 body :url => url_for(:controller => 'welcome')
271 289 render_multipart('test', body)
272 290 end
273 291
274 292 # Overrides default deliver! method to prevent from sending an email
275 293 # with no recipient, cc or bcc
276 294 def deliver!(mail = @mail)
277 295 set_language_if_valid @initial_language
278 296 return false if (recipients.nil? || recipients.empty?) &&
279 297 (cc.nil? || cc.empty?) &&
280 298 (bcc.nil? || bcc.empty?)
281 299
282 300 # Set Message-Id and References
283 301 if @message_id_object
284 302 mail.message_id = self.class.message_id_for(@message_id_object)
285 303 end
286 304 if @references_objects
287 305 mail.references = @references_objects.collect {|o| self.class.message_id_for(o)}
288 306 end
289 307
290 308 # Log errors when raise_delivery_errors is set to false, Rails does not
291 309 raise_errors = self.class.raise_delivery_errors
292 310 self.class.raise_delivery_errors = true
293 311 begin
294 312 return super(mail)
295 313 rescue Exception => e
296 314 if raise_errors
297 315 raise e
298 316 elsif mylogger
299 317 mylogger.error "The following error occured while sending email notification: \"#{e.message}\". Check your configuration in config/configuration.yml."
300 318 end
301 319 ensure
302 320 self.class.raise_delivery_errors = raise_errors
303 321 end
304 322 end
305 323
306 324 # Sends reminders to issue assignees
307 325 # Available options:
308 326 # * :days => how many days in the future to remind about (defaults to 7)
309 327 # * :tracker => id of tracker for filtering issues (defaults to all trackers)
310 328 # * :project => id or identifier of project to process (defaults to all projects)
311 329 # * :users => array of user ids who should be reminded
312 330 def self.reminders(options={})
313 331 days = options[:days] || 7
314 332 project = options[:project] ? Project.find(options[:project]) : nil
315 333 tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil
316 334 user_ids = options[:users]
317 335
318 336 s = ARCondition.new ["#{IssueStatus.table_name}.is_closed = ? AND #{Issue.table_name}.due_date <= ?", false, days.day.from_now.to_date]
319 337 s << "#{Issue.table_name}.assigned_to_id IS NOT NULL"
320 338 s << ["#{Issue.table_name}.assigned_to_id IN (?)", user_ids] if user_ids.present?
321 339 s << "#{Project.table_name}.status = #{Project::STATUS_ACTIVE}"
322 340 s << "#{Issue.table_name}.project_id = #{project.id}" if project
323 341 s << "#{Issue.table_name}.tracker_id = #{tracker.id}" if tracker
324 342
325 343 issues_by_assignee = Issue.find(:all, :include => [:status, :assigned_to, :project, :tracker],
326 344 :conditions => s.conditions
327 345 ).group_by(&:assigned_to)
328 346 issues_by_assignee.each do |assignee, issues|
329 347 deliver_reminder(assignee, issues, days) unless assignee.nil?
330 348 end
331 349 end
332 350
333 351 # Activates/desactivates email deliveries during +block+
334 352 def self.with_deliveries(enabled = true, &block)
335 353 was_enabled = ActionMailer::Base.perform_deliveries
336 354 ActionMailer::Base.perform_deliveries = !!enabled
337 355 yield
338 356 ensure
339 357 ActionMailer::Base.perform_deliveries = was_enabled
340 358 end
341 359
342 360 private
343 361 def initialize_defaults(method_name)
344 362 super
345 363 @initial_language = current_language
346 364 set_language_if_valid Setting.default_language
347 365 from Setting.mail_from
348 366
349 367 # Common headers
350 368 headers 'X-Mailer' => 'Redmine',
351 369 'X-Redmine-Host' => Setting.host_name,
352 370 'X-Redmine-Site' => Setting.app_title,
353 371 'Precedence' => 'bulk',
354 372 'Auto-Submitted' => 'auto-generated'
355 373 end
356 374
357 375 # Appends a Redmine header field (name is prepended with 'X-Redmine-')
358 376 def redmine_headers(h)
359 377 h.each { |k,v| headers["X-Redmine-#{k}"] = v }
360 378 end
361 379
362 380 # Overrides the create_mail method
363 381 def create_mail
364 382 # Removes the current user from the recipients and cc
365 383 # if he doesn't want to receive notifications about what he does
366 384 @author ||= User.current
367 385 if @author.pref[:no_self_notified]
368 386 recipients.delete(@author.mail) if recipients
369 387 cc.delete(@author.mail) if cc
370 388 end
371 389
372 390 notified_users = [recipients, cc].flatten.compact.uniq
373 391 # Rails would log recipients only, not cc and bcc
374 392 mylogger.info "Sending email notification to: #{notified_users.join(', ')}" if mylogger
375 393
376 394 # Blind carbon copy recipients
377 395 if Setting.bcc_recipients?
378 396 bcc(notified_users)
379 397 recipients []
380 398 cc []
381 399 end
382 400 super
383 401 end
384 402
385 403 # Rails 2.3 has problems rendering implicit multipart messages with
386 404 # layouts so this method will wrap an multipart messages with
387 405 # explicit parts.
388 406 #
389 407 # https://rails.lighthouseapp.com/projects/8994/tickets/2338-actionmailer-mailer-views-and-content-type
390 408 # https://rails.lighthouseapp.com/projects/8994/tickets/1799-actionmailer-doesnt-set-template_format-when-rendering-layouts
391 409
392 410 def render_multipart(method_name, body)
393 411 if Setting.plain_text_mail?
394 412 content_type "text/plain"
395 413 body render(:file => "#{method_name}.text.plain.rhtml", :body => body, :layout => 'mailer.text.plain.erb')
396 414 else
397 415 content_type "multipart/alternative"
398 416 part :content_type => "text/plain", :body => render(:file => "#{method_name}.text.plain.rhtml", :body => body, :layout => 'mailer.text.plain.erb')
399 417 part :content_type => "text/html", :body => render_message("#{method_name}.text.html.rhtml", body)
400 418 end
401 419 end
402 420
403 421 # Makes partial rendering work with Rails 1.2 (retro-compatibility)
404 422 def self.controller_path
405 423 ''
406 424 end unless respond_to?('controller_path')
407 425
408 426 # Returns a predictable Message-Id for the given object
409 427 def self.message_id_for(object)
410 428 # id + timestamp should reduce the odds of a collision
411 429 # as far as we don't send multiple emails for the same object
412 430 timestamp = object.send(object.respond_to?(:created_on) ? :created_on : :updated_on)
413 431 hash = "redmine.#{object.class.name.demodulize.underscore}-#{object.id}.#{timestamp.strftime("%Y%m%d%H%M%S")}"
414 432 host = Setting.mail_from.to_s.gsub(%r{^.*@}, '')
415 433 host = "#{::Socket.gethostname}.redmine" if host.empty?
416 434 "<#{hash}@#{host}>"
417 435 end
418 436
419 437 private
420 438
421 439 def message_id(object)
422 440 @message_id_object = object
423 441 end
424 442
425 443 def references(object)
426 444 @references_objects ||= []
427 445 @references_objects << object
428 446 end
429 447
430 448 def mylogger
431 449 RAILS_DEFAULT_LOGGER
432 450 end
433 451 end
434 452
435 453 # Patch TMail so that message_id is not overwritten
436 454 module TMail
437 455 class Mail
438 456 def add_message_id( fqdn = nil )
439 457 self.message_id ||= ::TMail::new_message_id(fqdn)
440 458 end
441 459 end
442 460 end
@@ -1,45 +1,54
1 1 # Redmine - project management software
2 # Copyright (C) 2006-2008 Jean-Philippe Lang
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 class News < ActiveRecord::Base
19 19 belongs_to :project
20 20 belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
21 21 has_many :comments, :as => :commented, :dependent => :delete_all, :order => "created_on"
22 22
23 23 validates_presence_of :title, :description
24 24 validates_length_of :title, :maximum => 60
25 25 validates_length_of :summary, :maximum => 255
26 26
27 27 acts_as_searchable :columns => ['title', 'summary', "#{table_name}.description"], :include => :project
28 28 acts_as_event :url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.id}}
29 29 acts_as_activity_provider :find_options => {:include => [:project, :author]},
30 30 :author_key => :author_id
31 acts_as_watchable
32
33 after_create :add_author_as_watcher
31 34
32 35 named_scope :visible, lambda {|*args| {
33 36 :include => :project,
34 37 :conditions => Project.allowed_to_condition(args.first || User.current, :view_news)
35 38 }}
36 39
37 40 def visible?(user=User.current)
38 41 !user.nil? && user.allowed_to?(:view_news, project)
39 42 end
40 43
41 44 # returns latest news for projects visible by user
42 45 def self.latest(user = User.current, count = 5)
43 46 find(:all, :limit => count, :conditions => Project.allowed_to_condition(user, :view_news), :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC")
44 47 end
48
49 private
50
51 def add_author_as_watcher
52 Watcher.create(:watchable => self, :user => author)
53 end
45 54 end
@@ -1,69 +1,70
1 1 <div class="contextual">
2 <%= watcher_tag(@news, User.current) %>
2 3 <%= link_to(l(:button_edit),
3 4 edit_news_path(@news),
4 5 :class => 'icon icon-edit',
5 6 :accesskey => accesskey(:edit),
6 7 :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %>
7 8 <%= link_to(l(:button_delete),
8 9 news_path(@news),
9 10 :confirm => l(:text_are_you_sure),
10 11 :method => :delete,
11 12 :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>
12 13 </div>
13 14
14 15 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
15 16
16 17 <% if authorize_for('news', 'edit') %>
17 18 <div id="edit-news" style="display:none;">
18 19 <% labelled_tabular_form_for :news, @news, :url => news_path(@news),
19 20 :html => { :id => 'news-form', :method => :put } do |f| %>
20 21 <%= render :partial => 'form', :locals => { :f => f } %>
21 22 <%= submit_tag l(:button_save) %>
22 23 <%= link_to_remote l(:label_preview),
23 24 { :url => preview_news_path(:project_id => @project),
24 25 :method => 'get',
25 26 :update => 'preview',
26 27 :with => "Form.serialize('news-form')"
27 28 }, :accesskey => accesskey(:preview) %> |
28 29 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("edit-news"); return false;' %>
29 30 <% end %>
30 31 <div id="preview" class="wiki"></div>
31 32 </div>
32 33 <% end %>
33 34
34 35 <p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
35 36 <span class="author"><%= authoring @news.created_on, @news.author %></span></p>
36 37 <div class="wiki">
37 38 <%= textilizable(@news.description) %>
38 39 </div>
39 40 <br />
40 41
41 42 <div id="comments" style="margin-bottom:16px;">
42 43 <h3 class="comments"><%= l(:label_comment_plural) %></h3>
43 44 <% @comments.each do |comment| %>
44 45 <% next if comment.new_record? %>
45 46 <div class="contextual">
46 47 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
47 48 :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %>
48 49 </div>
49 50 <h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4>
50 51 <%= textilizable(comment.comments) %>
51 52 <% end if @comments.any? %>
52 53 </div>
53 54
54 55 <% if authorize_for 'comments', 'create' %>
55 56 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
56 57 <% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
57 58 <div class="box">
58 59 <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
59 60 <%= wikitoolbar_for 'comment_comments' %>
60 61 </div>
61 62 <p><%= submit_tag l(:button_add) %></p>
62 63 <% end %>
63 64 <% end %>
64 65
65 66 <% html_title @news.title -%>
66 67
67 68 <% content_for :header_tags do %>
68 69 <%= stylesheet_link_tag 'scm' %>
69 70 <% end %>
@@ -1,61 +1,61
1 1 # Be sure to restart your web server when you modify this file.
2 2
3 3 # Uncomment below to force Rails into production mode when
4 4 # you don't control web/app server and can't set it the proper way
5 5 # ENV['RAILS_ENV'] ||= 'production'
6 6
7 7 # Specifies gem version of Rails to use when vendor/rails is not present
8 8 RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
9 9
10 10 # Bootstrap the Rails environment, frameworks, and default configuration
11 11 require File.join(File.dirname(__FILE__), 'boot')
12 12
13 13 # Load Engine plugin if available
14 14 begin
15 15 require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
16 16 rescue LoadError
17 17 # Not available
18 18 end
19 19
20 20 Rails::Initializer.run do |config|
21 21 # Settings in config/environments/* take precedence those specified here
22 22
23 23 # Skip frameworks you're not going to use
24 24 # config.frameworks -= [ :action_web_service, :action_mailer ]
25 25
26 26 # Add additional load paths for sweepers
27 27 config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers )
28 28
29 29 # Force all environments to use the same logger level
30 30 # (by default production uses :info, the others :debug)
31 31 # config.log_level = :debug
32 32
33 33 # Enable page/fragment caching by setting a file-based store
34 34 # (remember to create the caching directory and make it readable to the application)
35 35 # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
36 36
37 37 # Activate observers that should always be running
38 38 # config.active_record.observers = :cacher, :garbage_collector
39 config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer
39 config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
40 40
41 41 # Make Active Record use UTC-base instead of local time
42 42 # config.active_record.default_timezone = :utc
43 43
44 44 # Use Active Record's schema dumper instead of SQL when creating the test database
45 45 # (enables use of different database adapters for development and test environments)
46 46 # config.active_record.schema_format = :ruby
47 47
48 48 # Deliveries are disabled by default. Do NOT modify this section.
49 49 # Define your email configuration in configuration.yml instead.
50 50 # It will automatically turn deliveries on
51 51 config.action_mailer.perform_deliveries = false
52 52
53 53 config.gem 'rubytree', :lib => 'tree'
54 54 config.gem 'coderay', :version => '~>0.9.7'
55 55
56 56 # Load any local configuration that is kept out of source control
57 57 # (e.g. gems, patches).
58 58 if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
59 59 instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
60 60 end
61 61 end
@@ -1,942 +1,943
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 306 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
307 307
308 308 setting_app_title: Application title
309 309 setting_app_subtitle: Application subtitle
310 310 setting_welcome_text: Welcome text
311 311 setting_default_language: Default language
312 312 setting_login_required: Authentication required
313 313 setting_self_registration: Self-registration
314 314 setting_attachment_max_size: Attachment max. size
315 315 setting_issues_export_limit: Issues export limit
316 316 setting_mail_from: Emission email address
317 317 setting_bcc_recipients: Blind carbon copy recipients (bcc)
318 318 setting_plain_text_mail: Plain text mail (no HTML)
319 319 setting_host_name: Host name and path
320 320 setting_text_formatting: Text formatting
321 321 setting_wiki_compression: Wiki history compression
322 322 setting_feeds_limit: Feed content limit
323 323 setting_default_projects_public: New projects are public by default
324 324 setting_autofetch_changesets: Autofetch commits
325 325 setting_sys_api_enabled: Enable WS for repository management
326 326 setting_commit_ref_keywords: Referencing keywords
327 327 setting_commit_fix_keywords: Fixing keywords
328 328 setting_autologin: Autologin
329 329 setting_date_format: Date format
330 330 setting_time_format: Time format
331 331 setting_cross_project_issue_relations: Allow cross-project issue relations
332 332 setting_issue_list_default_columns: Default columns displayed on the issue list
333 333 setting_repositories_encodings: Repositories encodings
334 334 setting_commit_logs_encoding: Commit messages encoding
335 335 setting_emails_header: Emails header
336 336 setting_emails_footer: Emails footer
337 337 setting_protocol: Protocol
338 338 setting_per_page_options: Objects per page options
339 339 setting_user_format: Users display format
340 340 setting_activity_days_default: Days displayed on project activity
341 341 setting_display_subprojects_issues: Display subprojects issues on main projects by default
342 342 setting_enabled_scm: Enabled SCM
343 343 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
344 344 setting_mail_handler_api_enabled: Enable WS for incoming emails
345 345 setting_mail_handler_api_key: API key
346 346 setting_sequential_project_identifiers: Generate sequential project identifiers
347 347 setting_gravatar_enabled: Use Gravatar user icons
348 348 setting_gravatar_default: Default Gravatar image
349 349 setting_diff_max_lines_displayed: Max number of diff lines displayed
350 350 setting_file_max_size_displayed: Max size of text files displayed inline
351 351 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
352 352 setting_openid: Allow OpenID login and registration
353 353 setting_password_min_length: Minimum password length
354 354 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
355 355 setting_default_projects_modules: Default enabled modules for new projects
356 356 setting_issue_done_ratio: Calculate the issue done ratio with
357 357 setting_issue_done_ratio_issue_field: Use the issue field
358 358 setting_issue_done_ratio_issue_status: Use the issue status
359 359 setting_start_of_week: Start calendars on
360 360 setting_rest_api_enabled: Enable REST web service
361 361 setting_cache_formatted_text: Cache formatted text
362 362 setting_default_notification_option: Default notification option
363 363 setting_commit_logtime_enabled: Enable time logging
364 364 setting_commit_logtime_activity_id: Activity for logged time
365 365 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
366 366
367 367 permission_add_project: Create project
368 368 permission_add_subprojects: Create subprojects
369 369 permission_edit_project: Edit project
370 370 permission_select_project_modules: Select project modules
371 371 permission_manage_members: Manage members
372 372 permission_manage_project_activities: Manage project activities
373 373 permission_manage_versions: Manage versions
374 374 permission_manage_categories: Manage issue categories
375 375 permission_view_issues: View Issues
376 376 permission_add_issues: Add issues
377 377 permission_edit_issues: Edit issues
378 378 permission_manage_issue_relations: Manage issue relations
379 379 permission_add_issue_notes: Add notes
380 380 permission_edit_issue_notes: Edit notes
381 381 permission_edit_own_issue_notes: Edit own notes
382 382 permission_move_issues: Move issues
383 383 permission_delete_issues: Delete issues
384 384 permission_manage_public_queries: Manage public queries
385 385 permission_save_queries: Save queries
386 386 permission_view_gantt: View gantt chart
387 387 permission_view_calendar: View calendar
388 388 permission_view_issue_watchers: View watchers list
389 389 permission_add_issue_watchers: Add watchers
390 390 permission_delete_issue_watchers: Delete watchers
391 391 permission_log_time: Log spent time
392 392 permission_view_time_entries: View spent time
393 393 permission_edit_time_entries: Edit time logs
394 394 permission_edit_own_time_entries: Edit own time logs
395 395 permission_manage_news: Manage news
396 396 permission_comment_news: Comment news
397 397 permission_manage_documents: Manage documents
398 398 permission_view_documents: View documents
399 399 permission_manage_files: Manage files
400 400 permission_view_files: View files
401 401 permission_manage_wiki: Manage wiki
402 402 permission_rename_wiki_pages: Rename wiki pages
403 403 permission_delete_wiki_pages: Delete wiki pages
404 404 permission_view_wiki_pages: View wiki
405 405 permission_view_wiki_edits: View wiki history
406 406 permission_edit_wiki_pages: Edit wiki pages
407 407 permission_delete_wiki_pages_attachments: Delete attachments
408 408 permission_protect_wiki_pages: Protect wiki pages
409 409 permission_manage_repository: Manage repository
410 410 permission_browse_repository: Browse repository
411 411 permission_view_changesets: View changesets
412 412 permission_commit_access: Commit access
413 413 permission_manage_boards: Manage boards
414 414 permission_view_messages: View messages
415 415 permission_add_messages: Post messages
416 416 permission_edit_messages: Edit messages
417 417 permission_edit_own_messages: Edit own messages
418 418 permission_delete_messages: Delete messages
419 419 permission_delete_own_messages: Delete own messages
420 420 permission_export_wiki_pages: Export wiki pages
421 421 permission_manage_subtasks: Manage subtasks
422 422
423 423 project_module_issue_tracking: Issue tracking
424 424 project_module_time_tracking: Time tracking
425 425 project_module_news: News
426 426 project_module_documents: Documents
427 427 project_module_files: Files
428 428 project_module_wiki: Wiki
429 429 project_module_repository: Repository
430 430 project_module_boards: Boards
431 431 project_module_calendar: Calendar
432 432 project_module_gantt: Gantt
433 433
434 434 label_user: User
435 435 label_user_plural: Users
436 436 label_user_new: New user
437 437 label_user_anonymous: Anonymous
438 438 label_project: Project
439 439 label_project_new: New project
440 440 label_project_plural: Projects
441 441 label_x_projects:
442 442 zero: no projects
443 443 one: 1 project
444 444 other: "%{count} projects"
445 445 label_project_all: All Projects
446 446 label_project_latest: Latest projects
447 447 label_issue: Issue
448 448 label_issue_new: New issue
449 449 label_issue_plural: Issues
450 450 label_issue_view_all: View all issues
451 451 label_issues_by: "Issues by %{value}"
452 452 label_issue_added: Issue added
453 453 label_issue_updated: Issue updated
454 454 label_document: Document
455 455 label_document_new: New document
456 456 label_document_plural: Documents
457 457 label_document_added: Document added
458 458 label_role: Role
459 459 label_role_plural: Roles
460 460 label_role_new: New role
461 461 label_role_and_permissions: Roles and permissions
462 462 label_member: Member
463 463 label_member_new: New member
464 464 label_member_plural: Members
465 465 label_tracker: Tracker
466 466 label_tracker_plural: Trackers
467 467 label_tracker_new: New tracker
468 468 label_workflow: Workflow
469 469 label_issue_status: Issue status
470 470 label_issue_status_plural: Issue statuses
471 471 label_issue_status_new: New status
472 472 label_issue_category: Issue category
473 473 label_issue_category_plural: Issue categories
474 474 label_issue_category_new: New category
475 475 label_custom_field: Custom field
476 476 label_custom_field_plural: Custom fields
477 477 label_custom_field_new: New custom field
478 478 label_enumerations: Enumerations
479 479 label_enumeration_new: New value
480 480 label_information: Information
481 481 label_information_plural: Information
482 482 label_please_login: Please log in
483 483 label_register: Register
484 484 label_login_with_open_id_option: or login with OpenID
485 485 label_password_lost: Lost password
486 486 label_home: Home
487 487 label_my_page: My page
488 488 label_my_account: My account
489 489 label_my_projects: My projects
490 490 label_my_page_block: My page block
491 491 label_administration: Administration
492 492 label_login: Sign in
493 493 label_logout: Sign out
494 494 label_help: Help
495 495 label_reported_issues: Reported issues
496 496 label_assigned_to_me_issues: Issues assigned to me
497 497 label_last_login: Last connection
498 498 label_registered_on: Registered on
499 499 label_activity: Activity
500 500 label_overall_activity: Overall activity
501 501 label_user_activity: "%{value}'s activity"
502 502 label_new: New
503 503 label_logged_as: Logged in as
504 504 label_environment: Environment
505 505 label_authentication: Authentication
506 506 label_auth_source: Authentication mode
507 507 label_auth_source_new: New authentication mode
508 508 label_auth_source_plural: Authentication modes
509 509 label_subproject_plural: Subprojects
510 510 label_subproject_new: New subproject
511 511 label_and_its_subprojects: "%{value} and its subprojects"
512 512 label_min_max_length: Min - Max length
513 513 label_list: List
514 514 label_date: Date
515 515 label_integer: Integer
516 516 label_float: Float
517 517 label_boolean: Boolean
518 518 label_string: Text
519 519 label_text: Long text
520 520 label_attribute: Attribute
521 521 label_attribute_plural: Attributes
522 522 label_download: "%{count} Download"
523 523 label_download_plural: "%{count} Downloads"
524 524 label_no_data: No data to display
525 525 label_change_status: Change status
526 526 label_history: History
527 527 label_attachment: File
528 528 label_attachment_new: New file
529 529 label_attachment_delete: Delete file
530 530 label_attachment_plural: Files
531 531 label_file_added: File added
532 532 label_report: Report
533 533 label_report_plural: Reports
534 534 label_news: News
535 535 label_news_new: Add news
536 536 label_news_plural: News
537 537 label_news_latest: Latest news
538 538 label_news_view_all: View all news
539 539 label_news_added: News added
540 label_news_comment_added: Comment added to a news
540 541 label_settings: Settings
541 542 label_overview: Overview
542 543 label_version: Version
543 544 label_version_new: New version
544 545 label_version_plural: Versions
545 546 label_close_versions: Close completed versions
546 547 label_confirmation: Confirmation
547 548 label_export_to: 'Also available in:'
548 549 label_read: Read...
549 550 label_public_projects: Public projects
550 551 label_open_issues: open
551 552 label_open_issues_plural: open
552 553 label_closed_issues: closed
553 554 label_closed_issues_plural: closed
554 555 label_x_open_issues_abbr_on_total:
555 556 zero: 0 open / %{total}
556 557 one: 1 open / %{total}
557 558 other: "%{count} open / %{total}"
558 559 label_x_open_issues_abbr:
559 560 zero: 0 open
560 561 one: 1 open
561 562 other: "%{count} open"
562 563 label_x_closed_issues_abbr:
563 564 zero: 0 closed
564 565 one: 1 closed
565 566 other: "%{count} closed"
566 567 label_total: Total
567 568 label_permissions: Permissions
568 569 label_current_status: Current status
569 570 label_new_statuses_allowed: New statuses allowed
570 571 label_all: all
571 572 label_none: none
572 573 label_nobody: nobody
573 574 label_next: Next
574 575 label_previous: Previous
575 576 label_used_by: Used by
576 577 label_details: Details
577 578 label_add_note: Add a note
578 579 label_per_page: Per page
579 580 label_calendar: Calendar
580 581 label_months_from: months from
581 582 label_gantt: Gantt
582 583 label_internal: Internal
583 584 label_last_changes: "last %{count} changes"
584 585 label_change_view_all: View all changes
585 586 label_personalize_page: Personalize this page
586 587 label_comment: Comment
587 588 label_comment_plural: Comments
588 589 label_x_comments:
589 590 zero: no comments
590 591 one: 1 comment
591 592 other: "%{count} comments"
592 593 label_comment_add: Add a comment
593 594 label_comment_added: Comment added
594 595 label_comment_delete: Delete comments
595 596 label_query: Custom query
596 597 label_query_plural: Custom queries
597 598 label_query_new: New query
598 599 label_my_queries: My custom queries
599 600 label_filter_add: Add filter
600 601 label_filter_plural: Filters
601 602 label_equals: is
602 603 label_not_equals: is not
603 604 label_in_less_than: in less than
604 605 label_in_more_than: in more than
605 606 label_greater_or_equal: '>='
606 607 label_less_or_equal: '<='
607 608 label_in: in
608 609 label_today: today
609 610 label_all_time: all time
610 611 label_yesterday: yesterday
611 612 label_this_week: this week
612 613 label_last_week: last week
613 614 label_last_n_days: "last %{count} days"
614 615 label_this_month: this month
615 616 label_last_month: last month
616 617 label_this_year: this year
617 618 label_date_range: Date range
618 619 label_less_than_ago: less than days ago
619 620 label_more_than_ago: more than days ago
620 621 label_ago: days ago
621 622 label_contains: contains
622 623 label_not_contains: doesn't contain
623 624 label_day_plural: days
624 625 label_repository: Repository
625 626 label_repository_plural: Repositories
626 627 label_browse: Browse
627 628 label_modification: "%{count} change"
628 629 label_modification_plural: "%{count} changes"
629 630 label_branch: Branch
630 631 label_tag: Tag
631 632 label_revision: Revision
632 633 label_revision_plural: Revisions
633 634 label_revision_id: "Revision %{value}"
634 635 label_associated_revisions: Associated revisions
635 636 label_added: added
636 637 label_modified: modified
637 638 label_copied: copied
638 639 label_renamed: renamed
639 640 label_deleted: deleted
640 641 label_latest_revision: Latest revision
641 642 label_latest_revision_plural: Latest revisions
642 643 label_view_revisions: View revisions
643 644 label_view_all_revisions: View all revisions
644 645 label_max_size: Maximum size
645 646 label_sort_highest: Move to top
646 647 label_sort_higher: Move up
647 648 label_sort_lower: Move down
648 649 label_sort_lowest: Move to bottom
649 650 label_roadmap: Roadmap
650 651 label_roadmap_due_in: "Due in %{value}"
651 652 label_roadmap_overdue: "%{value} late"
652 653 label_roadmap_no_issues: No issues for this version
653 654 label_search: Search
654 655 label_result_plural: Results
655 656 label_all_words: All words
656 657 label_wiki: Wiki
657 658 label_wiki_edit: Wiki edit
658 659 label_wiki_edit_plural: Wiki edits
659 660 label_wiki_page: Wiki page
660 661 label_wiki_page_plural: Wiki pages
661 662 label_index_by_title: Index by title
662 663 label_index_by_date: Index by date
663 664 label_current_version: Current version
664 665 label_preview: Preview
665 666 label_feed_plural: Feeds
666 667 label_changes_details: Details of all changes
667 668 label_issue_tracking: Issue tracking
668 669 label_spent_time: Spent time
669 670 label_overall_spent_time: Overall spent time
670 671 label_f_hour: "%{value} hour"
671 672 label_f_hour_plural: "%{value} hours"
672 673 label_time_tracking: Time tracking
673 674 label_change_plural: Changes
674 675 label_statistics: Statistics
675 676 label_commits_per_month: Commits per month
676 677 label_commits_per_author: Commits per author
677 678 label_view_diff: View differences
678 679 label_diff_inline: inline
679 680 label_diff_side_by_side: side by side
680 681 label_options: Options
681 682 label_copy_workflow_from: Copy workflow from
682 683 label_permissions_report: Permissions report
683 684 label_watched_issues: Watched issues
684 685 label_related_issues: Related issues
685 686 label_applied_status: Applied status
686 687 label_loading: Loading...
687 688 label_relation_new: New relation
688 689 label_relation_delete: Delete relation
689 690 label_relates_to: related to
690 691 label_duplicates: duplicates
691 692 label_duplicated_by: duplicated by
692 693 label_blocks: blocks
693 694 label_blocked_by: blocked by
694 695 label_precedes: precedes
695 696 label_follows: follows
696 697 label_end_to_start: end to start
697 698 label_end_to_end: end to end
698 699 label_start_to_start: start to start
699 700 label_start_to_end: start to end
700 701 label_stay_logged_in: Stay logged in
701 702 label_disabled: disabled
702 703 label_show_completed_versions: Show completed versions
703 704 label_me: me
704 705 label_board: Forum
705 706 label_board_new: New forum
706 707 label_board_plural: Forums
707 708 label_board_locked: Locked
708 709 label_board_sticky: Sticky
709 710 label_topic_plural: Topics
710 711 label_message_plural: Messages
711 712 label_message_last: Last message
712 713 label_message_new: New message
713 714 label_message_posted: Message added
714 715 label_reply_plural: Replies
715 716 label_send_information: Send account information to the user
716 717 label_year: Year
717 718 label_month: Month
718 719 label_week: Week
719 720 label_date_from: From
720 721 label_date_to: To
721 722 label_language_based: Based on user's language
722 723 label_sort_by: "Sort by %{value}"
723 724 label_send_test_email: Send a test email
724 725 label_feeds_access_key: RSS access key
725 726 label_missing_feeds_access_key: Missing a RSS access key
726 727 label_feeds_access_key_created_on: "RSS access key created %{value} ago"
727 728 label_module_plural: Modules
728 729 label_added_time_by: "Added by %{author} %{age} ago"
729 730 label_updated_time_by: "Updated by %{author} %{age} ago"
730 731 label_updated_time: "Updated %{value} ago"
731 732 label_jump_to_a_project: Jump to a project...
732 733 label_file_plural: Files
733 734 label_changeset_plural: Changesets
734 735 label_default_columns: Default columns
735 736 label_no_change_option: (No change)
736 737 label_bulk_edit_selected_issues: Bulk edit selected issues
737 738 label_theme: Theme
738 739 label_default: Default
739 740 label_search_titles_only: Search titles only
740 741 label_user_mail_option_all: "For any event on all my projects"
741 742 label_user_mail_option_selected: "For any event on the selected projects only..."
742 743 label_user_mail_option_none: "No events"
743 744 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
744 745 label_user_mail_option_only_assigned: "Only for things I am assigned to"
745 746 label_user_mail_option_only_owner: "Only for things I am the owner of"
746 747 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
747 748 label_registration_activation_by_email: account activation by email
748 749 label_registration_manual_activation: manual account activation
749 750 label_registration_automatic_activation: automatic account activation
750 751 label_display_per_page: "Per page: %{value}"
751 752 label_age: Age
752 753 label_change_properties: Change properties
753 754 label_general: General
754 755 label_more: More
755 756 label_scm: SCM
756 757 label_plugins: Plugins
757 758 label_ldap_authentication: LDAP authentication
758 759 label_downloads_abbr: D/L
759 760 label_optional_description: Optional description
760 761 label_add_another_file: Add another file
761 762 label_preferences: Preferences
762 763 label_chronological_order: In chronological order
763 764 label_reverse_chronological_order: In reverse chronological order
764 765 label_planning: Planning
765 766 label_incoming_emails: Incoming emails
766 767 label_generate_key: Generate a key
767 768 label_issue_watchers: Watchers
768 769 label_example: Example
769 770 label_display: Display
770 771 label_sort: Sort
771 772 label_ascending: Ascending
772 773 label_descending: Descending
773 774 label_date_from_to: From %{start} to %{end}
774 775 label_wiki_content_added: Wiki page added
775 776 label_wiki_content_updated: Wiki page updated
776 777 label_group: Group
777 778 label_group_plural: Groups
778 779 label_group_new: New group
779 780 label_time_entry_plural: Spent time
780 781 label_version_sharing_none: Not shared
781 782 label_version_sharing_descendants: With subprojects
782 783 label_version_sharing_hierarchy: With project hierarchy
783 784 label_version_sharing_tree: With project tree
784 785 label_version_sharing_system: With all projects
785 786 label_update_issue_done_ratios: Update issue done ratios
786 787 label_copy_source: Source
787 788 label_copy_target: Target
788 789 label_copy_same_as_target: Same as target
789 790 label_display_used_statuses_only: Only display statuses that are used by this tracker
790 791 label_api_access_key: API access key
791 792 label_missing_api_access_key: Missing an API access key
792 793 label_api_access_key_created_on: "API access key created %{value} ago"
793 794 label_profile: Profile
794 795 label_subtask_plural: Subtasks
795 796 label_project_copy_notifications: Send email notifications during the project copy
796 797 label_principal_search: "Search for user or group:"
797 798 label_user_search: "Search for user:"
798 799
799 800 button_login: Login
800 801 button_submit: Submit
801 802 button_save: Save
802 803 button_check_all: Check all
803 804 button_uncheck_all: Uncheck all
804 805 button_delete: Delete
805 806 button_create: Create
806 807 button_create_and_continue: Create and continue
807 808 button_test: Test
808 809 button_edit: Edit
809 810 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
810 811 button_add: Add
811 812 button_change: Change
812 813 button_apply: Apply
813 814 button_clear: Clear
814 815 button_lock: Lock
815 816 button_unlock: Unlock
816 817 button_download: Download
817 818 button_list: List
818 819 button_view: View
819 820 button_move: Move
820 821 button_move_and_follow: Move and follow
821 822 button_back: Back
822 823 button_cancel: Cancel
823 824 button_activate: Activate
824 825 button_sort: Sort
825 826 button_log_time: Log time
826 827 button_rollback: Rollback to this version
827 828 button_watch: Watch
828 829 button_unwatch: Unwatch
829 830 button_reply: Reply
830 831 button_archive: Archive
831 832 button_unarchive: Unarchive
832 833 button_reset: Reset
833 834 button_rename: Rename
834 835 button_change_password: Change password
835 836 button_copy: Copy
836 837 button_copy_and_follow: Copy and follow
837 838 button_annotate: Annotate
838 839 button_update: Update
839 840 button_configure: Configure
840 841 button_quote: Quote
841 842 button_duplicate: Duplicate
842 843 button_show: Show
843 844
844 845 status_active: active
845 846 status_registered: registered
846 847 status_locked: locked
847 848
848 849 version_status_open: open
849 850 version_status_locked: locked
850 851 version_status_closed: closed
851 852
852 853 field_active: Active
853 854
854 855 text_select_mail_notifications: Select actions for which email notifications should be sent.
855 856 text_regexp_info: eg. ^[A-Z0-9]+$
856 857 text_min_max_length_info: 0 means no restriction
857 858 text_project_destroy_confirmation: Are you sure you want to delete this project and related data ?
858 859 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
859 860 text_workflow_edit: Select a role and a tracker to edit the workflow
860 861 text_are_you_sure: Are you sure ?
861 862 text_are_you_sure_with_children: "Delete issue and all child issues?"
862 863 text_journal_changed: "%{label} changed from %{old} to %{new}"
863 864 text_journal_changed_no_detail: "%{label} updated"
864 865 text_journal_set_to: "%{label} set to %{value}"
865 866 text_journal_deleted: "%{label} deleted (%{old})"
866 867 text_journal_added: "%{label} %{value} added"
867 868 text_tip_issue_begin_day: issue beginning this day
868 869 text_tip_issue_end_day: issue ending this day
869 870 text_tip_issue_begin_end_day: issue beginning and ending this day
870 871 text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier can not be changed.'
871 872 text_caracters_maximum: "%{count} characters maximum."
872 873 text_caracters_minimum: "Must be at least %{count} characters long."
873 874 text_length_between: "Length between %{min} and %{max} characters."
874 875 text_tracker_no_workflow: No workflow defined for this tracker
875 876 text_unallowed_characters: Unallowed characters
876 877 text_comma_separated: Multiple values allowed (comma separated).
877 878 text_line_separated: Multiple values allowed (one line for each value).
878 879 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
879 880 text_issue_added: "Issue %{id} has been reported by %{author}."
880 881 text_issue_updated: "Issue %{id} has been updated by %{author}."
881 882 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content ?
882 883 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do ?"
883 884 text_issue_category_destroy_assignments: Remove category assignments
884 885 text_issue_category_reassign_to: Reassign issues to this category
885 886 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)."
886 887 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."
887 888 text_load_default_configuration: Load the default configuration
888 889 text_status_changed_by_changeset: "Applied in changeset %{value}."
889 890 text_time_logged_by_changeset: "Applied in changeset %{value}."
890 891 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s) ?'
891 892 text_select_project_modules: 'Select modules to enable for this project:'
892 893 text_default_administrator_account_changed: Default administrator account changed
893 894 text_file_repository_writable: Attachments directory writable
894 895 text_plugin_assets_writable: Plugin assets directory writable
895 896 text_rmagick_available: RMagick available (optional)
896 897 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do ?"
897 898 text_destroy_time_entries: Delete reported hours
898 899 text_assign_time_entries_to_project: Assign reported hours to the project
899 900 text_reassign_time_entries: 'Reassign reported hours to this issue:'
900 901 text_user_wrote: "%{value} wrote:"
901 902 text_enumeration_destroy_question: "%{count} objects are assigned to this value."
902 903 text_enumeration_category_reassign_to: 'Reassign them to this value:'
903 904 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."
904 905 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."
905 906 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
906 907 text_custom_field_possible_values_info: 'One line for each value'
907 908 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
908 909 text_wiki_page_nullify_children: "Keep child pages as root pages"
909 910 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
910 911 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
911 912 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?"
912 913 text_zoom_in: Zoom in
913 914 text_zoom_out: Zoom out
914 915 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
915 916
916 917 default_role_manager: Manager
917 918 default_role_developer: Developer
918 919 default_role_reporter: Reporter
919 920 default_tracker_bug: Bug
920 921 default_tracker_feature: Feature
921 922 default_tracker_support: Support
922 923 default_issue_status_new: New
923 924 default_issue_status_in_progress: In Progress
924 925 default_issue_status_resolved: Resolved
925 926 default_issue_status_feedback: Feedback
926 927 default_issue_status_closed: Closed
927 928 default_issue_status_rejected: Rejected
928 929 default_doc_category_user: User documentation
929 930 default_doc_category_tech: Technical documentation
930 931 default_priority_low: Low
931 932 default_priority_normal: Normal
932 933 default_priority_high: High
933 934 default_priority_urgent: Urgent
934 935 default_priority_immediate: Immediate
935 936 default_activity_design: Design
936 937 default_activity_development: Development
937 938
938 939 enumeration_issue_priorities: Issue priorities
939 940 enumeration_doc_categories: Document categories
940 941 enumeration_activities: Activities (time tracking)
941 942 enumeration_system_activity: System Activity
942 943
@@ -1,960 +1,961
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 310 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardΓ©"
311 311
312 312 setting_app_title: Titre de l'application
313 313 setting_app_subtitle: Sous-titre de l'application
314 314 setting_welcome_text: Texte d'accueil
315 315 setting_default_language: Langue par dΓ©faut
316 316 setting_login_required: Authentification obligatoire
317 317 setting_self_registration: Inscription des nouveaux utilisateurs
318 318 setting_attachment_max_size: Taille max des fichiers
319 319 setting_issues_export_limit: Limite export demandes
320 320 setting_mail_from: Adresse d'Γ©mission
321 321 setting_bcc_recipients: Destinataires en copie cachΓ©e (cci)
322 322 setting_plain_text_mail: Mail texte brut (non HTML)
323 323 setting_host_name: Nom d'hΓ΄te et chemin
324 324 setting_text_formatting: Formatage du texte
325 325 setting_wiki_compression: Compression historique wiki
326 326 setting_feeds_limit: Limite du contenu des flux RSS
327 327 setting_default_projects_public: DΓ©finir les nouveaux projets comme publics par dΓ©faut
328 328 setting_autofetch_changesets: RΓ©cupΓ©ration auto. des commits
329 329 setting_sys_api_enabled: Activer les WS pour la gestion des dΓ©pΓ΄ts
330 330 setting_commit_ref_keywords: Mots-clΓ©s de rΓ©fΓ©rencement
331 331 setting_commit_fix_keywords: Mots-clΓ©s de rΓ©solution
332 332 setting_autologin: Autologin
333 333 setting_date_format: Format de date
334 334 setting_time_format: Format d'heure
335 335 setting_cross_project_issue_relations: Autoriser les relations entre demandes de diffΓ©rents projets
336 336 setting_issue_list_default_columns: Colonnes affichΓ©es par dΓ©faut sur la liste des demandes
337 337 setting_repositories_encodings: Encodages des dΓ©pΓ΄ts
338 338 setting_commit_logs_encoding: Encodage des messages de commit
339 339 setting_emails_footer: Pied-de-page des emails
340 340 setting_protocol: Protocole
341 341 setting_per_page_options: Options d'objets affichΓ©s par page
342 342 setting_user_format: Format d'affichage des utilisateurs
343 343 setting_activity_days_default: Nombre de jours affichΓ©s sur l'activitΓ© des projets
344 344 setting_display_subprojects_issues: Afficher par dΓ©faut les demandes des sous-projets sur les projets principaux
345 345 setting_enabled_scm: SCM activΓ©s
346 346 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
347 347 setting_mail_handler_api_enabled: "Activer le WS pour la rΓ©ception d'emails"
348 348 setting_mail_handler_api_key: ClΓ© de protection de l'API
349 349 setting_sequential_project_identifiers: GΓ©nΓ©rer des identifiants de projet sΓ©quentiels
350 350 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
351 351 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichΓ©es
352 352 setting_file_max_size_displayed: Taille maximum des fichiers texte affichΓ©s en ligne
353 353 setting_repository_log_display_limit: "Nombre maximum de rΓ©visions affichΓ©es sur l'historique d'un fichier"
354 354 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
355 355 setting_password_min_length: Longueur minimum des mots de passe
356 356 setting_new_project_user_role_id: RΓ΄le donnΓ© Γ  un utilisateur non-administrateur qui crΓ©e un projet
357 357 setting_default_projects_modules: Modules activΓ©s par dΓ©faut pour les nouveaux projets
358 358 setting_issue_done_ratio: Calcul de l'avancement des demandes
359 359 setting_issue_done_ratio_issue_status: Utiliser le statut
360 360 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectuΓ©'
361 361 setting_rest_api_enabled: Activer l'API REST
362 362 setting_gravatar_default: Image Gravatar par dΓ©faut
363 363 setting_start_of_week: Jour de dΓ©but des calendriers
364 364 setting_cache_formatted_text: Mettre en cache le texte formatΓ©
365 365 setting_commit_logtime_enabled: Permettre la saisie de temps
366 366 setting_commit_logtime_activity_id: ActivitΓ© pour le temps saisi
367 367 setting_gantt_items_limit: Nombre maximum d'Γ©lΓ©ments affichΓ©s sur le gantt
368 368
369 369 permission_add_project: CrΓ©er un projet
370 370 permission_add_subprojects: CrΓ©er des sous-projets
371 371 permission_edit_project: Modifier le projet
372 372 permission_select_project_modules: Choisir les modules
373 373 permission_manage_members: GΓ©rer les membres
374 374 permission_manage_versions: GΓ©rer les versions
375 375 permission_manage_categories: GΓ©rer les catΓ©gories de demandes
376 376 permission_view_issues: Voir les demandes
377 377 permission_add_issues: CrΓ©er des demandes
378 378 permission_edit_issues: Modifier les demandes
379 379 permission_manage_issue_relations: GΓ©rer les relations
380 380 permission_add_issue_notes: Ajouter des notes
381 381 permission_edit_issue_notes: Modifier les notes
382 382 permission_edit_own_issue_notes: Modifier ses propres notes
383 383 permission_move_issues: DΓ©placer les demandes
384 384 permission_delete_issues: Supprimer les demandes
385 385 permission_manage_public_queries: GΓ©rer les requΓͺtes publiques
386 386 permission_save_queries: Sauvegarder les requΓͺtes
387 387 permission_view_gantt: Voir le gantt
388 388 permission_view_calendar: Voir le calendrier
389 389 permission_view_issue_watchers: Voir la liste des observateurs
390 390 permission_add_issue_watchers: Ajouter des observateurs
391 391 permission_delete_issue_watchers: Supprimer des observateurs
392 392 permission_log_time: Saisir le temps passΓ©
393 393 permission_view_time_entries: Voir le temps passΓ©
394 394 permission_edit_time_entries: Modifier les temps passΓ©s
395 395 permission_edit_own_time_entries: Modifier son propre temps passΓ©
396 396 permission_manage_news: GΓ©rer les annonces
397 397 permission_comment_news: Commenter les annonces
398 398 permission_manage_documents: GΓ©rer les documents
399 399 permission_view_documents: Voir les documents
400 400 permission_manage_files: GΓ©rer les fichiers
401 401 permission_view_files: Voir les fichiers
402 402 permission_manage_wiki: GΓ©rer le wiki
403 403 permission_rename_wiki_pages: Renommer les pages
404 404 permission_delete_wiki_pages: Supprimer les pages
405 405 permission_view_wiki_pages: Voir le wiki
406 406 permission_view_wiki_edits: "Voir l'historique des modifications"
407 407 permission_edit_wiki_pages: Modifier les pages
408 408 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
409 409 permission_protect_wiki_pages: ProtΓ©ger les pages
410 410 permission_manage_repository: GΓ©rer le dΓ©pΓ΄t de sources
411 411 permission_browse_repository: Parcourir les sources
412 412 permission_view_changesets: Voir les rΓ©visions
413 413 permission_commit_access: Droit de commit
414 414 permission_manage_boards: GΓ©rer les forums
415 415 permission_view_messages: Voir les messages
416 416 permission_add_messages: Poster un message
417 417 permission_edit_messages: Modifier les messages
418 418 permission_edit_own_messages: Modifier ses propres messages
419 419 permission_delete_messages: Supprimer les messages
420 420 permission_delete_own_messages: Supprimer ses propres messages
421 421 permission_export_wiki_pages: Exporter les pages
422 422 permission_manage_project_activities: GΓ©rer les activitΓ©s
423 423 permission_manage_subtasks: GΓ©rer les sous-tΓ’ches
424 424
425 425 project_module_issue_tracking: Suivi des demandes
426 426 project_module_time_tracking: Suivi du temps passΓ©
427 427 project_module_news: Publication d'annonces
428 428 project_module_documents: Publication de documents
429 429 project_module_files: Publication de fichiers
430 430 project_module_wiki: Wiki
431 431 project_module_repository: DΓ©pΓ΄t de sources
432 432 project_module_boards: Forums de discussion
433 433
434 434 label_user: Utilisateur
435 435 label_user_plural: Utilisateurs
436 436 label_user_new: Nouvel utilisateur
437 437 label_user_anonymous: Anonyme
438 438 label_project: Projet
439 439 label_project_new: Nouveau projet
440 440 label_project_plural: Projets
441 441 label_x_projects:
442 442 zero: aucun projet
443 443 one: un projet
444 444 other: "%{count} projets"
445 445 label_project_all: Tous les projets
446 446 label_project_latest: Derniers projets
447 447 label_issue: Demande
448 448 label_issue_new: Nouvelle demande
449 449 label_issue_plural: Demandes
450 450 label_issue_view_all: Voir toutes les demandes
451 451 label_issue_added: Demande ajoutΓ©e
452 452 label_issue_updated: Demande mise Γ  jour
453 453 label_issue_note_added: Note ajoutΓ©e
454 454 label_issue_status_updated: Statut changΓ©
455 455 label_issue_priority_updated: PrioritΓ© changΓ©e
456 456 label_issues_by: "Demandes par %{value}"
457 457 label_document: Document
458 458 label_document_new: Nouveau document
459 459 label_document_plural: Documents
460 460 label_document_added: Document ajoutΓ©
461 461 label_role: RΓ΄le
462 462 label_role_plural: RΓ΄les
463 463 label_role_new: Nouveau rΓ΄le
464 464 label_role_and_permissions: RΓ΄les et permissions
465 465 label_member: Membre
466 466 label_member_new: Nouveau membre
467 467 label_member_plural: Membres
468 468 label_tracker: Tracker
469 469 label_tracker_plural: Trackers
470 470 label_tracker_new: Nouveau tracker
471 471 label_workflow: Workflow
472 472 label_issue_status: Statut de demandes
473 473 label_issue_status_plural: Statuts de demandes
474 474 label_issue_status_new: Nouveau statut
475 475 label_issue_category: CatΓ©gorie de demandes
476 476 label_issue_category_plural: CatΓ©gories de demandes
477 477 label_issue_category_new: Nouvelle catΓ©gorie
478 478 label_custom_field: Champ personnalisΓ©
479 479 label_custom_field_plural: Champs personnalisΓ©s
480 480 label_custom_field_new: Nouveau champ personnalisΓ©
481 481 label_enumerations: Listes de valeurs
482 482 label_enumeration_new: Nouvelle valeur
483 483 label_information: Information
484 484 label_information_plural: Informations
485 485 label_please_login: Identification
486 486 label_register: S'enregistrer
487 487 label_login_with_open_id_option: S'authentifier avec OpenID
488 488 label_password_lost: Mot de passe perdu
489 489 label_home: Accueil
490 490 label_my_page: Ma page
491 491 label_my_account: Mon compte
492 492 label_my_projects: Mes projets
493 493 label_my_page_block: Blocs disponibles
494 494 label_administration: Administration
495 495 label_login: Connexion
496 496 label_logout: DΓ©connexion
497 497 label_help: Aide
498 498 label_reported_issues: "Demandes soumises "
499 499 label_assigned_to_me_issues: Demandes qui me sont assignΓ©es
500 500 label_last_login: "Dernière connexion "
501 501 label_registered_on: "Inscrit le "
502 502 label_activity: ActivitΓ©
503 503 label_overall_activity: ActivitΓ© globale
504 504 label_user_activity: "ActivitΓ© de %{value}"
505 505 label_new: Nouveau
506 506 label_logged_as: ConnectΓ© en tant que
507 507 label_environment: Environnement
508 508 label_authentication: Authentification
509 509 label_auth_source: Mode d'authentification
510 510 label_auth_source_new: Nouveau mode d'authentification
511 511 label_auth_source_plural: Modes d'authentification
512 512 label_subproject_plural: Sous-projets
513 513 label_subproject_new: Nouveau sous-projet
514 514 label_and_its_subprojects: "%{value} et ses sous-projets"
515 515 label_min_max_length: Longueurs mini - maxi
516 516 label_list: Liste
517 517 label_date: Date
518 518 label_integer: Entier
519 519 label_float: Nombre dΓ©cimal
520 520 label_boolean: BoolΓ©en
521 521 label_string: Texte
522 522 label_text: Texte long
523 523 label_attribute: Attribut
524 524 label_attribute_plural: Attributs
525 525 label_download: "%{count} tΓ©lΓ©chargement"
526 526 label_download_plural: "%{count} tΓ©lΓ©chargements"
527 527 label_no_data: Aucune donnΓ©e Γ  afficher
528 528 label_change_status: Changer le statut
529 529 label_history: Historique
530 530 label_attachment: Fichier
531 531 label_attachment_new: Nouveau fichier
532 532 label_attachment_delete: Supprimer le fichier
533 533 label_attachment_plural: Fichiers
534 534 label_file_added: Fichier ajoutΓ©
535 535 label_report: Rapport
536 536 label_report_plural: Rapports
537 537 label_news: Annonce
538 538 label_news_new: Nouvelle annonce
539 539 label_news_plural: Annonces
540 540 label_news_latest: Dernières annonces
541 541 label_news_view_all: Voir toutes les annonces
542 542 label_news_added: Annonce ajoutΓ©e
543 label_news_comment_added: Commentaire ajoutΓ© Γ  une annonce
543 544 label_settings: Configuration
544 545 label_overview: AperΓ§u
545 546 label_version: Version
546 547 label_version_new: Nouvelle version
547 548 label_version_plural: Versions
548 549 label_confirmation: Confirmation
549 550 label_export_to: 'Formats disponibles :'
550 551 label_read: Lire...
551 552 label_public_projects: Projets publics
552 553 label_open_issues: ouvert
553 554 label_open_issues_plural: ouverts
554 555 label_closed_issues: fermΓ©
555 556 label_closed_issues_plural: fermΓ©s
556 557 label_x_open_issues_abbr_on_total:
557 558 zero: 0 ouvert sur %{total}
558 559 one: 1 ouvert sur %{total}
559 560 other: "%{count} ouverts sur %{total}"
560 561 label_x_open_issues_abbr:
561 562 zero: 0 ouvert
562 563 one: 1 ouvert
563 564 other: "%{count} ouverts"
564 565 label_x_closed_issues_abbr:
565 566 zero: 0 fermΓ©
566 567 one: 1 fermΓ©
567 568 other: "%{count} fermΓ©s"
568 569 label_total: Total
569 570 label_permissions: Permissions
570 571 label_current_status: Statut actuel
571 572 label_new_statuses_allowed: Nouveaux statuts autorisΓ©s
572 573 label_all: tous
573 574 label_none: aucun
574 575 label_nobody: personne
575 576 label_next: Suivant
576 577 label_previous: PrΓ©cΓ©dent
577 578 label_used_by: UtilisΓ© par
578 579 label_details: DΓ©tails
579 580 label_add_note: Ajouter une note
580 581 label_per_page: Par page
581 582 label_calendar: Calendrier
582 583 label_months_from: mois depuis
583 584 label_gantt: Gantt
584 585 label_internal: Interne
585 586 label_last_changes: "%{count} derniers changements"
586 587 label_change_view_all: Voir tous les changements
587 588 label_personalize_page: Personnaliser cette page
588 589 label_comment: Commentaire
589 590 label_comment_plural: Commentaires
590 591 label_x_comments:
591 592 zero: aucun commentaire
592 593 one: un commentaire
593 594 other: "%{count} commentaires"
594 595 label_comment_add: Ajouter un commentaire
595 596 label_comment_added: Commentaire ajoutΓ©
596 597 label_comment_delete: Supprimer les commentaires
597 598 label_query: Rapport personnalisΓ©
598 599 label_query_plural: Rapports personnalisΓ©s
599 600 label_query_new: Nouveau rapport
600 601 label_my_queries: Mes rapports personnalisΓ©s
601 602 label_filter_add: "Ajouter le filtre "
602 603 label_filter_plural: Filtres
603 604 label_equals: Γ©gal
604 605 label_not_equals: diffΓ©rent
605 606 label_in_less_than: dans moins de
606 607 label_in_more_than: dans plus de
607 608 label_in: dans
608 609 label_today: aujourd'hui
609 610 label_all_time: toute la pΓ©riode
610 611 label_yesterday: hier
611 612 label_this_week: cette semaine
612 613 label_last_week: la semaine dernière
613 614 label_last_n_days: "les %{count} derniers jours"
614 615 label_this_month: ce mois-ci
615 616 label_last_month: le mois dernier
616 617 label_this_year: cette annΓ©e
617 618 label_date_range: PΓ©riode
618 619 label_less_than_ago: il y a moins de
619 620 label_more_than_ago: il y a plus de
620 621 label_ago: il y a
621 622 label_contains: contient
622 623 label_not_contains: ne contient pas
623 624 label_day_plural: jours
624 625 label_repository: DΓ©pΓ΄t
625 626 label_repository_plural: DΓ©pΓ΄ts
626 627 label_browse: Parcourir
627 628 label_modification: "%{count} modification"
628 629 label_modification_plural: "%{count} modifications"
629 630 label_revision: "RΓ©vision "
630 631 label_revision_plural: RΓ©visions
631 632 label_associated_revisions: RΓ©visions associΓ©es
632 633 label_added: ajoutΓ©
633 634 label_modified: modifiΓ©
634 635 label_copied: copiΓ©
635 636 label_renamed: renommΓ©
636 637 label_deleted: supprimΓ©
637 638 label_latest_revision: Dernière révision
638 639 label_latest_revision_plural: Dernières révisions
639 640 label_view_revisions: Voir les rΓ©visions
640 641 label_max_size: Taille maximale
641 642 label_sort_highest: Remonter en premier
642 643 label_sort_higher: Remonter
643 644 label_sort_lower: Descendre
644 645 label_sort_lowest: Descendre en dernier
645 646 label_roadmap: Roadmap
646 647 label_roadmap_due_in: "Γ‰chΓ©ance dans %{value}"
647 648 label_roadmap_overdue: "En retard de %{value}"
648 649 label_roadmap_no_issues: Aucune demande pour cette version
649 650 label_search: "Recherche "
650 651 label_result_plural: RΓ©sultats
651 652 label_all_words: Tous les mots
652 653 label_wiki: Wiki
653 654 label_wiki_edit: RΓ©vision wiki
654 655 label_wiki_edit_plural: RΓ©visions wiki
655 656 label_wiki_page: Page wiki
656 657 label_wiki_page_plural: Pages wiki
657 658 label_index_by_title: Index par titre
658 659 label_index_by_date: Index par date
659 660 label_current_version: Version actuelle
660 661 label_preview: PrΓ©visualisation
661 662 label_feed_plural: Flux RSS
662 663 label_changes_details: DΓ©tails de tous les changements
663 664 label_issue_tracking: Suivi des demandes
664 665 label_spent_time: Temps passΓ©
665 666 label_f_hour: "%{value} heure"
666 667 label_f_hour_plural: "%{value} heures"
667 668 label_time_tracking: Suivi du temps
668 669 label_change_plural: Changements
669 670 label_statistics: Statistiques
670 671 label_commits_per_month: Commits par mois
671 672 label_commits_per_author: Commits par auteur
672 673 label_view_diff: Voir les diffΓ©rences
673 674 label_diff_inline: en ligne
674 675 label_diff_side_by_side: cΓ΄te Γ  cΓ΄te
675 676 label_options: Options
676 677 label_copy_workflow_from: Copier le workflow de
677 678 label_permissions_report: Synthèse des permissions
678 679 label_watched_issues: Demandes surveillΓ©es
679 680 label_related_issues: Demandes liΓ©es
680 681 label_applied_status: Statut appliquΓ©
681 682 label_loading: Chargement...
682 683 label_relation_new: Nouvelle relation
683 684 label_relation_delete: Supprimer la relation
684 685 label_relates_to: liΓ© Γ 
685 686 label_duplicates: duplique
686 687 label_duplicated_by: dupliquΓ© par
687 688 label_blocks: bloque
688 689 label_blocked_by: bloquΓ© par
689 690 label_precedes: précède
690 691 label_follows: suit
691 692 label_end_to_start: fin Γ  dΓ©but
692 693 label_end_to_end: fin Γ  fin
693 694 label_start_to_start: dΓ©but Γ  dΓ©but
694 695 label_start_to_end: dΓ©but Γ  fin
695 696 label_stay_logged_in: Rester connectΓ©
696 697 label_disabled: dΓ©sactivΓ©
697 698 label_show_completed_versions: Voir les versions passΓ©es
698 699 label_me: moi
699 700 label_board: Forum
700 701 label_board_new: Nouveau forum
701 702 label_board_plural: Forums
702 703 label_topic_plural: Discussions
703 704 label_message_plural: Messages
704 705 label_message_last: Dernier message
705 706 label_message_new: Nouveau message
706 707 label_message_posted: Message ajoutΓ©
707 708 label_reply_plural: RΓ©ponses
708 709 label_send_information: Envoyer les informations Γ  l'utilisateur
709 710 label_year: AnnΓ©e
710 711 label_month: Mois
711 712 label_week: Semaine
712 713 label_date_from: Du
713 714 label_date_to: Au
714 715 label_language_based: BasΓ© sur la langue de l'utilisateur
715 716 label_sort_by: "Trier par %{value}"
716 717 label_send_test_email: Envoyer un email de test
717 718 label_feeds_access_key_created_on: "Clé d'accès RSS créée il y a %{value}"
718 719 label_module_plural: Modules
719 720 label_added_time_by: "AjoutΓ© par %{author} il y a %{age}"
720 721 label_updated_time_by: "Mis Γ  jour par %{author} il y a %{age}"
721 722 label_updated_time: "Mis Γ  jour il y a %{value}"
722 723 label_jump_to_a_project: Aller Γ  un projet...
723 724 label_file_plural: Fichiers
724 725 label_changeset_plural: RΓ©visions
725 726 label_default_columns: Colonnes par dΓ©faut
726 727 label_no_change_option: (Pas de changement)
727 728 label_bulk_edit_selected_issues: Modifier les demandes sΓ©lectionnΓ©es
728 729 label_theme: Thème
729 730 label_default: DΓ©faut
730 731 label_search_titles_only: Uniquement dans les titres
731 732 label_user_mail_option_all: "Pour tous les Γ©vΓ©nements de tous mes projets"
732 733 label_user_mail_option_selected: "Pour tous les Γ©vΓ©nements des projets sΓ©lectionnΓ©s..."
733 734 label_user_mail_no_self_notified: "Je ne veux pas Γͺtre notifiΓ© des changements que j'effectue"
734 735 label_registration_activation_by_email: activation du compte par email
735 736 label_registration_manual_activation: activation manuelle du compte
736 737 label_registration_automatic_activation: activation automatique du compte
737 738 label_display_per_page: "Par page : %{value}"
738 739 label_age: Γ‚ge
739 740 label_change_properties: Changer les propriΓ©tΓ©s
740 741 label_general: GΓ©nΓ©ral
741 742 label_more: Plus
742 743 label_scm: SCM
743 744 label_plugins: Plugins
744 745 label_ldap_authentication: Authentification LDAP
745 746 label_downloads_abbr: D/L
746 747 label_optional_description: Description facultative
747 748 label_add_another_file: Ajouter un autre fichier
748 749 label_preferences: PrΓ©fΓ©rences
749 750 label_chronological_order: Dans l'ordre chronologique
750 751 label_reverse_chronological_order: Dans l'ordre chronologique inverse
751 752 label_planning: Planning
752 753 label_incoming_emails: Emails entrants
753 754 label_generate_key: GΓ©nΓ©rer une clΓ©
754 755 label_issue_watchers: Observateurs
755 756 label_example: Exemple
756 757 label_display: Affichage
757 758 label_sort: Tri
758 759 label_ascending: Croissant
759 760 label_descending: DΓ©croissant
760 761 label_date_from_to: Du %{start} au %{end}
761 762 label_wiki_content_added: Page wiki ajoutΓ©e
762 763 label_wiki_content_updated: Page wiki mise Γ  jour
763 764 label_group_plural: Groupes
764 765 label_group: Groupe
765 766 label_group_new: Nouveau groupe
766 767 label_time_entry_plural: Temps passΓ©
767 768 label_version_sharing_none: Non partagΓ©
768 769 label_version_sharing_descendants: Avec les sous-projets
769 770 label_version_sharing_hierarchy: Avec toute la hiΓ©rarchie
770 771 label_version_sharing_tree: Avec tout l'arbre
771 772 label_version_sharing_system: Avec tous les projets
772 773 label_copy_source: Source
773 774 label_copy_target: Cible
774 775 label_copy_same_as_target: Comme la cible
775 776 label_update_issue_done_ratios: Mettre Γ  jour l'avancement des demandes
776 777 label_display_used_statuses_only: N'afficher que les statuts utilisΓ©s dans ce tracker
777 778 label_api_access_key: Clé d'accès API
778 779 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
779 780 label_feeds_access_key: Clé d'accès RSS
780 781 label_missing_api_access_key: Clé d'accès API manquante
781 782 label_missing_feeds_access_key: Clé d'accès RSS manquante
782 783 label_close_versions: Fermer les versions terminΓ©es
783 784 label_revision_id: Revision %{value}
784 785 label_profile: Profil
785 786 label_subtask_plural: Sous-tΓ’ches
786 787 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
787 788 label_principal_search: "Rechercher un utilisateur ou un groupe :"
788 789 label_user_search: "Rechercher un utilisateur :"
789 790
790 791 button_login: Connexion
791 792 button_submit: Soumettre
792 793 button_save: Sauvegarder
793 794 button_check_all: Tout cocher
794 795 button_uncheck_all: Tout dΓ©cocher
795 796 button_delete: Supprimer
796 797 button_create: CrΓ©er
797 798 button_create_and_continue: CrΓ©er et continuer
798 799 button_test: Tester
799 800 button_edit: Modifier
800 801 button_add: Ajouter
801 802 button_change: Changer
802 803 button_apply: Appliquer
803 804 button_clear: Effacer
804 805 button_lock: Verrouiller
805 806 button_unlock: DΓ©verrouiller
806 807 button_download: TΓ©lΓ©charger
807 808 button_list: Lister
808 809 button_view: Voir
809 810 button_move: DΓ©placer
810 811 button_move_and_follow: DΓ©placer et suivre
811 812 button_back: Retour
812 813 button_cancel: Annuler
813 814 button_activate: Activer
814 815 button_sort: Trier
815 816 button_log_time: Saisir temps
816 817 button_rollback: Revenir Γ  cette version
817 818 button_watch: Surveiller
818 819 button_unwatch: Ne plus surveiller
819 820 button_reply: RΓ©pondre
820 821 button_archive: Archiver
821 822 button_unarchive: DΓ©sarchiver
822 823 button_reset: RΓ©initialiser
823 824 button_rename: Renommer
824 825 button_change_password: Changer de mot de passe
825 826 button_copy: Copier
826 827 button_copy_and_follow: Copier et suivre
827 828 button_annotate: Annoter
828 829 button_update: Mettre Γ  jour
829 830 button_configure: Configurer
830 831 button_quote: Citer
831 832 button_duplicate: Dupliquer
832 833 button_show: Afficher
833 834
834 835 status_active: actif
835 836 status_registered: enregistrΓ©
836 837 status_locked: verrouillΓ©
837 838
838 839 version_status_open: ouvert
839 840 version_status_locked: verrouillΓ©
840 841 version_status_closed: fermΓ©
841 842
842 843 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyΓ©e
843 844 text_regexp_info: ex. ^[A-Z0-9]+$
844 845 text_min_max_length_info: 0 pour aucune restriction
845 846 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
846 847 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront Γ©galement supprimΓ©s."
847 848 text_workflow_edit: SΓ©lectionner un tracker et un rΓ΄le pour Γ©diter le workflow
848 849 text_are_you_sure: Êtes-vous sûr ?
849 850 text_tip_issue_begin_day: tΓ’che commenΓ§ant ce jour
850 851 text_tip_issue_end_day: tΓ’che finissant ce jour
851 852 text_tip_issue_begin_end_day: tΓ’che commenΓ§ant et finissant ce jour
852 853 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Γ©.'
853 854 text_caracters_maximum: "%{count} caractères maximum."
854 855 text_caracters_minimum: "%{count} caractères minimum."
855 856 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
856 857 text_tracker_no_workflow: Aucun worflow n'est dΓ©fini pour ce tracker
857 858 text_unallowed_characters: Caractères non autorisés
858 859 text_comma_separated: Plusieurs valeurs possibles (sΓ©parΓ©es par des virgules).
859 860 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
860 861 text_issues_ref_in_commit_messages: RΓ©fΓ©rencement et rΓ©solution des demandes dans les commentaires de commits
861 862 text_issue_added: "La demande %{id} a Γ©tΓ© soumise par %{author}."
862 863 text_issue_updated: "La demande %{id} a Γ©tΓ© mise Γ  jour par %{author}."
863 864 text_wiki_destroy_confirmation: Etes-vous sΓ»r de vouloir supprimer ce wiki et tout son contenu ?
864 865 text_issue_category_destroy_question: "%{count} demandes sont affectΓ©es Γ  cette catΓ©gorie. Que voulez-vous faire ?"
865 866 text_issue_category_destroy_assignments: N'affecter les demandes Γ  aucune autre catΓ©gorie
866 867 text_issue_category_reassign_to: RΓ©affecter les demandes Γ  cette catΓ©gorie
867 868 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)."
868 869 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Γ©."
869 870 text_load_default_configuration: Charger le paramΓ©trage par dΓ©faut
870 871 text_status_changed_by_changeset: "AppliquΓ© par commit %{value}."
871 872 text_time_logged_by_changeset: "AppliquΓ© par commit %{value}"
872 873 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer le(s) demandes(s) selectionnée(s) ?'
873 874 text_select_project_modules: 'SΓ©lectionner les modules Γ  activer pour ce projet :'
874 875 text_default_administrator_account_changed: Compte administrateur par dΓ©faut changΓ©
875 876 text_file_repository_writable: RΓ©pertoire de stockage des fichiers accessible en Γ©criture
876 877 text_plugin_assets_writable: RΓ©pertoire public des plugins accessible en Γ©criture
877 878 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
878 879 text_destroy_time_entries_question: "%{hours} heures ont Γ©tΓ© enregistrΓ©es sur les demandes Γ  supprimer. Que voulez-vous faire ?"
879 880 text_destroy_time_entries: Supprimer les heures
880 881 text_assign_time_entries_to_project: Reporter les heures sur le projet
881 882 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
882 883 text_user_wrote: "%{value} a Γ©crit :"
883 884 text_enumeration_destroy_question: "Cette valeur est affectΓ©e Γ  %{count} objets."
884 885 text_enumeration_category_reassign_to: 'RΓ©affecter les objets Γ  cette valeur:'
885 886 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."
886 887 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."
887 888 text_diff_truncated: '... Ce diffΓ©rentiel a Γ©tΓ© tronquΓ© car il excΓ¨de la taille maximale pouvant Γͺtre affichΓ©e.'
888 889 text_custom_field_possible_values_info: 'Une ligne par valeur'
889 890 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
890 891 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
891 892 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
892 893 text_wiki_page_reassign_children: "RΓ©affecter les sous-pages Γ  cette page"
893 894 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 ?"
894 895 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardΓ© qui sera perdu si vous quittez la page."
895 896
896 897 default_role_manager: "Manager "
897 898 default_role_developer: "DΓ©veloppeur "
898 899 default_role_reporter: "Rapporteur "
899 900 default_tracker_bug: Anomalie
900 901 default_tracker_feature: Evolution
901 902 default_tracker_support: Assistance
902 903 default_issue_status_new: Nouveau
903 904 default_issue_status_in_progress: En cours
904 905 default_issue_status_resolved: RΓ©solu
905 906 default_issue_status_feedback: Commentaire
906 907 default_issue_status_closed: FermΓ©
907 908 default_issue_status_rejected: RejetΓ©
908 909 default_doc_category_user: Documentation utilisateur
909 910 default_doc_category_tech: Documentation technique
910 911 default_priority_low: Bas
911 912 default_priority_normal: Normal
912 913 default_priority_high: Haut
913 914 default_priority_urgent: Urgent
914 915 default_priority_immediate: ImmΓ©diat
915 916 default_activity_design: Conception
916 917 default_activity_development: DΓ©veloppement
917 918
918 919 enumeration_issue_priorities: PrioritΓ©s des demandes
919 920 enumeration_doc_categories: CatΓ©gories des documents
920 921 enumeration_activities: ActivitΓ©s (suivi du temps)
921 922 label_greater_or_equal: ">="
922 923 label_less_or_equal: "<="
923 924 label_view_all_revisions: Voir toutes les rΓ©visions
924 925 label_tag: Tag
925 926 label_branch: Branche
926 927 error_no_tracker_in_project: "Aucun tracker n'est associΓ© Γ  ce projet. VΓ©rifier la configuration du projet."
927 928 error_no_default_issue_status: "Aucun statut de demande n'est dΓ©fini par dΓ©faut. VΓ©rifier votre configuration (Administration -> Statuts de demandes)."
928 929 text_journal_changed: "%{label} changΓ© de %{old} Γ  %{new}"
929 930 text_journal_changed_no_detail: "%{label} mis Γ  jour"
930 931 text_journal_set_to: "%{label} mis Γ  %{value}"
931 932 text_journal_deleted: "%{label} %{old} supprimΓ©"
932 933 text_journal_added: "%{label} %{value} ajoutΓ©"
933 934 enumeration_system_activity: Activité système
934 935 label_board_sticky: Sticky
935 936 label_board_locked: VerrouillΓ©
936 937 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
937 938 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisΓ©
938 939 error_unable_to_connect: Connexion impossible (%{value})
939 940 error_can_not_remove_role: Ce rΓ΄le est utilisΓ© et ne peut pas Γͺtre supprimΓ©.
940 941 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas Γͺtre supprimΓ©.
941 942 field_principal: Principal
942 943 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
943 944 text_zoom_out: Zoom arrière
944 945 text_zoom_in: Zoom avant
945 946 notice_unable_delete_time_entry: Impossible de supprimer le temps passΓ©.
946 947 label_overall_spent_time: Temps passΓ© global
947 948 field_time_entries: Log time
948 949 project_module_gantt: Gantt
949 950 project_module_calendar: Calendrier
950 951 button_edit_associated_wikipage: "Modifier la page wiki associΓ©e: %{page_title}"
951 952 text_are_you_sure_with_children: Supprimer la demande et toutes ses sous-demandes ?
952 953 field_text: Champ texte
953 954 label_user_mail_option_only_owner: Seulement pour ce que j'ai créé
954 955 setting_default_notification_option: Option de notification par dΓ©faut
955 956 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
956 957 label_user_mail_option_only_assigned: Seulement pour ce qui m'est assignΓ©
957 958 label_user_mail_option_none: Aucune notification
958 959 field_member_of_group: Groupe de l'assignΓ©
959 960 field_assigned_to_role: RΓ΄le de l'assignΓ©
960 961 setting_emails_header: Emails header
@@ -1,25 +1,26
1 1 module Redmine
2 2 class Notifiable < Struct.new(:name, :parent)
3 3
4 4 def to_s
5 5 name
6 6 end
7 7
8 8 # TODO: Plugin API for adding a new notification?
9 9 def self.all
10 10 notifications = []
11 11 notifications << Notifiable.new('issue_added')
12 12 notifications << Notifiable.new('issue_updated')
13 13 notifications << Notifiable.new('issue_note_added', 'issue_updated')
14 14 notifications << Notifiable.new('issue_status_updated', 'issue_updated')
15 15 notifications << Notifiable.new('issue_priority_updated', 'issue_updated')
16 16 notifications << Notifiable.new('news_added')
17 notifications << Notifiable.new('news_comment_added')
17 18 notifications << Notifiable.new('document_added')
18 19 notifications << Notifiable.new('file_added')
19 20 notifications << Notifiable.new('message_posted')
20 21 notifications << Notifiable.new('wiki_content_added')
21 22 notifications << Notifiable.new('wiki_content_updated')
22 23 notifications
23 24 end
24 25 end
25 26 end
@@ -1,47 +1,56
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.expand_path('../../test_helper', __FILE__)
19 19
20 20 class CommentTest < ActiveSupport::TestCase
21 21 fixtures :users, :news, :comments
22 22
23 23 def setup
24 24 @jsmith = User.find(2)
25 25 @news = News.find(1)
26 26 end
27 27
28 28 def test_create
29 29 comment = Comment.new(:commented => @news, :author => @jsmith, :comments => "my comment")
30 30 assert comment.save
31 31 @news.reload
32 32 assert_equal 2, @news.comments_count
33 33 end
34 34
35 def test_create_should_send_notification
36 Setting.notified_events << 'news_comment_added'
37 Watcher.create!(:watchable => @news, :user => @jsmith)
38
39 assert_difference 'ActionMailer::Base.deliveries.size' do
40 Comment.create!(:commented => @news, :author => @jsmith, :comments => "my comment")
41 end
42 end
43
35 44 def test_validate
36 45 comment = Comment.new(:commented => @news)
37 46 assert !comment.save
38 47 assert_equal 2, comment.errors.length
39 48 end
40 49
41 50 def test_destroy
42 51 comment = Comment.find(1)
43 52 assert comment.destroy
44 53 @news.reload
45 54 assert_equal 0, @news.comments_count
46 55 end
47 56 end
@@ -1,31 +1,31
1 # redMine - project management software
2 # Copyright (C) 2006-2008 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.expand_path('../../../../test_helper', __FILE__)
19 19
20 20 class Redmine::NotifiableTest < ActiveSupport::TestCase
21 21 def setup
22 22 end
23 23
24 24 def test_all
25 assert_equal 11, Redmine::Notifiable.all.length
25 assert_equal 12, Redmine::Notifiable.all.length
26 26
27 %w(issue_added issue_updated issue_note_added issue_status_updated issue_priority_updated news_added document_added file_added message_posted wiki_content_added wiki_content_updated).each do |notifiable|
27 %w(issue_added issue_updated issue_note_added issue_status_updated issue_priority_updated news_added news_comment_added document_added file_added message_posted wiki_content_added wiki_content_updated).each do |notifiable|
28 28 assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}"
29 29 end
30 30 end
31 31 end
@@ -1,433 +1,441
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.expand_path('../../test_helper', __FILE__)
19 19
20 20 class MailerTest < ActiveSupport::TestCase
21 21 include Redmine::I18n
22 22 include ActionController::Assertions::SelectorAssertions
23 fixtures :projects, :enabled_modules, :issues, :users, :members, :member_roles, :roles, :documents, :attachments, :news, :tokens, :journals, :journal_details, :changesets, :trackers, :issue_statuses, :enumerations, :messages, :boards, :repositories
23 fixtures :all
24 24
25 25 def setup
26 26 ActionMailer::Base.deliveries.clear
27 27 Setting.host_name = 'mydomain.foo'
28 28 Setting.protocol = 'http'
29 29 end
30 30
31 31 def test_generated_links_in_emails
32 32 Setting.host_name = 'mydomain.foo'
33 33 Setting.protocol = 'https'
34 34
35 35 journal = Journal.find(2)
36 36 assert Mailer.deliver_issue_edit(journal)
37 37
38 38 mail = ActionMailer::Base.deliveries.last
39 39 assert_kind_of TMail::Mail, mail
40 40
41 41 assert_select_email do
42 42 # link to the main ticket
43 43 assert_select "a[href=?]", "https://mydomain.foo/issues/1", :text => "Bug #1: Can't print recipes"
44 44 # link to a referenced ticket
45 45 assert_select "a[href=?][title=?]", "https://mydomain.foo/issues/2", "Add ingredients categories (Assigned)", :text => "#2"
46 46 # link to a changeset
47 47 assert_select "a[href=?][title=?]", "https://mydomain.foo/projects/ecookbook/repository/revisions/2", "This commit fixes #1, #2 and references #1 &amp; #3", :text => "r2"
48 48 end
49 49 end
50 50
51 51 def test_generated_links_with_prefix
52 52 relative_url_root = Redmine::Utils.relative_url_root
53 53 Setting.host_name = 'mydomain.foo/rdm'
54 54 Setting.protocol = 'http'
55 55 Redmine::Utils.relative_url_root = '/rdm'
56 56
57 57 journal = Journal.find(2)
58 58 assert Mailer.deliver_issue_edit(journal)
59 59
60 60 mail = ActionMailer::Base.deliveries.last
61 61 assert_kind_of TMail::Mail, mail
62 62
63 63 assert_select_email do
64 64 # link to the main ticket
65 65 assert_select "a[href=?]", "http://mydomain.foo/rdm/issues/1", :text => "Bug #1: Can't print recipes"
66 66 # link to a referenced ticket
67 67 assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/issues/2", "Add ingredients categories (Assigned)", :text => "#2"
68 68 # link to a changeset
69 69 assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2", "This commit fixes #1, #2 and references #1 &amp; #3", :text => "r2"
70 70 end
71 71 ensure
72 72 # restore it
73 73 Redmine::Utils.relative_url_root = relative_url_root
74 74 end
75 75
76 76 def test_generated_links_with_prefix_and_no_relative_url_root
77 77 relative_url_root = Redmine::Utils.relative_url_root
78 78 Setting.host_name = 'mydomain.foo/rdm'
79 79 Setting.protocol = 'http'
80 80 Redmine::Utils.relative_url_root = nil
81 81
82 82 journal = Journal.find(2)
83 83 assert Mailer.deliver_issue_edit(journal)
84 84
85 85 mail = ActionMailer::Base.deliveries.last
86 86 assert_kind_of TMail::Mail, mail
87 87
88 88 assert_select_email do
89 89 # link to the main ticket
90 90 assert_select "a[href=?]", "http://mydomain.foo/rdm/issues/1", :text => "Bug #1: Can't print recipes"
91 91 # link to a referenced ticket
92 92 assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/issues/2", "Add ingredients categories (Assigned)", :text => "#2"
93 93 # link to a changeset
94 94 assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2", "This commit fixes #1, #2 and references #1 &amp; #3", :text => "r2"
95 95 end
96 96 ensure
97 97 # restore it
98 98 Redmine::Utils.relative_url_root = relative_url_root
99 99 end
100 100
101 101 def test_email_headers
102 102 issue = Issue.find(1)
103 103 Mailer.deliver_issue_add(issue)
104 104 mail = ActionMailer::Base.deliveries.last
105 105 assert_not_nil mail
106 106 assert_equal 'bulk', mail.header_string('Precedence')
107 107 assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
108 108 end
109 109
110 110 def test_plain_text_mail
111 111 Setting.plain_text_mail = 1
112 112 journal = Journal.find(2)
113 113 Mailer.deliver_issue_edit(journal)
114 114 mail = ActionMailer::Base.deliveries.last
115 115 assert_equal "text/plain", mail.content_type
116 116 assert_equal 0, mail.parts.size
117 117 assert !mail.encoded.include?('href')
118 118 end
119 119
120 120 def test_html_mail
121 121 Setting.plain_text_mail = 0
122 122 journal = Journal.find(2)
123 123 Mailer.deliver_issue_edit(journal)
124 124 mail = ActionMailer::Base.deliveries.last
125 125 assert_equal 2, mail.parts.size
126 126 assert mail.encoded.include?('href')
127 127 end
128 128
129 129 def test_mail_from_with_phrase
130 130 with_settings :mail_from => 'Redmine app <redmine@example.net>' do
131 131 Mailer.deliver_test(User.find(1))
132 132 end
133 133 mail = ActionMailer::Base.deliveries.last
134 134 assert_not_nil mail
135 135 assert_equal 'Redmine app', mail.from_addrs.first.name
136 136 end
137 137
138 138 def test_should_not_send_email_without_recipient
139 139 news = News.find(:first)
140 140 user = news.author
141 141 # Remove members except news author
142 142 news.project.memberships.each {|m| m.destroy unless m.user == user}
143 143
144 144 user.pref[:no_self_notified] = false
145 145 user.pref.save
146 146 User.current = user
147 147 Mailer.deliver_news_added(news.reload)
148 148 assert_equal 1, last_email.bcc.size
149 149
150 150 # nobody to notify
151 151 user.pref[:no_self_notified] = true
152 152 user.pref.save
153 153 User.current = user
154 154 ActionMailer::Base.deliveries.clear
155 155 Mailer.deliver_news_added(news.reload)
156 156 assert ActionMailer::Base.deliveries.empty?
157 157 end
158 158
159 159 def test_issue_add_message_id
160 160 issue = Issue.find(1)
161 161 Mailer.deliver_issue_add(issue)
162 162 mail = ActionMailer::Base.deliveries.last
163 163 assert_not_nil mail
164 164 assert_equal Mailer.message_id_for(issue), mail.message_id
165 165 assert_nil mail.references
166 166 end
167 167
168 168 def test_issue_edit_message_id
169 169 journal = Journal.find(1)
170 170 Mailer.deliver_issue_edit(journal)
171 171 mail = ActionMailer::Base.deliveries.last
172 172 assert_not_nil mail
173 173 assert_equal Mailer.message_id_for(journal), mail.message_id
174 174 assert_equal Mailer.message_id_for(journal.issue), mail.references.first.to_s
175 175 end
176 176
177 177 def test_message_posted_message_id
178 178 message = Message.find(1)
179 179 Mailer.deliver_message_posted(message)
180 180 mail = ActionMailer::Base.deliveries.last
181 181 assert_not_nil mail
182 182 assert_equal Mailer.message_id_for(message), mail.message_id
183 183 assert_nil mail.references
184 184 assert_select_email do
185 185 # link to the message
186 186 assert_select "a[href=?]", "http://mydomain.foo/boards/#{message.board.id}/topics/#{message.id}", :text => message.subject
187 187 end
188 188 end
189 189
190 190 def test_reply_posted_message_id
191 191 message = Message.find(3)
192 192 Mailer.deliver_message_posted(message)
193 193 mail = ActionMailer::Base.deliveries.last
194 194 assert_not_nil mail
195 195 assert_equal Mailer.message_id_for(message), mail.message_id
196 196 assert_equal Mailer.message_id_for(message.parent), mail.references.first.to_s
197 197 assert_select_email do
198 198 # link to the reply
199 199 assert_select "a[href=?]", "http://mydomain.foo/boards/#{message.board.id}/topics/#{message.root.id}?r=#{message.id}#message-#{message.id}", :text => message.subject
200 200 end
201 201 end
202 202
203 203 context("#issue_add") do
204 204 setup do
205 205 ActionMailer::Base.deliveries.clear
206 206 Setting.bcc_recipients = '1'
207 207 @issue = Issue.find(1)
208 208 end
209 209
210 210 should "notify project members" do
211 211 assert Mailer.deliver_issue_add(@issue)
212 212 assert last_email.bcc.include?('dlopper@somenet.foo')
213 213 end
214 214
215 215 should "not notify project members that are not allow to view the issue" do
216 216 Role.find(2).remove_permission!(:view_issues)
217 217 assert Mailer.deliver_issue_add(@issue)
218 218 assert !last_email.bcc.include?('dlopper@somenet.foo')
219 219 end
220 220
221 221 should "notify issue watchers" do
222 222 user = User.find(9)
223 223 # minimal email notification options
224 224 user.pref[:no_self_notified] = '1'
225 225 user.pref.save
226 226 user.mail_notification = false
227 227 user.save
228 228
229 229 Watcher.create!(:watchable => @issue, :user => user)
230 230 assert Mailer.deliver_issue_add(@issue)
231 231 assert last_email.bcc.include?(user.mail)
232 232 end
233 233
234 234 should "not notify watchers not allowed to view the issue" do
235 235 user = User.find(9)
236 236 Watcher.create!(:watchable => @issue, :user => user)
237 237 Role.non_member.remove_permission!(:view_issues)
238 238 assert Mailer.deliver_issue_add(@issue)
239 239 assert !last_email.bcc.include?(user.mail)
240 240 end
241 241 end
242 242
243 243 # test mailer methods for each language
244 244 def test_issue_add
245 245 issue = Issue.find(1)
246 246 valid_languages.each do |lang|
247 247 Setting.default_language = lang.to_s
248 248 assert Mailer.deliver_issue_add(issue)
249 249 end
250 250 end
251 251
252 252 def test_issue_edit
253 253 journal = Journal.find(1)
254 254 valid_languages.each do |lang|
255 255 Setting.default_language = lang.to_s
256 256 assert Mailer.deliver_issue_edit(journal)
257 257 end
258 258 end
259 259
260 260 def test_document_added
261 261 document = Document.find(1)
262 262 valid_languages.each do |lang|
263 263 Setting.default_language = lang.to_s
264 264 assert Mailer.deliver_document_added(document)
265 265 end
266 266 end
267 267
268 268 def test_attachments_added
269 269 attachements = [ Attachment.find_by_container_type('Document') ]
270 270 valid_languages.each do |lang|
271 271 Setting.default_language = lang.to_s
272 272 assert Mailer.deliver_attachments_added(attachements)
273 273 end
274 274 end
275 275
276 276 def test_version_file_added
277 277 attachements = [ Attachment.find_by_container_type('Version') ]
278 278 assert Mailer.deliver_attachments_added(attachements)
279 279 assert_not_nil last_email.bcc
280 280 assert last_email.bcc.any?
281 281 end
282 282
283 283 def test_project_file_added
284 284 attachements = [ Attachment.find_by_container_type('Project') ]
285 285 assert Mailer.deliver_attachments_added(attachements)
286 286 assert_not_nil last_email.bcc
287 287 assert last_email.bcc.any?
288 288 end
289 289
290 290 def test_news_added
291 291 news = News.find(:first)
292 292 valid_languages.each do |lang|
293 293 Setting.default_language = lang.to_s
294 294 assert Mailer.deliver_news_added(news)
295 295 end
296 296 end
297 297
298 def test_news_comment_added
299 comment = Comment.find(2)
300 valid_languages.each do |lang|
301 Setting.default_language = lang.to_s
302 assert Mailer.deliver_news_comment_added(comment)
303 end
304 end
305
298 306 def test_message_posted
299 307 message = Message.find(:first)
300 308 recipients = ([message.root] + message.root.children).collect {|m| m.author.mail if m.author}
301 309 recipients = recipients.compact.uniq
302 310 valid_languages.each do |lang|
303 311 Setting.default_language = lang.to_s
304 312 assert Mailer.deliver_message_posted(message)
305 313 end
306 314 end
307 315
308 316 def test_wiki_content_added
309 317 content = WikiContent.find(:first)
310 318 valid_languages.each do |lang|
311 319 Setting.default_language = lang.to_s
312 320 assert_difference 'ActionMailer::Base.deliveries.size' do
313 321 assert Mailer.deliver_wiki_content_added(content)
314 322 end
315 323 end
316 324 end
317 325
318 326 def test_wiki_content_updated
319 327 content = WikiContent.find(:first)
320 328 valid_languages.each do |lang|
321 329 Setting.default_language = lang.to_s
322 330 assert_difference 'ActionMailer::Base.deliveries.size' do
323 331 assert Mailer.deliver_wiki_content_updated(content)
324 332 end
325 333 end
326 334 end
327 335
328 336 def test_account_information
329 337 user = User.find(2)
330 338 valid_languages.each do |lang|
331 339 user.update_attribute :language, lang.to_s
332 340 user.reload
333 341 assert Mailer.deliver_account_information(user, 'pAsswORd')
334 342 end
335 343 end
336 344
337 345 def test_lost_password
338 346 token = Token.find(2)
339 347 valid_languages.each do |lang|
340 348 token.user.update_attribute :language, lang.to_s
341 349 token.reload
342 350 assert Mailer.deliver_lost_password(token)
343 351 end
344 352 end
345 353
346 354 def test_register
347 355 token = Token.find(1)
348 356 Setting.host_name = 'redmine.foo'
349 357 Setting.protocol = 'https'
350 358
351 359 valid_languages.each do |lang|
352 360 token.user.update_attribute :language, lang.to_s
353 361 token.reload
354 362 ActionMailer::Base.deliveries.clear
355 363 assert Mailer.deliver_register(token)
356 364 mail = ActionMailer::Base.deliveries.last
357 365 assert mail.body.include?("https://redmine.foo/account/activate?token=#{token.value}")
358 366 end
359 367 end
360 368
361 369 def test_test
362 370 user = User.find(1)
363 371 valid_languages.each do |lang|
364 372 user.update_attribute :language, lang.to_s
365 373 assert Mailer.deliver_test(user)
366 374 end
367 375 end
368 376
369 377 def test_reminders
370 378 Mailer.reminders(:days => 42)
371 379 assert_equal 1, ActionMailer::Base.deliveries.size
372 380 mail = ActionMailer::Base.deliveries.last
373 381 assert mail.bcc.include?('dlopper@somenet.foo')
374 382 assert mail.body.include?('Bug #3: Error 281 when updating a recipe')
375 383 assert_equal '1 issue(s) due in the next 42 days', mail.subject
376 384 end
377 385
378 386 def test_reminders_for_users
379 387 Mailer.reminders(:days => 42, :users => ['5'])
380 388 assert_equal 0, ActionMailer::Base.deliveries.size # No mail for dlopper
381 389 Mailer.reminders(:days => 42, :users => ['3'])
382 390 assert_equal 1, ActionMailer::Base.deliveries.size # No mail for dlopper
383 391 mail = ActionMailer::Base.deliveries.last
384 392 assert mail.bcc.include?('dlopper@somenet.foo')
385 393 assert mail.body.include?('Bug #3: Error 281 when updating a recipe')
386 394 end
387 395
388 396 def last_email
389 397 mail = ActionMailer::Base.deliveries.last
390 398 assert_not_nil mail
391 399 mail
392 400 end
393 401
394 402 def test_mailer_should_not_change_locale
395 403 Setting.default_language = 'en'
396 404 # Set current language to italian
397 405 set_language_if_valid 'it'
398 406 # Send an email to a french user
399 407 user = User.find(1)
400 408 user.language = 'fr'
401 409 Mailer.deliver_account_activated(user)
402 410 mail = ActionMailer::Base.deliveries.last
403 411 assert mail.body.include?('Votre compte')
404 412
405 413 assert_equal :it, current_language
406 414 end
407 415
408 416 def test_with_deliveries_off
409 417 Mailer.with_deliveries false do
410 418 Mailer.deliver_test(User.find(1))
411 419 end
412 420 assert ActionMailer::Base.deliveries.empty?
413 421 # should restore perform_deliveries
414 422 assert ActionMailer::Base.perform_deliveries
415 423 end
416 424
417 425 context "layout" do
418 426 should "include the emails_header" do
419 427 with_settings(:emails_header => "*Header content*") do
420 428 assert Mailer.deliver_test(User.find(1))
421 429
422 430 assert_select_email do
423 431 assert_select ".header" do
424 432 assert_select "strong", :text => "Header content"
425 433 end
426 434 end
427 435 end
428 436
429 437 end
430 438
431 439 end
432 440
433 441 end
General Comments 0
You need to be logged in to leave comments. Login now