fix(copy): put every popup menu in the Title Case the rest of them use

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.
This commit is contained in:
l0ng-ai
2026-08-08 21:37:49 +07:00
parent 36c82f0a63
commit 138455e33b
+9 -9
View File
@@ -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}%",