Functions

get_default_os_updater_sync ()

init ()

lang_get_country_from_locale (locale, translation)

lang_get_language_from_locale (locale, translation)

Details

Pms.get_default_os_updater_sync()
Returns:

The updater

Return type:

Pms.OsUpdater

Get the default os updater. Check it’s supported property to figure out if it is actually usable

Pms.init()

Initialise the library.

Pms.lang_get_country_from_locale(locale, translation)
Parameters:
  • locale (str) – a locale string

  • translation (str or None) – a locale string

Returns:

the country description. Caller takes ownership.

Return type:

str

Gets the country description for locale. If translation is provided the returned string is translated accordingly.

This just wraps gnome_get_country_from_locale().

Pms.lang_get_language_from_locale(locale, translation)
Parameters:
  • locale (str) – a locale string

  • translation (str or None) – a locale string

Returns:

the language description. Caller takes ownership.

Return type:

str

Gets the language description for locale. If translation is provided the returned string is translated accordingly.

This just wraps gnome_get_language_from_locale().