Compare commits

...

12 commits

Author SHA1 Message Date
389f8cc737
locale/debug
Some checks failed
/ arch (push) Failing after 20s
/ alpine (push) Failing after 8s
/ fedora (push) Failing after 1m9s
/ opensuse (push) Failing after 45s
/ alma (push) Failing after 30s
/ rocky (push) Failing after 39s
/ ubuntu (push) Failing after 16s
/ debian (push) Failing after 15s
2024-09-06 21:22:46 +02:00
11c144c7c3
locale/show 2024-09-06 21:20:13 +02:00
4e645dfc0c
test/numeric
Some checks failed
/ arch (push) Failing after 8s
/ alpine (push) Failing after 7s
/ fedora (push) Failing after 7s
/ debian (push) Failing after 8s
/ opensuse (push) Failing after 7s
/ ubuntu (push) Failing after 7s
/ alma (push) Failing after 7s
/ rocky (push) Failing after 7s
2024-09-06 18:30:10 +02:00
0108214a37
test/monetary 2024-09-06 18:23:07 +02:00
f315142e24
test/name 2024-09-06 18:16:18 +02:00
fc79e9d394
test/measure 2024-09-06 18:02:17 +02:00
c23ef10014
test/paper 2024-09-06 17:40:50 +02:00
0e4073755b
test/addr 2024-09-06 17:29:15 +02:00
f83166cbfd
test/phone 2024-09-06 17:24:39 +02:00
8eb88e4a88
test/id 2024-09-06 17:20:33 +02:00
a57ac1defe
test/time,messages
Some checks failed
/ arch (push) Failing after 8s
/ alpine (push) Failing after 9s
/ fedora (push) Failing after 7s
/ debian (push) Failing after 9s
/ opensuse (push) Failing after 7s
/ ubuntu (push) Failing after 8s
/ alma (push) Failing after 7s
/ rocky (push) Failing after 8s
2024-09-06 17:14:45 +02:00
781d907b07
tasks
Some checks failed
/ arch (push) Failing after 7s
/ alpine (push) Failing after 8s
/ fedora (push) Failing after 6s
/ opensuse (push) Failing after 6s
/ alma (push) Failing after 7s
/ rocky (push) Failing after 7s
/ ubuntu (push) Failing after 6s
/ debian (push) Failing after 7s
2024-09-05 11:26:32 +02:00
2 changed files with 33 additions and 3 deletions

View file

@ -236,7 +236,9 @@ Handle project workflows in a unified way:
* opensuse * opensuse
* opensuse * opensuse
* disable & enable https * disable & enable https
* persist locales * locales
* persist
* restrict LC_* variables set for alpine
* test * test
#### Shell → Python #### Shell → Python

View file

@ -887,6 +887,9 @@ spcd_txt_locale() {
;; ;;
esac esac
local name local name
for name in "${@}"; do
echo "${name}"
done
case "${action}" in case "${action}" in
"list") "list")
if ! locale; then if ! locale; then
@ -915,6 +918,31 @@ spcd_txt_locale() {
spcd_split spcd_split
spcd_txt_locale "list" spcd_txt_locale "list"
;; ;;
"show")
local regex
for name in "${@}"; do
case "${name}" in
# LC_CTYPE
"LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;;
"LC_TIME") regex="^\(day\|mon\)" ;;
# LC_COLLATE
"LC_MONETARY") regex="^\(int_curr\|currency\|mon_\)" ;;
"LC_MESSAGES") regex="^\(yes\|no\)" ;;
"LC_PAPER") regex="^\(height\|width\)" ;;
"LC_NAME") regex="^name_m" ;;
"LC_ADDRESS") regex="^\(country\|lang\)_name" ;;
"LC_TELEPHONE") regex="^int_" ;;
"LC_MEASUREMENT") regex="^measurement=" ;;
"LC_IDENTIFICATION") regex="^\(language\|territory\|title\)" ;;
*) ;;
esac
spcd_split
echo "${name}"
if [ -n "${regex}" ]; then
locale --keyword-name "${name}" | grep "${regex}"
fi
done
;;
*) ;; *) ;;
esac esac
} }
@ -1231,8 +1259,8 @@ spcd_step__packages_install_locales() {
spcd_txt_locales "install" spcd_txt_locales "install"
spcd_step "Set" spcd_step "Set"
spcd_txt_locale "set" "${SPCD_TXT_LOCALE}" spcd_txt_locale "set" "${SPCD_TXT_LOCALE}"
spcd_step "Test" spcd_step "Show"
date spcd_txt_locale "show"
spcd_step_out spcd_step_out
} }