release 4.2.0

This commit is contained in:
2026-10-13 16:35:14 +02:00
parent 9911f6d01d
commit 8221ac5325
18 changed files with 116 additions and 5 deletions
+7 -1
View File
@@ -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.