Translate . rc in Visual Studio directly in Source?

Asked

Viewed 93 times

1

I’m trying to translate a project with Visual Studio 2013 (Snes9x emulator). I have no experience with the theme, but following the instructions of the package, I understood the resources and libraries needed and where to put folders, indicate paths, etc, and I was able to compile with all the original features like zlib support, libpng, etc.

But I can’t translate menus and dialogs; if I do this directly - that is, I open . rc via code or viewer and translate - it gives error RC2144: PRIMARY LANGUAGE ID not a number when compiling the program.

To make it clearer:

resource no VS2013

If I translate "&File", "Recent &Games" and others, ends up in compilation error.

  1. It is "right" or indicated to proceed with the translation in this way, and the errors are being caused by another reason?

  2. I saw that I can duplicate each resource with "Insert Resource Copy", indicating the language and a conditional. If this is the way to my if, it is possible to use a conditional to compile the program with these features in en?

Note: although similar answers already exist, think before negativizing my question as duplicated because it is similar to Internationalization using ASP.Net MVC, for example. I have read and (it seems to me) that my case is different, because I ALREADY HAVE . rc ready, I am not starting the project from scratch.

I’m sorry if the doubt is trivial; as I said, my experience with VS is almost nil.

  • The inclusion of #include <windows.h> at the beginning of the file . rc solved the error. The menu was translated as shown and the dialogs, by the file wlanguage. h

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.