fix locales
This commit is contained in:
parent
1773608215
commit
aac5e65650
1 changed files with 2 additions and 14 deletions
|
@ -940,6 +940,7 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
|
|||
"
|
||||
done
|
||||
spcd_os_write "/etc/locale.gen" "${text}"
|
||||
spcd_install_package "locales"
|
||||
;;
|
||||
"${SPCD_PM_DNF}")
|
||||
local language
|
||||
|
@ -1286,20 +1287,7 @@ spcd_step__packages_verify_https() {
|
|||
|
||||
spcd_step__packages_install_locales() {
|
||||
spcd_step "Install locales"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") spcd_install_package "musl-locales" ;;
|
||||
"${SPCD_PM_APT}")
|
||||
spcd_txt_locales "locale.gen"
|
||||
spcd_install_package "locales"
|
||||
;;
|
||||
"${SPCD_PM_DNF}")
|
||||
spcd_txt_locales "glibc-langpack-"
|
||||
;;
|
||||
"${SPCD_PM_PACMAN}") spcd_install_package "glibc-locales" ;;
|
||||
"${SPCD_PM_ZYPPER}") spcd_install_package "glibc-locale" ;;
|
||||
*) ;;
|
||||
esac
|
||||
spcd_txt_locales "LANGUAGE"
|
||||
spcd_txt_locales "install"
|
||||
spcd_txt_locale "set" "${SPCD_TXT_LOCALE}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue