From 908acb1e79650fdaec357b694f66b64b76b70472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 29 Nov 2018 14:59:47 +0100 Subject: [PATCH] Fix locales issue --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 15d4ab1..5888be6 100755 --- a/scripts/install +++ b/scripts/install @@ -76,7 +76,9 @@ fi if [[ "$language" != "en" ]] then 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 fi