Use en_GB unless one of a few exceptions are already set
This commit is contained in:
parent
d01139aeb9
commit
734699a6dc
1 changed files with 18 additions and 7 deletions
|
@ -53,13 +53,24 @@ set -o noclobber
|
||||||
export LC_ALL=''
|
export LC_ALL=''
|
||||||
export TIME_STYLE="long-iso" # Used by GNU 'ls'.
|
export TIME_STYLE="long-iso" # Used by GNU 'ls'.
|
||||||
## Set the default language.
|
## Set the default language.
|
||||||
export LANG="en_GB.UTF-8"
|
case "$LANG" in
|
||||||
export LANGUAGE="en_GB:en"
|
"en_GB.UTF-8")
|
||||||
## Use French if that is set as the system locale.
|
LANGUAGE="en_GB:en"
|
||||||
if [ -r /etc/default/locale ] && [ $(. /etc/default/locale; echo $LANG) = "fr_FR.UTF-8" ]; then
|
;;
|
||||||
export LANG="fr_FR.UTF-8"
|
"en_CA.UTF-8")
|
||||||
export LANGUAGE="fr_FR:fr"
|
LANGUAGE="en_CA:en"
|
||||||
fi
|
;;
|
||||||
|
"fr_FR.UTF-8")
|
||||||
|
LANGUAGE="fr_FR:fr"
|
||||||
|
;;
|
||||||
|
"fr_CA.UTF-8")
|
||||||
|
LANGUAGE="fr_CA:fr"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
export LANG="en_GB.UFT-8"
|
||||||
|
export LANGUAGE="en_GB:en"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
## Set the other language options to ${LANG}.
|
## Set the other language options to ${LANG}.
|
||||||
export LC_COLLATE="$LANG" # Alphabetic sorting.
|
export LC_COLLATE="$LANG" # Alphabetic sorting.
|
||||||
export LC_CTYPE="$LANG" # Interpretation of byte sequences.
|
export LC_CTYPE="$LANG" # Interpretation of byte sequences.
|
||||||
|
|
Loading…
Reference in a new issue