diff --git a/AUTHORS.md b/AUTHORS.md index 5abba2efd..2b8417a55 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -16,4 +16,5 @@ Juan Luis Rodriguez Ponce Lauris Bukšis-Haberkorns Barboska miszka999 -Konstantin Delchev \ No newline at end of file +Konstantin Delchev +Fumito Mizuno \ No newline at end of file diff --git a/WebContent/OSRM.config.js b/WebContent/OSRM.config.js index 3405d0b47..b401115ed 100644 --- a/WebContent/OSRM.config.js +++ b/WebContent/OSRM.config.js @@ -60,6 +60,7 @@ OSRM.DEFAULTS = { {encoding:"fi", name:"Suomi"}, {encoding:"fr", name:"Français"}, {encoding:"it", name:"Italiano"}, + {encoding:"ja", name:"Japanese"}, {encoding:"lv", name:"Latviešu"}, {encoding:"pl", name:"Polski"}, {encoding:"ru", name:"Русский"} diff --git a/WebContent/localization/OSRM.Locale.en.js b/WebContent/localization/OSRM.Locale.en.js index 791f2b996..e3363144a 100644 --- a/WebContent/localization/OSRM.Locale.en.js +++ b/WebContent/localization/OSRM.Locale.en.js @@ -130,7 +130,7 @@ OSRM.Localization["en"] = { "

" + "You can even create intermediate markers by dragging them off of the main route! ", // do not translate below this line -"GUI_LEGAL_NOTICE": "Routing by Project OSRM - Geocoder by Nominatim - OSRM hosting by KIT", +"GUI_LEGAL_NOTICE": "Routing by Project OSRM - Geocoder by Nominatim - OSRM hosting by KIT", "GUI_DATA_TIMESTAMP": "data: ", "GUI_VERSION": "gui: ", "QR": "QR" diff --git a/WebContent/localization/OSRM.Locale.ja.js b/WebContent/localization/OSRM.Locale.ja.js new file mode 100644 index 000000000..2ee0ce4d0 --- /dev/null +++ b/WebContent/localization/OSRM.Locale.ja.js @@ -0,0 +1,107 @@ +/* +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 +// [Japanese language support] + + +OSRM.Localization["ja"] = { +// own language +"CULTURE": "ja-JP", +"LANGUAGE": "Japanese", +// gui +"GUI_START": "開始", +"GUI_END": "終了", +"GUI_RESET": "  リセット  ", +"GUI_ZOOM": "ルートにズーム", +"GUI_SEARCH": "  表示  ", +"GUI_REVERSE": "逆にする", +"GUI_START_TOOLTIP": "出発地を入力", +"GUI_END_TOOLTIP": "目的地を入力", +"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by KIT - Geocoder by OSM", +// config +"GUI_CONFIGURATION": "設定", +"GUI_LANGUAGE": "言語", +"GUI_UNITS": "単位", +"GUI_KILOMETERS": "キロメートル", +"GUI_MILES": "マイル", +"GUI_DATA_TIMESTAMP": "データ", +// mapping +"GUI_MAPPING_TOOLS": "マッピングツール", +"GUI_HIGHLIGHT_UNNAMED_ROADS": "名前の無い道路をハイライト", +"GUI_SHOW_PREVIOUS_ROUTES": "以前のルートを表示", +"OPEN_JOSM": "JOSM", +"OPEN_OSMBUGS": "OSM バグ", +// geocoder +"SEARCH_RESULTS": "検索結果", +"FOUND_X_RESULTS": "%i 件が見つかりました", +"TIMED_OUT": "タイムアウト", +"NO_RESULTS_FOUND": "見つかりませんでした", +"NO_RESULTS_FOUND_SOURCE": "出発地が見つかりませんでした", +"NO_RESULTS_FOUND_TARGET": "目的地見つかりませんでした", +// routing +"ROUTE_DESCRIPTION": "ルートの説明", +"GET_LINK_TO_ROUTE": "リンクを生成", +"GENERATE_LINK_TO_ROUTE": "リンクを作成", +"LINK_TO_ROUTE_TIMEOUT": "利用できません", +"GPX_FILE": "GPX ファイル", +"DISTANCE": "距離", +"DURATION": "期間", +"YOUR_ROUTE_IS_BEING_COMPUTED": "ルートを計算しています", +"NO_ROUTE_FOUND": "ルートが見つかりませんでした", +// printing +"OVERVIEW_MAP": "概観図", +"NO_ROUTE_SELECTED": "ルートが選択されていません", +// directions +"N": "北", +"E": "東", +"S": "南", +"W": "西", +"NE": "北東", +"SE": "南東", +"SW": "南西", +"NW": "北西", +// driving directions +// %s: road name +// %d: direction +// [*]: will only be printed when there actually is a road name +"DIRECTION_0":"[%s に]不明な指示", +"DIRECTION_1":"[%s 上を]進む", +"DIRECTION_2":"[%s 上を]右に緩く曲がる", +"DIRECTION_3":"[%s 上を]右に曲がる", +"DIRECTION_4":"[%s 上を]右に鋭く曲がる", +"DIRECTION_5":"[%s 上を]Uターンする", +"DIRECTION_6":"[%s 上を]左に鋭く曲がる", +"DIRECTION_7":"[%s 上を]左に曲がる", +"DIRECTION_8":"[%s 上を]左に緩く曲がる", +"DIRECTION_10":"[%s 上の] %d に向かう", +"DIRECTION_11-1":"[%s 上の]円形交差点に入り、1つ目の出口で出る", +"DIRECTION_11-2":"[%s 上の]円形交差点に入り、2つ目の出口で出る", +"DIRECTION_11-3":"[%s 上の]円形交差点に入り、3つ目の出口で出る", +"DIRECTION_11-4":"[%s 上の]円形交差点に入り、4つ目の出口で出る", +"DIRECTION_11-5":"[%s 上の]円形交差点に入り、5つ目の出口で出る", +"DIRECTION_11-6":"[%s 上の]円形交差点に入り、6つ目の出口で出る", +"DIRECTION_11-7":"[%s 上の]円形交差点に入り、7つ目の出口で出る", +"DIRECTION_11-8":"[%s 上の]円形交差点に入り、8つ目の出口で出る", +"DIRECTION_11-9":"[%s 上の]円形交差点に入り、9つ目の出口で出る", +"DIRECTION_11-x":"[%s 上の]円形交差点に入り、多くの出口のいずれかで出る", +"DIRECTION_15":"目的地に到着しました" +}; + +// set GUI language on load +if( OSRM.DEFAULTS.LANUGAGE_ONDEMAND_RELOADING == true ) + OSRM.Localization.setLanguage("ja");