mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-24 11:01:43 -08:00
1.4 KiB
1.4 KiB
Translating
The headset application and the server dashboard are translated, contributions are welcome to improve and extend them.
This document only describes headset application translation, the dashboard is being rewritten, please wait before contributing translations for it.
Required software
You only need gettext and a text editor, you can optionally use a graphical editor such as GNOME Translation Editor or Lokalize.
Adding a new language
- Edit the
tools/update_messages.sh, adding the 2 letter ISO 639 language code to theLANGSvariable. - (optional) Edit the
tools/check_po.py, add to thecountriesmapping a value with the language code on the left and the ISO 3166-1 code of a flag on the right. The flag will only be used for continuous integration messages. - Run the
tools/update_messages.shscript, this will create files in thelocaledirectory for the new language. Fill in the fields,git addthe files, commit and file a pull request.
Editing existing translations
Run the tools/update_messages.sh script, this will add the lines for the missing translations, edit your language, then git add the files for the language you just edited, commit and file a pull request.