spcd_txt_locale
Some checks failed
/ arch (push) Successful in 2m37s
/ alpine (push) Successful in 1m53s
/ fedora (push) Successful in 12m24s
/ opensuse (push) Successful in 3m28s
/ alma (push) Successful in 12m5s
/ rocky (push) Successful in 12m31s
/ ubuntu (push) Successful in 5m28s
/ debian (push) Failing after 3m31s
Some checks failed
/ arch (push) Successful in 2m37s
/ alpine (push) Successful in 1m53s
/ fedora (push) Successful in 12m24s
/ opensuse (push) Successful in 3m28s
/ alma (push) Successful in 12m5s
/ rocky (push) Successful in 12m31s
/ ubuntu (push) Successful in 5m28s
/ debian (push) Failing after 3m31s
This commit is contained in:
parent
4869917a49
commit
2462383fd4
1 changed files with 30 additions and 0 deletions
|
@ -177,6 +177,7 @@ _spcd_step_wipe() {
|
|||
# ╰───┴─────╯
|
||||
|
||||
_SPCD_TXT_CHARSET="utf8"
|
||||
_SPCD_TXT_LANGUAGE_DEFAULT="C"
|
||||
_SPCD_TXT_LANGUAGE_ENGLISH="en_US"
|
||||
_SPCD_TXT_LANGUAGE_FRENCH="fr_FR"
|
||||
|
||||
|
@ -330,6 +331,33 @@ spcd_txt_get() {
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_txt_locale() {
|
||||
# LANGUAGE
|
||||
if [ -n "${1}" ]; then
|
||||
spcd_step__locale__value="${1}"
|
||||
else
|
||||
spcd_step__locale__value="${_SPCD_TXT_LANGUAGE_DEFAULT}"
|
||||
fi
|
||||
spcd_step__locale__value="${spcd_step__locale__value}.${_SPCD_TXT_CHARSET}"
|
||||
set -- \
|
||||
"LANG" \
|
||||
"LC_CTYPE" \
|
||||
"LC_NUMERIC" \
|
||||
"LC_TIME" \
|
||||
"LC_COLLATE" \
|
||||
"LC_MONETARY" \
|
||||
"LC_MESSAGES" \
|
||||
"LC_PAPER" \
|
||||
"LC_NAME" \
|
||||
"LC_ADDRESS" \
|
||||
"LC_TELEPHONE" \
|
||||
"LC_MEASUREMENT" \
|
||||
"LC_IDENTIFICATION"
|
||||
for spcd_step__locale__name in "${@}"; do
|
||||
export "${spcd_step__locale__name}=\"${spcd_step__locale__value}\""
|
||||
done
|
||||
}
|
||||
|
||||
# ╭──────╮
|
||||
# │ step │
|
||||
# ╰──────╯
|
||||
|
@ -1325,6 +1353,8 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
|||
|
||||
spcd_main() {
|
||||
# environment
|
||||
spcd_txt_locale
|
||||
#
|
||||
spcd_step_in "Environment"
|
||||
spcd_step_in "Defaults"
|
||||
spcd_step "Print defined"
|
||||
|
|
Loading…
Reference in a new issue