openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Shane Smiskol 7407b4683d Multilanguage Contributing README (#25170) 3 years ago
..
README.md Multilanguage Contributing README (#25170) 3 years ago
languages.json Add Traditional Chinese translations (#25077) 3 years ago
main_ja.qm Add Japanese translations (#25078) 3 years ago
main_ja.ts UI: change wording for dcam preview description (#25142) 3 years ago
main_ko.qm UI: translations cleanup (#25120) 3 years ago
main_ko.ts nav: draw inactive lanes with 50% opacity (#25157) 3 years ago
main_zh-CHS.qm UI: translations cleanup (#25120) 3 years ago
main_zh-CHS.ts nav: draw inactive lanes with 50% opacity (#25157) 3 years ago
main_zh-CHT.qm UI: translations cleanup (#25120) 3 years ago
main_zh-CHT.ts nav: draw inactive lanes with 50% opacity (#25157) 3 years ago

README.md

Multilanguage

multilanguage_onroad

Contributing

Before getting started, make sure you have set up the openpilot Ubuntu development environment by reading the tools README.md.

Adding a New Language

openpilot provides a few tools to help contributors manage their translations and to ensure quality. To get started:

  1. Add your new language to languages.json with the appropriate language code and the localized language name (Simplified Chinese is 中文(繁體)).
  2. Generate the translation file (*.ts):
    selfdrive/ui/update_translations.py
    
  3. Edit the translation file, marking each translation as completed:
    linguist selfdrive/ui/translations/your_language_file.ts
    
  4. Save your file and generate the compiled QM file used by the Qt UI:
    selfdrive/ui/update_translations.py --release
    

Improving an Existing Language

Follow the steps above, omitting steps 1. and 2. Any time you edit translations you'll want to make sure to compile them.

Testing

openpilot has a unit test to make sure all translations are up to date with the text in openpilot and that all translations are completed.

Run and fix any issues:

selfdrive/ui/tests/test_translations.py