From 0ba881c3909e5d5cf618f60d602ab7e32acda4c0 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Sun, 15 Apr 2012 23:12:17 +0200 Subject: [PATCH] localization for printing --- WebContent/localization/OSRM.Locale.de.js | 2 ++ WebContent/localization/OSRM.Locale.en.js | 2 ++ WebContent/printing/OSRM.Printing.js | 3 +++ WebContent/printing/printing.css | 2 +- WebContent/printing/printing.html | 4 ++-- WebContent/printing/printing.js | 2 +- 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/WebContent/localization/OSRM.Locale.de.js b/WebContent/localization/OSRM.Locale.de.js index 161fa9299..04fd23047 100644 --- a/WebContent/localization/OSRM.Locale.de.js +++ b/WebContent/localization/OSRM.Locale.de.js @@ -50,6 +50,8 @@ OSRM.Localization["de"] = { "DURATION": "Dauer", "YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet", "NO_ROUTE_FOUND": "Keine Route hierher möglich", +// printing +"OVERVIEW_MAP": "Übersichtskarte", // directions "N": "Norden", "E": "Ost", diff --git a/WebContent/localization/OSRM.Locale.en.js b/WebContent/localization/OSRM.Locale.en.js index a67d5bbf1..6164807dc 100644 --- a/WebContent/localization/OSRM.Locale.en.js +++ b/WebContent/localization/OSRM.Locale.en.js @@ -50,6 +50,8 @@ OSRM.Localization["en"] = { "DURATION": "Duration", "YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed", "NO_ROUTE_FOUND": "No route possible", +//printing +"OVERVIEW_MAP": "Overview Map", // directions "N": "north", "E": "east", diff --git a/WebContent/printing/OSRM.Printing.js b/WebContent/printing/OSRM.Printing.js index 16bef49ee..784dd71d5 100644 --- a/WebContent/printing/OSRM.Printing.js +++ b/WebContent/printing/OSRM.Printing.js @@ -40,6 +40,9 @@ init: function() { show: function(response) { // add events OSRM.printwindow.document.getElementById('gui-printer').onclick = OSRM.printwindow.printWindow; + + // + OSRM.printwindow.document.getElementById('overview-map-label').innerHTML = OSRM.loc( "OVERVIEW_MAP" ); // create header header = diff --git a/WebContent/printing/printing.css b/WebContent/printing/printing.css index 06d7dbc9f..0cbadb27f 100644 --- a/WebContent/printing/printing.css +++ b/WebContent/printing/printing.css @@ -33,7 +33,7 @@ body /* route map box */ -#map +#overview-map { width:500px; height:500px; diff --git a/WebContent/printing/printing.html b/WebContent/printing/printing.html index c70415d53..4456fa752 100644 --- a/WebContent/printing/printing.html +++ b/WebContent/printing/printing.html @@ -57,8 +57,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
-
Übersichtskarte
-
+
Übersichtskarte
+
diff --git a/WebContent/printing/printing.js b/WebContent/printing/printing.js index c5da44095..8303bba42 100644 --- a/WebContent/printing/printing.js +++ b/WebContent/printing/printing.js @@ -27,7 +27,7 @@ OSRM.G = OSRM.GLOBALS; function initialize(tile_server) { // setup map var tile_layer = new L.TileLayer(tile_server.url, tile_server.options); - OSRM.G.map = new OSRM.MapView("map", { + OSRM.G.map = new OSRM.MapView("overview-map", { center: new L.LatLng(51.505, -0.09), zoom: 13, zoomAnimation: false,