diff --git a/install/provisioning/setup-form.sh b/install/provisioning/setup-form.sh index b2b86e4d..045dd109 100644 --- a/install/provisioning/setup-form.sh +++ b/install/provisioning/setup-form.sh @@ -81,8 +81,7 @@ OMARCHY_RESERVED_USERNAMES='^(root|bin|daemon|mail|ftp|http|nobody|dbus|systemd- OMARCHY_HOSTNAME_PATTERN='^[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?$' OMARCHY_HOSTNAME_DEFAULT='omarchy' -# OMARCHY_INSTALL_LANG=zh, set by the ISO for China in a console that draws CJK, -# swaps each English text below for its OMARCHY_ZH entry. printf formats %s. +# The ISO sets OMARCHY_INSTALL_LANG=zh for China in its CJK console; omarchy_text then prints the OMARCHY_ZH entry. declare -gA OMARCHY_ZH=( ["Select keyboard layout"]="选择键盘布局" ["Alphanumeric without spaces (like dhh)"]="字母和数字,不含空格(如 dhh)" @@ -123,8 +122,7 @@ omarchy_username_taken() { return 1; } # by `status=$?`: one caller runs under `set -e`, where a cancelled prompt is a # failing assignment that would kill the script before the status is read. -# China lists the .cn package mirrors first and sets up Chinese input. The -# Chinese name shows only where the console can draw it. +# China lists the .cn mirrors first and sets up Chinese input; its Chinese name shows only in a CJK console. omarchy_prompt_region() { local china="China" header="Select region" selected=Global choice status if [[ -n ${OMARCHY_CJK_CONSOLE:-} ]]; then