Scroll to navigation

mlanguage_name_list(3m17n) The m17n Library mlanguage_name_list(3m17n)

NAME

mlanguage_name_list -

SYNOPSIS

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

DESCRIPTION

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.

SEE ALSO

mlanguage_code(), mlanguage_text().

COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.

Tue Jul 25 2023 Version 1.8.3