Request translations for draw.io app
m-mohamedin opened this issue ยท 10 comments
๐ค App repository
To be done by you
- Link to your repository: https://github.com/jgraph/drawio-nextcloud
- If the app is not in the Nextcloud organisation
- Invite
nextcloud-bot
with write permissions - Make sure all translated branches do not have branch protection enabled, see https://docs.nextcloud.com/server/latest/developer_manual/basics/front-end/l10n.html#setup-of-the-transifex-sync for more details
- Invite
- Create file
l10n/.gitkeep
with empty content - Add
.l10nignore
to exclude compiled JS files and thirdparty code, e.g. ignoring compiled javascript assets and composer PHP dependencies in the vendor/ directory:
js/
vendor/
- Create file
.tx/config
with the following content, replace{{APPID}}
with your app id 3 times:
[main]
host = https://www.transifex.com
lang_map = hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja, bg_BG: bg, cs_CZ: cs, fi_FI: fi
[o:nextcloud:p:nextcloud:r:{{APPID}}]
file_filter = translationfiles/<lang>/{{APPID}}.po
source_file = translationfiles/templates/{{APPID}}.pot
source_lang = en
type = PO
๐๏ธ Sysadmin team
- ๐ Ensure access:
- Nextcloud organisation repository: Add
nextcloud-bot
with admin permissions - Other repositories:
- Ensure the invite was accepted
- Ensure the app certificate is linked to the same repository/author https://github.com/nextcloud/app-certificate-requests
- Nextcloud organisation repository: Add
- โ๏ธ Ensure repository setup:
-
.tx/config
-
l10n/.gitkeep
-
.l10ignore
-
-
โ Add"Owner Repository",
into https://github.com/nextcloud/docker-ci/edit/master/translations/config.json- Pull request: #496
-
๐ SSH into translation machine:ssh root@transifex-sync.nextcloud.com
- โฉ๏ธ Change dir:
cd /srv/docker-ci
-
โฌ๏ธ Pull:git pull origin master
-
๐งโ๐ป Run the first sync manually:
docker run -v /srv/cronie-data/transifexrc:/root/.transifexrc \
-v /srv/cronie-data/gpg:/gpg \
-v /srv/cronie-data/ssh/id_rsa:/root/.ssh/id_rsa \
--rm -i ghcr.io/nextcloud/continuous-integration-translations-app \
AUTHOR APPID
๐ฃ Translation team
- Transifex: New resource should appear
- Transifex: Do translations and check sync to repo
- Add resource to wiki
Hi, sorry for the delay. The person managing the GitHub account of the bot is currently out sick. Trying to find if their sick-leave replacement has access otherwise this will take another week
The request was accepted but syncing does not work at the moment.
The scripts require a branch named main
or master
to be the base of work. dev
can by synced additionally, but we checkout master/main to check the .tx/backport
file and so that does not work at the moment.
So if possible I would recommend that you rename your branch dev
to main
Thanks for your reply.
Done: dev
branch renamed to main
Sync worked now:
jgraph/drawio-nextcloud@4324d6e
@nickvergessen Can you please tell me how to import existing translation. Almost all existing translation are gone when synced.
Thanks
In what format do you have them?
Only if there are po or pot files we can import them to transifex.
Unfortunately, the translation is in js and json format. I'll see if I can convert them and get back to you.
Thanks
Well I think after the weekend our community people will have translated most things already I guess. So not sure it's worth a lot of effort.
I had such questions multiple times. A converter for js/json to po would be really helpful.
Yeah, would be helpful. But as long as no one writes it, it does not exist :(