mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
ui: better Arabic translations (#30004)
* initial
* fix additional tag
* fix missing semicolon
* fix missing semicolon
* fix missing whitespace/punctuation
* dont translate
* fix deleted source
* mark missing as unfinished
* needs to be fixed
* typo
* dont translate
* translate wifi
* dont translate sidebar
* missing space
* dont translate
* these are good
* missing
* fix unfinished
* more fixes
* fix typo
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* dont translate
* fix vanished translation
* add test_entities_error test
* fix entity
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* dont translate comma prime
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e156ab41ad
This commit is contained in:
@@ -114,6 +114,13 @@ class TestTranslations(unittest.TestCase):
|
||||
self.assertFalse(line.strip().startswith(LOCATION_TAG),
|
||||
f"Line contains location tag: {line.strip()}, remove all line numbers.")
|
||||
|
||||
def test_entities_error(self):
|
||||
for name, file in self.translation_files.items():
|
||||
with self.subTest(name=name, file=file):
|
||||
cur_translations = self._read_translation_file(TRANSLATIONS_DIR, file)
|
||||
matches = re.findall(r'@(\w+);', cur_translations)
|
||||
self.assertEqual(len(matches), 0, f"The string(s) {matches} were found with '@' instead of '&'")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user