language.c File Reference

Functions

MPlistmlanguage_list (void)
 List 3-letter language codes.
MSymbol mlanguage_code (MSymbol language, int len)
 Get a language code.
MPlistmlanguage_name_list (MSymbol language, MSymbol target, MSymbol script, MSymbol territory)
 Return the language names written in the specified language.
MTextmlanguage_text (MSymbol language)
 Return the language name written in that language.
MPlistmscript_list (void)
 List script names.
MPlistmscript_language_list (MSymbol script)
 List languages that use a specified script.
Obsolete functions

Get an English language name.

This function is obsolete. Use mlanguage_name_list() instead.

The mlanguage_name() function returns a symbol whose name is an English name of language. language is a symbol whose name is an ISO639-2 3-letter language code, an ISO639-1 2-letter language codes, or an English word.

Return value:
If the information is available, this function returns a non-Mnil symbol. Otherwise, it returns Mnil.
See Also:
mlanguage_code(), mlanguage_text().
MSymbol mlanguage_name (MSymbol language)

Variables

MSymbol Miso639_1
MSymbol Miso639_2

Function Documentation

MPlist* mlanguage_list ( void   ) 

List 3-letter language codes.

The mlanguage_list() funciton returns a well-formed plist whose keys are Msymbol and values are symbols whose names are ISO639-2 3-letter language codes.

Return value:
This function returns a plist. The caller should free it by m17n_object_unref()