diff --git a/bin/omarchy-update-confirm b/bin/omarchy-update-confirm index 472927f1..a014b1fd 100755 --- a/bin/omarchy-update-confirm +++ b/bin/omarchy-update-confirm @@ -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 diff --git a/install/user/first-run/install-voxtype.hook b/install/user/first-run/install-voxtype.hook index 1d07daa6..04755fc9 100644 --- a/install/user/first-run/install-voxtype.hook +++ b/install/user/first-run/install-voxtype.hook @@ -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 diff --git a/install/user/first-run/setup-agent.hook b/install/user/first-run/setup-agent.hook index 90596b83..f39fac83 100644 --- a/install/user/first-run/setup-agent.hook +++ b/install/user/first-run/setup-agent.hook @@ -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 diff --git a/install/user/first-run/welcome.sh b/install/user/first-run/welcome.sh index 22e6629e..ab1d2666 100644 --- a/install/user/first-run/welcome.sh +++ b/install/user/first-run/welcome.sh @@ -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 diff --git a/install/user/first-run/wifi.sh b/install/user/first-run/wifi.sh index 3b2af23a..06887d27 100644 --- a/install/user/first-run/wifi.sh +++ b/install/user/first-run/wifi.sh @@ -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 } diff --git a/test/shell.d/update-disk-space-test.sh b/test/shell.d/update-disk-space-test.sh index 2c7368ea..09ee09f2 100644 --- a/test/shell.d/update-disk-space-test.sh +++ b/test/shell.d/update-disk-space-test.sh @@ -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"