locale
This commit is contained in:
parent
6475063e3e
commit
b00e8881a4
1 changed files with 7 additions and 5 deletions
|
@ -334,12 +334,14 @@ spcd_txt_get() {
|
||||||
|
|
||||||
spcd_txt_locale() {
|
spcd_txt_locale() {
|
||||||
# LANGUAGE
|
# LANGUAGE
|
||||||
|
local name
|
||||||
|
local value
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
spcd_step__locale__value="${1}"
|
value="${1}"
|
||||||
else
|
else
|
||||||
spcd_step__locale__value="${_SPCD_TXT_LOCALE_DEFAULT}"
|
value="${_SPCD_TXT_LOCALE_DEFAULT}"
|
||||||
fi
|
fi
|
||||||
spcd_step__locale__value="${spcd_step__locale__value}.${_SPCD_TXT_CHARSET}"
|
value="${value}.${_SPCD_TXT_CHARSET}"
|
||||||
set -- \
|
set -- \
|
||||||
"LANG" \
|
"LANG" \
|
||||||
"LC_CTYPE" \
|
"LC_CTYPE" \
|
||||||
|
@ -354,8 +356,8 @@ spcd_txt_locale() {
|
||||||
"LC_TELEPHONE" \
|
"LC_TELEPHONE" \
|
||||||
"LC_MEASUREMENT" \
|
"LC_MEASUREMENT" \
|
||||||
"LC_IDENTIFICATION"
|
"LC_IDENTIFICATION"
|
||||||
for spcd_step__locale__name in "${@}"; do
|
for name in "${@}"; do
|
||||||
export "${spcd_step__locale__name}=${spcd_step__locale__value}"
|
export "${name}=${value}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue