Add Japanese translations (#25078)

* Add Japanese translations

* test japanese

* update tr file

* test for unfinished translation tags

* add compiled QM

add compiled QM

* mark as finished

* remove from tests, needs some design decisions

Co-authored-by: PONPC <fuzitanirenti@yahoo.co.jp>
old-commit-hash: 5b4e39990a
taco
Shane Smiskol 3 years ago committed by GitHub
parent 0b0e11827d
commit 1137b56f4b
  1. 10
      selfdrive/ui/tests/test_translations.py
  2. 3
      selfdrive/ui/translations/main_ja.qm
  3. 1207
      selfdrive/ui/translations/main_ja.ts

@ -61,6 +61,16 @@ class TestTranslations(unittest.TestCase):
self.assertEqual(cur_translations, new_translations,
f"{file} ({name}) {file_ext.upper()} translation file out of date. Run selfdrive/ui/update_translations.py --release to update the translation files")
def test_unfinished_translations(self):
for name, file in self.translation_files.items():
with self.subTest(name=name, file=file):
if not len(file):
raise self.skipTest(f"{name} translation has no defined file")
cur_translations = self._read_translation_file(TRANSLATIONS_DIR, file, "ts")
self.assertTrue(b"<translation type=\"unfinished\">" not in cur_translations,
f"{file} ({name}) translation file has unfinished translations. Finish translations or mark them as completed in Qt Linguist")
if __name__ == "__main__":
unittest.main()

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea851221a6eb93dbd3e790e1f736eb9f1b8cde5c33235793d397e768f3bf0d3e
size 19159

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save