Yury V. Zaytsev 9e4e7e8a7f maint: fix paths in transifex scripts and workflows after the move | 1 месяц назад | |
---|---|---|
.. | ||
config.d | 1 месяц назад | |
.gitignore | 1 месяц назад | |
README.md | 1 месяц назад | |
hints-from-transifex.py | 1 месяц назад | |
hints-to-transifex.py | 1 месяц назад | |
po-from-transifex.py | 1 месяц назад | |
po-to-transifex.py | 1 месяц назад | |
translation_utils.py | 1 месяц назад |
First time you run tx
command it will ask you for your API token and create ~/.transifexrc
.
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 \
"$@"