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: 5b4e39990ac4d098f874c8f1e378e2ab855c0036
This commit is contained in:
Shane Smiskol
2022-07-08 00:41:17 -07:00
committed by GitHub
parent 0b0e11827d
commit 1137b56f4b
3 changed files with 1220 additions and 0 deletions
+10
View File
@@ -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()
+3
View File
@@ -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