Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSLocaleMBS class.

Previous items

NSLocaleMBS.NSPersianCalendar as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Currency, Date and Time Format MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the calendar indentifiers.

Identifier for the Persian calendar.
Available in Mac OS X v10.6 and later.

NSLocaleMBS.NSRepublicOfChinaCalendar as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Currency, Date and Time Format MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the calendar indentifiers.

Identifier for the Republic of China (Taiwan) calendar.

A Chinese calendar can be created, and one can do calendrical calculations with it, but it should not be used for formatting as the necessary underlying functionality is not functioning correctly yet.

Available in Mac OS X v10.6 and later.

NSLocaleMBS.preferredLanguages as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Currency, Date and Time Format MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the user's language preference order as an array of strings.
Example
MsgBox join(NSLocaleMBS.preferredLanguages,", ")

// shows "de, en, fr, es, it, pt, pt-PT, nl, sv, nb, da, fi, ru, pl, zh-Hans, ja, zh-Hant, ko"

The user's language preference order as an array of String objects, each of which is a canonicalized IETF BCP 47 language identifier.

Available in Mac OS X v10.5 and later.
This is the language the user prefers. To get the country linked to the number and date formats, use the CountryCode property.

NSLocaleMBS.systemLocale as NSLocaleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Currency, Date and Time Format MBS MacBase Plugin 7.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the "root", canonical locale, that contains fixed "backstop" settings that provide values for otherwise undefined keys.

Available in Mac OS X v10.4 and later.

NSLocaleMBS.windowsLocaleCodeFromLocaleIdentifier(s as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Currency, Date and Time Format MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Window locale code from the locale identifier.

Available in Mac OS X v10.6 and later.

Previous items

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...