Compare commits

..

2 commits

Author SHA1 Message Date
c64014d617
unset regex
Some checks failed
/ arch (push) Successful in 2m43s
/ alpine (push) Failing after 10s
/ fedora (push) Successful in 12m45s
/ opensuse (push) Successful in 3m38s
/ ubuntu (push) Blocked by required conditions
/ debian (push) Blocked by required conditions
/ rocky (push) Has been cancelled
/ alma (push) Has been cancelled
2024-09-06 21:43:02 +02:00
1398431521
indent 2024-09-06 21:40:28 +02:00

View file

@ -921,20 +921,21 @@ spcd_txt_locale() {
"show") "show")
local regex local regex
for name in "${@}"; do for name in "${@}"; do
unset regex
case "${name}" in case "${name}" in
# LC_CTYPE # LC_CTYPE
"LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;; "LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;;
"LC_TIME") regex="^\(day\|mon\)" ;; "LC_TIME") regex="^\(day\|mon\)" ;;
# LC_COLLATE # LC_COLLATE
"LC_MONETARY") regex="^\(int_curr\|currency\|mon_\)" ;; "LC_MONETARY") regex="^\(int_curr\|currency\|mon_\)" ;;
"LC_MESSAGES") regex="^\(yes\|no\)" ;; "LC_MESSAGES") regex="^\(yes\|no\)" ;;
"LC_PAPER") regex="^\(height\|width\)" ;; "LC_PAPER") regex="^\(height\|width\)" ;;
"LC_NAME") regex="^name_m" ;; "LC_NAME") regex="^name_m" ;;
"LC_ADDRESS") regex="^\(country\|lang\)_name" ;; "LC_ADDRESS") regex="^\(country\|lang\)_name" ;;
"LC_TELEPHONE") regex="^int_" ;; "LC_TELEPHONE") regex="^int_" ;;
"LC_MEASUREMENT") regex="^measurement=" ;; "LC_MEASUREMENT") regex="^measurement=" ;;
"LC_IDENTIFICATION") regex="^\(language\|territory\|title\)" ;; "LC_IDENTIFICATION") regex="^\(language\|territory\|title\)" ;;
*) ;; *) ;;
esac esac
spcd_split spcd_split
echo "${name}" echo "${name}"