internationalize
The infrastructure now exists, however, the translations still need to be done.
To expand upon the above, these are the new instructions for adding translations:
-
mkdir check50/locale -
First, ensure that
babelis installed and thatcheck50is installed in development mode:pip install babel pip install -e . -
Generate the translation template:
python setup.py extract_messages -
Generate the
.pofile for the desired language:python setup.py init_catalog -l <LANG>where
<LANG>is the code of the language you want to translate (e.g.,esfor Spanish,enfor English, etc.) -
Then, add the translations to the newly created
submit50/locale/<LANG>/LC_MESSAGES/submit50.po -
Finally, compile the new translations:
python setup.py compile_catalog
Also, we'll want to have travis build the translations just lib50 does:
https://github.com/cs50/lib50/blob/6b94953569791f4ab6b896f8b3e2e42ef64a4edc/.travis.yml#L8
Any update on this? I am interested to help translate check50 into Indonesian. If ok, I will start according to @crossroads1112 directions.