From 997aba88f9fdc8388527dd41743301726b42563a Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Thu, 29 May 2025 04:10:35 +0200 Subject: [PATCH] Move share sidebar translations --- app/views/share_panes/show.html.erb | 28 +++++++++++------------ config/locales/en.yml | 35 ++++++++++++++--------------- 2 files changed, 31 insertions(+), 32 deletions(-) diff --git a/app/views/share_panes/show.html.erb b/app/views/share_panes/show.html.erb index 9167eb386..c6e117c62 100644 --- a/app/views/share_panes/show.html.erb +++ b/app/views/share_panes/show.html.erb @@ -1,14 +1,14 @@
-

<%= t "javascripts.share.geo_uri" %>

+

<%= t ".geo_uri" %>

-

<%= t "javascripts.share.image" %>

+

<%= t ".image" %>

- <%= t "javascripts.share.only_layers_exported_as_image" %> + <%= t ".only_layers_exported_as_image" %>
- +
@@ -76,10 +76,10 @@ <% end %>

- <%= t "javascripts.share.image_dimensions_html", + <%= t ".image_dimensions_html", **%w[layer width height] .to_h { |key| [key.to_sym, content_tag(:span, "", :id => "mapnik_image_#{key}")] } %>

- " /> + " />
diff --git a/config/locales/en.yml b/config/locales/en.yml index a2fc2ef7d..d9d92e88c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2679,6 +2679,23 @@ en: bicycle_parking_small: "Small bicycle parking" toilets: "Toilets" see_external_legend: "See external map legend" + share_panes: + show: + link: "Link or HTML" + include_marker: "Include marker" + long_link: "Link" + short_link: "Short Link" + embed: "HTML" + embed_html_disabled: HTML embedding is not available for this map layer + paste_html: "Paste HTML to embed in website" + geo_uri: "Geo URI" + image: "Image" + only_layers_exported_as_image: "Only the following layers can be exported as an image:" + format: "Format:" + scale: "Scale:" + custom_dimensions: "Set custom dimensions" + image_dimensions_html: "Image will show the %{layer} layer at %{width} x %{height}" + download: "Download" traces: visibility: private: "Private (only shared as anonymous, unordered points)" @@ -3290,24 +3307,7 @@ en: close: Close share: title: "Share" - cancel: "Cancel" - image: "Image" - link: "Link or HTML" - long_link: "Link" - short_link: "Short Link" - geo_uri: "Geo URI" - embed: "HTML" - custom_dimensions: "Set custom dimensions" - format: "Format:" - scale: "Scale:" - image_dimensions_html: "Image will show the %{layer} layer at %{width} x %{height}" - download: "Download" - short_url: "Short URL" - include_marker: "Include marker" - center_marker: "Center map on marker" - paste_html: "Paste HTML to embed in website" view_larger_map: "View Larger Map" - only_layers_exported_as_image: "Only the following layers can be exported as an image:" embed: report_problem: "Report a problem" legend: @@ -3362,7 +3362,6 @@ en: map_data_zoom_in_tooltip: Zoom in to see map data queryfeature_tooltip: Query features queryfeature_disabled_tooltip: Zoom in to query features - embed_html_disabled: HTML embedding is not available for this map layer profile: social_link_n: "Social Profile Link %{n}" remove_social_link_n: "Remove Social Profile Link %{n}" -- 2.39.5