spcd_txt_locales_echo

This commit is contained in:
Marc Beninca 2024-09-03 19:17:08 +02:00
parent 7d61b7c431
commit 56c291ee27
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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