Compare commits
12 commits
b847d77ae3
...
389f8cc737
Author | SHA1 | Date | |
---|---|---|---|
389f8cc737 | |||
11c144c7c3 | |||
4e645dfc0c | |||
0108214a37 | |||
f315142e24 | |||
fc79e9d394 | |||
c23ef10014 | |||
0e4073755b | |||
f83166cbfd | |||
8eb88e4a88 | |||
a57ac1defe | |||
781d907b07 |
2 changed files with 33 additions and 3 deletions
|
@ -236,7 +236,9 @@ Handle project workflows in a unified way:
|
|||
* opensuse
|
||||
* opensuse
|
||||
* disable & enable https
|
||||
* persist locales
|
||||
* locales
|
||||
* persist
|
||||
* restrict LC_* variables set for alpine
|
||||
* test
|
||||
|
||||
#### Shell → Python
|
||||
|
|
|
@ -887,6 +887,9 @@ spcd_txt_locale() {
|
|||
;;
|
||||
esac
|
||||
local name
|
||||
for name in "${@}"; do
|
||||
echo "${name}"
|
||||
done
|
||||
case "${action}" in
|
||||
"list")
|
||||
if ! locale; then
|
||||
|
@ -915,6 +918,31 @@ spcd_txt_locale() {
|
|||
spcd_split
|
||||
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
|
||||
}
|
||||
|
@ -1231,8 +1259,8 @@ spcd_step__packages_install_locales() {
|
|||
spcd_txt_locales "install"
|
||||
spcd_step "Set"
|
||||
spcd_txt_locale "set" "${SPCD_TXT_LOCALE}"
|
||||
spcd_step "Test"
|
||||
date
|
||||
spcd_step "Show"
|
||||
spcd_txt_locale "show"
|
||||
spcd_step_out
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue