Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Japanese localization #2032

Merged
merged 1 commit into from
Mar 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* The `BottomBannerViewController` now accounts for the safe area inset if present. ([#1982](https://github.com/mapbox/mapbox-navigation-ios/pull/1982))
* Deprecated `BottomBannerViewController(delegate:)`. Set the `BottomBannerViewController.delegate` property separately after initializing a `BottomBannerViewController`. ([#2027](https://github.com/mapbox/mapbox-navigation-ios/pull/2027))
* The map now pans when the user drags a `UserCourseView`. ([#2012](https://github.com/mapbox/mapbox-navigation-ios/pull/2012))
* Added a Japanese localization. ([#2032](https://github.com/mapbox/mapbox-navigation-ios/pull/2032))

## v0.29.1

Expand Down
15 changes: 15 additions & 0 deletions Example/ja.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

/* Class = "UIButton"; normalTitle = "Continue to next destination"; ObjectID = "1vl-kS-fBt"; */
"1vl-kS-fBt.normalTitle" = "次のバス停まで運行を続ける";

/* Class = "UILabel"; text = "Long press to select a destination"; ObjectID = "dEY-t6-Ect"; */
"dEY-t6-Ect.text" = "次の目的地を選択するには、長押しして下さい";

/* Class = "UIButton"; normalTitle = "Simulate Locations"; ObjectID = "iiq-Gf-SKY"; */
"iiq-Gf-SKY.normalTitle" = "運行シミュレーションを行う";

/* Class = "UIButton"; normalTitle = "Start Navigation"; ObjectID = "nMe-Tl-a1N"; */
"nMe-Tl-a1N.normalTitle" = "ナビゲーションを開始する";

/* Class = "UINavigationItem"; title = "Mapbox Navigation"; ObjectID = "zxr-0T-HBr"; */
"zxr-0T-HBr.title" = "Mapboxナビゲーション";
9 changes: 9 additions & 0 deletions MapboxCoreNavigation/Resources/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Error message when an offline route request returns a response that can’t be deserialized */
"OFFLINE_CORRUPT_DATA" = "オフラインの為ルートを作成できません";

/* Error description when an offline route request returns no result */
"OFFLINE_NO_RESULT" = "オフラインの為、ルートを作成できません";

/* Inform developer an update is available */
"UPDATE_AVAILABLE" = "iOS %@用 Mapbox Navigation SDKが使用できます";

10 changes: 10 additions & 0 deletions MapboxNavigation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,11 @@
DA8264851F2AAD8400454B24 /* zh-Hant */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Main.strings"; sourceTree = "<group>"; };
DA8264871F2AADC200454B24 /* zh-Hant */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Navigation.strings"; sourceTree = "<group>"; };
DA9059B0223B1347006E8B46 /* hu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = hu; path = Resources/hu.lproj/Localizable.stringsdict; sourceTree = "<group>"; };
DA9059B1223B158D006E8B46 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Main.strings; sourceTree = "<group>"; };
DA9059B2223B1758006E8B46 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
DA9059B3223B1769006E8B46 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Navigation.strings; sourceTree = "<group>"; };
DA9059B4223B1770006E8B46 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
DA9059B5223B1778006E8B46 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = ja; path = Resources/ja.lproj/Localizable.stringsdict; sourceTree = "<group>"; };
DAA292FF1F16CC2200D94613 /* lt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = lt; path = lt.lproj/Navigation.strings; sourceTree = "<group>"; };
DAA293011F16DA0C00D94613 /* es */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Main.strings; sourceTree = "<group>"; };
DAA96D17215A961D00BEF703 /* route-doubling-back.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "route-doubling-back.json"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2770,6 +2775,7 @@
DAC049C020171886004C2217 /* he */,
DAE26B1A20644047001D6E1F /* ar */,
DAE26B20206441D8001D6E1F /* pt-PT */,
DA9059B1223B158D006E8B46 /* ja */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand Down Expand Up @@ -2807,6 +2813,7 @@
DAE26B1C20644047001D6E1F /* ar */,
DAE26B22206441D9001D6E1F /* pt-PT */,
DAFEB36A2093A0D800A86A83 /* ko */,
DA9059B3223B1769006E8B46 /* ja */,
);
name = Navigation.storyboard;
path = Resources;
Expand All @@ -2833,6 +2840,7 @@
DAE26B1F2064407D001D6E1F /* ar */,
DAE26B23206441F7001D6E1F /* pt-PT */,
DAFEB36D2093A11F00A86A83 /* ko */,
DA9059B2223B1758006E8B46 /* ja */,
);
name = Localizable.strings;
path = Resources;
Expand Down Expand Up @@ -2878,6 +2886,7 @@
DAFEB36F2093A3EF00A86A83 /* ko */,
DA73F87820BF851B0067649B /* de */,
DA9059B0223B1347006E8B46 /* hu */,
DA9059B5223B1778006E8B46 /* ja */,
);
name = Localizable.stringsdict;
sourceTree = "<group>";
Expand All @@ -2904,6 +2913,7 @@
DAE26B2420644215001D6E1F /* pt-PT */,
DAE26B272064742F001D6E1F /* ar */,
DAFEB36E2093A3E000A86A83 /* ko */,
DA9059B4223B1770006E8B46 /* ja */,
);
name = Localizable.strings;
path = Resources;
Expand Down
141 changes: 141 additions & 0 deletions MapboxNavigation/Resources/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/* Delimiter between lines in an address when displayed inline */
"ADDRESS_LINE_SEPARATOR" = "​";

/* Title on arrival action sheet */
"CARPLAY_ARRIVED" = "目的地に到着しました";

/* Message on arrival action sheet */
"CARPLAY_ARRIVED_MESSAGE" = "ご希望の操作を教えて下さい";

/* Title on continue button in CarPlay */
"CARPLAY_CONTINUE" = "運行を続ける";

/* Name of the waypoint associated with the current location */
"CARPLAY_CURRENT_LOCATION" = "現在地";

/* Title for dismiss button */
"CARPLAY_DISMISS" = "閉じる";

/* Title for end navigation button */
"CARPLAY_END" = "終了";

/* Title on the exit button in the arrival form */
"CARPLAY_EXIT_NAVIGATION" = "ナビゲーションを終了する";

/* Title for feedback template in CarPlay */
"CARPLAY_FEEDBACK" = "フィードバック";

/* Title for start button in CPTripPreviewTextConfiguration */
"CARPLAY_GO" = "発車する";

/* Title for alternative routes in CPTripPreviewTextConfiguration */
"CARPLAY_MORE_ROUTES" = "他のルートを表示";

/* Title for mute button */
"CARPLAY_MUTE" = "消音";

/* CPNavigationAlert OK button title */
"CARPLAY_OK" = "OK";

/* Title for overview button in CPTripPreviewTextConfiguration */
"CARPLAY_OVERVIEW" = "全体を見る";

/* Title for rating template in CarPlay */
"CARPLAY_RATE_RIDE" = "乗車の評価を行う";

/* Title on rate button in CarPlay */
"CARPLAY_RATE_TRIP" = "乗車の評価を行う";

/* Message when search returned zero results in CarPlay */
"CARPLAY_SEARCH_NO_RESULTS" = "検索結果がありません";

/* Alert title that shows when feedback has been submitted */
"CARPLAY_SUBMITTED_FEEDBACK" = "提出済み";

/* Title for unmute button */
"CARPLAY_UNMUTE" = "音声を出す";

/* Format string for indicating the device volume is low; 1 = device model */
"DEVICE_VOLUME_LOW" = "%@音量を下げる";

/* Dismiss button title on the steps view */
"DISMISS_STEPS_TITLE" = "閉じる";

/* End Navigation Button Text */
"END_NAVIGATION" = "ナビゲーションを終了する";

/* Title used for arrival */
"END_OF_ROUTE_ARRIVED" = "目的地に到着しました";

/* Comment Placeholder Text */
"END_OF_ROUTE_TITLE" = "改善点を教えてください";

/* Error message when the SDK is unable to read a spoken instruction. */
"FAILED_INSTRUCTION" = "音声案内は使用できません";

/* Indicates a faster route was found */
"FASTER_ROUTE_FOUND" = "より早い経路が見つかりました";

/* Feedback type for Bad Route */
"FEEDBACK_BAD_ROUTE" = "経路が悪い";

/* Feedback type for Confusing Instruction */
"FEEDBACK_CONFUSING_INSTRUCTION" = "案内がわかりにくい";

/* Feedback type for Other Map Issue Issue */
"FEEDBACK_GENERAL_ISSUE" = "その他、地図の問題";

/* Feedback type for Missing Exit */
"FEEDBACK_MISSING_EXIT" = "出口を間違えた";

/* Feedback type for Missing Road */
"FEEDBACK_MISSING_ROAD" = "道を間違えた";

/* Feedback type for a maneuver that is Not Allowed */
"FEEDBACK_NOT_ALLOWED" = "ルートが法規に反する";

/* Feedback type for Report Traffic */
"FEEDBACK_REPORT_TRAFFIC" = "渋滞状況を報告する";

/* Feedback type for Road Closed */
"FEEDBACK_ROAD_CLOSURE" = "通行止めの道があった";

/* Message confirming that the user has successfully sent feedback */
"FEEDBACK_THANK_YOU" = "フィードバックにご協力頂きありがとうございました";

/* Title of view controller for sending feedback */
"FEEDBACK_TITLE" = "問題を報告する";

/* Format for displaying the first two major ways */
"LEG_MAJOR_WAYS_FORMAT" = "%1$@と%2$@";

/* Format string for a short distance or time less than a minimum threshold; 1 = duration remaining */
"LESS_THAN" = "%@より小さい";

/* Accessibility value of label indicating the absence of a rating */
"NO_RATING" = "評価レートがありません";

/* Rating Reset To Zero Accessability Hint */
"RATING_ACCESSIBILITY_RESET" = "タップすることで評価レートを0にできます";

/* Format for accessibility label of button for setting a rating; 1 = number of stars */
"RATING_ACCESSIBILITY_SET" = "%ld つ星のレートをつける";

/* Format for accessibility value of label indicating the existing rating; 1 = number of stars */
"RATING_STARS_FORMAT" = "%ld つ星のレート";

/* Indicates that rerouting is in progress */
"REROUTING" = "経路を再検索中です…";

/* Button title for resume tracking */
"RESUME" = "再開する";

/* The text of a banner that appears during turn-by-turn navigation when route simulation is enabled. */
"USER_IN_SIMULATION_MODE" = "%dにてナビのシュミレーションを行う";

/* Format for displaying destination and intermediate waypoints; 1 = source ; 2 = destinations */
"WAYPOINT_DESTINATION_VIA_WAYPOINTS_FORMAT" = "%2$@経由で%1$@に向かう";

/* Format for displaying start and endpoint for leg; 1 = source ; 2 = destination */
"WAYPOINT_SOURCE_DESTINATION_FORMAT" = "%1$@と%2$@";

34 changes: 34 additions & 0 deletions MapboxNavigation/Resources/ja.lproj/Localizable.stringsdict
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>RATING_ACCESSIBILITY_SET</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@stars@</string>
<key>stars</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>other</key>
<string>%ld つ星をつける</string>
</dict>
</dict>
<key>RATING_STARS_FORMAT</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@stars@</string>
<key>stars</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>other</key>
<string>%ld つ星のレート</string>
</dict>
</dict>
</dict>
</plist>
3 changes: 3 additions & 0 deletions MapboxNavigation/Resources/ja.lproj/Navigation.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

/* Class = "UILabel"; text = "Rate your trip"; ObjectID = "W5U-cV-cDO"; */
"W5U-cV-cDO.text" = "今回の乗車の評価を行う";