Gettext is the most widely used tool for creating multilingual software.

To use gettext in your SourceLair project, you have to take a few steps to download, build and install it from source.

Install gettext

To install gettext run the following commands in your project’s terminal:

# Step 0: Prepare directories
mkdir -p /mnt/data/.tmp
mkdir -p /mnt/data/.local

# Step 1: Download and extract `gettext`
cd /mnt/data/.tmp
wget https://launchpad.net/ubuntu/+archive/primary/+files/gettext_0.18.3.1.orig.tar.gz
tar -xzvf gettext_0.18.3.1.orig.tar.gz

# Step 2: Build and install gettext
cd gettext-0.18.3.1
./configure --prefix=/mnt/data/.local
make
make install

# Step 3: Clean up
rm -r /mnt/data/.tmp/gettext_0.18.3.1.orig.tar.gz /mnt/data/.tmp/gettext-0.18.3.1
Is there any other hack you would like to see here? Request a hack.