.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "LOCALEHELPER 1" .TH LOCALEHELPER 1 "2023-11-17" "localehelper 0.1.4" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" localehelper \- generate locales and set internationalization environment variables .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBlocalehelper\fR [\-x \fIlocale\fR[,\fIlocale\fR...]] [\fIintvar\fR=\fIlocale\fR[,\fIlocale-fallback\fR...]]... [\-\-] \fIcommandline\fR .PP \&\fBlocalehelper\fR {\-h | \-\-help} .SH "DESCRIPTION" .IX Header "DESCRIPTION" .IP "1. Set each internationalization environment variable to \fIlocale\fR (possibly falling back to \fIlocale-fallback\fR)." 4 .IX Item "1. Set each internationalization environment variable to locale (possibly falling back to locale-fallback)." .PD 0 .IP "2. Unset all other internationalization environment variables." 4 .IX Item "2. Unset all other internationalization environment variables." .IP "3. If needed, generate missing locales (in a temporary location)." 4 .IX Item "3. If needed, generate missing locales (in a temporary location)." .IP "4. Run the specified command." 4 .IX Item "4. Run the specified command." .PD .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-x\fR \fIlocale\fR[,\fIlocale\fR...]" 4 .IX Item "-x locale[,locale...]" Make sure these locales are available, even when they are not used in any internationalization environment variable. .IP "\fB\-h\fR, \fB\-\-help\fR" 4 .IX Item "-h, --help" Display help and exit. .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" The following environment variables can be set or unset by \fBlocalehelper\fR: .IP "\fB\s-1LANG\s0\fR" 4 .IX Item "LANG" fall-back for \fB\s-1LC_\s0\f(BI*\fB\fR variables .IP "\fB\s-1LC_COLLATE\s0\fR" 4 .IX Item "LC_COLLATE" affects regular expression matching and string collation. .IP "\fB\s-1LC_CTYPE\s0\fR" 4 .IX Item "LC_CTYPE" affects regular expression matching, character classification, conversion, case-sensitive comparison, and wide character functions .IP "\fB\s-1LC_MESSAGES\s0\fR" 4 .IX Item "LC_MESSAGES" affects natural-language messages .IP "\fB\s-1LC_MONETARY\s0\fR" 4 .IX Item "LC_MONETARY" affects monetary formatting .IP "\fB\s-1LC_NUMERIC\s0\fR" 4 .IX Item "LC_NUMERIC" affects number formatting .IP "\fB\s-1LC_TIME\s0\fR" 4 .IX Item "LC_TIME" affects time and date formatting .IP "other \fB\s-1LC_\s0\f(BI*\fB\fR" 4 .IX Item "other LC_*" may affect other linguistic and cultural aspects .IP "\fB\s-1LC_ALL\s0\fR" 4 .IX Item "LC_ALL" overrides all \fB\s-1LC_\s0\f(BI*\fB\fR .IP "\fB\s-1LANGUAGE\s0\fR" 4 .IX Item "LANGUAGE" affects natural-language messages .PP The following environment variables may be used by users to announce specific localization requirements to applications, but are left intact by \&\fBlocalehelper\fR: .IP "\fB\s-1NLSPATH\s0\fR" 4 .IX Item "NLSPATH" message catalogue path for \fBcatopen\fR(3) .IP "\fB\s-1TEXTDOMAIN\s0\fR" 4 .IX Item "TEXTDOMAIN" message catalogue domain for \fBgettext\fR(1) .IP "\fB\s-1TEXTDOMAINDIR\s0\fR" 4 .IX Item "TEXTDOMAINDIR" message catalogue directory for \fBgettext\fR(1) .SH "EXAMPLES" .IX Header "EXAMPLES" .Vb 10 \& $ localehelper LANG=es_ES.UTF\-8 locale mon | xargs \-n1 \-d \*(Aq;\*(Aq \& enero \& febrero \& marzo \& abril \& mayo \& junio \& julio \& agosto \& septiembre \& octubre \& noviembre \& diciembre .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 2 \&\fBlocale\fR(7) .IP "\(bu" 2 \&\s-1POSIX:2004\s0 .IP "\(bu" 2 \&\s-1GNU\s0 gettext manual