diff --git a/Termind/Application/Agent/AgentBuiltInSFTPTools.swift b/Termind/Application/Agent/AgentBuiltInSFTPTools.swift index 906d5eda..89102d1d 100644 --- a/Termind/Application/Agent/AgentBuiltInSFTPTools.swift +++ b/Termind/Application/Agent/AgentBuiltInSFTPTools.swift @@ -335,9 +335,9 @@ nonisolated extension SFTPMoveTool { typealias F = AgentToolDetailFormatting return F.objectItems(input) { object in var items: [AgentToolDetail.Item] = [] - F.appendField(&items, "From", object["source"]?.stringValue, + F.appendField(&items, "Source", object["source"]?.stringValue, locale: input.locale, monospaced: true) - F.appendField(&items, "To", object["destination"]?.stringValue, + F.appendField(&items, "Destination", object["destination"]?.stringValue, locale: input.locale, monospaced: true) return items } diff --git a/Termind/Features/Keychain/KeychainPageView.swift b/Termind/Features/Keychain/KeychainPageView.swift index 1bb3e6d3..ecc7e2b8 100644 --- a/Termind/Features/Keychain/KeychainPageView.swift +++ b/Termind/Features/Keychain/KeychainPageView.swift @@ -612,8 +612,8 @@ private struct SoftwareKeyEditor: View { private var dropPresentation: DropTargetPresentation { DropTargetPresentation( title: existing == nil - ? String(localized: "Import Private Key") - : String(localized: "Replace Private Key"), + ? String(localized: "Drag to Import") + : String(localized: "Drag to Replace"), detail: String(localized: "Private key or certificate"), systemImage: "key.fill" ) diff --git a/Termind/Resources/Localizable.xcstrings b/Termind/Resources/Localizable.xcstrings index 31ee830b..07d676e0 100644 --- a/Termind/Resources/Localizable.xcstrings +++ b/Termind/Resources/Localizable.xcstrings @@ -3841,6 +3841,18 @@ } } }, + "Drag to Import" : { + "comment" : "Title of a drop target presentation for importing a private key or certificate.", + "isCommentAutoGenerated" : true, + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "拖拽以导入" + } + } + } + }, "Drag to move this pane, double-click to rename" : { "localizations" : { "zh-Hans" : { @@ -3851,6 +3863,18 @@ } } }, + "Drag to Replace" : { + "comment" : "Text displayed in a drop target presentation when importing a new private key or certificate.", + "isCommentAutoGenerated" : true, + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "拖拽以替换" + } + } + } + }, "Dropped image" : { "localizations" : { "zh-Hans" : { @@ -4807,16 +4831,6 @@ } } }, - "From" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "从" - } - } - } - }, "Full URL" : { "localizations" : { "zh-Hans" : { @@ -5397,16 +5411,6 @@ } } }, - "Import Private Key" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "导入私钥" - } - } - } - }, "Import Skill…" : { "comment" : "A button that imports a skill.", "isCommentAutoGenerated" : true, @@ -8661,16 +8665,6 @@ } } }, - "Replace Private Key" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "替换私钥" - } - } - } - }, "Replacing this private key changes its public key. Hosts using the old key may reject the next connection." : { "localizations" : { "zh-Hans" : { @@ -8706,7 +8700,7 @@ "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "请求%@" + "value" : "来自%@的请求" } } } @@ -10081,6 +10075,16 @@ } } }, + "Source" : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "来源" + } + } + } + }, "Special" : { "localizations" : { "zh-Hans" : { @@ -11893,16 +11897,6 @@ } } }, - "To" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "改为" - } - } - } - }, "Token" : { "localizations" : { "zh-Hans" : { @@ -13103,4 +13097,4 @@ } }, "version" : "1.2" -} \ No newline at end of file +}