在源代码中翻译注释和区域名称 [英] Translating comments and region names in source code
问题描述
有人知道批处理程序或VS 2010插件/脚本可以让我将注释和区域名称从中文翻译成英语吗?
Does anyone know of a batch processor or a VS 2010 plugin/script that would let me translate comments and region names from Chinese into English?
我发现的唯一一个要么一次处理所有字符串,要么一次仅处理一个字符串.
The only ones I've found either process all strings or only one string at a time.
我有两个要尝试阅读的大型C#项目.
I have two large C# projects that I am trying to read through.
谢谢.
推荐答案
使用PrepTags准备文件以进行翻译.它将允许您基于正则表达式选择要翻译的文本.
Use PrepTags to prepare your file for translation. It will allow you to select the text to be translated based on regex.
您可以免费按文件工作,也可以使用专业版(€39)批量处理文件
You can work file by file for free, or process the files as batch using the pro version (€39)
对于您而言,准备工作非常简单.您只需将所有内容标记为受保护,然后取消对评论内容的保护即可.地区名称.
In your case, it's pretty simple to prepare. You just mark everything as protected, then unprotect the content of the comments & region names.
披露:我开发了PrepTags.
Disclosure: I develop PrepTags.
这篇关于在源代码中翻译注释和区域名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!