From 20bd72d9e9a8efd50856d91cf48a57926b9a13f5 Mon Sep 17 00:00:00 2001 From: Herve Saint-Amand Date: Sun, 1 Jan 2017 22:30:41 +0000 Subject: [PATCH] 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. --- app/views/notifier/changeset_comment_notification.html.erb | 4 +--- config/locales/en.yml | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) 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" -- 2.39.5