当要求用户覆盖文档时,我应该使用什么文本(英文)?

What text (in English) should I use when asking the user to overwrite a document?

我用 C# 编写了很多应用程序,我正试图弥补我的标准实践中的一些漏洞。

具体来说,我正在尝试决定在消息框中使用的最佳文本,我想我会问 Whosebug 社区,因为我相信很多意见总是比一个更好。

我目前拥有的是:

"Document XXX.docx already exists. Okay to overwrite?"

Buttons for; Yes, No and Cancel

我真的很想知道哪些示例最受欢迎。

使用的样式没有限制;正式的、休闲的、幽默的等等。欢迎所有建议。不过,要在政治正确的范围内安全犯错。

附带说明:考虑到相同的文本也适用于命令行程序,这也很棒,但绝不是必需的。

请注意:请仅使用英语。对于其他语言,请提出新问题。

Title: Overwrite?

"XXX.docx exists. 
Would you like to overwrite XXX.docx?"

Buttons: Overwrite, Keep, Panic

就个人而言,我喜欢看到更多的上下文和稍微不同的措辞。类似于:

"<existing document name>" already exists in "<destination path>".
Would you like to replace it (Y/N)?

或者可能有更多信息:

"<existing document name>" (<bytes>) (<date modified>) already exists in
"<destination path>".
Would you like to replace it with file of size <new bytes>, last modified
<new date modified> (Y/N)?

我认为“replace”比"overwrite"更清楚一点——而且(推测)可能会翻译成其他语言,并更频繁地保持原意。

...以及新文件 name/location 信息的最后一个选项:

"<existing document name>" (<bytes>) (<date modified>) already exists in
"<destination path>".
Would you like to replace it with file "<new file name>" in "<new path>" of 
size <new bytes>, last modified <new date modified> (Y/N)?

最后一个可能只是显示用于初始文件保存的临时文件/缓冲区位置——但它是可重复使用的,并且在执行文件复制时更有意义

希望你能找到其中的一个有用的。

干杯, 汉斯

简单的解决方案通常是最好的,例如 windows 用户可能会觉得看到一条消息很熟悉:

他有 3 个选择:

  • 替换
  • 中止操作 x3
  • 使用新名称创建