localehelper(1)

localehelper1

Generate locales and set internationalization environment variables

Usage

localehelper [-x locale [,locale ...]] [intvar=locale [,locale-fallback ...]] ... [--] commandline

localehelper {-h | --help}

Overview

1. Set each internationalization environment variable to locale (possibly falling back to locale-fallback).
2. Unset all other internationalization environment variables.
3. If needed, generate missing locales (in a temporary location).
4. Run the specified command.

Options

-x locale[,locale...]

Make sure these locales are available, even when they are not used in any internationalization environment variable.

-h, --help

Show help message and exit.

Environment

The following environment variables can be set or unset by localehelper:

LANG

fall-back for LC_* variables

LC_COLLATE

affects regular expression matching and string collation.

LC_CTYPE

affects regular expression matching, character classification, conversion, case-sensitive comparison, and wide character functions

LC_MESSAGES

affects natural-language messages

LC_MONETARY

affects monetary formatting

LC_NUMERIC

affects number formatting

LC_TIME

affects time and date formatting

other LC_*

may affect other linguistic and cultural aspects

LC_ALL

overrides all LC_*

LANGUAGE

affects natural-language messages

The following environment variables may be used by users to announce specific localization requirements to applications, but are left intact by localehelper:

NLSPATH

message catalogue path for catopen(3)

TEXTDOMAIN

message catalogue domain for gettext(1)

TEXTDOMAINDIR

message catalogue directory for gettext(1)

Examples

 $ localehelper LANG=es_ES.UTF-8 locale mon | xargs -n1 -d ';'
 enero
 febrero
 marzo
 abril
 mayo
 junio
 julio
 agosto
 septiembre
 octubre
 noviembre
 diciembre

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–12
  3. 13

From localehelper 0.1.7-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.