Split engine translations
This commit is contained in:
parent
d5b3a70ac1
commit
8277f29c90
2 changed files with 13 additions and 11 deletions
|
@ -310,7 +310,11 @@ OSM.Directions.engines = [];
|
||||||
OSM.Directions.addEngine = function (engine, supportsHTTPS) {
|
OSM.Directions.addEngine = function (engine, supportsHTTPS) {
|
||||||
if (document.location.protocol === "http:" || supportsHTTPS) {
|
if (document.location.protocol === "http:" || supportsHTTPS) {
|
||||||
engine.id = engine.provider + "_" + engine.mode;
|
engine.id = engine.provider + "_" + engine.mode;
|
||||||
engine.localeId = I18n.t("javascripts.directions.engines." + engine.id);
|
engine.localeId = `${
|
||||||
|
I18n.t("site.search.modes." + engine.mode)
|
||||||
|
} (${
|
||||||
|
I18n.t("site.search.providers." + engine.provider)
|
||||||
|
})`;
|
||||||
OSM.Directions.engines.push(engine);
|
OSM.Directions.engines.push(engine);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -2382,6 +2382,14 @@ en:
|
||||||
where_am_i_title: Describe the current location using the search engine
|
where_am_i_title: Describe the current location using the search engine
|
||||||
submit_text: "Go"
|
submit_text: "Go"
|
||||||
reverse_directions_text: "Reverse Directions"
|
reverse_directions_text: "Reverse Directions"
|
||||||
|
modes:
|
||||||
|
bicycle: "Bicycle"
|
||||||
|
car: "Car"
|
||||||
|
foot: "Foot"
|
||||||
|
providers:
|
||||||
|
fossgis_osrm: "OSRM"
|
||||||
|
graphhopper: "GraphHopper"
|
||||||
|
fossgis_valhalla: "Valhalla"
|
||||||
key:
|
key:
|
||||||
table:
|
table:
|
||||||
entry:
|
entry:
|
||||||
|
@ -3227,16 +3235,6 @@ en:
|
||||||
edit_help: Move the map and zoom in on a location you want to edit, then click here.
|
edit_help: Move the map and zoom in on a location you want to edit, then click here.
|
||||||
directions:
|
directions:
|
||||||
ascend: "Ascend"
|
ascend: "Ascend"
|
||||||
engines:
|
|
||||||
fossgis_osrm_bike: "Bicycle (OSRM)"
|
|
||||||
fossgis_osrm_car: "Car (OSRM)"
|
|
||||||
fossgis_osrm_foot: "Foot (OSRM)"
|
|
||||||
graphhopper_bicycle: "Bicycle (GraphHopper)"
|
|
||||||
graphhopper_car: "Car (GraphHopper)"
|
|
||||||
graphhopper_foot: "Foot (GraphHopper)"
|
|
||||||
fossgis_valhalla_bicycle: "Bicycle (Valhalla)"
|
|
||||||
fossgis_valhalla_car: "Car (Valhalla)"
|
|
||||||
fossgis_valhalla_foot: "Foot (Valhalla)"
|
|
||||||
descend: "Descend"
|
descend: "Descend"
|
||||||
directions: "Directions"
|
directions: "Directions"
|
||||||
distance: "Distance"
|
distance: "Distance"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue