* Set the LANG environment variable (default is en_US.UTF-8,

can be overriden through the system configuration).

svn path=/nixos/trunk/; revision=8541
This commit is contained in:
Eelco Dolstra 2007-04-04 13:47:54 +00:00
parent a9635d3b73
commit 464d252d55
3 changed files with 14 additions and 0 deletions

View File

@ -86,6 +86,7 @@ import ../helpers/make-etc.nix {
inherit systemPath wrapperDir;
inherit (pkgs) kernel glibc;
timeZone = config.get ["time" "timeZone"];
defaultLocale = config.get ["i18n" "defaultLocale"];
};
target = "profile";
}

View File

@ -5,6 +5,7 @@ export PAGER=less
export TZ=@timeZone@
export TZDIR=@glibc@/share/zoneinfo
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
export LANG=@defaultLocale@
# A nice prompt.

View File

@ -856,4 +856,16 @@
}
{
name = ["i18n" "defaultLocale"];
default = "en_US.UTF-8";
example = "nl_NL.UTF-8";
description = "
The default locale. It determines the language for program
messages, the format for dates and times, sort order, and so on.
It also determines the character set, such as UTF-8.
";
}
]