Difference between revisions of "Locale"

From Xojo Documentation

(Created page with "N/A")
 
Line 1: Line 1:
N/A
+
{{ClassBox
 +
| super=[[Object]]
 +
| scope=global
 +
}}
 +
{{Description
 +
| text=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".}}
 +
 
 +
<dynamicTable id="Properties" class="propertyTable" title="Properties" columns="3">
 +
{{Property | name=Identifier | readonly=yes | description=(Text) This is the locale's identifier. The identifier may not exactly match the identifier passed in via the constructor due to conversions (e.g. 'en_US' could become 'en-US').}}
 +
{{Property | name=CurrencySymbol | readonly=yes | description=(Text) The locale's currency symbol.}}
 +
{{Property | name=GroupingSeparator | readonly=yes | description=(Text) The locale's separator for grouping a number. In "en-US", this is the 'comma' placed between every three integer digits.}}
 +
{{Property | name=DecimalSeparator | readonly=yes | description=(Text) The locale's separator between the integer and decimal portions of a number. In "un-US", this is the 'period'.}}
 +
</dynamicTable>
 +
 
 +
<dynamicTable id="Properties" class="propertyTable" title="Shared Properties" columns="3">
 +
{{Property | name=Current | readonly=yes | description=(Locale) The user's current locale. For web apps, this is the locale of the server. To get the locale of the browser, use WebSession.LanguageCode.}}
 +
{{Property | name=Raw | readonly=yes | description=(Locale) A machine-independent locale that has a well-defined format (i.e. the POSIX locale) and is not affected by the user's settings.}}
 +
</dynamicTable>
 +
 
 +
<dynamicTable id="Constructors" class="methodTable" title="Constructors" columns="1">
 +
{{Ctor |  params=localeIdentifier As Text | description=Creates a locale with the given localeIdentifier. }}
 +
</dynamicTable>
 +
 
 +
== Notes ==
 +
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 ==
 +
[Date]] class
 +
 
 +
[[Category:Language_Classes]]
 +
[[Category:Language_Date_and_Time]]

Revision as of 02:26, 19 June 2019

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".

Properties
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
Constructors

Constructor(localeIdentifier As Text)


Notes

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

[Date]] class