nextcloud/docker-ci

Request translations for draw.io app

m-mohamedin opened this issue ยท 10 comments

๐Ÿ‘ค App repository

To be done by you

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:
  • โš™๏ธ 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

@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 :(