summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Hjalmarsson <gunnarhj@ubuntu.com>2023-03-25 03:37:44 +0100
committerFelipe Borges <felipeborges@gnome.org>2023-03-28 13:49:53 +0000
commit33659beb90dd39ba77d6c77112d3a03639f631b8 (patch)
tree4035effc1fd1c3afe4670f8235052fe212e3824d
parent54b97e078178354e67cc39194df5db8960de5519 (diff)
downloadgnome-control-center-33659beb90dd39ba77d6c77112d3a03639f631b8.tar.gz
region: Fix label of formats for the login screen
When system_region equals system_language, the UI should state the country of the system_language as the selected login screen formats, and that is not always "United States". Fixes: GNOME/gnome-control-center#2418
-rw-r--r--panels/region/cc-region-panel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 084904590..afe0fae60 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -567,6 +567,8 @@ update_login_region (CcRegionPanel *self)
if (self->system_region)
name = gnome_get_country_from_locale (self->system_region, self->system_region);
+ else if (self->system_language)
+ name = gnome_get_country_from_locale (self->system_language, self->system_language);
if (!name)
name = gnome_get_country_from_locale (DEFAULT_LOCALE, DEFAULT_LOCALE);