From 450cdea46a23d2c7ea8f4321691247a9647578a4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 30 Aug 2024 18:08:11 +0200 Subject: [PATCH] txt/_ --- spcd/bootstrap.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 16635a4..53d9845 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -178,13 +178,11 @@ _spcd_step_wipe() { _SPCD_TXT_CHARSET="UTF-8" _SPCD_TXT_LANGUAGE_DEFAULT="C" -_SPCD_TXT_LANGUAGE_ENGLISH="en_US" -_SPCD_TXT_LANGUAGE_FRENCH="fr_FR" _spcd_txt_pick() { case "${SPCD_TXT_LANGUAGE}" in - "${_SPCD_TXT_LANGUAGE_ENGLISH}") echo "${1}" ;; - "${_SPCD_TXT_LANGUAGE_FRENCH}") echo "${2}" ;; + "${SPCD_TXT_LANGUAGE_ENGLISH}") echo "${1}" ;; + "${SPCD_TXT_LANGUAGE_FRENCH}") echo "${2}" ;; *) ;; esac } @@ -324,6 +322,9 @@ spcd_step_out() { # │ functions │ txt │ # ╰───────────┴─────╯ +SPCD_TXT_LANGUAGE_ENGLISH="en_US" +SPCD_TXT_LANGUAGE_FRENCH="fr_FR" + spcd_txt_get() { case "${1}" in "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_TXT_LANGUAGE}" ] || - SPCD_TXT_LANGUAGE="${_SPCD_TXT_LANGUAGE_ENGLISH}" + SPCD_TXT_LANGUAGE="${SPCD_TXT_LANGUAGE_ENGLISH}" [ -n "${SPCD_URL_ALMA}" ] || # /almalinux/$releasever/… @@ -1381,8 +1382,8 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" spcd_main() { set -- \ - "${_SPCD_TXT_LANGUAGE_ENGLISH}" \ - "${_SPCD_TXT_LANGUAGE_FRENCH}" + "${SPCD_TXT_LANGUAGE_ENGLISH}" \ + "${SPCD_TXT_LANGUAGE_FRENCH}" # environment spcd_txt_locale #