LightDM.Language

g GObject.Object GObject.Object LightDM.Language LightDM.Language GObject.Object->LightDM.Language

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_code ()

get_name ()

get_territory ()

matches (code)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

code

str

r/w/co

Language code

name

str

r

Name of the language

territory

str

r

Territory the language is from

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class LightDM.Language(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

LightDM.LanguageClass

LightDM.Language is an opaque data structure and can only be accessed using the provided functions.

get_code()
Returns:

The code of the language

Return type:

str

Get the code of a language (e.g. “de_DE.UTF-8”)

get_name()
Returns:

The name of the language

Return type:

str

Get the name of a language.

get_territory()
Returns:

The territory the language is used in.

Return type:

str

Get the territory the language is used in.

matches(code)
Parameters:

code (str) – A language code

Returns:

True if the code matches this language.

Return type:

bool

Check if a language code matches this language.

Property Details

LightDM.Language.props.code
Name:

code

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Language code

LightDM.Language.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

Name of the language

LightDM.Language.props.territory
Name:

territory

Type:

str

Default Value:

None

Flags:

READABLE

Territory the language is from