From 317b1871f48db1da4abd315c3e67edb910af6b57 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 8 Feb 2023 14:11:45 +0000 Subject: [PATCH] Refactor translation to avoid raw html tags --- app/views/site/export.html.erb | 2 +- config/locales/en.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/site/export.html.erb b/app/views/site/export.html.erb index 6dd54f315..a314cb151 100644 --- a/app/views/site/export.html.erb +++ b/app/views/site/export.html.erb @@ -18,7 +18,7 @@

<%= t ".licence" %>

-

<%= t ".export_details_html" %>

+

<%= t ".licence_details_html", :odbl_link => link_to(t(".odbl"), t(".odbl_url")) %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 7ed1eb10a..2f9e20e79 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2058,7 +2058,9 @@ en: map_image: "Map Image (shows standard layer)" embeddable_html: "Embeddable HTML" licence: "Licence" - export_details_html: 'OpenStreetMap data is licensed under the Open Data Commons Open Database License (ODbL).' + licence_details_html: OpenStreetMap data is licensed under the %{odbl_link} (ODbL). + odbl: Open Data Commons Open Database License + odbl_url: https://opendatacommons.org/licenses/odbl/1.0/ too_large: advice: "If the above export fails, please consider using one of the sources listed below:" body: "This area is too large to be exported as OpenStreetMap XML Data. Please zoom in or select a smaller area, or use one of the sources listed below for bulk data downloads." -- 2.45.1