Compare commits

..

No commits in common. "7c181c84fb39f08fdc7d8a845b4ac269fc1045dd" and "7d61b7c431c434ea330c82488ff8698e17a1cfb3" have entirely different histories.

2 changed files with 8 additions and 13 deletions

View file

@ -222,6 +222,13 @@ Handle project workflows in a unified way:
#### Shell
* comment
* display locales
* default
* available
* effective
* selected
* available
* effective
* handle errors
* packages
* configure

View file

@ -378,9 +378,8 @@ spcd_txt_get() {
}
spcd_txt_locale() {
locale
spcd_split
local value name
locale
if [ -n "${1}" ]; then
value="${1}"
else
@ -408,20 +407,11 @@ 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-")
@ -448,8 +438,6 @@ ${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
"locale.gen") spcd_os_write "/etc/locale.gen" "${text}" ;;
*) ;;
esac
spcd_split
spcd_txt_locales_echo
}
# ╭──────╮