From 7751f7a04b385642f6e38bfab084d902c7651b99 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 29 Mar 2023 11:29:18 +0100 Subject: [PATCH] Avoid raw html in translations for the note icon --- app/views/site/fixthemap.html.erb | 2 +- config/locales/en.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index ab8684116..c1a61362f 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -22,7 +22,7 @@
<%= t "site.welcome.add_a_note.title" %>

<%= t "site.welcome.add_a_note.para_1" %>

-

<%= t ".how_to_help.add_a_note.instructions_html", :map_url => root_path %>

+

<%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note") %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index f431ccde7..9969c59bc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2141,8 +2141,8 @@ en: If you have noticed a problem with our map data, for example a road is missing or your address, the best way to proceed is to join the OpenStreetMap community and add or repair the data yourself. add_a_note: - instructions_html: | - Just click or the same icon on the map display. + instructions_1_html: | + Just click %{note_icon} or the same icon on the map display. This will add a marker to the map, which you can move by dragging. Add your message, then click save, and other mappers will investigate. other_concerns: -- 2.39.5