### Getting a Key for a Locale

When you create a locale key, you generally want a key either for the current default locale or for a specific locale. To get the key for the current default locale, use the ILocaleKey::defaultLocale function. For example:

    ILocaleKey key(ILocaleKey::defaultLocale());

To get a key for a specific locale, use the locale ID. Each locale has a portable ID-defined by POSIX and consisting of a language identifier and a region identifier-and a host-specific ID defined by the particular platform. For example, to create a locale key for the German-speaking part of Switzerland:

    ILocaleKey *key = new ILocaleKey("DE", "CH");

Overview of Locale Classes
Locale Names