Made GPX notification E-Mails translatable
The multiline 'notifier.gpx_notification.success.loaded_successfully' message is how one should properly do multiline messages to be embedded into E-Mail. It wraps at 80 columns (if translated correctly) and isn't as inhererently limited as splitting the E-Mail into one message per-line like the other notification messages do it.
This commit is contained in:
parent
2b07fd8b4b
commit
938cdd8503
5 changed files with 29 additions and 13 deletions
|
@ -33,7 +33,7 @@ class Notifier < ActionMailer::Base
|
|||
|
||||
def gpx_success(trace, possible_points)
|
||||
common_headers trace.user
|
||||
subject "[OpenStreetMap] GPX Import success"
|
||||
subject I18n.t('notifier.gpx_notification.success.subject')
|
||||
body :trace_name => trace.name,
|
||||
:trace_points => trace.size,
|
||||
:trace_description => trace.description,
|
||||
|
@ -44,7 +44,7 @@ class Notifier < ActionMailer::Base
|
|||
def gpx_failure(trace, error)
|
||||
common_headers trace.user
|
||||
from "webmaster@openstreetmap.org"
|
||||
subject "[OpenStreetMap] GPX Import failure"
|
||||
subject I18n.t('notifier.gpx_notification.failure.subject')
|
||||
body :trace_name => trace.name,
|
||||
:trace_description => trace.description,
|
||||
:trace_tags => trace.tags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue