diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 8427ef2..c22abf8 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -407,11 +407,20 @@ spcd_txt_locale() { locale } +spcd_txt_locales_echo() { + case "${1}" in + "LANGUAGE") spcd_os_printenv "LANGUAGE" ;; + *) locale -a ;; + esac +} + spcd_txt_locales() { set -- \ "${SPCD_TXT_LOCALE_ENGLISH}" \ "${SPCD_TXT_LOCALE_FRENCH}" local language locale text + spcd_txt_locales_echo + spcd_split for locale in "${@}"; do case "${1}" in "glibc-langpack-") @@ -438,6 +447,8 @@ ${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} "locale.gen") spcd_os_write "/etc/locale.gen" "${text}" ;; *) ;; esac + spcd_split + spcd_txt_locales_echo } # ╭──────╮