release 4.2.0
This commit is contained in:
+7
-1
@@ -48,7 +48,13 @@ load_conf lang
|
||||
# Usage: canonical=$(locale_check <locale>) || handle-missing
|
||||
locale_check()
|
||||
{
|
||||
local requested="$1"
|
||||
if [[ "${1:-}" == -h || "${1:-}" == --help ]]; then
|
||||
printf "locale_check: tell whether a locale is installed.\n"
|
||||
printf "Usage: locale_check <locale>\n"
|
||||
printf "Prints the name of the locale as the system spells it; status 1 if it is not installed.\n"
|
||||
return 0
|
||||
fi
|
||||
local requested="${1:-}"
|
||||
[[ -z $requested ]] && { disp W "No locale given to check."; return 1; }
|
||||
|
||||
# Split "lang_TERRITORY[.codeset][@modifier]" into base, codeset, modifier.
|
||||
|
||||
Reference in New Issue
Block a user