Multilanguage support
Before openpilot is 1.0 software, it needs support for multiple languages. We'd need a nice generic way to do this.
I think this will have to be written at first in house, but it should be easy after that to add more languages with pull requests. We should look into what dragonpilot is doing and take what's good.
I started working on this (not ready yet) ~~https://github.com/xx979xx/openpilot/blob/i18n/selfdrive/controls/lib/alerts.py~~ plz everyone feel free to critique and contribute
For the language part, are you going to use something like transifex or similar? I would be more than happy to help with Danish translation.
When i18n and l10n support is ready, I can help to translate it to zh_TW.
I would love to start contributing by this. Count me in!
The UI rewrite should be done with this in mind.
@fusk-l @s8321414 @caginbektas here all Openpilot translatable texts up-to-date messages.pot here is the code(not ready): i18n.py i18n.cc
@fusk-l @s8321414 @caginbektas here all Openpilot translatable texts up-to-date messages.po here is the code(not ready): i18n.py i18n.h
Just to be sure, we just copy everything, translate msgid and reupload where?
@xx979xx does your ui.cc/sidebar.cc translation working? I tried a while ago and couldnt get it to work :(
@eFiniLan I have not tried it yet needless to say, this is my first ever C++ code, I am doing it for fun (and learning C++ which I hate so much) I re-based the branch and it is compiled successfully
Whenever there's an explanation of how this works, i'll be ready. Have already looked through some of the strings.
@eFiniLan you are right, ui does not translate. even after installing gettext package from termux-packages repo I tried gettext "Hello world" and it did not work!!
I'm willing to translate into german.
I can translate it to Hungarian
I'm happy to translate into Thai. 👌
I got Arabic!
Merged base multilanguage support into master for offroad settings and onroad static text elements.
- [ ] We would still like to dynamically translate without restarting UI
- [ ] Translate alerts (dynamic text requires injecting our own translations with custom contexts into the TS files)
Moved improvements to https://github.com/commaai/openpilot/issues/25092