txt/locales

This commit is contained in:
Marc Beninca 2024-09-08 19:41:26 +02:00
parent acae6216d0
commit ec14e2ae72
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1007,7 +1007,7 @@ spcd_txt_locale() {
if [ "${name}" != "LANGUAGE" ]; then if [ "${name}" != "LANGUAGE" ]; then
export "${name}=${long}" export "${name}=${long}"
else else
export "${name}=$(spcd_txt_locales language "${chosen}")" export "${name}=$(spcd_f_txt_locales language "${chosen}")"
fi fi
done done
spcd_split spcd_split
@ -1048,7 +1048,7 @@ spcd_txt_locale() {
esac esac
} }
spcd_txt_locales() { spcd_f_txt_locales() {
local action="${1}" local action="${1}"
local chosen="${2}" local chosen="${2}"
set -- \ set -- \
@ -1057,7 +1057,7 @@ spcd_txt_locales() {
local name local name
case "${action}" in case "${action}" in
"install") "install")
spcd_txt_locales "list" spcd_f_txt_locales "list"
spcd_split spcd_split
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") "${SPCD_PM_APK}")
@ -1086,7 +1086,7 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
*) ;; *) ;;
esac esac
spcd_split spcd_split
spcd_txt_locales "list" spcd_f_txt_locales "list"
;; ;;
"language") "language")
local text local text
@ -1317,7 +1317,7 @@ spcd_step__packages_install_tools() {
spcd_step__packages_install_locales() { spcd_step__packages_install_locales() {
spcd_step_in "Locales" spcd_step_in "Locales"
spcd_step "Install" spcd_step "Install"
spcd_txt_locales "install" spcd_f_txt_locales "install"
spcd_step "Set" spcd_step "Set"
spcd_txt_locale "set" "${SPCD_TXT_LOCALE}" spcd_txt_locale "set" "${SPCD_TXT_LOCALE}"
spcd_step "Show" spcd_step "Show"