get_locale


Description:

[ Version ( since = "3.12" ) ]
public unowned string get_locale ()

Reports the locale in use for this.

The addressbook might sort contacts in different orders, or store and compare phone numbers in different ways depending on the currently set locale.

Locales can change dynamically if systemd decides to change the locale, so it's important to listen for notifications on the locale property if you depend on sorted result lists. Ordered results should be reloaded after a locale change is detected.

Parameters:

this

an BookClient

Returns:

The currently set locale for this




2022 vala-language.org