LANGUAGE SETTINGS FOR SOFTWARE TRANSLATION
Windows-based software resource files contain several language settings that may need to change before compiling the translated files.
When editing .rc files using a text editor, change the header information and the version stamp manually. The preferred way is to open the .rc file using the resource editor and then set all the language options.
The header of an .rc file may contain the following lines:
This info block contains four language settings that need to be changed:
• The English (U.S.) resources comment line indicates that the resources that follow will be English. The end of a language block is defined by #endif // English (U.S.) resources.
• AFX_TARG_ENU indicates the language of the resource .dll to be used. The three letter language codes are only valid in Windows9x and NT. ENU is the language code for U.S. English. For a list of language codes, refer to the Locale Codes and IDs section on page 118.
• The LANGUAGE line defines the locale to be used in the compiled file. LANGUAGE is one of the keywords introduced with 32-bit .rc files. The two parameters following the keyword set the language and sublanguage, for example language French and sublanguage Canadian French. For a list of locales, refer to the Locale Codes and IDs section on page 118.
• The pragma code page defines the Windows character set to be used. The code page is an array that maps the integer code to the character of the character set. The number 1252 stands for the default Latin-1 ANSI code page. Code page 1252 is used for English and most European languages. Other examples of code pages are 932 (Japan), 949 (Korean), 950 (Taiwan), 1200 (Unicode), 1250 (Eastern European), 1251 (Cyrillic), 1253 (Greek), and 1254 (Turkish), 1255 (Hebrew), and 1256 (Arabic). For more information on character sets, refer to
To set the language of resources when you are using the resource editor integrated in Microsoft Visual Studio, follow these steps:
1. Open the resource file or binary program file (.dll or .exe) to be edited.
2. Select one or more resources where the language is to be set. As a default, all resources are selected.
3. Right-click on the selection and choose the Properties command.