added language support for new elements
This commit is contained in:
parent
84677ddddf
commit
7830f82b62
@ -59,6 +59,10 @@ setLabels: function() {
|
|||||||
document.getElementById("gui-input-source").title = OSRM.loc("GUI_START_TOOLTIP");
|
document.getElementById("gui-input-source").title = OSRM.loc("GUI_START_TOOLTIP");
|
||||||
document.getElementById("gui-input-target").title = OSRM.loc("GUI_END_TOOLTIP");
|
document.getElementById("gui-input-target").title = OSRM.loc("GUI_END_TOOLTIP");
|
||||||
document.getElementById("legal-notice").innerHTML = OSRM.loc("GUI_LEGAL_NOTICE");
|
document.getElementById("legal-notice").innerHTML = OSRM.loc("GUI_LEGAL_NOTICE");
|
||||||
|
document.getElementById("gui-mapping-label").innerHTML = OSRM.loc("GUI_MAPPING_TOOLS");
|
||||||
|
document.getElementById("gui-config-label").innerHTML = OSRM.loc("GUI_CONFIGURATION");
|
||||||
|
document.getElementById("gui-language-label").innerHTML = OSRM.loc("GUI_LANGUAGE");
|
||||||
|
document.getElementById("gui-units-label").innerHTML = OSRM.loc("GUI_UNITS");
|
||||||
},
|
},
|
||||||
|
|
||||||
// clear output area
|
// clear output area
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["da"] = {
|
OSRM.Localization["da"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "Dansk",
|
||||||
//gui
|
//gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "OSM Fejl",
|
|
||||||
"GUI_START": "Start",
|
"GUI_START": "Start",
|
||||||
"GUI_END": "Destination",
|
"GUI_END": "Destination",
|
||||||
"GUI_RESET": " Nulstil ",
|
"GUI_RESET": "Nulstil",
|
||||||
"GUI_SEARCH": " Vis ",
|
"GUI_SEARCH": "Vis",
|
||||||
"GUI_REVERSE": "Omvendt",
|
"GUI_REVERSE": "Omvendt",
|
||||||
"GUI_OPTIONS": "Kortlægnings værktøjer",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Fremhæv unavngivne veje",
|
|
||||||
"GUI_START_TOOLTIP": "Indtast start",
|
"GUI_START_TOOLTIP": "Indtast start",
|
||||||
"GUI_END_TOOLTIP": "Indtast destination",
|
"GUI_END_TOOLTIP": "Indtast destination",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting af <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder af <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting af <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder af <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
//config
|
||||||
|
"GUI_CONFIGURATION": "Konfiguration",
|
||||||
|
"GUI_LANGUAGE": "Sprog",
|
||||||
|
"GUI_UNITS": "Enheder",
|
||||||
|
"GUI_KILOMETERS": "Kilometer",
|
||||||
|
"GUI_MILES": "Miles",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Kortlægnings værktøjer",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Fremhæv unavngivne veje",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Vis tidligere ruter",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Søgeresultater",
|
"SEARCH_RESULTS": "Søgeresultater",
|
||||||
"FOUND_X_RESULTS": "fandt %i resultater",
|
"FOUND_X_RESULTS": "fandt %i resultater",
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["de"] = {
|
OSRM.Localization["de"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "Deutsch",
|
||||||
//gui
|
//gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "OSM Bugs",
|
|
||||||
"GUI_START": "Start",
|
"GUI_START": "Start",
|
||||||
"GUI_END": "Ziel",
|
"GUI_END": "Ziel",
|
||||||
"GUI_RESET": "Reset",
|
"GUI_RESET": "Reset",
|
||||||
"GUI_SEARCH": "Zeigen",
|
"GUI_SEARCH": "Zeigen",
|
||||||
"GUI_REVERSE": "Umdrehen",
|
"GUI_REVERSE": "Umdrehen",
|
||||||
"GUI_OPTIONS": "Kartenwerkzeuge",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Unbenannte Straßen hervorheben",
|
|
||||||
"GUI_START_TOOLTIP": "Startposition eingeben",
|
"GUI_START_TOOLTIP": "Startposition eingeben",
|
||||||
"GUI_END_TOOLTIP": "Zielposition eingeben",
|
"GUI_END_TOOLTIP": "Zielposition eingeben",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
//config
|
||||||
|
"GUI_CONFIGURATION": "Einstellungen",
|
||||||
|
"GUI_LANGUAGE": "Sprache",
|
||||||
|
"GUI_UNITS": "Einheiten",
|
||||||
|
"GUI_KILOMETERS": "Kilometer",
|
||||||
|
"GUI_MILES": "Meilen",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Kartenwerkzeuge",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Unbenannte Straßen hervorheben",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Frühere Routen zeigen",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Suchergebnisse",
|
"SEARCH_RESULTS": "Suchergebnisse",
|
||||||
"FOUND_X_RESULTS": "%i Ergebnisse gefunden",
|
"FOUND_X_RESULTS": "%i Ergebnisse gefunden",
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["en"] = {
|
OSRM.Localization["en"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "English",
|
||||||
// gui
|
// gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "OSM Bugs",
|
|
||||||
"GUI_START": "Start",
|
"GUI_START": "Start",
|
||||||
"GUI_END": "End",
|
"GUI_END": "End",
|
||||||
"GUI_RESET": " Reset ",
|
"GUI_RESET": " Reset ",
|
||||||
"GUI_SEARCH": " Show ",
|
"GUI_SEARCH": " Show ",
|
||||||
"GUI_REVERSE": "Reverse",
|
"GUI_REVERSE": "Reverse",
|
||||||
"GUI_OPTIONS": "Mapping Tools",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Highlight unnamed streets",
|
|
||||||
"GUI_START_TOOLTIP": "Enter start",
|
"GUI_START_TOOLTIP": "Enter start",
|
||||||
"GUI_END_TOOLTIP": "Enter destination",
|
"GUI_END_TOOLTIP": "Enter destination",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
// config
|
||||||
|
"GUI_CONFIGURATION": "Configuration",
|
||||||
|
"GUI_LANGUAGE": "Language",
|
||||||
|
"GUI_UNITS": "Units",
|
||||||
|
"GUI_KILOMETERS": "Kilometers",
|
||||||
|
"GUI_MILES": "Miles",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Mapping Tools",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Highlight unnamed streets",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Show previous routes",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Search Results",
|
"SEARCH_RESULTS": "Search Results",
|
||||||
"FOUND_X_RESULTS": "found %i results",
|
"FOUND_X_RESULTS": "found %i results",
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["fi"] = {
|
OSRM.Localization["fi"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "Suomi",
|
||||||
//gui
|
//gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "OSM Bugs",
|
|
||||||
"GUI_START": "Lähtöpaikka",
|
"GUI_START": "Lähtöpaikka",
|
||||||
"GUI_END": "Määränpää",
|
"GUI_END": "Määränpää",
|
||||||
"GUI_RESET": " Tyhjennä ",
|
"GUI_RESET": "Tyhjennä",
|
||||||
"GUI_SEARCH": " Etsi ",
|
"GUI_SEARCH": "Etsi",
|
||||||
"GUI_REVERSE": "Käänteinen reitti",
|
"GUI_REVERSE": "Käänteinen reitti",
|
||||||
"GUI_OPTIONS": "Kartoitustyökalut",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Korosta nimettömät tiet",
|
|
||||||
"GUI_START_TOOLTIP": "Syötä lähtöpaikka",
|
"GUI_START_TOOLTIP": "Syötä lähtöpaikka",
|
||||||
"GUI_END_TOOLTIP": "Syötä määränpää",
|
"GUI_END_TOOLTIP": "Syötä määränpää",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder by <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
//config
|
||||||
|
"GUI_CONFIGURATION": "Kokoonpano",
|
||||||
|
"GUI_LANGUAGE": "Kieli",
|
||||||
|
"GUI_UNITS": "Yksiköt",
|
||||||
|
"GUI_KILOMETERS": "Kilometri",
|
||||||
|
"GUI_MILES": "Miles",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Kartoitustyökalut",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Korosta nimettömät tiet",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Näytä edelliset reitit",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Haun tulokset",
|
"SEARCH_RESULTS": "Haun tulokset",
|
||||||
"FOUND_X_RESULTS": "Löytyi %i vaihtoehtoa",
|
"FOUND_X_RESULTS": "Löytyi %i vaihtoehtoa",
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["fr"] = {
|
OSRM.Localization["fr"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "Français",
|
||||||
//gui
|
//gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "Bugs OSM",
|
|
||||||
"GUI_START": "Départ",
|
"GUI_START": "Départ",
|
||||||
"GUI_END": "Arrivée",
|
"GUI_END": "Arrivée",
|
||||||
"GUI_RESET": "Réinitialiser",
|
"GUI_RESET": "Réinitialiser",
|
||||||
"GUI_SEARCH": "Montrer",
|
"GUI_SEARCH": "Montrer",
|
||||||
"GUI_REVERSE": "Inverser",
|
"GUI_REVERSE": "Inverser",
|
||||||
"GUI_OPTIONS": "Outils de cartographie",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Surligner les rues sans nom",
|
|
||||||
"GUI_START_TOOLTIP": "Entrez le lieu de départ",
|
"GUI_START_TOOLTIP": "Entrez le lieu de départ",
|
||||||
"GUI_END_TOOLTIP": "Entrez le lieu d’arrivée",
|
"GUI_END_TOOLTIP": "Entrez le lieu d’arrivée",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - hébergement par <a href='http://algo2.iti.kit.edu/'>KIT</a> - géocodage par <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - hébergement par <a href='http://algo2.iti.kit.edu/'>KIT</a> - géocodage par <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
//config
|
||||||
|
"GUI_CONFIGURATION": "Configuration",
|
||||||
|
"GUI_LANGUAGE": "Langue",
|
||||||
|
"GUI_UNITS": "Unités",
|
||||||
|
"GUI_KILOMETERS": "Kilomètres",
|
||||||
|
"GUI_MILES": "Miles",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Outils de cartographie",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Surligner les rues sans nom",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Afficher itinéraires précédents",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Résultats de recherche",
|
"SEARCH_RESULTS": "Résultats de recherche",
|
||||||
"FOUND_X_RESULTS": "%i résultat(s)",
|
"FOUND_X_RESULTS": "%i résultat(s)",
|
||||||
|
@ -20,19 +20,29 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
|
|
||||||
OSRM.Localization["pl"] = {
|
OSRM.Localization["pl"] = {
|
||||||
|
// own language
|
||||||
|
"LANGUAGE": "Polski",
|
||||||
//gui
|
//gui
|
||||||
"OPEN_JOSM": "JOSM",
|
|
||||||
"OPEN_OSMBUGS": "OSM Bugs",
|
|
||||||
"GUI_START": "Początek",
|
"GUI_START": "Początek",
|
||||||
"GUI_END": "Koniec",
|
"GUI_END": "Koniec",
|
||||||
"GUI_RESET": " Reset ",
|
"GUI_RESET": "Reset",
|
||||||
"GUI_SEARCH": " Pokaż ",
|
"GUI_SEARCH": "Pokaż",
|
||||||
"GUI_REVERSE": "Odwróć",
|
"GUI_REVERSE": "Odwróć",
|
||||||
"GUI_OPTIONS": "Narzędzia",
|
|
||||||
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Zaznacz ulice bez nazwy",
|
|
||||||
"GUI_START_TOOLTIP": "Wprowadź początek",
|
"GUI_START_TOOLTIP": "Wprowadź początek",
|
||||||
"GUI_END_TOOLTIP": "Wprowadź koniec",
|
"GUI_END_TOOLTIP": "Wprowadź koniec",
|
||||||
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting: <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder: <a href='http://www.osm.org/'>OSM</a>",
|
"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting: <a href='http://algo2.iti.kit.edu/'>KIT</a> - Geocoder: <a href='http://www.osm.org/'>OSM</a>",
|
||||||
|
//config
|
||||||
|
"GUI_CONFIGURATION": "Konfiguracja",
|
||||||
|
"GUI_LANGUAGE": "Język",
|
||||||
|
"GUI_UNITS": "Jednostki",
|
||||||
|
"GUI_KILOMETERS": "Kilometrów",
|
||||||
|
"GUI_MILES": "Miles",
|
||||||
|
// mapping
|
||||||
|
"GUI_MAPPING_TOOLS": "Narzędzia mapowania",
|
||||||
|
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Zaznacz ulice bez nazwy",
|
||||||
|
"GUI_SHOW_PREVIOUS_ROUTES": "Pokaż poprzednie trasy",
|
||||||
|
"OPEN_JOSM": "JOSM",
|
||||||
|
"OPEN_OSMBUGS": "OSM Bugs",
|
||||||
// geocoder
|
// geocoder
|
||||||
"SEARCH_RESULTS": "Wyniki wyszukiwania",
|
"SEARCH_RESULTS": "Wyniki wyszukiwania",
|
||||||
"FOUND_X_RESULTS": "znaleziono %i wyników",
|
"FOUND_X_RESULTS": "znaleziono %i wyników",
|
||||||
|
@ -39,7 +39,7 @@ init: function() {
|
|||||||
var supported_languages = OSRM.DEFAULTS.LANGUAGE_SUPPORTED;
|
var supported_languages = OSRM.DEFAULTS.LANGUAGE_SUPPORTED;
|
||||||
for(var i=0, size=supported_languages.length; i<size; i++) {
|
for(var i=0, size=supported_languages.length; i<size; i++) {
|
||||||
var option=document.createElement("option");
|
var option=document.createElement("option");
|
||||||
option.innerHTML = supported_languages[i].display_name;
|
option.innerHTML = supported_languages[i].encoding;
|
||||||
option.value = supported_languages[i].encoding;
|
option.value = supported_languages[i].encoding;
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
}
|
}
|
||||||
|
@ -88,10 +88,14 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
<div id="config-content" class="box-content">
|
<div id="config-content" class="box-content">
|
||||||
<div id="config-toggle" class="iconic-button cancel-marker top-right-button"></div>
|
<div id="config-toggle" class="iconic-button cancel-marker top-right-button"></div>
|
||||||
|
|
||||||
<div id="config-label" class="label">Configuraion</div>
|
<div id="gui-config-label" class="label">Configuraion</div>
|
||||||
<div class="full">
|
<div class="full">
|
||||||
<div class="row"><div class="left">Language:</div><div class="left">German</div></div>
|
<div class="row">
|
||||||
<div class="row"><div class="left">Units:</div><div class="left">Miles</div></div>
|
<div id="gui-language-label" class="left">Language:</div>
|
||||||
|
<div id="gui-language-area" class="left">x</div></div>
|
||||||
|
<div class="row">
|
||||||
|
<div id="gui-units-label" class="left">Units:</div>
|
||||||
|
<div id="gui-units-area" class="left">x</div></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -102,7 +106,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
<div id="mapping-content" class="box-content">
|
<div id="mapping-content" class="box-content">
|
||||||
<div id="mapping-toggle" class="iconic-button cancel-marker top-right-button"></div>
|
<div id="mapping-toggle" class="iconic-button cancel-marker top-right-button"></div>
|
||||||
|
|
||||||
<div id="mapping-label" class="label">Mapping Tools</div>
|
<div id="gui-mapping-label" class="label">Mapping Tools</div>
|
||||||
<div class="full">
|
<div class="full">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<input type="checkbox" id="option-highlight-nonames" value="highlight-nonames" />
|
<input type="checkbox" id="option-highlight-nonames" value="highlight-nonames" />
|
||||||
|
Loading…
Reference in New Issue
Block a user