A function identified as deprecated has been superseded and may become unsupported in the future.
Obtains the localized language name for a region. (Deprecated in Mac OS X v10.5.)
OSStatus LocaleGetRegionLanguageName ( RegionCode region, Str255 languageName );
A Mac OS RegionCode
value, specifying the region for which you are requesting a localized language name.
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.
A result code. The LocaleGetRegionLanguageName
function returns paramErr
if languageName
is NULL
or if region
is invalid (
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.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
© 2002 Apple Computer, Inc. All Rights Reserved. (Last updated: 2002-01-24)