Project

General

Profile

Bug #16521

Feature #10034: Translation web platform

Add Indonesian to the translation platform

Added by emmapeel 3 months ago. Updated 28 days ago.

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

100%

QA Check:
Feature Branch:
Type of work:
Sysadmin
Blueprint:
Starter:
Affected tool:
Translation Platform

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-settingsResolvedemmapeel


Related issues

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

History

#1 Updated by hefee 3 months ago

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

#2 Updated by hefee 3 months ago

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

#3 Updated by hefee 3 months ago

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

#4 Updated by hefee 3 months ago

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

#5 Updated by hefee 3 months ago

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?

#6 Updated by hefee 3 months ago

  • Parent task set to #10034

#7 Updated by hefee 3 months ago

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

still needed.

#8 Updated by hefee about 1 month ago

  • 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 <hefee@debian.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 <hefee@debian.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 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...

#10 Updated by hefee 28 days ago

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

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

Also available in: Atom PDF