Localize update confirmation and first-run notifications

The update prompt speaks Chinese and points What's new at the
OmarchyCN releases page; the Wi-Fi, update, keybindings, dictation,
and default-agent first-run notices follow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
2026-08-25 11:18:02 -04:00
co-authored by Claude Fable 5
parent b85a998404
commit f338f6cb15
6 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -3,16 +3,16 @@
# omarchy:summary=Prompt for confirmation before starting an update
gum style --border normal --padding "1 2" \
"Ready to update?" \
"准备好更新了吗?" \
"" \
"• You cannot stop the update once you start!" \
"• Make sure you're connected to power or have a full battery" \
"• 更新一旦开始就不能中止!" \
"• 请确保已接通电源或电量充足" \
"" \
"What's new: https://github.com/basecamp/omarchy/releases/latest"
"更新内容: https://git.zacharyzhang.com/ZacharyZhang-NY/omarchycn/releases"
echo
if ! gum confirm "Continue with update?"; then
echo "Update cancelled"
if ! gum confirm "继续更新?"; then
echo "已取消更新"
exit 1
fi
+2 -2
View File
@@ -3,7 +3,7 @@
set -e
if omarchy-done ensure voxtype-install-invitation; then
omarchy-notification-send -u critical -g  "Install Dictation with Voxtype" \
"Click to install voice dictation for Omarchy." \
omarchy-notification-send -u critical -g  "安装 Voxtype 语音听写" \
"点击为 Omarchy 安装语音听写。" \
--exec omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install
fi
+2 -2
View File
@@ -5,7 +5,7 @@ set -e
# Omarchy ships no default agent, so invite once rather than picking one. An
# agent already chosen means the invitation has nothing to offer.
if [[ -z $(omarchy-default-agent) ]] && omarchy-done ensure agent-setup-invitation; then
omarchy-notification-send -u critical -g 󰚩 "Set your default agent" \
"Let your favorite agent help with Omarchy." \
omarchy-notification-send -u critical -g 󰚩 "设置默认 Agent" \
"让你常用的 Agent 帮你使用 Omarchy" \
--exec omarchy menu summon setup.default.agent
fi
+2 -2
View File
@@ -1,5 +1,5 @@
# Real newlines, not a literal \n: the card renders the body as it arrives, and
# elides past three lines.
omarchy-notification-send -u critical -g  "Learn Keybindings" \
$'Super + K for cheatsheet.\nSuper + Space for Omarchy Menu.' \
omarchy-notification-send -u critical -g  "学习快捷键" \
$'Super + K 查看快捷键表。\nSuper + Space 打开 Omarchy 菜单。' \
--exec omarchy-menu-keybindings
+2 -2
View File
@@ -1,10 +1,10 @@
notify_update() {
omarchy-notification-send -u critical -g  "Update System" "Click to update the system." \
omarchy-notification-send -u critical -g  "更新系统" "点击以更新系统。" \
--exec omarchy-launch-floating-terminal-with-presentation omarchy-update
}
notify_wifi() {
omarchy-notification-send -u critical -g 󰖩 "Setup Wi-Fi" "Click to configure the wireless network." \
omarchy-notification-send -u critical -g 󰖩 "设置 Wi-Fi" "点击以配置无线网络。" \
--exec omarchy-shell shell toggle omarchy.network
}
+1 -1
View File
@@ -129,7 +129,7 @@ pass "disk-space threshold includes the exact boundary"
rm -f "$snapshot_marker" "$gum_marker"
GUM_STATUS=0 TEST_AVAILABLE_BYTES=$((10 * 1024 * 1024 * 1024)) run_update >/dev/null
grep -q "confirm Continue with update?" "$gum_marker" ||
grep -q "confirm 继续更新?" "$gum_marker" ||
fail "interactive update with enough space uses the normal confirmation prompt"
[[ -f $snapshot_marker ]] || fail "accepting the normal confirmation starts the update"
pass "interactive update keeps the normal confirmation prompt when space is sufficient"