From 7451cc315011e57ad5f6da6079fc48d6e29e9c6f Mon Sep 17 00:00:00 2001 From: shiin Date: Sun, 6 May 2012 18:45:13 +0200 Subject: [PATCH] added Danish translation --- AUTHORS.md | 4 +- WebContent/OSRM.config.js | 1 + WebContent/localization/OSRM.Locale.da.js | 94 +++++++++++++++++++++++ 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 WebContent/localization/OSRM.Locale.da.js 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.config.js b/WebContent/OSRM.config.js index 5829ec679..3e8701590 100644 --- a/WebContent/OSRM.config.js +++ b/WebContent/OSRM.config.js @@ -43,6 +43,7 @@ OSRM.DEFAULTS = { 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"}, 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");