This example demonstrates how to get different locale settings from the locale DLLs in the system.
Click on the following link to download the example: localeupdate.zip .
Click: browse to view the example code.
An object of the TExtendedLocale class is used to load a number of locale DLLs from the system. For each locale DLL, it gets the following locale settings:
Calendar settings
Country code
Collation method
Currency format
Date and time format
Numeric value settings
Time zone information
Units of measurement.
Locale Settings
TExtendedLocale - Extended locale class.
TLocale - Sets and gets the system's locale settings.
TDay - Defines the days of the week.
TCollationMethod - Defines a collation method.
TDateFormat - Defines the date formats.
TTimeFormat - Defines the time formats as either 12 hour or 24 hour.
TDaylightSavingZone - Defines the daylight saving zones.
TUnitsFormat - Enumerates the units of measurement as either Imperial or Metric.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.