From b00e8881a4bba3d66082abf51dd163a8eec67d07 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 09:18:14 +0200 Subject: [PATCH] locale --- spcd/bootstrap.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 7da2871..c7028d0 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -334,12 +334,14 @@ spcd_txt_get() { spcd_txt_locale() { # LANGUAGE + local name + local value if [ -n "${1}" ]; then - spcd_step__locale__value="${1}" + value="${1}" else - spcd_step__locale__value="${_SPCD_TXT_LOCALE_DEFAULT}" + value="${_SPCD_TXT_LOCALE_DEFAULT}" fi - spcd_step__locale__value="${spcd_step__locale__value}.${_SPCD_TXT_CHARSET}" + value="${value}.${_SPCD_TXT_CHARSET}" set -- \ "LANG" \ "LC_CTYPE" \ @@ -354,8 +356,8 @@ spcd_txt_locale() { "LC_TELEPHONE" \ "LC_MEASUREMENT" \ "LC_IDENTIFICATION" - for spcd_step__locale__name in "${@}"; do - export "${spcd_step__locale__name}=${spcd_step__locale__value}" + for name in "${@}"; do + export "${name}=${value}" done }