From 138455e33b0a542b36ed875aa0be6953db6efc47 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sat, 8 Aug 2026 21:37:49 +0700 Subject: [PATCH] fix(copy): put every popup menu in the Title Case the rest of them use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thirty-four of the app's thirty-eight menu items are Title Case — the menu bar, the command palette, the tab menu, the local file tree. Nine were not, and the split ran along a seam a user actually crosses: the local Files panel offers "New File" and "New Folder" while the remote Files panel in the same slot offered "New file" and "New folder". SFTP: New Folder, New File, Go to Shell Directory, Transfer History, Hide Transfer History, Follow Symlink. Settings → SSH: Copy Address, Expand All Groups, Forget Password. Left alone: "cd Here" and "chmod…" start lower case because the command is spelled that way, "Import from ~/.ssh/config" already was Title Case (prepositions stay down, as in "Close Tabs to the Right"), and the SFTP edit form keeps sentence case because it is a form title, not a menu. --- src/ui/i18n/en.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ui/i18n/en.rs b/src/ui/i18n/en.rs index 07ffb22e..da4da565 100644 --- a/src/ui/i18n/en.rs +++ b/src/ui/i18n/en.rs @@ -160,7 +160,7 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SettingsNothingMatches => "Nothing matches {query}.", L10nKey::SettingsInTty7 => "In tty7", L10nKey::SettingsImportFromSshConfig => "Import from ~/.ssh/config", - L10nKey::SettingsExpandAllGroups => "Expand all groups", + L10nKey::SettingsExpandAllGroups => "Expand All Groups", L10nKey::SettingsNoHostsYet => "No hosts yet", L10nKey::SettingsNothingSelected => "Nothing selected", L10nKey::SettingsTypeAddressToConnect => { @@ -176,9 +176,9 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SettingsDefaultsIntro => { "Every host starts from these. Any host can override one under its own Advanced." } - L10nKey::SettingsCopyAddress => "Copy address", + L10nKey::SettingsCopyAddress => "Copy Address", L10nKey::SettingsDuplicate => "Duplicate", - L10nKey::SettingsForgetPassword => "Forget password", + L10nKey::SettingsForgetPassword => "Forget Password", L10nKey::SettingsForgotPasswordFor => "Forgot saved password for {endpoint}", L10nKey::SettingsDeleteProfileBody => { "The password saved for it goes too, unless another connection still uses the same address." @@ -760,12 +760,12 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SftpPanelTitleFiles => "Files", L10nKey::SftpTooltipRefresh => "Refresh", L10nKey::SftpTooltipMore => "More", - L10nKey::SftpMenuNewFolder => "New folder", - L10nKey::SftpMenuNewFile => "New file", + L10nKey::SftpMenuNewFolder => "New Folder", + L10nKey::SftpMenuNewFile => "New File", L10nKey::SftpMenuUpload => "Upload…", - L10nKey::SftpMenuGotoShellCwd => "Go to shell directory", - L10nKey::SftpMenuHideTransferHistory => "Hide transfer history", - L10nKey::SftpMenuTransferHistory => "Transfer history", + L10nKey::SftpMenuGotoShellCwd => "Go to Shell Directory", + L10nKey::SftpMenuHideTransferHistory => "Hide Transfer History", + L10nKey::SftpMenuTransferHistory => "Transfer History", L10nKey::SftpEditNewFolder => "New folder", L10nKey::SftpEditNewFile => "New file", L10nKey::SftpEditRename => "Rename", @@ -773,7 +773,7 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SftpLoading => "Loading…", L10nKey::SftpEmptyDirectory => "Empty directory.", L10nKey::SftpContextOpen => "Open", - L10nKey::SftpContextFollowSymlink => "Follow symlink", + L10nKey::SftpContextFollowSymlink => "Follow Symlink", L10nKey::SftpContextRename => "Rename", L10nKey::SftpContextChmod => "chmod…", L10nKey::SftpTransferSummaryRunning => "{count} transferring · {pct}%",