diff --git a/AUTHORS.md b/AUTHORS.md index e0d964b9c..5ee70cc13 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -6,4 +6,6 @@ Pascal Neis Teemu Koskinen Nicolas Belett Vigneron Moyg -Jean-Frédéric +Jean-Frederic +Zbigniew Czernik +Jonas Häggqvist \ No newline at end of file diff --git a/WebContent/OSRM.base.js b/WebContent/OSRM.base.js index be60c2a3c..b6716b802 100644 --- a/WebContent/OSRM.base.js +++ b/WebContent/OSRM.base.js @@ -19,8 +19,8 @@ or see http://www.gnu.org/licenses/agpl.txt. // [has to be loaded before all other OSRM classes] var OSRM = {}; -OSRM.VERSION = '0.1.5'; -OSRM.DATE = '120427'; +OSRM.VERSION = '0.1.5.1'; +OSRM.DATE = '120507'; OSRM.CONSTANTS = {}; OSRM.DEFAULTS = {}; OSRM.GLOBALS = {}; diff --git a/WebContent/OSRM.config.js b/WebContent/OSRM.config.js index 25e63d054..06c60aa3a 100644 --- a/WebContent/OSRM.config.js +++ b/WebContent/OSRM.config.js @@ -39,13 +39,15 @@ OSRM.DEFAULTS = { SHORTENER_REPLY_PARAMETER: 'ShortURL', LANGUAGE: "en", - LANGUAGE_FILES_DIRECTORY: "localization/", + LANGUAGE_FILES_DIRECTORY: "localization/", LANUGAGE_ONDEMAND_RELOADING: true, LANGUAGE_SUPPORTED: [ {display_name:"en", encoding:"en"}, + {display_name:"da", encoding:"da"}, {display_name:"de", encoding:"de"}, {display_name:"fi", encoding:"fi"}, - {display_name:"fr", encoding:"fr"} + {display_name:"fr", encoding:"fr"}, + {display_name:"pl", encoding:"pl"} ], TILE_SERVERS: [ diff --git a/WebContent/localization/OSRM.Locale.da.js b/WebContent/localization/OSRM.Locale.da.js new file mode 100644 index 000000000..4725d1f01 --- /dev/null +++ b/WebContent/localization/OSRM.Locale.da.js @@ -0,0 +1,94 @@ +/* +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU AFFERO General Public License as published by +the Free Software Foundation; either version 3 of the License, or +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +or see http://www.gnu.org/licenses/agpl.txt. +*/ + +// OSRM localization +// [Danish language support] + + +OSRM.Localization["da"] = { +//gui +"OPEN_JOSM": "JOSM", +"OPEN_OSMBUGS": "OSM Fejl", +"GUI_START": "Start", +"GUI_END": "Destination", +"GUI_RESET": "  Nulstil  ", +"GUI_SEARCH": "  Vis  ", +"GUI_REVERSE": "Omvendt", +"GUI_OPTIONS": "Kortlægnings værktøjer", +"GUI_HIGHLIGHT_UNNAMED_ROADS": "Fremhæv unavngivne veje", +"GUI_START_TOOLTIP": "Indtast start", +"GUI_END_TOOLTIP": "Indtast destination", +"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting af KIT - Geocoder af OSM", +// geocoder +"SEARCH_RESULTS": "Søgeresultater", +"FOUND_X_RESULTS": "fandt %i resultater", +"TIMED_OUT": "Indtet svar", +"NO_RESULTS_FOUND": "Ingen resultater", +"NO_RESULTS_FOUND_SOURCE": "Ingen resultater for start", +"NO_RESULTS_FOUND_TARGET": "Ingen resultater for destination", +//routing +"ROUTE_DESCRIPTION": "Rutebeskrivelse", +"GET_LINK_TO_ROUTE": "Lav link", +"GENERATE_LINK_TO_ROUTE": "venter pÃ¥ link", +"LINK_TO_ROUTE_TIMEOUT": "ikke tilgængelig", +"GPX_FILE": "GPX Fil", +"DISTANCE": "Distance", +"DURATION": "Varighed", +"YOUR_ROUTE_IS_BEING_COMPUTED": "Din rute bliver beregnet", +"NO_ROUTE_FOUND": "Ingen mulig rute fundet", +//printing +"OVERVIEW_MAP": "Oversigtskort", +"NO_ROUTE_SELECTED": "Ikke valgte rute", +// directions +"N": "nord", +"E": "øst", +"S": "syd", +"W": "vest", +"NE": "nordøst", +"SE": "sydøst", +"SW": "sydvest", +"NW": "nordvest", +// driving directions +// %s: road name +// %d: direction +// [*]: will only be printed when there actually is a road name +"DIRECTION_0":"Unknown instruction[ on %s]", +"DIRECTION_1":"Fortsæt [ ad %s]", +"DIRECTION_2":"Drej svagt til højre [ ad %s]", +"DIRECTION_3":"Drej til højre[ ad %s]", +"DIRECTION_4":"Drej skarpt til højre[ ad %s]", +"DIRECTION_5":"U-vending[ ad %s]", +"DIRECTION_6":"Drej svagt til venstre[ ad %s]", +"DIRECTION_7":"Drej til venstre[ ad %s]", +"DIRECTION_8":"Drej skarpt til venstre[ ad %s]", +"DIRECTION_10":"Kør mod %d[ ad %s]", +"DIRECTION_11-1":"Kør ind i rundkørslen og tag første udkørsel[ ad %s]", +"DIRECTION_11-2":"Kør ind i rundkørslen og tag anden udkørsel[ ad %s]", +"DIRECTION_11-3":"Kør ind i rundkørslen og tag tredje udkørsel[ ad %s]", +"DIRECTION_11-4":"Kør ind i rundkørslen og tag fjerde udkørsel[ ad %s]", +"DIRECTION_11-5":"Kør ind i rundkørslen og tag femte udkørsel[ ad %s]", +"DIRECTION_11-6":"Kør ind i rundkørslen og tag sjette udkørsel[ ad %s]", +"DIRECTION_11-7":"Kør ind i rundkørslen og tag syvende udkørsel[ ad %s]", +"DIRECTION_11-8":"Kør ind i rundkørslen og tag ottende udkørsel[ ad %s]", +"DIRECTION_11-9":"Kør ind i rundkørslen og tag niende udkørsel[ ad %s]", +"DIRECTION_11-x":"Kør ind i rundkørslen og tag en af de alt for mange udkørsler[ ad %s]", +"DIRECTION_15":"Du er ankommet til din destination" +}; + +//set GUI language on load +if( OSRM.DEFAULTS.LANUGAGE_ONDEMAND_RELOADING == true ) + OSRM.Localization.setLanguage("da"); diff --git a/WebContent/localization/OSRM.Locale.pl.js b/WebContent/localization/OSRM.Locale.pl.js new file mode 100644 index 000000000..0cb435122 --- /dev/null +++ b/WebContent/localization/OSRM.Locale.pl.js @@ -0,0 +1,93 @@ +/* +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU AFFERO General Public License as published by +the Free Software Foundation; either version 3 of the License, or +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +or see http://www.gnu.org/licenses/agpl.txt. +*/ + +// OSRM localization +// [Polish language support] + + +OSRM.Localization["pl"] = { +//gui +"OPEN_JOSM": "JOSM", +"OPEN_OSMBUGS": "OSM Bugs", +"GUI_START": "PoczÄ…tek", +"GUI_END": "Koniec", +"GUI_RESET": "  Reset  ", +"GUI_SEARCH": "  Pokaż  ", +"GUI_REVERSE": "Odwróć", +"GUI_OPTIONS": "NarzÄ™dzia", +"GUI_HIGHLIGHT_UNNAMED_ROADS": "Zaznacz ulice bez nazwy", +"GUI_START_TOOLTIP": "Wprowadź poczÄ…tek", +"GUI_END_TOOLTIP": "Wprowadź koniec", +"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting: KIT - Geocoder: OSM", +// geocoder +"SEARCH_RESULTS": "Wyniki wyszukiwania", +"FOUND_X_RESULTS": "znaleziono %i wyników", +"TIMED_OUT": "UpÅ‚ynÄ…Å‚ czas oczekiwania", +"NO_RESULTS_FOUND": "Brak wyników", +"NO_RESULTS_FOUND_SOURCE": "Brak wyników dla poczÄ…tku trasy", +"NO_RESULTS_FOUND_TARGET": "Brak wyników dla koÅ„ca trasy", +//routing +"ROUTE_DESCRIPTION": "Opis trasy", +"GET_LINK_TO_ROUTE": "Generuj link", +"GENERATE_LINK_TO_ROUTE": "oczekiwanie na link", +"LINK_TO_ROUTE_TIMEOUT": "niedostÄ™pny", +"GPX_FILE": "Plik GPX", +"DISTANCE": "Dystans", +"DURATION": "Czas", +"YOUR_ROUTE_IS_BEING_COMPUTED": "Twoja trasa zostaÅ‚a wyznaczona", +"NO_ROUTE_FOUND": "Nie można wyznaczyć trasy", +//printing +"OVERVIEW_MAP": "Mapa poglÄ…dowa", +// directions +"N": "północ", +"E": "wschód", +"S": "poÅ‚udnie", +"W": "zachód", +"NE": "północny wschód", +"SE": "poÅ‚udniowy wschód", +"SW": "poÅ‚udniowy zachód", +"NW": "poÅ‚nocny zachód", +// driving directions +// %s: road name +// %d: direction +// [*]: will only be printed when there actually is a road name +"DIRECTION_0":"Nieznana instrukcja[ na %s]", +"DIRECTION_1":"Podążaj[ drogÄ… %s]", +"DIRECTION_2":"Skręć lekko w prawo[ na drogÄ™ %s]", +"DIRECTION_3":"Skręć w prawo[ na drogÄ™ %s]", +"DIRECTION_4":"Skręć ostro w prawo[ na drogÄ™ %s]", +"DIRECTION_5":"Zawróć[ na drogÄ™ %s]", +"DIRECTION_6":"Skręć lekko w lewo[ na drogÄ™ %s]", +"DIRECTION_7":"Skręć w lewo[ na drogÄ™ %s]", +"DIRECTION_8":"Skręć ostro w lewo[ na drogÄ™ %s]", +"DIRECTION_10":"Podążaj %d[ drogÄ… %s]", +"DIRECTION_11-1":"Wjedź na rondo, zjedź pierwszym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-2":"Wjedź na rondo, zjedź drugim zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-3":"Wjedź na rondo, zjedź trzecim zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-4":"Wjedź na rondo, zjedź czwartym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-5":"Wjedź na rondo, zjedź piÄ…tym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-6":"Wjedź na rondo, zjedź szóstym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-7":"Wjedź na rondo, zjedź siódmym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-8":"Wjedź na rondo, zjedź ósmym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-9":"Wjedź na rondo, zjedź dziewiÄ…tym zjazdem[ na drogÄ™ %s]", +"DIRECTION_11-x":"Wjedź na rondo, zjedź wybranym przez siebie zjazdem [ na drogÄ™ %s]", +"DIRECTION_15":"Cel zostaÅ‚ osiÄ…gniÄ™ty" +}; + +//set GUI language on load +if( OSRM.DEFAULTS.LANUGAGE_ONDEMAND_RELOADING == true ) + OSRM.Localization.setLanguage("pl");