locale.conf(5)

NAME

locale.conf - Configuration file for locale settings

SYNOPSIS

/etc/locale.conf

DESCRIPTION

The /etc/locale.conf file configures system-wide locale settings. It is read at early boot by dinit-rc.

The format of locale.conf is a newline-separated list of environment-like shell-compatible variable assignments, ignoring comments and empty lines.

Note that the kernel command line options locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=, locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=, locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=, locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=, locale.LC_IDENTIFICATION= may be used to override the locale settings at boot.

The locale settings configured in /etc/locale.conf are system-wide and are inherited by every service or user, unless overridden or unset by individual programs or users.

Depending on the operating system, other configuration files might be checked for locale configuration as well, however only as fallback.

OPTIONS

The following locale settings may be set using /etc/locale.conf: LANG=, LANGUAGE=, LC_CTYPE=, LC_NUMERIC=, LC_TIME=, LC_COLLATE=, LC_MONETARY=, LC_MESSAGES=, LC_PAPER=, LC_NAME=, LC_ADDRESS=, LC_TELEPHONE=, LC_MEASUREMENT=, LC_IDENTIFICATION=. Note that LC_ALL may not be configured in this file. For details about the meaning and semantics of these settings, refer to locale(7).

EXAMPLE

Example 1. German locale with English messages

/etc/locale.conf:

    # Custom settings
    LANG=de_DE.UTF-8
    LC_MESSAGES=en_US.UTF-8

AUTHOR

This manual page was originally written for systemd v255. It has been modified to suit Artix's current conditions and rewritten in scdoc format for easier maintenance.