Instance Method

localizedStringForCollationIdentifier:

Returns the localized string for the specified collation identifier.

Declaration

- (NSString *)localizedStringForCollationIdentifier:(NSString *)collationIdentifier;

Parameters

collationIdentifier

The identifier for the collation whose name you want.

Return Value

The localized name for the collation.

Discussion

For example, calling this method on an American English (en_US) locale, passing "phonebook" for collationIdentifier, produces the string "Phonebook Sort Order".

This method is equivalent to calling the displayNameForKey:value: method passing the NSLocaleCollationIdentifier key and collationIdentifier value.

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.

- localizedStringForCollatorIdentifier:

Returns the localized string for the specified collator identifier.

- localizedStringForCurrencyCode:

Returns the localized string for the specified currency code.

- localizedStringForCalendarIdentifier:

Returns the localized string for the specified calendar identifier.