Instance Method

localizedStringForCalendarIdentifier:

Returns the localized string for the specified calendar identifier.

Declaration

- (NSString *)localizedStringForCalendarIdentifier:(NSString *)calendarIdentifier;

Parameters

calendarIdentifier

The calendar identifier indicating the calendar whose name you want. Use one of the values listed in Calendar Identifiers.

Return Value

A human readable string suitable for display to the user corresponding to the given calendar.

Discussion

For example, on an American English (en_US) locale, passing NSCalendarIdentifierGregorian as the identifier, produces the string "Gregorian Calendar".

See Also

Getting Display Information About a Locale

- localizedStringForLocaleIdentifier:

Returns the localized string for the specified locale identifier.

- localizedStringForCountryCode:

Returns the localized string for the specified country code.

- localizedStringForLanguageCode:

Returns the localized string for the specified language code.

- localizedStringForScriptCode:

Returns the localized string for the specified script code.

- localizedStringForVariantCode:

Returns the localized string for the specified variant code.

- localizedStringForCollationIdentifier:

Returns the localized string for the specified collation identifier.

- localizedStringForCollatorIdentifier:

Returns the localized string for the specified collator identifier.

- localizedStringForCurrencyCode:

Returns the localized string for the specified currency code.