From: Andy Allan Date: Wed, 15 Mar 2023 15:21:11 +0000 (+0000) Subject: Avoid using raw html in credit translations X-Git-Tag: live~1314^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/071f2798d41e8ba8474bc110aa2e7bf3c1f48db6 Avoid using raw html in credit translations --- diff --git a/app/views/site/copyright.html.erb b/app/views/site/copyright.html.erb index 100b485aa..d9521716d 100644 --- a/app/views/site/copyright.html.erb +++ b/app/views/site/copyright.html.erb @@ -100,17 +100,82 @@

<%= t ".legal_babble.contributors_title_html" %>

<%= t ".legal_babble.contributors_intro_html" %>

<%= t ".legal_babble.contributors_2_html", diff --git a/config/locales/en.yml b/config/locales/en.yml index d2dcba8e7..ee97ebca2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1944,57 +1944,87 @@ en: Our contributors are thousands of individuals. We also include openly-licensed data from national mapping agencies and other sources, among them: - contributors_at_html: | - Austria: Contains data from - Stadt Wien (under - CC BY), - Land Vorarlberg and - Land Tirol (under CC BY AT with amendments). - contributors_au_html: | - Australia: Incorporates or developed using Administrative Boundaries © - Geoscape Australia - licensed by the Commonwealth of Australia under - Creative Commons Attribution 4.0 International licence (CC BY 4.0). - contributors_ca_html: | - Canada: Contains data from + contributors_at_credit_html: | + %{austria}: Contains data from %{stadt_wien_link} (under %{cc_by_link}), %{land_vorarlberg_link} + and Land Tirol (under %{cc_by_at_with_amendments_link}). + contributors_at_austria: Austria + contributors_at_stadt_wien: Stadt Wien + contributors_at_stadt_wien_url: https://data.wien.gv.at/ + contributors_at_cc_by: CC BY + contributors_at_cc_by_url: https://creativecommons.org/licenses/by/3.0/at/deed.de + contributors_at_land_vorarlberg: Land Vorarlberg + contributors_at_land_vorarlberg_url: https://www.vorarlberg.at/vorarlberg/bauen_wohnen/bauen/vermessung_geoinformation/weitereinformationen/services/wmsdienste.htm + contributors_at_cc_by_at_with_amendments: CC BY AT with amendments + contributors_at_cc_by_at_with_amendments_url: https://www.tirol.gv.at/applikationen/e-government/data/nutzungsbedingungen/ + contributors_au_credit_html: | + %{australia}: Incorporates or developed using Administrative Boundaries © %{geoscape_australia_link} + licensed by the Commonwealth of Australia under %{cc_licence_link}. + contributors_au_australia: Australia + contributors_au_geoscape_australia: Geoscape Australia + contributors_au_geoscape_australia_url: https://geoscape.com.au/legal/data-copyright-and-disclaimer/ + contributors_au_cc_licence: Creative Commons Attribution 4.0 International licence (CC BY 4.0) + contributors_au_cc_licence_url: https://creativecommons.org/licenses/by/4.0/ + contributors_ca_credit_html: | + %{canada}: Contains data from GeoBase®, GeoGratis (© Department of Natural Resources Canada), CanVec (© Department of Natural Resources Canada), and StatCan (Geography Division, Statistics Canada). - contributors_fi_html: | - Finland: Contains data from the + contributors_ca_canada: Canada + contributors_fi_credit_html: | + %{finland}: Contains data from the National Land Survey of Finland's Topographic Database - and other datasets, under the - NLSFI License. - contributors_fr_html: | - France: Contains data sourced from + and other datasets, under the %{nlsfi_license_link}. + contributors_fi_finland: Finland + contributors_fi_nlsfi_license: NLSFI License + contributors_fi_nlsfi_license_url: https://www.maanmittauslaitos.fi/en/opendata-licence-version1 + contributors_fr_credit_html: | + %{france}: Contains data sourced from Direction Générale des Impôts. - contributors_nl_html: | - Netherlands: Contains © AND data, 2007 - (www.and.com) - contributors_nz_html: | - New Zealand: Contains data sourced from the - LINZ Data Service and - licensed for reuse under - CC BY 4.0. - contributors_si_html: | - Slovenia: Contains data from the - Surveying and Mapping Authority and - Ministry of Agriculture, Forestry and Food + contributors_fr_france: France + contributors_nl_credit_html: | + %{netherlands}: Contains © AND data, 2007 (%{and_link}) + contributors_nl_netherlands: Netherlands + contributors_nl_and: www.and.com + contributors_nl_and_url: https://www.and.com + contributors_nz_credit_html: | + %{new_zealand}: Contains data sourced from the %{linz_data_service_link} + and licensed for reuse under %{cc_by_link}. + contributors_nz_new_zealand: New Zealand + contributors_nz_linz_data_service: LINZ Data Service + contributors_nz_linz_data_service_url: https://data.linz.govt.nz/ + contributors_nz_cc_by: CC BY 4.0 + contributors_nz_cc_by_url: https://creativecommons.org/licenses/by/4.0/ + contributors_si_credit_html: | + %{slovenia}: Contains data from the %{gu_link} and %{mkgp_link} (public information of Slovenia). - contributors_es_html: | - Spain: Contains data sourced from the - Spanish National Geographic Institute (IGN) and - National Cartographic System (SCNE) - licensed for reuse under CC BY 4.0. - contributors_za_html: | - South Africa: Contains data sourced from - Chief Directorate: - National Geo-Spatial Information, State copyright reserved. - contributors_gb_html: | - United Kingdom: Contains Ordnance + contributors_si_slovenia: Slovenia + contributors_si_gu: Surveying and Mapping Authority + contributors_si_gu_url: http://www.gu.gov.si/en/ + contributors_si_mkgp: Ministry of Agriculture, Forestry and Food + contributors_si_mkgp_url: http://www.mkgp.gov.si/en/ + contributors_es_credit_html: | + %{spain}: Contains data sourced from the + Spanish National Geographic Institute (%{ign_link}) and + National Cartographic System (%{scne_link}) + licensed for reuse under %{cc_by_link}. + contributors_es_spain: Spain + contributors_es_ign: IGN + contributors_es_ign_url: http://www.ign.es/ + contributors_es_scne: SCNE + contributors_es_scne_url: http://www.scne.es/ + contributors_es_cc_by: CC BY 4.0 + contributors_es_cc_by_url: https://creativecommons.org/licenses/by/4.0/ + contributors_za_credit_html: | + %{south_africa}: Contains data sourced from %{ngi_link}, State copyright reserved. + contributors_za_south_africa: South Africa + contributors_za_ngi: "Chief Directorate: National Geo-Spatial Information" + contributors_za_ngi_url: http://www.ngi.gov.za/ + contributors_gb_credit_html: | + %{united_kingdom}: Contains Ordnance Survey data © Crown copyright and database right 2010-2023. + contributors_gb_united_kingdom: United Kingdom contributors_2_html: | For further details of these, and other sources that have been used to help improve OpenStreetMap, please see the %{contributors_page_link} on the OpenStreetMap Wiki.