diff --git a/src/ui/i18n/en.rs b/src/ui/i18n/en.rs index fa4284db..79cb800b 100644 --- a/src/ui/i18n/en.rs +++ b/src/ui/i18n/en.rs @@ -527,14 +527,13 @@ pub fn translate_en(key: L10nKey) -> &'static str { } L10nKey::SettingsUpdateChannelStable => "Stable", L10nKey::SettingsUpdateChannelNightly => "Nightly", - L10nKey::SettingsDaemonStale => "The background service is still running {build}.", + L10nKey::SettingsDaemonStale => "The background server is still running {build}.", L10nKey::SettingsDaemonStaleDesc => { - "tty7 was updated in place, so the app is new but your panes are still served by the previous build. Restarting the service picks up the new one and ends every process running in your panes — shells, agents and SSH sessions alike. There is no hurry: pick a moment when your panes are idle." + "tty7 was updated in place, so the app is new but your panes are still served by the previous build. Restarting the server picks up the new one and ends every process running in your panes — shells, agents and SSH sessions alike. There is no hurry: pick a moment when your panes are idle." } - L10nKey::SettingsDaemonStaleRestart => "Restart Service", L10nKey::UpdateDialogTitle => "Update available", L10nKey::UpdateDialogDetail => { - "tty7 {version} is available — you're on {current}. Installing restarts the app; the background service keeps running, so whatever is open in your panes survives." + "tty7 {version} is available — you're on {current}. Installing restarts the app; the background server keeps running, so whatever is open in your panes survives." } L10nKey::UpdateDialogDetailManual => { "tty7 {version} is available — you're on {current}. {hint}" diff --git a/src/ui/i18n/ja.rs b/src/ui/i18n/ja.rs index 36f894bc..b9e1bca9 100644 --- a/src/ui/i18n/ja.rs +++ b/src/ui/i18n/ja.rs @@ -527,14 +527,13 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> { } L10nKey::SettingsUpdateChannelStable => "安定版", L10nKey::SettingsUpdateChannelNightly => "ナイトリー", - L10nKey::SettingsDaemonStale => "バックグラウンドサービスは {build} のままです。", + L10nKey::SettingsDaemonStale => "バックグラウンドサーバーは {build} のままです。", L10nKey::SettingsDaemonStaleDesc => { - "tty7 はその場で更新されたため、アプリは新しくなりましたが、各ペインは以前のビルドのサービスが処理しています。サービスを再起動すると新しいビルドに切り替わりますが、ペインで動いているプロセス(シェル、エージェント、SSH セッション)はすべて終了します。急ぐ必要はありません。ペインが空いているときに実行してください。" + "tty7 はその場で更新されたため、アプリは新しくなりましたが、各ペインは以前のビルドのサーバーが処理しています。サーバーを再起動すると新しいビルドに切り替わりますが、ペインで動いているプロセス(シェル、エージェント、SSH セッション)はすべて終了します。急ぐ必要はありません。ペインが空いているときに実行してください。" } - L10nKey::SettingsDaemonStaleRestart => "サービスを再起動", L10nKey::UpdateDialogTitle => "アップデートがあります", L10nKey::UpdateDialogDetail => { - "tty7 {version} が利用できます(現在 {current})。インストールするとアプリが再起動します。バックグラウンドサービスは動いたままなので、ペインで開いているものはそのまま残ります。" + "tty7 {version} が利用できます(現在 {current})。インストールするとアプリが再起動します。バックグラウンドサーバーは動いたままなので、ペインで開いているものはそのまま残ります。" } L10nKey::UpdateDialogDetailManual => { "tty7 {version} が利用できます(現在 {current})。{hint}" diff --git a/src/ui/i18n/mod.rs b/src/ui/i18n/mod.rs index f29eb229..c48ce6b1 100644 --- a/src/ui/i18n/mod.rs +++ b/src/ui/i18n/mod.rs @@ -467,7 +467,6 @@ l10n_keys! { SettingsUpdateChannelNightly, SettingsDaemonStale, SettingsDaemonStaleDesc, - SettingsDaemonStaleRestart, UpdateDialogTitle, UpdateDialogDetail, UpdateDialogDetailManual, @@ -1424,7 +1423,6 @@ mod tests { L10nKey::SettingsUpdateChannelNightly, L10nKey::SettingsDaemonStale, L10nKey::SettingsDaemonStaleDesc, - L10nKey::SettingsDaemonStaleRestart, L10nKey::UpdateDialogTitle, L10nKey::UpdateDialogDetail, L10nKey::UpdateDialogDetailManual, diff --git a/src/ui/i18n/zh.rs b/src/ui/i18n/zh.rs index fadfe345..8df01fbd 100644 --- a/src/ui/i18n/zh.rs +++ b/src/ui/i18n/zh.rs @@ -466,14 +466,13 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> { } L10nKey::SettingsUpdateChannelStable => "稳定版", L10nKey::SettingsUpdateChannelNightly => "每夜构建", - L10nKey::SettingsDaemonStale => "后台服务仍运行在 {build}。", + L10nKey::SettingsDaemonStale => "后台服务器仍运行在 {build}。", L10nKey::SettingsDaemonStaleDesc => { - "tty7 是原地升级的,界面已经是新版本,但各个 pane 仍由旧版本的后台服务托管。重启服务才能用上新版本,代价是 pane 里正在跑的进程全部结束——shell、agent、SSH 会话都算。不急,挑个 pane 空闲的时候再重启。" + "tty7 是原地升级的,界面已经是新版本,但各个 pane 仍由旧版本的后台服务器托管。重启服务器才能用上新版本,代价是 pane 里正在跑的进程全部结束——shell、agent、SSH 会话都算。不急,挑个 pane 空闲的时候再重启。" } - L10nKey::SettingsDaemonStaleRestart => "重启服务", L10nKey::UpdateDialogTitle => "有可用更新", L10nKey::UpdateDialogDetail => { - "tty7 {version} 已发布,你现在是 {current}。安装会重启应用;后台服务不动,pane 里开着的东西都还在。" + "tty7 {version} 已发布,你现在是 {current}。安装会重启应用;后台服务器不动,pane 里开着的东西都还在。" } L10nKey::UpdateDialogDetailManual => "tty7 {version} 已发布,你现在是 {current}。{hint}", L10nKey::UpdateDialogCannotSelfUpdate => "这份安装无法自行更新。", diff --git a/src/ui/settings.rs b/src/ui/settings.rs index 5b13d24d..f9d9c8e5 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -5314,7 +5314,7 @@ impl Tty7App { .child( h_flex().child( Button::new("restart-stale-daemon") - .label(t(L10nKey::SettingsDaemonStaleRestart)) + .label(t(L10nKey::SettingsRestartServer)) .small() .on_click(cx.listener(|this, _, window, cx| { this.restart_daemon(window, cx)