Last modified 2 years ago Last modified on 01/10/21 12:14:18


Set up a local Transifex repository HOWTO

About this document

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 ​Transifex project).

About Transifex

​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.

Getting Transifex client

sudo dnf install transifex-client

Using Transifex client

To make sure that transifex-client was installed correctly, try running it with the following command:

tx --help

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

tx help <command>

tx-repository initialization

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.

Run follow commands:

$ mkdir $TX_REPO
$ cd $TX_REPO
$ tx init
Creating .tx folder...
Transifex instance []: 
Creating skeleton...
Creating config file...

Add local mapping for pot-resources:

cat >>$TX_REPO/.tx/config <<EOF

file_filter = master/<lang>.po
source_file = master/mc.pot
source_lang = en

file_filter = mc.mc_hint/<lang>.po
source_file = mc.mc_hint/mc.pot
source_lang = en

Fetch all translations by command:

tx pull --all

Now you are ready to fetch translations before any release (as this described on ReleaseGuidelines page).