* 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:
parent
a9635d3b73
commit
464d252d55
@ -86,6 +86,7 @@ import ../helpers/make-etc.nix {
|
|||||||
inherit systemPath wrapperDir;
|
inherit systemPath wrapperDir;
|
||||||
inherit (pkgs) kernel glibc;
|
inherit (pkgs) kernel glibc;
|
||||||
timeZone = config.get ["time" "timeZone"];
|
timeZone = config.get ["time" "timeZone"];
|
||||||
|
defaultLocale = config.get ["i18n" "defaultLocale"];
|
||||||
};
|
};
|
||||||
target = "profile";
|
target = "profile";
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ export PAGER=less
|
|||||||
export TZ=@timeZone@
|
export TZ=@timeZone@
|
||||||
export TZDIR=@glibc@/share/zoneinfo
|
export TZDIR=@glibc@/share/zoneinfo
|
||||||
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
|
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
|
||||||
|
export LANG=@defaultLocale@
|
||||||
|
|
||||||
|
|
||||||
# A nice prompt.
|
# A nice prompt.
|
||||||
|
@ -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.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user