Tips for Writing Multiple-Language Scripts

ID: Q89865


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows NT


SUMMARY

To aid you in writing multiple-language resources, the Win32 development system supports language scripts.


MORE INFORMATION

To create a multiple language script, first create a single-language script file (American English, for example), and duplicate the translations in your script file. You need a complete translation only once for each major language. Only those resources that have differences between the major language and the sublanguage need be included in the sublanguage areas of the script. The system will use the main language resource if it doesn't find a resource for the sublanguage.

Sample Code


LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
<original script file>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_UK
<portions of script file that are different for UK>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_AUS
<portions of script file that are different for Australia>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_CAN
<portions of script file that are different for Canada>
LANGUAGE LANG_FRENCH,SUBLANG_FRENCH
<entire script file translated to French>
LANGUAGE LANG_FRENCH,SUBLANG_FRENCH_CAN
<portions of script file that are different for Canada>
LANGUAGE LANG_FRENCH,SUBLANG_FRENCH_SWISS
<portions of script file that are different for Switzerland>
LANGUAGE LANG_FRENCH,SUBLANG_FRENCH_BELGIAN
<portions of script file that are different for Belgium>
LANGUAGE LANG_SPANISH,SUBLANG_SPANISH
<entire script file translated to Spanish> 

Additional query words: 3.10 3.50

Keywords :
Version : NT:
Platform : NT
Issue type :


Last Reviewed: January 14, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.