From da518ea0fa442553ad634a26bfc8cc16605d81a3 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 10 Apr 2025 15:05:08 +0300 Subject: [PATCH] Move directions template strings out of javascript --- app/views/directions/search.html.erb | 12 ++++++------ config/locales/en.yml | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/views/directions/search.html.erb b/app/views/directions/search.html.erb index c69a9dc3b..0669a75ce 100644 --- a/app/views/directions/search.html.erb +++ b/app/views/directions/search.html.erb @@ -91,13 +91,13 @@ diff --git a/config/locales/en.yml b/config/locales/en.yml index b3dbf7201..93d5ea0a4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1541,6 +1541,13 @@ en: directions: search: title: Directions + distance: "Distance" + time: "Time" + ascend: "Ascend" + descend: "Descend" + download: "Download route as GeoJSON" + filename: "route" + directions_courtesy_html: "Directions courtesy of %{link}" issues: index: title: Issues @@ -3287,9 +3294,6 @@ en: embed_html_disabled: HTML embedding is not available for this map layer edit_help: Move the map and zoom in on a location you want to edit, then click here. directions: - ascend: "Ascend" - descend: "Descend" - distance: "Distance" distance_m: "%{distance}m" distance_km: "%{distance}km" errors: @@ -3349,7 +3353,6 @@ en: roundabout_with_exit_ordinal: At the roundabout take the %{exit} exit onto %{name} exit_roundabout: Exit the roundabout onto %{name} unnamed: "unnamed road" - courtesy_html: "Directions courtesy of %{link}" exit_counts: first: "1st" second: "2nd" @@ -3361,9 +3364,6 @@ en: eighth: "8th" ninth: "9th" tenth: "10th" - time: "Time" - download: "Download route as GeoJSON" - filename: "route" query: node: Node way: Way -- 2.39.5