The priority languages (sorted alphabetically) are:
- Arabic
- Chinese
- French
- Persian/Farsi
- Russian
- Spanish
- Turkish
Moreover, the following languages are also important to us:
- Ahmaric
- Bengali
- Hindi
- Indonesian
- Thai
- Vietnamese
If you would like to improve translations for OONI software check out our Guidelines and sign up for a transifex account here: https://transifex.com/otf/ooniprobe/dashboard/ (translations are automatically synched from transifex).
This repository contains all the translations for OONI software.
It requires python 3 and has been tested on Python 3.6.1
.
You are expected to have installed the transifex
CLI (please don't run
pip
or easy_install
as root to install it!).
You should also have setup transifex with you credentials via a
~/.transifexrc
file (see: client-configuration
docs).
This is the process by which you pull the latest translations and generate the OS specific localization strings.
Usually you will run this as part of the app workflow, but you can also do it in here via:
./update-translations.sh
Strings are generated from a Google Sheet master file. To upload new strings you should add the strings to the Master Sheet and then run:
./sync-csv-source.sh
This will generate probe-mobile/en/strings.json
and push it to transifex for
you.
- Clone the relative repository https://github.com/ooni/probe-ios or https://github.com/ooni/probe-android
- Set the var PROJDIR inside the relative update_languages_ios.sh or update_languages_android.sh
- Run the script
- Add the new language code to the file supported_languages
- iOS only: Add the new language in the XCode project tab
- Run the update_languages_ios.sh or update_languages_android.sh script
To generate translated descriptions for the markets run:
python scripts/gen-descriptions.py [lang_code]
Where lang_code
is the language code for the description you want to
generate.
This will print to standard output the translated text that you can then copy and paste into the market descriptions.
If a string is not translated it will print the source for the text.