Better localize

This commit is contained in:
Kaede Akino committed 2026-09-02 16:01:30 +08:00
1 parent 68dee1137d
commit cba40eb06b
3 files changed
+40 -46

No files matched your search

@@ -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
}
@@ -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"
)
+36 -42
View File
@@ -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"
}
}