language → locale
This commit is contained in:
parent
aac5ad09d8
commit
ede36e48a8
1 changed files with 12 additions and 12 deletions
|
@ -177,12 +177,12 @@ _spcd_step_wipe() {
|
||||||
# ╰───┴─────╯
|
# ╰───┴─────╯
|
||||||
|
|
||||||
_SPCD_TXT_CHARSET="UTF-8"
|
_SPCD_TXT_CHARSET="UTF-8"
|
||||||
_SPCD_TXT_LANGUAGE_DEFAULT="C"
|
_SPCD_TXT_LOCALE_DEFAULT="C"
|
||||||
|
|
||||||
_spcd_txt_pick() {
|
_spcd_txt_pick() {
|
||||||
case "${SPCD_TXT_LANGUAGE}" in
|
case "${SPCD_TXT_LOCALE}" in
|
||||||
"${SPCD_TXT_LANGUAGE_ENGLISH}") echo "${1}" ;;
|
"${SPCD_TXT_LOCALE_ENGLISH}") echo "${1}" ;;
|
||||||
"${SPCD_TXT_LANGUAGE_FRENCH}") echo "${2}" ;;
|
"${SPCD_TXT_LOCALE_FRENCH}") echo "${2}" ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -322,8 +322,8 @@ spcd_step_out() {
|
||||||
# │ functions │ txt │
|
# │ functions │ txt │
|
||||||
# ╰───────────┴─────╯
|
# ╰───────────┴─────╯
|
||||||
|
|
||||||
SPCD_TXT_LANGUAGE_ENGLISH="en_US"
|
SPCD_TXT_LOCALE_ENGLISH="en_US"
|
||||||
SPCD_TXT_LANGUAGE_FRENCH="fr_FR"
|
SPCD_TXT_LOCALE_FRENCH="fr_FR"
|
||||||
|
|
||||||
spcd_txt_get() {
|
spcd_txt_get() {
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
@ -337,7 +337,7 @@ spcd_txt_locale() {
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
spcd_step__locale__value="${1}"
|
spcd_step__locale__value="${1}"
|
||||||
else
|
else
|
||||||
spcd_step__locale__value="${_SPCD_TXT_LANGUAGE_DEFAULT}"
|
spcd_step__locale__value="${_SPCD_TXT_LOCALE_DEFAULT}"
|
||||||
fi
|
fi
|
||||||
spcd_step__locale__value="${spcd_step__locale__value}.${_SPCD_TXT_CHARSET}"
|
spcd_step__locale__value="${spcd_step__locale__value}.${_SPCD_TXT_CHARSET}"
|
||||||
set -- \
|
set -- \
|
||||||
|
@ -432,8 +432,8 @@ spcd_step__environment_defaults_set() {
|
||||||
[ -n "${SPCD_REF_RELEASE}" ] || SPCD_REF_RELEASE="main"
|
[ -n "${SPCD_REF_RELEASE}" ] || SPCD_REF_RELEASE="main"
|
||||||
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
||||||
|
|
||||||
[ -n "${SPCD_TXT_LANGUAGE}" ] ||
|
[ -n "${SPCD_TXT_LOCALE}" ] ||
|
||||||
SPCD_TXT_LANGUAGE="${SPCD_TXT_LANGUAGE_ENGLISH}"
|
SPCD_TXT_LOCALE="${SPCD_TXT_LOCALE_ENGLISH}"
|
||||||
|
|
||||||
[ -n "${SPCD_URL_ALMA}" ] ||
|
[ -n "${SPCD_URL_ALMA}" ] ||
|
||||||
# /almalinux/$releasever/…
|
# /almalinux/$releasever/…
|
||||||
|
@ -1162,8 +1162,8 @@ spcd_step__packages_verify_https() {
|
||||||
spcd_step__packages_install_locales() {
|
spcd_step__packages_install_locales() {
|
||||||
spcd_step "Install locales"
|
spcd_step "Install locales"
|
||||||
set -- \
|
set -- \
|
||||||
"${SPCD_TXT_LANGUAGE_ENGLISH}" \
|
"${SPCD_TXT_LOCALE_ENGLISH}" \
|
||||||
"${SPCD_TXT_LANGUAGE_FRENCH}"
|
"${SPCD_TXT_LOCALE_FRENCH}"
|
||||||
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}")
|
||||||
|
@ -1188,7 +1188,7 @@ ${spcd_step__pil__locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
|
||||||
"${SPCD_PM_ZYPPER}") spcd_install_package "glibc-locale" ;;
|
"${SPCD_PM_ZYPPER}") spcd_install_package "glibc-locale" ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
spcd_txt_locale "${SPCD_TXT_LANGUAGE}"
|
spcd_txt_locale "${SPCD_TXT_LOCALE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_step__packages_upgrade_system() {
|
spcd_step__packages_upgrade_system() {
|
||||||
|
|
Loading…
Reference in a new issue