Make the first screen a language choice; Chinese gets the CJK console and zh_CN
The CJK console unpacks Noto Sans Mono CJK from the offline mirror instead of shipping fonts in the live image, lists only US-keymap keyboards and preselects Pinyin. The target's LANG comes through locale_config.
This commit is contained in:
1 parent
e8715fc888
commit
25cebcf3fd
7 files changed
+107
-74
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Every installer text needs an OMARCHY_ZH entry, or a China install shows it in English.
|
||||
# Every installer text needs an OMARCHY_ZH entry, or a Chinese install shows it in English.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -33,7 +33,7 @@ for text in "${texts[@]}"; do
|
||||
done
|
||||
printf 'ok - every installer and dashboard text has a Chinese entry\n'
|
||||
|
||||
for action in "View full log" "Drop to shell" "Reboot" "Power off" "Upload log for support" "Global" "China"; do
|
||||
for action in "View full log" "Drop to shell" "Reboot" "Power off" "Upload log for support"; do
|
||||
[[ -n ${OMARCHY_ZH[$action]:-} ]] || fail "labels passed through variables have Chinese entries" "missing: $action"
|
||||
done
|
||||
printf 'ok - labels passed through variables have Chinese entries\n'
|
||||
|
||||
Reference in new issue
Block a user