languages

The languages module provides a list of language names with utility functions.

class openlp.core.common.languages.Language(id, name, code)

Bases: tuple

code

Alias for field number 2

id

Alias for field number 0

name

Alias for field number 1

openlp.core.common.languages.get_language(name)[source]

Find the language by its name or code.

Parameters:name – The name or abbreviation of the language.
Returns:The first match as a Language namedtuple or None