Localization

From Gentoo Wiki
Jump to:navigation Jump to:search
This page contains changes which are not marked for translation.
Other languages:
Resources

When dealing with GNU/Linux systems in an international context or for a specific country or region, both localization (abbreviated to l10n) and internationalization (abbreviated to i18n) play an important part. It allows administrators and users to select the language of choice on the platform, timezone selection, character ordering and more.

In Gentoo Linux, localization is supported in various levels ranging from kernel support up to end user application support.

The handbook explains locale setup during installation.

Localization in GNU/Linux

Localization plays a part in many layers of a GNU/Linux system.

Linux kernel

In the Linux kernel, localization is enabled through the Native Language Support setting as exemplified by the UTF-8 article.

Core system

On the core system level (C libraries and affiliated tools), most localization is handled through the locale system and console keyboard layout which are described well in the Gentoo Localization Guide article.

Package manager

Portage

Portage respects the USE_EXPAND variable called L10N in /etc/portage/:

FILE /etc/portage/package.use/localizationL10N assignment
*/* L10N: en en-US

Graphical environments

For the graphical environments, Xorg honors the locale settings, but has its own method for selecting the keyboard layout for the X server. The desktop environments on top, such as KDE and GNOME, might have additional steps you have to go through in order to enable the localization and internationalization settings correctly.