Bug #16521

Add Indonesian to the translation platform

Added by emmapeel 2019-03-02 03:36:57 . Updated 2019-06-27 17:17:05 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
2019-03-04
Due date:
% Done:

100%

Feature Branch:
Type of work:
Sysadmin
Blueprint:

Starter:
Affected tool:
Translation Platform
Deliverable for:

Description

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.


Subtasks

Bug #16523: Translation Server: Clearify languages in weblate-settings Resolved

0


Related issues

Blocked by Tails - Feature #16524: Translation server: have check/fix script for weblate components Resolved 2019-03-04
Blocked by Tails - Bug #16490: translation-server: detect weblate components correctly. Resolved 2019-02-27

History

#1 Updated by hefee 2019-03-04 13:48:14

  • related to Bug #16490: translation-server: detect weblate components correctly. added

#2 Updated by hefee 2019-03-04 13:54:23

  • blocked by Feature #16524: Translation server: have check/fix script for weblate components added

#3 Updated by hefee 2019-03-04 13:54:34

  • related to deleted (Bug #16490: translation-server: detect weblate components correctly.)

#4 Updated by hefee 2019-03-04 13:54:44

  • blocked by Bug #16490: translation-server: detect weblate components correctly. added

#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?

#6 Updated by hefee 2019-03-04 14:59:28

#7 Updated by hefee 2019-03-05 10:48:07

emmapeel wrote:
> This is the procedure for adding a new language to translate in weblate:
>
> https://docs.weblate.org/en/weblate-2.19.1/admin/quick.html#adding-translation
>
> 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

still needed.

#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 manifests/weblate/languages.pp
  • 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:

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…

#10 Updated by hefee 2019-04-29 09:22:40

  • Status changed from Confirmed to Resolved
  • Assignee deleted (emmapeel)
  • QA Check deleted (Pass)

So far Indonesian sites looks fine, so let’s close this.