Application.getCurrentLocale

Overview | Methods | This Package | All Packages

Application.getCurrentLocale

Retrieves a Locale object that represents the locale settings for the current thread.

Syntax

public static Locale getCurrentLocale()

Return Value

Returns a Locale object with the locale settings for the thread.

Remarks

Use the getCurrentLocale to retrieve a Locale object that represents the current world locale for the thread. You can use this method to determine the language, currency, and date system to use in your application based on the locale defined in the user's Control Panel settings.

See Also   setCurrentLocale