Add "nc_money" to Transifex sync
rakekniven opened this issue ยท 5 comments
๐ค App repository
To be done by you
- Link to your repository: https://github.com/powerpaul17/nc_money
- If the app is personal repository
- 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 = bg_BG: bg, cs_CZ: cs, fi_FI: fi, hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja
[nextcloud.{{APPID}}]
file_filter = translationfiles/<lang>/{{APPID}}.po
source_file = translationfiles/templates/{{APPID}}.pot
source_lang = en
type = PO
๐๏ธ Sysadmin team
- ๐ Ensure access:
- Nextcloud-Org repository: Add
nextcloud-bot
with admin permissions - Other repositories: Ensure the invite was accepted
- Nextcloud-Org 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: #428
- ๐ท๏ธ Tag the master branch
git tag -a -s translations-app-XXX
- ๐Run action: https://github.com/nextcloud/docker-ci/actions/workflows/docker.yml
- Path:
translations-app
- File:
Dockerfile
- Suffix empty ``
- Tag
latest
- Path:
- ๐ SSH into translation machine:
ssh root@transifex-sync.nextcloud.com
- โฉ๏ธ Change dir:
cd /srv/docker-ci
- โฌ๏ธ Pull:
git pull origin master
- ๐ Log in to https://transifex-sync.nextcloud.com/ and trigger a sync for the app
- ๐งโ๐ป If the app does not show up in the list run the docker 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
Thanks for opening this up @rakekniven! I finished my tasks but I cannot edit it here.
remote: error: At least 1 approving review is required by reviewers with write access.
To github.com:powerpaul17/nc_money
! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com:powerpaul17/nc_money'
@powerpaul17 can you disable branch protection please for all translated branches?
Ok, I removed it. Just added it because it said so in the documentation, I was already wondering how it should work with the bot then.. ๐
Just added it because it said so in the documentation, I was already wondering how it should work with the bot then..
I was just checking that as the latest doc says the opposite. Then I noticed the "stable" docs still say it...
Newer details at https://docs.nextcloud.com/server/latest/developer_manual/basics/front-end/l10n.html#setup-of-the-transifex-sync
Also updated the issue template of this repo here:
839ae9a
Worked now:
powerpaul17/nc_money@be00daa