Unset acctsvclang and reorder locale detection

This commit is contained in:
Anthony Rose 2021-02-10 00:44:11 +00:00
parent bde906a55f
commit 64b115d76e

View file

@ -72,11 +72,12 @@ acctsvclang=$(dbus-send \
| awk '{print $2}')
if [ -n "$acctsvclang" ]; then
LANG=$acctsvclang
elif [ -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"
elif [ -r "$HOME/.config/user-dirs.locale" ]; then
LANG="$(cat $HOME/.config/user-dirs.locale).UTF-8"
fi
unset acctsvclang
case "$LANG" in
"en_GB.UTF-8")
LANGUAGE="en_GB:en"