fix(windows): normalize Windows file paths with leading slash and add i18n to link safety dialog
Strip spurious leading slash from Windows drive-letter paths (/D:/foo → D:/foo) in parseLocalFileTarget so that workspace-relative comparison succeeds and local files can be opened correctly. Display the normalized path in the confirmation dialog. Internationalize all link safety dialog and toast strings across 10 locales.
This commit is contained in:
@@ -1556,6 +1556,21 @@
|
||||
"thoughtForFewSeconds": "思考",
|
||||
"thoughtForSeconds": "思考"
|
||||
},
|
||||
"linkSafety": {
|
||||
"localFileTitle": "打开本地文件?",
|
||||
"externalLinkTitle": "打开外部链接?",
|
||||
"localFileDescription": "即将在文件面板中打开一个本地文件。",
|
||||
"externalLinkDescription": "即将访问一个外部网站。",
|
||||
"cancel": "取消",
|
||||
"opening": "正在打开…",
|
||||
"openFile": "打开文件",
|
||||
"openLink": "打开链接",
|
||||
"errorCannotOpen": "无法打开本地文件",
|
||||
"errorNoWorkspace": "当前没有活跃的工作区文件夹。",
|
||||
"errorOutsideWorkspace": "该文件不在当前工作区文件夹内。",
|
||||
"errorFailedOpen": "打开本地文件失败",
|
||||
"errorFailedLink": "打开链接失败"
|
||||
},
|
||||
"messageList": {
|
||||
"attachedResources": "附加资源",
|
||||
"loading": "加载中...",
|
||||
|
||||
Reference in New Issue
Block a user