Share via


Localizing a Configuration File

  1. Create your configuration files by using unique tokens in place of the values to localize.

    By convention, the token is commonly LOC_*.

    The following code example shows how to use the LOC_FRIENDLYHAYESCOMPAT token in a Common.reg file.

    [HKEY_LOCAL_MACHINE\ExtModems\HayesCompat]
      "Port"="COM1:"
      "DeviceType"=dword:1
      "FriendlyName"=LOC_FRIENDLYHAYESCOMPAT
    
  2. Create your .str files to include localized strings for all the LOC_* values that you created in your configuration files.

    If you do not create localized strings for all LOC**_*** values, Platform Builder will return an error during the Makeimg.exe process.

    The following code example shows how to define the LOC_FRIENDLYHAYESCOMPAT token in an .str file.

    // Common.reg translations
    #define LOC_FRIENDLYHAYESCOMPAT "Hayes Compatible on COM1:"
    

The next time you run Makeimg.exe, Platform Builder replaces LOC_FRIENDLYHAYESCOMPAT in Common.reg with "Hayes Compatible on COM1:".

See Also

Platform Localization | Configuration File Localization

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.