Feature #10034: Translation web platform
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.
First we should get #16490 and #16534 fixed. After that it should be: # update the languages.pp in puppet-tails # run the check script from #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?
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 (#16524) but I haven't tested it if it really works for that usecase. So we should coordinate together after #16524 got merged, so I have time to debug the script in case.
- run load_po in weblate shell
#8 Updated by hefee about 1 month ago
- Assignee changed from hefee to emmapeel
- QA Check set to Ready for QA
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 <email@example.com>"# (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 <firstname.lastname@example.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
- 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 about 1 month ago
- 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...