From: Andy Allan Date: Wed, 25 Apr 2018 08:40:22 +0000 (+0800) Subject: Use lazy lookups and rename translation keys for export X-Git-Tag: live~3043^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fb16b5ed14fa9f7f043522674fb4f37628f07c8e Use lazy lookups and rename translation keys for export --- diff --git a/app/views/site/export.html.erb b/app/views/site/export.html.erb index bf5376fb5..f11ad8d79 100644 --- a/app/views/site/export.html.erb +++ b/app/views/site/export.html.erb @@ -1,8 +1,8 @@ -<% set_title(t('export.title')) %> +<% set_title(t('.title')) %>

- <%= t 'export.title' %> + <%= t '.title' %>

<%= form_tag({:controller => "export", :action => "finish"}, :class => "export_form") do %> @@ -17,37 +17,37 @@

<%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %> - <%= t'export.start.manually_select' %> + <%= t '.manually_select' %> -

<%= t'export.start.licence' %>

-

<%= raw t 'export.start.export_details' %>

+

<%= t '.licence' %>

+

<%= raw t '.export_details' %>

- <%= t'export.start.too_large.body' %> + <%= t '.too_large.body' %>

- <%= submit_tag t('export.start.export_button') %> + <%= submit_tag t('.export_button') %>
-

<%= t'export.start.too_large.advice' %>

+

<%= t '.too_large.advice' %>

-
-
<%= t'export.start.too_large.overpass.title' %>
-
<%= t'export.start.too_large.overpass.description' %>
- -
<%= t'export.start.too_large.planet.title' %>
-
<%= t'export.start.too_large.planet.description' %>
+
+
<%= t '.too_large.overpass.title' %>
+
<%= t '.too_large.overpass.description' %>
-
<%= t'export.start.too_large.geofabrik.title' %>
-
<%= t'export.start.too_large.geofabrik.description' %>
+
<%= t '.too_large.planet.title' %>
+
<%= t '.too_large.planet.description' %>
-
<%= t'export.start.too_large.other.title' %>
-
<%= t'export.start.too_large.other.description' %>
+
<%= t '.too_large.geofabrik.title' %>
+
<%= t '.too_large.geofabrik.description' %>
+ +
<%= t '.too_large.other.title' %>
+
<%= t '.too_large.other.description' %>
<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index fca925e2c..e61af8d3b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -323,47 +323,6 @@ en: ago: "%{ago} ago" newer_comments: "Newer Comments" older_comments: "Older Comments" - export: - title: "Export" - start: - area_to_export: "Area to Export" - manually_select: "Manually select a different area" - format_to_export: "Format to Export" - osm_xml_data: "OpenStreetMap XML Data" - map_image: "Map Image (shows standard layer)" - embeddable_html: "Embeddable HTML" - licence: "Licence" - export_details: 'OpenStreetMap data is licensed under the Open Data Commons Open Database License (ODbL).' - 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." - planet: - title: "Planet OSM" - description: "Regularly-updated copies of the complete OpenStreetMap database" - overpass: - title: "Overpass API" - description: "Download this bounding box from a mirror of the OpenStreetMap database" - geofabrik: - title: "Geofabrik Downloads" - description: "Regularly-updated extracts of continents, countries, and selected cities" - metro: - title: "Metro Extracts" - description: "Extracts for major world cities and their surrounding areas" - other: - title: "Other Sources" - description: "Additional sources listed on the OpenStreetMap wiki" - options: "Options" - format: "Format" - scale: "Scale" - max: "max" - image_size: "Image Size" - zoom: "Zoom" - add_marker: "Add a marker to the map" - latitude: "Lat:" - longitude: "Lon:" - output: "Output" - paste_html: "Paste HTML to embed in website" - export_button: "Export" geocoder: search: title: @@ -1417,6 +1376,46 @@ en: potlatch2_unsaved_changes: "You have unsaved changes. (To save in Potlatch 2, you should click save.)" id_not_configured: "iD has not been configured" no_iframe_support: "Your browser doesn't support HTML iframes, which are necessary for this feature." + export: + title: "Export" + area_to_export: "Area to Export" + manually_select: "Manually select a different area" + format_to_export: "Format to Export" + osm_xml_data: "OpenStreetMap XML Data" + map_image: "Map Image (shows standard layer)" + embeddable_html: "Embeddable HTML" + licence: "Licence" + export_details: 'OpenStreetMap data is licensed under the Open Data Commons Open Database License (ODbL).' + 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." + planet: + title: "Planet OSM" + description: "Regularly-updated copies of the complete OpenStreetMap database" + overpass: + title: "Overpass API" + description: "Download this bounding box from a mirror of the OpenStreetMap database" + geofabrik: + title: "Geofabrik Downloads" + description: "Regularly-updated extracts of continents, countries, and selected cities" + metro: + title: "Metro Extracts" + description: "Extracts for major world cities and their surrounding areas" + other: + title: "Other Sources" + description: "Additional sources listed on the OpenStreetMap wiki" + options: "Options" + format: "Format" + scale: "Scale" + max: "max" + image_size: "Image Size" + zoom: "Zoom" + add_marker: "Add a marker to the map" + latitude: "Lat:" + longitude: "Lon:" + output: "Output" + paste_html: "Paste HTML to embed in website" + export_button: "Export" sidebar: search_results: Search Results close: Close