Language.fromString

pango.language.Language fromString(string language = null)

Convert a language tag to a pango.language.Language.

The language tag must be in a RFC-3066 format. pango.language.Language pointers can be efficiently copied (copy the pointer) and compared with other language tags (compare the pointer.)

This function first canonicalizes the string by converting it to lowercase, mapping '_' to '-', and stripping all characters other than letters and '-'.

Use pango.language.Language.getDefault if you want to get the pango.language.Language for the current locale of the process.

Parameters

languagea string representing a language tag

Returns