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>
This commit is contained in:
Shane Smiskol
2022-07-08 00:41:17 -07:00
committed by GitHub
parent c9fa5ef11a
commit 5b4e39990a
3 changed files with 1217 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()
Binary file not shown.
File diff suppressed because it is too large Load Diff