VB.NET本地化,检测未翻译的文本
我正在开发一个项目,其中本地化主要是使用资源文件/文化来完成的。如果该语言不存在翻译,则使用默认语言。
我最近接到一个任务,审阅翻译中的一些问题。有些文本采用默认语言,有些则不是。为什么它没有被翻译并不总是显而易见的,因为在某些情况下资源文件没有被使用,或者没有被翻译。我希望能够在无需检查代码的情况下了解情况。
我想要的是,每次使用后备语言而不是请求的语言时,文本前面都会有一个“*”。这将使我能够知道资源文件中何时缺少翻译。到目前为止我还没有找到一种方法来做到这一点。
I'm working on a project, where the localization is mostly done using resource files/cultures. If a translation does not exist for the language, the default language is used.
I recently received the task of reviewing some problems with the translation. Some text is in the default language, some not. Why it has not been translated is not always obvious, as there are cases when the resource files are not used, or have not been translated. I would love to be able to see what is the case without having to check the code.
What I would like to have is that everytime the fallback language is used instead of the requested language, that the text gets a "*" in front of it. this would enable me to know when simply a translation is missing in the resource file. So far I have not found a way to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Zeta 资源编辑器(开源)轻松匹配所有资源字符串甚至在必要时完成它们。
You can use Zeta resource editor (open source) to easy match all resource strings and even complete them if necessary.