Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/5492'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 12, 2025
2 parents 5d79f12 + 4c73b26 commit 5d76ec0
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@
<dt><%= t ".tags" %>
<dd><%= @trace_tags.map(&:tag).join(", ") %>
<% end %>
<% if @possible_points %>
<dt><%= t ".total_points" %>
<dd><%= @possible_points %>
<% end %>
<% if @trace_points %>
<dt><%= t ".imported_points" %>
<dd><%= @trace_points %>
<% end %>
</dl>
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@
<%= t ".tags" %>
<%= @trace_tags.map(&:tag).join(", ") %>
<% end %>
<% if @possible_points %>
<%= t ".total_points" %>
<%= @possible_points %>
<% end %>
<% if @trace_points %>
<%= t ".imported_points" %>
<%= @trace_points %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/user_mailer/gpx_failure.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p><%= t ".failed_to_import" %>

<%= render :partial => "gpx_description" %>
<%= render :partial => "gpx_details" %>

<p><%= t ".verify" %></p>

Expand Down
2 changes: 1 addition & 1 deletion app/views/user_mailer/gpx_failure.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<%= t ".failed_to_import" %>

<%= render :partial => "gpx_description" %>
<%= render :partial => "gpx_details" %>

<%= t ".verify" %>

Expand Down
4 changes: 2 additions & 2 deletions app/views/user_mailer/gpx_success.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p><%= t ".hi", :to_user => @to_user %></p>

<p><%= t ".loaded_successfully", :trace_points => @trace_points, :count => @possible_points %>
<p><%= t ".imported_successfully" %></p>

<%= render :partial => "gpx_description" %>
<%= render :partial => "gpx_details" %>

<p>
<%= t ".all_your_traces_html", :url => link_to(@my_traces_url, @my_traces_url) %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/user_mailer/gpx_success.text.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= t ".hi", :to_user => @to_user %>

<%= t ".loaded_successfully", :trace_points => @trace_points, :count => @possible_points %>
<%= t ".imported_successfully" %>

<%= render :partial => "gpx_description" %>
<%= render :partial => "gpx_details" %>

<%= t ".all_your_traces", :url => @my_traces_url %>
8 changes: 4 additions & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1668,12 +1668,14 @@ en:
see_their_profile_html: "You can see their profile at %{userurl}."
befriend_them: "You can also add them as a friend at %{befriendurl}."
befriend_them_html: "You can also add them as a friend at %{befriendurl}."
gpx_description:
gpx_details:
details: "Your file details:"
filename: Filename
url: URL
description: Description
tags: Tags
total_points: Total number of points
imported_points: Number of imported points
gpx_failure:
hi: "Hi %{to_user},"
failed_to_import: "It looks like your file failed to be imported as a GPS trace."
Expand All @@ -1684,9 +1686,7 @@ en:
subject: "[OpenStreetMap] GPX Import failure"
gpx_success:
hi: "Hi %{to_user},"
loaded_successfully:
one: "It looks like your file loaded successfully with %{trace_points} out of a possible %{count} point."
other: "It looks like your file loaded successfully with %{trace_points} out of a possible %{count} points."
imported_successfully: "It looks like your file was imported successfully as a GPS trace."
all_your_traces: "All your successfully uploaded GPX traces can be found at %{url}"
all_your_traces_html: "All your successfully uploaded GPX traces can be found at %{url}."
subject: "[OpenStreetMap] GPX Import success"
Expand Down

0 comments on commit 5d76ec0

Please sign in to comment.