mc/maint/utils/sync-transifex
Yury V. Zaytsev a7dcbbbdf7 maint: specify translations explicitly when pulling hints from transifex 2023-01-05 22:02:36 +01:00
..
config.d maint: specify translations explicitly when pulling hints from transifex 2023-01-05 22:02:36 +01:00
.gitignore Reorder files in maint/ subdirectory. 2013-06-03 10:58:14 +03:00
README.md maint: rewrite translation management scripts 2023-01-03 22:53:48 +01:00
hints-from-transifex.py maint: rewrite translation management scripts 2023-01-03 22:53:48 +01:00
hints-to-transifex.py maint: rewrite translation management scripts 2023-01-03 22:53:48 +01:00
po-from-transifex.py maint: rewrite translation management scripts 2023-01-03 22:53:48 +01:00
po-to-transifex.py maint: rewrite translation management scripts 2023-01-03 22:53:48 +01:00
translation_utils.py maint: specify translations explicitly when pulling hints from transifex 2023-01-05 22:02:36 +01:00

README.md

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 \
    "$@"