< Previous PageNext Page > Hide TOC

Deprecated Locale Utilities Functions

A function identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.5

LocaleGetRegionLanguageName

Obtains the localized language name for a region. (Deprecated in Mac OS X v10.5.)

OSStatus LocaleGetRegionLanguageName (
   RegionCode region,
   Str255 languageName
);

Parameters
region

A Mac OS RegionCode value, specifying the region for which you are requesting a localized language name.

languageName

A Pascal string. On return, the string contains the name of the language corresponding to the region specified in the region parameter. The language name is produced in its own language and in the appropriate Mac OS encoding for that region.

Return Value

A result code. The LocaleGetRegionLanguageName function returns paramErr if languageName is NULL or if region is invalid (

Discussion

For a particular Mac OS region code, the LocaleGetRegionLanguageName function returns the name of the corresponding language in that language and in the non-Unicode Mac OS text encoding used for that region.

Note that, in some languages, the name for a language or locale may have several different grammatical forms, where the correct form depends on the usage or context. For example, Swedish uses different forms of a language name depending on whether the name is applied to a collation order, to text break rules, or to keyboard layouts. However, the Locale Utilities functions only return one form of a language or locale name—typically that name which would be used for the language name alone. Therefore, this name may not be the correct form for some usages in some languages.

Special Considerations

This function can move memory in Carbon and Mac OS 9.

Availability
Declared In
MacLocales.h

< Previous PageNext Page > Hide TOC


© 2002 Apple Computer, Inc. All Rights Reserved. (Last updated: 2002-01-24)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.