diff --git a/src/terminal/view.rs b/src/terminal/view.rs index 28a851d8..f6d814c0 100644 --- a/src/terminal/view.rs +++ b/src/terminal/view.rs @@ -7375,10 +7375,9 @@ impl Render for TerminalView { ) .separator() .menu(t(L10nKey::AppMenuFind), Box::new(FindInTerminal)) - .menu( - t(L10nKey::AppMenuClearScrollback), - Box::new(ClearScrollback), - ); + // Inside the terminal, what gets cleared goes without + // saying; the menu bar keeps the full "Clear Scrollback". + .menu(t(L10nKey::TerminalContextClear), Box::new(ClearScrollback)); // `fork_label` is tty7-core's capability probe, and core has no // locale table — take the answer, not its English wording. diff --git a/src/ui/i18n/en.rs b/src/ui/i18n/en.rs index 930d0df0..7f510f45 100644 --- a/src/ui/i18n/en.rs +++ b/src/ui/i18n/en.rs @@ -2049,6 +2049,7 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SidebarDeleteGroup => "Delete Group", L10nKey::SidebarDropToPin => "Drop here to pin", L10nKey::TabContextCloseTab => "Close Tab", + L10nKey::TerminalContextClear => "Clear", L10nKey::TabContextCloseTabsBelow => "Close Tabs Below", L10nKey::AppAgentHooksOpFailed => "Failed: {error}", L10nKey::AppMenuEnterFullscreen => "Enter Full Screen", diff --git a/src/ui/i18n/ja.rs b/src/ui/i18n/ja.rs index 8f262b7b..dc03ce45 100644 --- a/src/ui/i18n/ja.rs +++ b/src/ui/i18n/ja.rs @@ -2102,6 +2102,7 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> { L10nKey::SidebarDeleteGroup => "グループを削除", L10nKey::SidebarDropToPin => "ここにドロップして固定", L10nKey::TabContextCloseTab => "タブを閉じる", + L10nKey::TerminalContextClear => "クリア", L10nKey::TabContextCloseTabsBelow => "下のタブを閉じる", L10nKey::AppAgentHooksOpFailed => "失敗: {error}", L10nKey::AppMenuEnterFullscreen => "全画面表示", diff --git a/src/ui/i18n/mod.rs b/src/ui/i18n/mod.rs index c9634988..1c39c3ff 100644 --- a/src/ui/i18n/mod.rs +++ b/src/ui/i18n/mod.rs @@ -1225,6 +1225,7 @@ l10n_keys! { SidebarDeleteGroup, SidebarDropToPin, TabContextCloseTab, + TerminalContextClear, TabContextCloseTabsBelow, TabContextMarkUnread, TabContextHibernate, diff --git a/src/ui/i18n/zh.rs b/src/ui/i18n/zh.rs index f12cdcce..b1e5fe85 100644 --- a/src/ui/i18n/zh.rs +++ b/src/ui/i18n/zh.rs @@ -1910,6 +1910,7 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> { L10nKey::SidebarDeleteGroup => "删除分组", L10nKey::SidebarDropToPin => "拖到此处固定", L10nKey::TabContextCloseTab => "关闭标签页", + L10nKey::TerminalContextClear => "清屏", L10nKey::TabContextCloseTabsBelow => "关闭下方标签页", L10nKey::AppAgentHooksOpFailed => "失败:{error}", L10nKey::AppMenuEnterFullscreen => "进入全屏",