3 | | == About this document == |
4 | | |
5 | | This document is intended to all translators and release masters who will be deal with translations for Midnight Commander (also applicable for all other projects who use services of [http://www.transifex.com Transifex] project). |
6 | | |
7 | | == About Transifex == |
8 | | |
9 | | [http://www.transifex.com Transifex] is a modern, open-source localization platform. It’s a web system which automates the translation workflow for complex international projects. Transifex seamlessly integrates with existing content infrastructure, such as a software development repository or content management system, using a rich API. Translation is "crowd-sourced" to a global network of human translators using smart and agile translation techniques adopted from the open source ecosystem. |
10 | | |
11 | | == Getting Transifex client == |
12 | | |
13 | | New client is available in binary form from !GitHub (download, unpack and copy to `~/bin`): |
14 | | |
15 | | * https://github.com/transifex/cli/releases |
16 | | |
17 | | Or check the links to set up Docker and use Docker image |
18 | | |
19 | | * https://docs.docker.com/engine/install/fedora/ |
20 | | * https://docs.docker.com/engine/install/linux-postinstall/ |
21 | | |
22 | | with the following: |
23 | | |
24 | | {{{ |
25 | | $ cat >~/bin/tx |
26 | | |
27 | | #!/bin/sh |
28 | | |
29 | | touch ~/.transifexrc |
30 | | |
31 | | export XUID=$(id -u) |
32 | | export XGID=$(id -g) |
33 | | |
34 | | docker run \ |
35 | | --rm -i \ |
36 | | --user $XUID:$XGID \ |
37 | | --volume="/etc/group:/etc/group:ro" \ |
38 | | --volume="/etc/passwd:/etc/passwd:ro" \ |
39 | | --volume="/etc/shadow:/etc/shadow:ro" \ |
40 | | --volume $(pwd):/app \ |
41 | | --volume ~/.transifexrc:/.transifexrc \ |
42 | | --volume /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ |
43 | | transifex/txcli \ |
44 | | --root-config /.transifexrc \ |
45 | | "$@" |
46 | | |
47 | | CTRL+D |
48 | | |
49 | | $ chmod +x ~/bin/tx |
50 | | |
51 | | $ cat >~/.transifexrc |
52 | | [https://www.transifex.com] |
53 | | rest_hostname = https://rest.api.transifex.com |
54 | | token = 1/*** |
55 | | |
56 | | CTRL+D |
57 | | }}} |
58 | | |
59 | | === Old client === |
60 | | |
61 | | As of 2024, Fedora 40 is unfortunately still shipping only the old client. |
62 | | |
63 | | {{{ |
64 | | sudo yum install transifex-client |
65 | | }}} |
66 | | |
67 | | == Using Transifex client == |
68 | | To make sure that transifex-client was installed correctly, try running it with the following command: |
69 | | {{{ |
70 | | tx --help |
71 | | }}} |
72 | | If everything is okay, then you should see a help message and basic instructions. To get more information for each command of tool you can use |
73 | | {{{ |
74 | | tx help <command> |
75 | | }}} |
| 3 | Moved to https://new.midnight-commander.org/translations/ |