This commit is contained in:
Marc Beninca 2024-08-31 09:59:39 +02:00
parent 417d22dff1
commit 6be00f1655
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1180,21 +1180,20 @@ spcd_step__packages_install_locales() {
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_install_package "musl-locales" ;; "${SPCD_PM_APK}") spcd_install_package "musl-locales" ;;
"${SPCD_PM_APT}") "${SPCD_PM_APT}")
unset spcd_step__pil__text local locale text
for spcd_step__pil__locale in "${@}"; do for locale in "${@}"; do
spcd_step__pil__text="${spcd_step__pil__text}\ text="${text}\
${spcd_step__pil__locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} ${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
" "
done done
spcd_os_write "/etc/locale.gen" "${spcd_step__pil__text}" spcd_os_write "/etc/locale.gen" "${text}"
spcd_install_package "locales" spcd_install_package "locales"
;; ;;
"${SPCD_PM_DNF}") "${SPCD_PM_DNF}")
for spcd_step__pil__locale in "${@}"; do local locale language
spcd_step__pil__lang="$( for locale in "${@}"; do
echo "${spcd_step__pil__locale}" | cut -d _ -f 1 language="$(echo "${locale}" | cut -d _ -f 1)"
)" spcd_install_package "glibc-langpack-${language}"
spcd_install_package "glibc-langpack-${spcd_step__pil__lang}"
done done
;; ;;
"${SPCD_PM_PACMAN}") spcd_install_package "glibc-locales" ;; "${SPCD_PM_PACMAN}") spcd_install_package "glibc-locales" ;;