Use the French Canadian language if it is the system default

This commit is contained in:
Anthony Rose 2020-06-14 16:42:20 +01:00
parent 5368da3a2d
commit 16d197c718

View file

@ -62,6 +62,18 @@ export LC_TELEPHONE="en_GB.UTF-8"
export LC_TIME="en_GB.UTF-8"
export PAPERSIZE="a4"
export TIME_STYLE="long-iso"
if [ -r /etc/default/locale ] && [ $(. /etc/default/locale && echo $LANG) = "fr_CA.UTF-8" ]; then
export LANG="fr_CA.UTF-8"
export LANGUAGE="fr_CA:fr"
export LC_COLLATE="fr_CA.UTF-8"
export LC_CTYPE="fr_CA.UTF-8"
export LC_IDENTIFICATION="fr_CA.UTF-8"
export LC_MEASUREMENT="fr_CA.UTF-8"
export LC_MESSAGES="fr_CA.UTF-8"
export LC_NAME="fr_CA.UTF-8"
export LC_NUMERIC="fr_CA.UTF-8"
export LC_TIME="fr_CA.UTF-8"
fi
# Other exports.
export ANSIBLE_NOCOWS=1