Feature #41450 » filename_in_subject_v2.diff
app/models/mailer.rb | ||
---|---|---|
187 | 187 |
added_to_url = url_for(:controller => 'documents', :action => 'show', :id => container.id) |
188 | 188 |
added_to = "#{l(:label_document)}: #{container.title}" |
189 | 189 |
end |
190 |
if attachments.length > 0 |
|
191 |
title = l(:label_attachment_count, |
|
192 |
:filename => attachments[0].filename, |
|
193 |
:count => attachments.length-1) |
|
194 |
else |
|
195 |
# never happens |
|
196 |
title = "" |
|
197 |
end |
|
190 | 198 |
redmine_headers 'Project' => container.project.identifier |
191 | 199 |
@attachments = attachments |
192 | 200 |
@user = user |
193 | 201 |
@added_to = added_to |
194 | 202 |
@added_to_url = added_to_url |
195 | 203 |
mail :to => user, |
196 |
:subject => "[#{container.project.name}] #{l(:label_attachment_new)}" |
|
204 |
:subject => "[#{container.project.name}] #{l(:label_attachment_new)}#{title}"
|
|
197 | 205 |
end |
198 | 206 | |
199 | 207 |
# Notifies users about new attachments |
config/locales/en.yml | ||
---|---|---|
1420 | 1420 |
text_user_destroy_confirmation: "Are you sure you want to delete this user and remove all references to them? This cannot be undone. Often, locking a user instead of deleting them is the better solution. To confirm, please enter their login (%{login}) below." |
1421 | 1421 |
text_project_destroy_enter_identifier: "To confirm, please enter the project's identifier (%{identifier}) below." |
1422 | 1422 |
field_name_or_email_or_login: Name, email or login |
1423 |
label_attachment_count: |
|
1424 |
zero: ": %{filename}" |
|
1425 |
one: ": %{filename} and 1 file" |
|
1426 |
other: ": %{filename} and %{count} files" |
config/locales/ja.yml | ||
---|---|---|
1446 | 1446 |
setting_copy_attachments_on_issue_copy: チケットをコピーするとき添付ファイルもコピー |
1447 | 1447 |
field_thousands_delimiter: 3桁区切り表示 |
1448 | 1448 |
label_involved_principals: 作成者 / 直前担当者 |
1449 |
label_attachment_count: |
|
1450 |
zero: ": %{filename}" |
|
1451 |
other: ": %{filename}、他%{count}件" |
- « Previous
- 1
- 2
- Next »