Use ILocaleKeyIterator to iterate through the available locales. ILocaleKeyIterator iterates through the locales currently installed on the system, not the complete set of supported locales.
// Create the iterator
ILocaleKeyIterator iter;
// Create a key for an English locale
ILocaleKey english("EN");
while (iter) {
// Get the name of the current locale
IText name = (*iter).displayName(english);
cout << name << "/n";
cout.flush();
// Increment the iterator to the next locale in the list
iter++;
}
![]()
Overview of Locale Classes
Locale Names