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,
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,
-Hi,
+<%= t'notifier.gpx_notification.greeting' %>
-It looks like your GPX file
+<%= t'notifier.gpx_notification.your_gpx_file' %>
<%= @trace_name %>
-with the description
+<%= t'notifier.gpx_notification.with_description' %>
<%= @trace_description %>
<% if @trace_tags.length>0 %>
-and the following tags:
+<%= t'notifier.gpx_notification.and_the_tags' %>
<% @trace_tags.each do |tag| %>
<%= tag.tag.rstrip %><% end %><% else %>
-and no tags.<% end %>
+<%= t'notifier.gpx_notification.and_no_tags' %><% end %>
<%= render :partial => "gpx_description" %>
-failed to import. Here's the error:
+<%= t'notifier.gpx_notification.failure.failed_to_import' %>
<%= @error %>
-More information about GPX import failures and how to avoid
-them can be found at:
+<%= t'notifier.gpx_notification.failure.more_info_1' %>
+<%= t'notifier.gpx_notification.failure.more_info_2' %>
- http://wiki.openstreetmap.org/wiki/GPX_Import_Failures
+ <%= t'notifier.gpx_notification.failure.import_failures_url' %>
<%= render :partial => "gpx_description" %>
-loaded successfully with <%= @trace_points %> out of a possible
-<%= @possible_points %> points.
+<%= t'notifier.gpx_notification.success.loaded_successfully', :trace_points => @trace_points, :possible_points => @possible_points %>
subject: "[OpenStreetMap] {{user}} added you as a friend"
had_added_you: "{{user}} has added you as a friend on OpenStreetMap."
see_their_profile: "You can see their profile at {{userurl}} and add them as a friend too if you wish."
+ gpx_notification:
+ greeting: "Hi,"
+ your_gpx_file: "It looks like your GPX file"
+ with_description: "with the description"
+ and_the_tags: "and the following tags:"
+ and_no_tags: "and no tags."
+ failure:
+ subject: "[OpenStreetMap] GPX Import failure"
+ failed_to_import: "failed to import. Here's the error:"
+ more_info_1: "More information about GPX import failures and how to avoid"
+ more_info_2: "them can be found at:"
+ import_failures_url: "http://wiki.openstreetmap.org/wiki/GPX_Import_Failures"
+ success:
+ subject: "[OpenStreetMap] GPX Import success"
+ loaded_successfully: |
+ loaded successfully with {{trace_points}} out of a possible
+ {{possible_points}} points.
signup_confirm:
subject: "[OpenStreetMap] Confirm your email address"
signup_confirm_plain: