Setting Locale Information in Common.str (Windows Embedded CE 6.0)

1/6/2010

To add a locale to the NLS table

  • Specify the new locales in the Common.str file.

    For example:

    //Common.str
    //This string gets inserted in Nlscfg.inf
    #define LOC_INCLUDELOCALES ~"411 412"
    

To remove a locale from the NLS table

  • Remove the locale identifier (LCID) from Nlscfg.inf.

To have the default LCID automatically set when the OS initializes

  • Define LOC_LCID in your Common.str file, and then set LOC_LCID to your default LCID. Do not set LOC_LCID in Common.reg.

    For example, to set LOC_LCID to the 409 LCID:

    //Common.str
    #define LOC_LCID ~"409"
    

    When LOC_LCID is set to the default LCID, a registry value is set for the default locale.

    For example:

    [HKEY LOCAL MACHINE\nls]
    "DefaultLCID" = dword:LOC_LCID
    

    The specified default locale has to be listed in the Nlscfg.inf file in order for the build to boot.

See Also

Concepts

Configuring the NLS Table

Other Resources

OS Localization