From 1cf2f9fc1316738f72e85052b0f9ffd74c369b1f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 2 Aug 2022 19:29:33 -0700 Subject: [PATCH] Multilang: add Japanese to UI (#25339) * Add Japanese to UI * Add Enlish and Japanese badges --- selfdrive/ui/translations/README.md | 2 ++ selfdrive/ui/translations/languages.json | 3 ++- selfdrive/ui/translations/main_ja.ts | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/translations/README.md b/selfdrive/ui/translations/README.md index 1ed73a0484..07f1a4825c 100644 --- a/selfdrive/ui/translations/README.md +++ b/selfdrive/ui/translations/README.md @@ -1,8 +1,10 @@ # Multilanguage +[![language](https://raw.githubusercontent.com/commaai/openpilot/badges/translation_badge_main_en.svg)](https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/main_en.ts) [![language](https://raw.githubusercontent.com/commaai/openpilot/badges/translation_badge_main_zh-CHT.svg)](https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/main_zh-CHT.ts) [![language](https://raw.githubusercontent.com/commaai/openpilot/badges/translation_badge_main_zh-CHS.svg)](https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/main_zh-CHS.ts) [![language](https://raw.githubusercontent.com/commaai/openpilot/badges/translation_badge_main_ko.svg)](https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/main_ko.ts) +[![language](https://raw.githubusercontent.com/commaai/openpilot/badges/translation_badge_main_ja.svg)](https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/main_ja.ts) ## Contributing diff --git a/selfdrive/ui/translations/languages.json b/selfdrive/ui/translations/languages.json index cc3995738e..f52a28ef9a 100644 --- a/selfdrive/ui/translations/languages.json +++ b/selfdrive/ui/translations/languages.json @@ -2,5 +2,6 @@ "English": "main_en", "中文(繁體)": "main_zh-CHT", "中文(简体)": "main_zh-CHS", - "한국어": "main_ko" + "한국어": "main_ko", + "日本語": "main_ja" } diff --git a/selfdrive/ui/translations/main_ja.ts b/selfdrive/ui/translations/main_ja.ts index 0e15dd1b2c..be0611f49a 100644 --- a/selfdrive/ui/translations/main_ja.ts +++ b/selfdrive/ui/translations/main_ja.ts @@ -45,7 +45,7 @@ Enter new tethering password - 新しいテザリングパスワードを入力してください + 新しいテザリングパスワードを入力 @@ -310,7 +310,7 @@ Need at least %n character(s)! - パスワードは%%n文字以上で入力してください! + %n文字以上でお願いします!