Visual Studio 资源编辑器:只能有一个字符串表? [英] Visual Studio resource editor: there can only be one string table?

查看:69
本文介绍了Visual Studio 资源编辑器:只能有一个字符串表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在包含我的英语字符串的 .rc 文件中创建了一个字符串表 - 现在我需要为不同的语言添加另一个字符串表.

I created a string table in my .rc file containing my English strings - now I need to add another string table for a different language.

如果我尝试这样做:
添加资源... -> 字符串表 -> 新建

If I try to do:
Add Resource... -> String Table -> New

我收到错误消息:这种类型的实例不能超过一个".

I get the error: "there cannot be more than one instance of this type".

我知道我可以在记事本中打开 .rc 文件并在其中添加语言,但我应该如何从 Visual Studio 中执行此操作?

I know I can open up the .rc file in notepad and add language in there but how am I suppose to do this from inside Visual Studio?

推荐答案

是的,它隐藏得很好.在解决方案资源管理器中双击 .rc 文件以打开资源视图窗口.展开字符串表节点,右键单击字符串表"并选择插入副本".这将带您进入语言选择组合.

Yes, it is very well hidden. Double-click the .rc file in Solution Explorer to open the Resource View window. Expand the String Table node, right-click "String Table" and select "Insert Copy". That takes you to the language selection combo.

这篇关于Visual Studio 资源编辑器:只能有一个字符串表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆