factorize/locales
Some checks failed
/ arch (push) Failing after 8s
/ alpine (push) Failing after 8s
/ fedora (push) Failing after 7s
/ opensuse (push) Failing after 8s
/ alma (push) Failing after 8s
/ rocky (push) Failing after 7s
/ ubuntu (push) Failing after 8s
/ debian (push) Failing after 6s
Some checks failed
/ arch (push) Failing after 8s
/ alpine (push) Failing after 8s
/ fedora (push) Failing after 7s
/ opensuse (push) Failing after 8s
/ alma (push) Failing after 8s
/ rocky (push) Failing after 7s
/ ubuntu (push) Failing after 8s
/ debian (push) Failing after 6s
This commit is contained in:
parent
a0122d5ea3
commit
7d61b7c431
2 changed files with 15 additions and 21 deletions
|
@ -229,8 +229,6 @@ Handle project workflows in a unified way:
|
|||
* selected
|
||||
* available
|
||||
* effective
|
||||
* factorize
|
||||
* locales
|
||||
* handle errors
|
||||
* packages
|
||||
* configure
|
||||
|
|
|
@ -411,37 +411,33 @@ spcd_txt_locales() {
|
|||
set -- \
|
||||
"${SPCD_TXT_LOCALE_ENGLISH}" \
|
||||
"${SPCD_TXT_LOCALE_FRENCH}"
|
||||
local locale
|
||||
local language locale text
|
||||
for locale in "${@}"; do
|
||||
case "${1}" in
|
||||
"glibc-langpack-")
|
||||
local language
|
||||
for locale in "${@}"; do
|
||||
language="$(echo "${locale}" | cut -d _ -f 1)"
|
||||
spcd_install_package "glibc-langpack-${language}"
|
||||
done
|
||||
;;
|
||||
"LANGUAGE")
|
||||
local text
|
||||
for locale in "${@}"; do
|
||||
if [ -n "${text}" ]; then
|
||||
text="${text}:${locale}"
|
||||
else
|
||||
text="${locale}"
|
||||
fi
|
||||
done
|
||||
export LANGUAGE="${text}"
|
||||
;;
|
||||
"locale.gen")
|
||||
local text
|
||||
for locale in "${@}"; do
|
||||
text="${text}\
|
||||
${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
|
||||
"
|
||||
done
|
||||
spcd_os_write "/etc/locale.gen" "${text}"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
done
|
||||
case "${1}" in
|
||||
"LANGUAGE") export LANGUAGE="${text}" ;;
|
||||
"locale.gen") spcd_os_write "/etc/locale.gen" "${text}" ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# ╭──────╮
|
||||
|
|
Loading…
Reference in a new issue