mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
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:
@@ -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
Reference in New Issue
Block a user