From: Andy Allan Date: Wed, 8 Feb 2023 14:11:45 +0000 (+0000) Subject: Refactor translation to avoid raw html tags X-Git-Tag: live~1350^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/317b1871f48db1da4abd315c3e67edb910af6b57?hp=e11c70f751b69d2d675064d1952cd01d069b4654 Refactor translation to avoid raw html tags --- 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."