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