Opened on 04/27/2014 at 07:49:49 PM
Last modified on 10/08/2019 at 05:47:22 PM
#391 new change
Automate Crowdin upload/download for Android
Reported by: | trev | Assignee: | |
---|---|---|---|
Priority: | P3 | Milestone: | |
Module: | Adblock-Plus-for-Android | Keywords: | |
Cc: | fhd | Blocked By: | |
Blocking: | Platform: | Android | |
Ready: | yes | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
Background
Currently uploading master translation to Crowdin and downloading translations is a pretty error-prone process, this needs to be automated.
What to change
Implement a script that will do the equivalent of the following commands available in other repositories:
build.py setuptrans <project-key>
This will set up translation languages for the project, in this case all the languages available in Android.
build.py translate <project-key>
This will upload the master translation (en-US) to Crowdin when a new translation round is started.
build.py gettranslations <project-key>
This will download the translations from Crowdin and put them into the right directories.
Adblock Plus for Android already has buildtools as a subrepository (unused from what I can tell) so using/extending buildtools.localeTools for this task might be a good idea.
#2625 added something very similar for the cms repository - there might be some potential for reuse.