mlanguage_name_list(3m17n)

mlanguage_name_list3m17n

Usage

MPlist* mlanguage_name_list (MSymbol language, MSymbol target, MSymbol script, MSymbol territory)

Overview

Return the language names written in the specified language. The mlanguage_name_list() function returns a plist of LANGUAGE's names written in TARGET language. SCRIPT and TERRITORY, if not Mnil, specifies which script and territory to concern at first.

LANGUAGE and TARGET must be a symbol whose name is an ISO639-2 3-letter language code or an ISO639-1 2-letter language codes. TARGET may be Mnil, in which case, the language of the current locale is used. If locale is not set or is C, English is used.

SCRIPT and TERRITORY must be a symbol whose name is a script and territory name of a locale (e.g. 'TW', 'SG') respectively.

Return value

If the translation is available, this function returns a non-empty plist. The first element has key MText and the value is an M-text of a translated language name. If the succeeding elements also have key MText, their values are M-texts of alternate translations.

If no translation is available, NULL is returned.

The returned plist should not be modified nor freed.

From m17n-docs 1.8.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.