Add Indonesian to the translation platform
People wants to translate our website to Indonesian.
How do we go about now to add a new language?
I can do it if you tell me how not to interfere with your work.
|Bug #16523: Translation Server: Clearify languages in weblate-settings||Resolved||
#5 Updated by hefee 2019-03-04 14:03:30
First we should get
Bug #16490 and Feature #16534 fixed. After that it should be:
# update the languages.pp in puppet-tails
# run the check script from
Feature #16524, that creates the missing languages files
# /usr/local/share/weblate/manage.py loadpo —lang XX —all
This it least should be enough from my side. Are there any changes needed inside Weblate?
Can you shortly list the steps you did in the past to enable a new language?
#7 Updated by hefee 2019-03-05 10:48:07
> This is the procedure for adding a new language to translate in weblate:
> But that will need the .pot files to be present, and our setup does not allow that.
>So what I have done previously is:
Thx for sharing your previous workflow.
>- change the configuration for ikiwiki, adding a new language at ikiwiki.setup and ikiwiki-cgi.setup
this is not needed anymore as the list of supported languages comes from manifests/weblate/languages.pp (in puppet-tails).
>- build the wiki
not needed anymore.
>- commit the new language files
is done by ~weblate/scripts/weblate_status.py (
Feature #16524) but I haven’t tested it if it really works for that usecase. So we should coordinate together after Feature #16524 got merged, so I have time to debug the script in case.
>- run load_po in weblate shell
#8 Updated by hefee 2019-04-12 10:37:54
- Assignee changed from hefee to emmapeel
- QA Check set to Ready for QA
We added now Indonesian as additional language to Weblate and updated all components.
Commands we ran:
scripts/weblate_status.py# (as user weblate)- check if the repo is in a fine state
scripts/weblate_status.py --modify# (as user weblate) - fix issues in the repo
cd repositories/vcs/tails/index/; git add wiki/src/; git commit --author "hefee <hefeedebian.org>"@ # (as user weblate) commit things in repository
- Now the repo and Weblate is up-to-date
- add Indonesia to
- run puppet
scripts/weblate_status.py 2>&1 | wc# (as user weblate)- check that all components are will get modified
scripts/weblate_status.py --modify# (as user weblate) - add Indonesian files
cd repositories/vcs/tails/index/; git add wiki/src/; git commit --author "hefee <hefeedebian.org>"@ # (as user weblate) commit new files
- disable cronjobs
python3 /usr/local/share/weblate/manage.py loadpo --lang id --all# (as user weblate) update all components for Indonesian files
- enable cronjobs again
tests done so far:
- Indonesian is listed under: https://translate.tails.boum.org/projects/tails/#languages
- I can add suggestions to Indonesian files: https://translate.tails.boum.org/translate/tails/about/id/?type=suggestions
But groente and me don’t have experience what to test additionally, to check if everything is in a good shape. You need to do this. Can you also document, what you have checked, so we are able to learn, how to check it the next time?
#9 Updated by emmapeel 2019-04-13 07:11:46
- QA Check changed from Ready for QA to Pass
Another test I did was to check out the repo and build the wiki, but I added Indonesia to the list of the langs in ikiwiki.setup. Maybe it would have been better to use the file the weblate ikiwiki uses to buil, instead…