From: Andy Allan Date: Wed, 29 Mar 2023 10:29:18 +0000 (+0100) Subject: Avoid raw html in translations for the note icon X-Git-Tag: live~1561^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7751f7a04b385642f6e38bfab084d902c7651b99 Avoid raw html in translations for the note icon --- 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: