---
name: "mlanguage_code"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlanguage_code"
---

# mlanguage\_code(3m17n)

## NAME

mlanguage\_code -

## SYNOPSIS

MSymbol **mlanguage\_code** (MSymbol *language*, int *len*)

## DESCRIPTION

Get a language code. The **mlanguage\_code()** function returns a symbol whose name is the ISO639 language code 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.

**len** specifies the type of the returned language code. If it is 3, an ISO639-2 3-letter language code is returned. If it is 2, an ISO639-1 2-letter language code is returned when defined; otherwise **Mnil** is returned. If it is 0, a 2-letter code is returned when defined; otherwise a 3-letter code is returned.

## RETURN VALUE

If the information is available, this function returns a non-**Mnil** symbol. Otherwise, it returns **Mnil**.

## SEE ALSO

**mlanguage\_name\_list()**, **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\>.
