## Languages Languages — Get information on available languages |

## Synopsis

    #include <lightdm.h>

    GList *             lightdm_get_languages               (void);
    LightDMLanguage *   lightdm_get_language                (void);
    const gchar *       lightdm_language_get_code           (LightDMLanguage *language);
    const gchar *       lightdm_language_get_name           (LightDMLanguage *language);
    const gchar *       lightdm_language_get_territory      (LightDMLanguage *language);
    gboolean            lightdm_language_matches            (LightDMLanguage *language,
                                                             const gchar *code);

## Description

LightDMLanguage is an object that describes a language that is available on the system.

## Details

### lightdm_get_languages ()

    GList *             lightdm_get_languages               (void);

Get a list of languages to present to the user.

Returns : | A list of LightDMLanguage that should be presented to the user. [element-type LightDMLanguage][transfer none]

### lightdm_get_language ()

    LightDMLanguage *   lightdm_get_language                (void);

Get the current language.

Returns : | The current language or NULL if no language. [transfer none]

### lightdm_language_get_code ()

    const gchar *       lightdm_language_get_code           (LightDMLanguage *language);

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

`language` : | A LightDMLanguage
Returns : | The code of the language

### lightdm_language_get_name ()

    const gchar *       lightdm_language_get_name           (LightDMLanguage *language);

Get the name of a language.

`language` : | A LightDMLanguage
Returns : | The name of the language

### lightdm_language_get_territory ()

    const gchar *       lightdm_language_get_territory      (LightDMLanguage *language);

Get the territory the language is used in.

`language` : | A LightDMLanguage
Returns : | The territory the language is used in.

### lightdm_language_matches ()

    gboolean            lightdm_language_matches            (LightDMLanguage *language,
                                                             const gchar *code);

Check if a language code matches this language.

`language` : | A LightDMLanguage
`code` : | A language code
Returns : | TRUE if the code matches this language.