From: Andy Allan Date: Sun, 31 May 2009 11:40:16 +0000 (+0000) Subject: i18n the export tab X-Git-Tag: live~7371^2~29 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1db6b392a6c9f255d74669d8ae6db67934a2ab54?hp=3d906fe8c6303c00e399ce2dfecc3471959fbe6e i18n the export tab --- diff --git a/app/views/export/_start.rhtml b/app/views/export/_start.rhtml index 9776261ea..9e3d64783 100644 --- a/app/views/export/_start.rhtml +++ b/app/views/export/_start.rhtml @@ -1,6 +1,6 @@ <% form_tag :action => "finish" do %> -

Area to Export

+

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

<%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %> @@ -10,70 +10,70 @@
<%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %>

- Manually select a different area + <%= t'export.start.manually_select' %>

-

Format to Export

+

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

- <%= radio_button_tag("format", "osm") %> OpenStreetMap XML Data + <%= radio_button_tag("format", "osm") %> <%= t'export.start.osm_xml_data' %>
- <%= radio_button_tag("format", "mapnik") %> Mapnik Image + <%= radio_button_tag("format", "mapnik") %> <%= t'export.start.mapnik_image' %>
- <%= radio_button_tag("format", "osmarender") %> Osmarender Image + <%= radio_button_tag("format", "osmarender") %> <%= t'export.start.osmarender_image' %>
- <%= radio_button_tag("format", "html") %> Embeddable HTML + <%= radio_button_tag("format", "html") %> <%= t'export.start.embeddable_html' %>

-

Licence

+

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

-

OpenStreetMap data is licensed under the Creative Commons Attribution-ShareAlike 2.0 license.

+

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

-

Options

+

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

-

Format <%= select_tag("mapnik_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"], ["SVG", "svg"], ["PDF", "pdf"], ["Postscript", "ps"]], "png")) %>

-

Scale 1 : <%= text_field_tag("mapnik_scale", nil, :size => 8) %> (max 1 : )

-

Image Size x

+

<%= t'export.start.format' %> <%= select_tag("mapnik_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"], ["SVG", "svg"], ["PDF", "pdf"], ["Postscript", "ps"]], "png")) %>

+

<%= t'export.start.scale' %> 1 : <%= text_field_tag("mapnik_scale", nil, :size => 8) %> (<%= t'export.start.max' %> 1 : )

+

<%= t'export.start.image_size' %> x

-

Options

+

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

-

Format <%= select_tag("osmarender_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"]], "png")) %>

-

Zoom <%= select_tag("osmarender_zoom", options_for_select([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])) %>

+

<%= t'export.start.format' %> <%= select_tag("osmarender_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"]], "png")) %>

+

<%= t'export.start.zoom' %> <%= select_tag("osmarender_zoom", options_for_select([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])) %>

-

Options

+

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

-

Add a marker to the map

+

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

-

Output

+

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

-

Paste HTML to embed in website

+

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

-

<%= submit_tag "Export", :id => "export_commit" %>

+

<%= submit_tag t('export.start.export_button'), :id => "export_commit" %>

<% end %> diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 83db38002..dd879132a 100644 --- a/app/views/export/start.rjs +++ b/app/views/export/start.rjs @@ -1,4 +1,4 @@ -page.replace_html :sidebar_title, 'Export' +page.replace_html :sidebar_title, t('export.start_rjs.export') page.replace_html :sidebar_content, :partial => 'start' page << <View Larger Map'; + html += '
#{I18n.t('export.start_rjs.view_larger_map')}'; $("export_html_text").value = html; diff --git a/config/locales/en.yml b/config/locales/en.yml index a8967d452..9670727e4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -173,6 +173,37 @@ en: other: "{{count}} comments" edit_link: Edit this entry comment_from: "Comment from {{link_user}} at {{comment_created_at}}" + 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" + mapnik_image: "Mapnik Image" + osmarender_image: "Osmarender Image" + embeddable_html: "Embeddable HTML" + licence: "Licence" + export_details: 'OpenStreetMap data is licensed under the Creative Commons Attribution-ShareAlike 2.0 license.' + 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" + start_rjs: + export: "Export" + drag_a_box: "Drag a box on the map to select an area" + manually_select: "Manually select a different area" + click_add_marker: "Click on the map to add a marker" + change_marker: "Change marker position" + add_marker: "Add a marker to the map" + view_larger_map: "View Larger Map" layouts: welcome_user: "Welcome, {{user_link}}" inbox: "inbox ({{size}})"