Compare commits
No commits in common. "389f8cc7374eeff1be2a76ee73f117199ee94fdf" and "b847d77ae3e9d3a23546f3d4347e34df52d4c581" have entirely different histories.
389f8cc737
...
b847d77ae3
2 changed files with 3 additions and 33 deletions
|
@ -236,9 +236,7 @@ Handle project workflows in a unified way:
|
||||||
* opensuse
|
* opensuse
|
||||||
* opensuse
|
* opensuse
|
||||||
* disable & enable https
|
* disable & enable https
|
||||||
* locales
|
* persist locales
|
||||||
* persist
|
|
||||||
* restrict LC_* variables set for alpine
|
|
||||||
* test
|
* test
|
||||||
|
|
||||||
#### Shell → Python
|
#### Shell → Python
|
||||||
|
|
|
@ -887,9 +887,6 @@ 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
|
||||||
|
@ -918,31 +915,6 @@ 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
|
||||||
}
|
}
|
||||||
|
@ -1259,8 +1231,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 "Show"
|
spcd_step "Test"
|
||||||
spcd_txt_locale "show"
|
date
|
||||||
spcd_step_out
|
spcd_step_out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue