Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSLocaleMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Loads the same values for this object as if you just take the object from NSLocaleMBS.currentLocale.
See also:
NSLocaleMBS.Constructor(Identifier as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Pass in the country identifier which you get with the availableLocaleIdentifiers function.
See also:
NSLocaleMBS.displayName(key as string, value as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Not all locale property keys have values with display name values.
You can use the NSLocaleIdentifier key to get the name of a locale in the language of another locale, as illustrated in the example code above.
NSLocaleMBS.ExemplarCharacterSet as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns a NSCharacterSetMBS object.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.GetString(key as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
This keys can be found int he NSLocale reference from Apple.
NSLocaleMBS.localizedStringForCalendarIdentifier(CalendarIdentifier as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
calendarIdentifier: The calendar identifier indicating the calendar whose name you want. Use one of the values listed in Calendar Identifiers.
Returns a human readable string suitable for display to the user corresponding to the given calendar.
For example, on an American English (en_US) locale, passing NSCalendarIdentifierGregorian as the identifier, produces the string "Gregorian Calendar".
NSLocaleMBS.localizedStringForCollationIdentifier(CollationIdentifier as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
variantCode: The variant code whose name you want.
Returns the localized name of the variant.
For example, calling this method on an American English (en_US) locale, passing "POSIX" for variantCode, produces the string "Computer".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleVariantCode key and variantCode value.
NSLocaleMBS.localizedStringForCollatorIdentifier(CollatorIdentifier as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
collatorIdentifier: The identifier for the collator whose name you want.
Returns the localized name of the collator.
This method is equivalent to calling the displayNameForKey method passing the NSLocaleCollatorIdentifier key and collatorIdentifier value.
NSLocaleMBS.localizedStringForCountryCode(CountryCode as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
countryCode: The code of the country or region that indicates the name you want.
Returns the localized name of the country or region.
For example, calling this method on an American English (en_US) locale, passing "GB" for countryCode, produces the string "United Kingdom".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleCountryCode key and countryCode value.
NSLocaleMBS.localizedStringForCurrencyCode(CurrencyCode as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
currencyCode: The code for the currency whose name you want.
Returns the localized name of the currency.
For example, calling this method on an American English (en_US) locale, passing "JPY" for currencyCode, produces the string "Japanese Yen".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleCurrencyCode key and currencyCode value.
NSLocaleMBS.localizedStringForLanguageCode(LanguageCode as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
languageCode: The language code indicating the language whose name you want.
Returns the localized name of the language.
For example, calling this method on an American English (en_US) locale, passing "zh" for languageCode, produces the string "Chinese".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleLanguageCode key and languageCode value.
NSLocaleMBS.localizedStringForLocaleIdentifier(LocaleIdentifier as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
localeIdentifier: The identifier for which you want the localized name.
Returns the localized name of the locale.
For example, calling this method on an American English (en_US) locale, passing "fr_FR" for localeIdentifier, produces the string "French (France)".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleIdentifier key and localeIdentifier value.
NSLocaleMBS.localizedStringForScriptCode(ScriptCode as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
scriptCode: The script code for the script whose name you want.
Returns the localized name of the script.
For example, calling this method on an American English (en_US) locale, passing "Hant" for scriptCode, produces the string "Traditional Han".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleScriptCode key and scriptCode value.
NSLocaleMBS.localizedStringForVariantCode(VariantCode as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
variantCode: The variant code whose name you want.
Returns the localized name of the variant.
For example, calling this method on an American English (en_US) locale, passing "POSIX" for variantCode, produces the string "Computer".
This method is equivalent to calling the displayNameForKey() method passing the NSLocaleVariantCode key and variantCode value.
The items on this page are in the following plugins: MBS MacBase Plugin.
