From 56c291ee27223745355f38f00670cdaa74664fd1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Sep 2024 19:17:08 +0200 Subject: [PATCH 1/3] spcd_txt_locales_echo --- spcd/bootstrap.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 8427ef2..c22abf8 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -407,11 +407,20 @@ spcd_txt_locale() { locale } +spcd_txt_locales_echo() { + case "${1}" in + "LANGUAGE") spcd_os_printenv "LANGUAGE" ;; + *) locale -a ;; + esac +} + spcd_txt_locales() { set -- \ "${SPCD_TXT_LOCALE_ENGLISH}" \ "${SPCD_TXT_LOCALE_FRENCH}" local language locale text + spcd_txt_locales_echo + spcd_split for locale in "${@}"; do case "${1}" in "glibc-langpack-") @@ -438,6 +447,8 @@ ${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} "locale.gen") spcd_os_write "/etc/locale.gen" "${text}" ;; *) ;; esac + spcd_split + spcd_txt_locales_echo } # ╭──────╮ From a1809e2094779f704d5bc30f5926f9b59dfc5336 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Sep 2024 19:18:38 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=88=92tasks/available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/readme.md b/readme.md index 1b93a7f..77aad3e 100644 --- a/readme.md +++ b/readme.md @@ -224,10 +224,8 @@ Handle project workflows in a unified way: * comment * display locales * default - * available * effective * selected - * available * effective * handle errors * packages From 7c181c84fb39f08fdc7d8a845b4ac269fc1045dd Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Sep 2024 19:23:04 +0200 Subject: [PATCH 3/3] locale/effective --- readme.md | 5 ----- spcd/bootstrap.sh | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 77aad3e..f52cdc3 100644 --- a/readme.md +++ b/readme.md @@ -222,11 +222,6 @@ Handle project workflows in a unified way: #### Shell * comment -* display locales - * default - * effective - * selected - * effective * handle errors * packages * configure diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index c22abf8..3b510f8 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -378,8 +378,9 @@ spcd_txt_get() { } spcd_txt_locale() { - local value name locale + spcd_split + local value name if [ -n "${1}" ]; then value="${1}" else