mc/maint/sync-transifex
Yury V. Zaytsev 9e4e7e8a7f maint: fix paths in transifex scripts and workflows after the move
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-11-01 17:47:04 +01:00
..
config.d maint: remove obsolete CI/maint and re-implement source index 2024-10-26 18:22:46 +02:00
.gitignore maint: remove obsolete CI/maint and re-implement source index 2024-10-26 18:22:46 +02:00
hints-from-transifex.py maint: fix paths in transifex scripts and workflows after the move 2024-11-01 17:47:04 +01:00
hints-to-transifex.py maint: fix paths in transifex scripts and workflows after the move 2024-11-01 17:47:04 +01:00
po-from-transifex.py maint: fix paths in transifex scripts and workflows after the move 2024-11-01 17:47:04 +01:00
po-to-transifex.py maint: fix paths in transifex scripts and workflows after the move 2024-11-01 17:47:04 +01:00
README.md maint: remove obsolete CI/maint and re-implement source index 2024-10-26 18:22:46 +02:00
translation_utils.py maint: remove obsolete CI/maint and re-implement source index 2024-10-26 18:22:46 +02:00

Translations maintenance

Requirements

Configuration

First time you run tx command it will ask you for your API token and create ~/.transifexrc.

Maintenance

Check the *-from-transifex.py (run by hand) and *-to-transifex.py (used in CI) scripts.

Wrapper for modern Transifex client:

#!/bin/sh

touch ~/.transifexrc

export XUID=$(id -u)
export XGID=$(id -g)

docker run \
    --rm -i \
    --user $XUID:$XGID \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume $(pwd):/app \
    --volume ~/.transifexrc:/.transifexrc \
    --volume /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
    transifex/txcli \
    --root-config /.transifexrc \
    "$@"