0

我的应用程序中有很多表格,它们都需要翻译。使用 resx 文件的解决方案非常简单。但我还需要根据当前操作翻译消息框文本和按钮中显示的文本。我曾尝试在 VS2010 的 *.de.resx 文件中添加字符串,但在切换表单语言后它消失了。然后我找到了将文本存储在隐藏标签中的解决方案,但这看起来很丑陋。有没有办法在没有隐藏标签的情况下向 resx 添加字符串?

4

1 回答 1

0

You probably need to just add a standalone resx to your project (Add, New Item, Resources File). A form resx isn't a safe place to store your non-ui data, as it's autogenerated, and, as you've found, it can delete your alterations when it's regenerated.

于 2012-07-20T01:04:05.950 回答