]> git.openstreetmap.org Git - rails.git/commitdiff
Move localised text to locale file
authorHerve Saint-Amand <git@saintamh.org>
Sun, 1 Jan 2017 22:30:41 +0000 (22:30 +0000)
committerHerve Saint-Amand <git@saintamh.org>
Sun, 1 Jan 2017 22:30:41 +0000 (22:30 +0000)
Moved a string of English text that will require translation from the HTML template to the locale I18N file.

app/views/notifier/changeset_comment_notification.html.erb
config/locales/en.yml

index d7bedad6375a8f76919c95b8c2ae8dc72ae55c2a..03658852a262983cf5b99b8dca81ddcaeb33f9a2 100644 (file)
@@ -61,9 +61,7 @@
       <tr>
         <td style="text-align: center; font-size: 11px">
           <p>
-            To unsubscribe from updates to this changeset, visit
-            <nobr><a style="color: #222" href="<%= @changeset_url %>"><%= @changeset_url %></a></nobr>
-            and click 'Unsubscribe'
+            <%= t 'notifier.changeset_comment_notification.unsubscribe_html', :url => @changeset_url %>
           </p>
           <p style="margin-bottom: 10px">
             <a href="https://www.openstreetmap.org/" target="_blank" style="color: #222">OpenStreetMap.org</a>
index 8cd04e3ce0eb33660915056174cc32832ebbd1c3..7a255cd4b5c82e2e08e115b527aff5c634db0ebe 100644 (file)
@@ -1329,6 +1329,9 @@ en:
       details: "More details about the changeset can be found at %{url}."
       details_html: 'More details about the changeset can be found at
          <nobr>%{url}</nobr>.'
+      unsubscribe_html: 'To unsubscribe from updates to this changeset,
+        visit <nobr><a style="color: #222" href="%{url}">%{url}</a></nobr>
+        and click "Unsubscribe".'
   message:
     inbox:
       title: "Inbox"