Check for a user-dirs.locale file

This commit is contained in:
Anthony Rose 2021-02-09 20:12:26 +00:00
parent bb5d57a034
commit 270be39c68

View file

@ -53,7 +53,9 @@ 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.
if [ -r "$HOME/.config/locale.conf" ]; then if [ -r "$HOME/.config/user-dirs.locale" ]; then
LANG="$(cat $HOME/.config/user-dirs.locale).UTF-8"
elif [ -r "$HOME/.config/locale.conf" ]; then
. "$HOME/.config/locale.conf" . "$HOME/.config/locale.conf"
fi fi
case "$LANG" in case "$LANG" in