#### Linux From Scratch - Version 7.10

### Chapter 6. Installing Basic System Software

- Prev

  Kmod-23

- Next

  Procps-ng-3.3.12

- Up
- Home

# 6.47. Gettext-0.19.8.1

The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language.

Approximate build time: 3.6 SBU
Required disk space: 199 MB

## 6.47.1. Installation of Gettext

Prepare Gettext for compilation:

    ./configure --prefix=/usr    \
                --disable-static \
                --docdir=/usr/share/doc/gettext-0.19.8.1

Compile the package:

    make

To test the results (this takes a long time, around 3 SBUs), issue:

    make check

Nine tests fail due to missing dependencies.

Install the package:

    make install
    chmod -v 0755 /usr/lib/preloadable_libintl.so

## 6.47.2. Contents of Gettext

Installed programs: autopoint, envsubst, gettext, gettext.sh, gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen, msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq, ngettext, recode-sr-latin, and xgettext
Installed libraries: libasprintf.so, libgettextlib.so, libgettextpo.so, libgettextsrc.so, and preloadable_libintl.so
Installed directories: /usr/lib/gettext, /usr/share/doc/gettext-0.19.8.1, and /usr/share/gettext

### Short Descriptions

autopoint | Copies standard Gettext infrastructure files into a source package
envsubst | Substitutes environment variables in shell format strings
gettext | Translates a natural language message into the user's language by looking up the translation in a message catalog
gettext.sh | Primarily serves as a shell function library for gettext
gettextize | Copies all standard Gettext files into the given top-level directory of a package to begin internationalizing it
hostname | Displays a network hostname in various forms
msgattrib | Filters the messages of a translation catalog according to their attributes and manipulates the attributes
msgcat | Concatenates and merges the given `.po` files
msgcmp | Compares two `.po` files to check that both contain the same set of msgid strings
msgcomm | Finds the messages that are common to the given `.po` files
msgconv | Converts a translation catalog to a different character encoding
msgen | Creates an English translation catalog
msgexec | Applies a command to all translations of a translation catalog
msgfilter | Applies a filter to all translations of a translation catalog
msgfmt | Generates a binary message catalog from a translation catalog
msggrep | Extracts all messages of a translation catalog that match a given pattern or belong to some given source files
msginit | Creates a new `.po` file, initializing the meta information with values from the user's environment
msgmerge | Combines two raw translations into a single file
msgunfmt | Decompiles a binary message catalog into raw translation text
msguniq | Unifies duplicate translations in a translation catalog
ngettext | Displays native language translations of a textual message whose grammatical form depends on a number
recode-sr-latin | Recodes Serbian text from Cyrillic to Latin script
xgettext | Extracts the translatable message lines from the given source files to make the first translation template
`libasprintf` | defines the autosprintf class, which makes C formatted output routines usable in C++ programs, for use with the <string> strings and the <iostream> streams
`libgettextlib` | a private library containing common routines used by the various Gettext programs; these are not intended for general use
`libgettextpo` | Used to write specialized programs that process `.po` files; this library is used when the standard applications shipped with Gettext (such as msgcomm, msgcmp, msgattrib, and msgen) will not suffice
`libgettextsrc` | A private library containing common routines used by the various Gettext programs; these are not intended for general use
`preloadable_libintl` | A library, intended to be used by LD_PRELOAD that assists `libintl` in logging untranslated messages

- Prev

  Kmod-23

- Next

  Procps-ng-3.3.12

- Up
- Home