Share via


Localizing a Run-time Image Configuration File (Windows Embedded CE 6.0)

1/6/2010

To localize a run-time image configuration file

  1. Create your run-time image 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 run-time image 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

Concepts

Run-time Image Configuration File Localization

Other Resources

OS Localization