1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/horde_ynh.git synced 2024-09-03 19:16:08 +02:00

Fix locales issue

This commit is contained in:
Josué Tille 2018-11-29 14:59:47 +01:00
parent d660f50ead
commit 908acb1e79

View file

@ -76,7 +76,9 @@ fi
if [[ "$language" != "en" ]] if [[ "$language" != "en" ]]
then then
locale_lang=$(egrep -i "(${language})_\1\.UTF-8" /etc/locale.gen | egrep -o "[a-z]{2}_[A-Z]{2}\.UTF-8") locale_lang=$(egrep -i "(${language})_\1\.UTF-8" /etc/locale.gen | egrep -o "[a-z]{2}_[A-Z]{2}\.UTF-8")
ynh_replace_string "^#\s$locale_lang" "$locale_lang" /etc/locale.gen for l in $locale_lang; do
ynh_replace_string "^#\s$l" "$l" /etc/locale.gen
done
locale-gen locale-gen
fi fi