Windows Win32资源文件多个翻译
我想为我的项目使用资源脚本。该项目是使用MinGW编译的 资源中心:Windows Win32资源文件多个翻译,windows,winapi,mingw,Windows,Winapi,Mingw,我想为我的项目使用资源脚本。该项目是使用MinGW编译的 资源中心: #include <windows.h> VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 //FILEFLAGSMASK VS_FFI_FILEFLAGSMASK //FILEFLAGS VER_PRIVATEBUILD FILEOS VOS_NT_WINDOWS32 FILET
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
//FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
//FILEFLAGS VER_PRIVATEBUILD
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
//VALUE "Comments", ""
VALUE "CompanyName", "Company"
VALUE "FileDescription", "Test for the resource.rc"
VALUE "FileVersion", "1.0"
VALUE "InternalName", "ResourceTest"
//VALUE "LegalCopyright", ""
//VALUE "LegalTrademarks1", ""
//VALUE "LegalTrademarks2", ""
VALUE "OriginalFilename", "ResourceTest.exe"
VALUE "PrivateBuild", "Built by me." //With VS_FF_PRIVATEBUILD
VALUE "ProductName", "resource.rc Test"
VALUE "ProductVersion", "1.0"
END
END
BLOCK "VarFileInfo"
BEGIN
/* The following line should only be modified for localized versions. */
/* It consists of any number of WORD,WORD pairs, with each pair */
/* describing a language,codepage combination supported by the file. */
/* */
/* For example, a file might have values "0x409,1252" indicating that it */
/* supports English language (0x409) in the Windows ANSI codepage (1252). */
VALUE "Translation", 0x407, 1252 //German
VALUE "Translation", 0x409, 1252 //U.S. English
END
END
第39行是第二个翻译行:
值“Translation”,0x4091252
。但提到这一点是当前的趋势。但是出了什么问题?在VarFileInfo
块中不能有多行值“Translation”
行。相反,正如注释所说,您必须有一行包含一个或多个单词的单词对
比如说,
VALUE "Translation", 0x407, 1252, 0x409, 1252
如何显示其他语言,如汉语或德语。
VALUE "Translation", 0x407, 1252, 0x409, 1252