Appendices > Internationalization in Rogue Wave Server > Rogue Wave Server Support > Determining Rogue Wave Server Support for the Locale
 
Determining Rogue Wave Server Support for the Locale
To determine if Rogue Wave® Server supports the desired locale, you can run the following program:
Note: This example uses private code that you should not use in a real application.
#include <ilserver/locale.h>
#include <ilserver/logfile.h>
 
int
main()
{
IlsSetLocaleOnce();
 
IlsString stdLocale = IlsLocale::GetStdLocaleName();
if (stdLocale.isEmpty()) {
IlsError() << "Rogue Wave Views Server does not support this locale" << IlsEOM;
} else {
IlsMsg() << "Rogue Wave Views Server standard locale name is "
<< stdLocale.value() << IlsEOM;
}
return 0;
}

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.