Instance Method

localizedStringForLocaleIdentifier:

Returns the localized string for the specified locale identifier.

Declaration

- (NSString *)localizedStringForLocaleIdentifier:(NSString *)localeIdentifier;

Parameters

localeIdentifier

The identifier for which you want the localized name.

Return Value

The localized name of the locale.

Discussion

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:value: method passing the NSLocaleIdentifier key and localeIdentifier value.

See Also

Getting Display Information About a Locale

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

- localizedStringForCalendarIdentifier:

Returns the localized string for the specified calendar identifier.