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
|
* selected
|
||||||
* available
|
* available
|
||||||
* effective
|
* effective
|
||||||
* factorize
|
|
||||||
* locales
|
|
||||||
* handle errors
|
* handle errors
|
||||||
* packages
|
* packages
|
||||||
* configure
|
* configure
|
||||||
|
|
|
@ -411,35 +411,31 @@ spcd_txt_locales() {
|
||||||
set -- \
|
set -- \
|
||||||
"${SPCD_TXT_LOCALE_ENGLISH}" \
|
"${SPCD_TXT_LOCALE_ENGLISH}" \
|
||||||
"${SPCD_TXT_LOCALE_FRENCH}"
|
"${SPCD_TXT_LOCALE_FRENCH}"
|
||||||
local locale
|
local language locale text
|
||||||
case "${1}" in
|
for locale in "${@}"; do
|
||||||
"glibc-langpack-")
|
case "${1}" in
|
||||||
local language
|
"glibc-langpack-")
|
||||||
for locale in "${@}"; do
|
|
||||||
language="$(echo "${locale}" | cut -d _ -f 1)"
|
language="$(echo "${locale}" | cut -d _ -f 1)"
|
||||||
spcd_install_package "glibc-langpack-${language}"
|
spcd_install_package "glibc-langpack-${language}"
|
||||||
done
|
;;
|
||||||
;;
|
"LANGUAGE")
|
||||||
"LANGUAGE")
|
|
||||||
local text
|
|
||||||
for locale in "${@}"; do
|
|
||||||
if [ -n "${text}" ]; then
|
if [ -n "${text}" ]; then
|
||||||
text="${text}:${locale}"
|
text="${text}:${locale}"
|
||||||
else
|
else
|
||||||
text="${locale}"
|
text="${locale}"
|
||||||
fi
|
fi
|
||||||
done
|
;;
|
||||||
export LANGUAGE="${text}"
|
"locale.gen")
|
||||||
;;
|
|
||||||
"locale.gen")
|
|
||||||
local text
|
|
||||||
for locale in "${@}"; do
|
|
||||||
text="${text}\
|
text="${text}\
|
||||||
${locale}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
|
${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
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue