Changes between Version 5 and Version 6 of TxRepoSetup
- Timestamp:
- 08/06/23 13:48:05 (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TxRepoSetup
v5 v6 16 16 }}} 17 17 18 or check 19 20 * https://docs.docker.com/engine/install/fedora/ 21 * https://docs.docker.com/engine/install/linux-postinstall/ 22 23 and use the following: 24 25 {{{ 26 cat >~/bin/tx 27 28 #!/bin/sh 29 30 touch ~/.transifexrc 31 32 export XUID=$(id -u) 33 export XGID=$(id -g) 34 35 docker run \ 36 --rm -i \ 37 --user $XUID:$XGID \ 38 --volume="/etc/group:/etc/group:ro" \ 39 --volume="/etc/passwd:/etc/passwd:ro" \ 40 --volume="/etc/shadow:/etc/shadow:ro" \ 41 --volume $(pwd):/app \ 42 --volume ~/.transifexrc:/.transifexrc \ 43 --volume /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ 44 transifex/txcli \ 45 --root-config /.transifexrc \ 46 "$@" 47 48 CTRL+D 49 50 chmod +x ~/bin/tx 51 }}} 52 18 53 == Using Transifex client == 19 54 To make sure that transifex-client was installed correctly, try running it with the following command: … … 25 60 tx help <command> 26 61 }}} 27 === tx-repository initialization ===28 29 Transifex client uses mapping to local files as one directory per tx-resource, but git-repository provide several branches in one directory therefore I suggest to separate TX-repo and GIT-repo in different directories. We'll mark these directories as $TX_REPO and $GIT_REPO.30 31 Run follow commands:32 33 {{{34 $ mkdir $TX_REPO35 $ cd $TX_REPO36 $ tx init37 Creating .tx folder...38 Transifex instance [https://www.transifex.net]:39 Creating skeleton...40 Creating config file...41 $42 }}}43 44 Add local mapping for pot-resources:45 {{{46 cat >>$TX_REPO/.tx/config <<EOF47 48 [mc.mcpot]49 file_filter = master/<lang>.po50 source_file = master/mc.pot51 source_lang = en52 53 [mc.mc_hint]54 file_filter = mc.mc_hint/<lang>.po55 source_file = mc.mc_hint/mc.pot56 source_lang = en57 EOF58 }}}59 60 Fetch all translations by command:61 {{{62 tx pull --all63 }}}64 65 Now you are ready to fetch translations before any release (as this described on ReleaseGuidelines page).