Difference between revisions of "Xojo.Core.Locale"

From Xojo Documentation

Line 20: Line 20:
<dynamicTable id="Constructors" class="methodTable" title="Constructors" columns="1">
<dynamicTable id="Constructors" class="methodTable" title="Constructors" columns="1">
{{Ctor |  params=localeIdentifier As Text | description=Creates a locale with the given localeIdentifier. }}
{{Ctor |  params=localeIdentifier As Text | description=Xojo.Core.Locale(localeIdentifier As Text)&#10;Creates a locale with the given localeIdentifier. }}

Latest revision as of 22:32, 20 February 2022

Class (inherits from Object)

Used to represent a locale, which describes linguistic, cultural and other locale-specific information. For example, a locale might specify "English as spoken in the United States, using the metric system".

CurrencySymbol fa-lock-32.png GroupingSeparator fa-lock-32.png
DecimalSeparator fa-lock-32.png Identifier fa-lock-32.png
Shared Properties
Current fa-lock-32.png Raw fa-lock-32.png

Constructor(localeIdentifier As Text)


For web apps, this returns the locale of the app running on the server. To get the locale of the connected user from the browser use WebSession.LanguageCode.

For more information on localization, refer to the Localization topic in the User Guide.

See Also

Xojo.Core.Date class