txt/_
This commit is contained in:
parent
ad043c978b
commit
450cdea46a
1 changed files with 8 additions and 7 deletions
|
@ -178,13 +178,11 @@ _spcd_step_wipe() {
|
||||||
|
|
||||||
_SPCD_TXT_CHARSET="UTF-8"
|
_SPCD_TXT_CHARSET="UTF-8"
|
||||||
_SPCD_TXT_LANGUAGE_DEFAULT="C"
|
_SPCD_TXT_LANGUAGE_DEFAULT="C"
|
||||||
_SPCD_TXT_LANGUAGE_ENGLISH="en_US"
|
|
||||||
_SPCD_TXT_LANGUAGE_FRENCH="fr_FR"
|
|
||||||
|
|
||||||
_spcd_txt_pick() {
|
_spcd_txt_pick() {
|
||||||
case "${SPCD_TXT_LANGUAGE}" in
|
case "${SPCD_TXT_LANGUAGE}" in
|
||||||
"${_SPCD_TXT_LANGUAGE_ENGLISH}") echo "${1}" ;;
|
"${SPCD_TXT_LANGUAGE_ENGLISH}") echo "${1}" ;;
|
||||||
"${_SPCD_TXT_LANGUAGE_FRENCH}") echo "${2}" ;;
|
"${SPCD_TXT_LANGUAGE_FRENCH}") echo "${2}" ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -324,6 +322,9 @@ spcd_step_out() {
|
||||||
# │ functions │ txt │
|
# │ functions │ txt │
|
||||||
# ╰───────────┴─────╯
|
# ╰───────────┴─────╯
|
||||||
|
|
||||||
|
SPCD_TXT_LANGUAGE_ENGLISH="en_US"
|
||||||
|
SPCD_TXT_LANGUAGE_FRENCH="fr_FR"
|
||||||
|
|
||||||
spcd_txt_get() {
|
spcd_txt_get() {
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
"set") _spcd_txt_pick "Set" "Définir" ;;
|
"set") _spcd_txt_pick "Set" "Définir" ;;
|
||||||
|
@ -432,7 +433,7 @@ spcd_step__environment_defaults_set() {
|
||||||
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
||||||
|
|
||||||
[ -n "${SPCD_TXT_LANGUAGE}" ] ||
|
[ -n "${SPCD_TXT_LANGUAGE}" ] ||
|
||||||
SPCD_TXT_LANGUAGE="${_SPCD_TXT_LANGUAGE_ENGLISH}"
|
SPCD_TXT_LANGUAGE="${SPCD_TXT_LANGUAGE_ENGLISH}"
|
||||||
|
|
||||||
[ -n "${SPCD_URL_ALMA}" ] ||
|
[ -n "${SPCD_URL_ALMA}" ] ||
|
||||||
# /almalinux/$releasever/…
|
# /almalinux/$releasever/…
|
||||||
|
@ -1381,8 +1382,8 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
||||||
|
|
||||||
spcd_main() {
|
spcd_main() {
|
||||||
set -- \
|
set -- \
|
||||||
"${_SPCD_TXT_LANGUAGE_ENGLISH}" \
|
"${SPCD_TXT_LANGUAGE_ENGLISH}" \
|
||||||
"${_SPCD_TXT_LANGUAGE_FRENCH}"
|
"${SPCD_TXT_LANGUAGE_FRENCH}"
|
||||||
# environment
|
# environment
|
||||||
spcd_txt_locale
|
spcd_txt_locale
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue