From: Herve Saint-Amand Date: Sun, 1 Jan 2017 22:30:41 +0000 (+0000) Subject: Move localised text to locale file X-Git-Tag: live~3588^2~34 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/20bd72d9e9a8efd50856d91cf48a57926b9a13f5?ds=inline Move localised text to locale file Moved a string of English text that will require translation from the HTML template to the locale I18N file. --- diff --git a/app/views/notifier/changeset_comment_notification.html.erb b/app/views/notifier/changeset_comment_notification.html.erb index d7bedad63..03658852a 100644 --- a/app/views/notifier/changeset_comment_notification.html.erb +++ b/app/views/notifier/changeset_comment_notification.html.erb @@ -61,9 +61,7 @@

- To unsubscribe from updates to this changeset, visit - <%= @changeset_url %> - and click 'Unsubscribe' + <%= t 'notifier.changeset_comment_notification.unsubscribe_html', :url => @changeset_url %>

OpenStreetMap.org diff --git a/config/locales/en.yml b/config/locales/en.yml index 8cd04e3ce..7a255cd4b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 %{url}.' + unsubscribe_html: 'To unsubscribe from updates to this changeset, + visit %{url} + and click "Unsubscribe".' message: inbox: title: "Inbox"