Changes between Version 5 and Version 6 of TxRepoSetup


Ignore:
Timestamp:
08/06/23 13:48:05 (9 months ago)
Author:
zaytsev
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TxRepoSetup

    v5 v6  
    1616}}} 
    1717 
     18or check  
     19 
     20  * https://docs.docker.com/engine/install/fedora/ 
     21  * https://docs.docker.com/engine/install/linux-postinstall/ 
     22 
     23and use the following: 
     24 
     25{{{ 
     26cat >~/bin/tx 
     27 
     28#!/bin/sh 
     29 
     30touch ~/.transifexrc 
     31 
     32export XUID=$(id -u) 
     33export XGID=$(id -g) 
     34 
     35docker 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 
     48CTRL+D 
     49 
     50chmod +x ~/bin/tx 
     51}}} 
     52 
    1853== Using Transifex client == 
    1954To make sure that transifex-client was installed correctly, try running it with the following command: 
     
    2560tx help <command> 
    2661}}} 
    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_REPO 
    35 $ cd $TX_REPO 
    36 $ tx init 
    37 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 <<EOF 
    47  
    48 [mc.mcpot] 
    49 file_filter = master/<lang>.po 
    50 source_file = master/mc.pot 
    51 source_lang = en 
    52  
    53 [mc.mc_hint] 
    54 file_filter = mc.mc_hint/<lang>.po 
    55 source_file = mc.mc_hint/mc.pot 
    56 source_lang = en 
    57 EOF 
    58 }}} 
    59  
    60 Fetch all translations by command: 
    61 {{{ 
    62 tx pull --all 
    63 }}} 
    64  
    65 Now you are ready to fetch translations before any release (as this described on ReleaseGuidelines page).