public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mintlocale] rawhide: Fix all the warnings
@ 2026-06-20  9:15 Leigh Scott
  0 siblings, 0 replies; only message in thread
From: Leigh Scott @ 2026-06-20  9:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mintlocale
Branch : rawhide
Commit : e4fae26cdd1a0c9f1f9aa8caae356ba4705bfed8
Author : Leigh Scott <leigh123linux@gmail.com>
Date   : 2026-06-20T10:14:54+01:00
Stats  : +305/-200 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/mintlocale/c/e4fae26cdd1a0c9f1f9aa8caae356ba4705bfed8?branch=rawhide

Log:
Fix all the warnings

---
diff --git a/add_apt_checking.patch b/add_apt_checking.patch
index 6303144..ee438f0 100644
--- a/add_apt_checking.patch
+++ b/add_apt_checking.patch
@@ -104,56 +104,4 @@ index 205bd5b..00e2e2d 100755
 +                    self.apt.remove_packages(installed_packs)
  
          self.build_lang_list()
- 
-diff --git a/usr/lib/linuxmint/mintlocale/mintlocale.py b/usr/lib/linuxmint/mintlocale/mintlocale.py
-index cd75f75..87e0c47 100755
---- a/usr/lib/linuxmint/mintlocale/mintlocale.py
-+++ b/usr/lib/linuxmint/mintlocale/mintlocale.py
-@@ -8,7 +8,6 @@
- import tempfile
- import subprocess
- import codecs
--import mintcommon
- 
- try:
-     import _thread as thread
-@@ -33,6 +32,7 @@
- 
- if IS_DEBIAN:
-     import apt
-+    import mintcommon
- 
- # i18n
- APP = 'mintlocale'
-@@ -64,7 +64,8 @@ def __init__(self, codename, name, methods, app):
-         self.app = app
-         self.packages = []
-         self.missing_packages = []
--        self.apt = mintcommon.APT(self.app.window)
-+        if IS_DEBIAN:
-+            self.apt = mintcommon.APT(self.app.window)
- 
-         self.label = Gtk.Label()
-         self.label.set_markup(name)
-@@ -107,13 +108,14 @@ def __init__(self, codename, name, methods, app):
-     def install(self, widget):
-         if len(self.missing_packages) > 0:
-             self.app.lock_input_methods()
--            if self.app.cache_updated:
--                self.apt.set_finished_callback(self.on_install_finished)
--                self.apt.set_cancelled_callback(self.on_install_finished)
--                self.apt.install_packages(self.missing_packages)
--            else:
--                self.apt.set_finished_callback(self.on_update_finished)
--                self.apt.update_cache()
-+            if IS_DEBIAN:
-+                if self.app.cache_updated:
-+                    self.apt.set_finished_callback(self.on_install_finished)
-+                    self.apt.set_cancelled_callback(self.on_install_finished)
-+                    self.apt.install_packages(self.missing_packages)
-+                else:
-+                    self.apt.set_finished_callback(self.on_update_finished)
-+                    self.apt.update_cache()
- 
-     def on_update_finished(self, transaction=None, exit_state=None):
-         self.app.cache_updated = True
+ 
\ No newline at end of file

diff --git a/fix_gdk_import.patch b/fix_gdk_import.patch
deleted file mode 100644
index 858c6de..0000000
--- a/fix_gdk_import.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/usr/lib/linuxmint/mintlocale/mintlocale.py
-+++ b/usr/lib/linuxmint/mintlocale/mintlocale.py
-@@ -21,6 +21,7 @@ except ImportError as err:
-     import ConfigParser as configparser
- 
- import gi
-+gi.require_version('GdkX11', '3.0')
- gi.require_version('Gtk', '3.0')
- gi.require_version('AccountsService', '1.0')
- from gi.repository import GdkX11

diff --git a/fix_signal_name.patch b/fix_signal_name.patch
deleted file mode 100644
index 7f4618a..0000000
--- a/fix_signal_name.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 7041982b69fa9fea065098e7b33f306df1dcac91 Mon Sep 17 00:00:00 2001
-From: Michael Webster <miketwebster@gmail.com>
-Date: Tue, 14 Jan 2020 16:51:20 -0500
-Subject: [PATCH] mintlocale.py: Fix signal name typo.
-
----
- usr/lib/linuxmint/mintlocale/mintlocale.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/usr/lib/linuxmint/mintlocale/mintlocale.py b/usr/lib/linuxmint/mintlocale/mintlocale.py
-index e7db8e4..d145073 100755
---- a/usr/lib/linuxmint/mintlocale/mintlocale.py
-+++ b/usr/lib/linuxmint/mintlocale/mintlocale.py
-@@ -430,7 +430,7 @@ def __init__(self):
- 
-         self.accountService = AccountsService.UserManager.get_default().get_user(current_user)
-         self.accountService.connect('notify::is-loaded', self.accountservice_ready)
--        self.accountService.connect('changed::', self.accountservice_changed)
-+        self.accountService.connect('changed', self.accountservice_changed)
- 
-         groups = grp.getgrall()
-         for group in groups:

diff --git a/fixes.patch b/fixes.patch
new file mode 100644
index 0000000..771fe89
--- /dev/null
+++ b/fixes.patch
@@ -0,0 +1,299 @@
+--- a/usr/lib/linuxmint/mintlocale/mintlocale.py	2018-05-30 17:09:34.000000000 +0100
++++ b/usr/lib/linuxmint/mintlocale/mintlocale.py	2026-06-20 10:07:22.627776966 +0100
+@@ -7,8 +7,6 @@ import grp
+ import locale
+ import tempfile
+ import subprocess
+-import codecs
+-import mintcommon
+ 
+ try:
+     import _thread as thread
+@@ -21,6 +19,7 @@ except ImportError as err:
+     import ConfigParser as configparser
+ 
+ import gi
++gi.require_version('GdkX11', '3.0')
+ gi.require_version('Gtk', '3.0')
+ gi.require_version('AccountsService', '1.0')
+ from gi.repository import GdkX11
+@@ -33,6 +32,7 @@ IS_DEBIAN = os.path.exists("/etc/debian_
+ 
+ if IS_DEBIAN:
+     import apt
++    import mintcommon
+ 
+ # i18n
+ APP = 'mintlocale'
+@@ -44,8 +44,6 @@ _ = gettext.gettext
+ 
+ (IM_CHOICE, IM_NAME) = list(range(2))
+ 
+-GObject.threads_init()
+-
+ FLAG_PATH = "/usr/share/iso-flag-png/%s.png"
+ FLAG_SIZE = 22
+ BUTTON_FLAG_SIZE = 22
+@@ -64,12 +62,13 @@ class IMLanguage():
+         self.app = app
+         self.packages = []
+         self.missing_packages = []
+-        self.apt = mintcommon.APT(self.app.window)
++        if IS_DEBIAN:
++            self.apt = mintcommon.APT(self.app.window)
+ 
+         self.label = Gtk.Label()
+         self.label.set_markup(name)
+         self.label.set_line_wrap(True)
+-        self.button = Gtk.Button(_("Install"))
++        self.button = Gtk.Button(label=_("Install"))
+         self.button.connect('clicked', self.install)
+         self.button.hide()
+ 
+@@ -95,7 +94,7 @@ class IMLanguage():
+         for input_method in self.methods.split(":"):
+             info_paths.append("/usr/share/linuxmint/mintlocale/iminfo/%s.info" % input_method)
+         for info_path in info_paths:
+-            with codecs.open(info_path, encoding='utf-8') as f:
++            with open(info_path, encoding='utf-8') as f:
+                 for line in f:
+                     line = line.strip()
+                     if line.startswith("#") or line == "":
+@@ -107,13 +106,14 @@ class IMLanguage():
+     def install(self, widget):
+         if len(self.missing_packages) > 0:
+             self.app.lock_input_methods()
+-            if self.app.cache_updated:
+-                self.apt.set_finished_callback(self.on_install_finished)
+-                self.apt.set_cancelled_callback(self.on_install_finished)
+-                self.apt.install_packages(self.missing_packages)
+-            else:
+-                self.apt.set_finished_callback(self.on_update_finished)
+-                self.apt.update_cache()
++            if IS_DEBIAN:
++                if self.app.cache_updated:
++                    self.apt.set_finished_callback(self.on_install_finished)
++                    self.apt.set_cancelled_callback(self.on_install_finished)
++                    self.apt.install_packages(self.missing_packages)
++                else:
++                    self.apt.set_finished_callback(self.on_update_finished)
++                    self.apt.update_cache()
+ 
+     def on_update_finished(self, transaction=None, exit_state=None):
+         self.app.cache_updated = True
+@@ -221,10 +221,10 @@ class PictureChooserButton (Gtk.Button):
+         widget = args[-1]
+ 
+         window = widget.get_window()
+-        screen = window.get_screen()
+-        monitor = screen.get_monitor_at_window(window)
++        display = window.get_display()
++        monitor = display.get_monitor_at_window(window)
+ 
+-        warea = screen.get_monitor_workarea(monitor)
++        warea = monitor.get_workarea()
+         wrect = widget.get_allocation()
+         mrect = menu.get_allocation()
+ 
+@@ -279,7 +279,7 @@ class PictureChooserButton (Gtk.Button):
+                 vbox = Gtk.VBox()
+                 vbox.pack_start(image, False, False, 2)
+                 label = Gtk.Label()
+-                label.set_markup(title)
++                label.set_text(title)
+                 vbox.pack_start(label, False, False, 2)
+                 menuitem.add(vbox)
+             else:
+@@ -308,8 +308,8 @@ class SettingsPage(Gtk.Box):
+         Gtk.Box.__init__(self)
+         self.set_orientation(Gtk.Orientation.VERTICAL)
+         self.set_spacing(15)
+-        self.set_margin_left(80)
+-        self.set_margin_right(80)
++        self.set_margin_start(80)
++        self.set_margin_end(80)
+         self.set_margin_top(15)
+         self.set_margin_bottom(15)
+ 
+@@ -327,8 +327,7 @@ class SettingsBox(Gtk.Frame):
+         self.set_shadow_type(Gtk.ShadowType.IN)
+         frame_style = self.get_style_context()
+         frame_style.add_class("view")
+-        self.size_group = Gtk.SizeGroup()
+-        self.size_group.set_mode(Gtk.SizeGroupMode.VERTICAL)
++        self.size_group = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.VERTICAL)
+ 
+         self.box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
+         self.add(self.box)
+@@ -372,8 +371,8 @@ class SettingsRow(Gtk.ListBoxRow):
+ 
+         hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
+         hbox.set_border_width(5)
+-        hbox.set_margin_left(20)
+-        hbox.set_margin_right(20)
++        hbox.set_margin_start(20)
++        hbox.set_margin_end(20)
+         self.add(hbox)
+ 
+         grid = Gtk.Grid()
+@@ -524,7 +523,7 @@ class MintLocale:
+ 
+         self.input_settings = page.add_section(_("Input method"))
+ 
+-        label = Gtk.Label(_("Input method"))
++        label = Gtk.Label(label=_("Input method"))
+         row = SettingsRow(label, self.im_combo)
+         self.input_settings.add_row(row)
+ 
+@@ -572,7 +571,7 @@ class MintLocale:
+             self.current_region = self.current_language
+ 
+         if os.path.exists(self.pam_environment_path):
+-            with codecs.open(self.pam_environment_path, 'r', encoding='UTF-8') as pam_file:
++            with open(self.pam_environment_path, 'r', encoding='UTF-8') as pam_file:
+                 for line in pam_file:
+                     line = line.strip()
+                     if line.startswith("LC_NUMERIC="):
+@@ -590,7 +589,7 @@ class MintLocale:
+ 
+         self.accountService = AccountsService.UserManager.get_default().get_user(current_user)
+         self.accountService.connect('notify::is-loaded', self.accountservice_ready)
+-        self.accountService.connect('changed::', self.accountservice_changed)
++        self.accountService.connect('changed', self.accountservice_changed)
+ 
+         groups = grp.getgrall()
+         for group in groups:
+@@ -720,7 +719,10 @@ class MintLocale:
+                     vars[var_name] = value
+             if "LANG" in vars:
+                 locale = vars['LANG'].replace('"', '').replace("'", "")
+-                locale = locale.split(".")[0].strip()
++                locale = locale.replace("utf8", "UTF-8")
++                locale = locale.replace("UTF-8", "")
++                locale = locale.replace(".", "")
++                locale = locale.strip()
+                 if "_" in locale:
+                     split = locale.split("_")
+                     if len(split) == 2:
+@@ -745,7 +747,10 @@ class MintLocale:
+ 
+             if "LC_NUMERIC" in vars:
+                 locale = vars['LC_NUMERIC'].replace('"', '').replace("'", "")
+-                locale = locale.split(".")[0].strip()
++                locale = locale.replace("utf8", "UTF-8")
++                locale = locale.replace("UTF-8", "")
++                locale = locale.replace(".", "")
++                locale = locale.strip()
+                 if "_" in locale:
+                     split = locale.split("_")
+                     if len(split) == 2:
+@@ -773,7 +778,7 @@ class MintLocale:
+         self.system_label.set_markup("<b>%s</b>\n<small>%s <i>%s</i>\n%s <i>%s</i></small>" % (_("System locale"), language_prefix, language_str, region_prefix, region_str))
+ 
+     def set_num_installed(self):
+-        num_installed = int(subprocess.check_output("localedef --list-archive | wc -l", shell=True))
++        num_installed = int(subprocess.check_output("localedef --list-archive | grep utf8 | wc -l", shell=True))
+         self.install_label.set_markup("<b>%s</b>\n<small>%s</small>" % (_("Language support"), gettext.ngettext("%d language installed", "%d languages installed", num_installed) % num_installed))
+ 
+     def accountservice_ready(self, user, param):
+@@ -791,7 +796,7 @@ class MintLocale:
+ 
+         # Load countries into memory
+         self.countries = {}
+-        with codecs.open('/usr/share/linuxmint/mintlocale/countries', "r", encoding='utf-8') as file:
++        with open('/usr/share/linuxmint/mintlocale/countries', "r", encoding='utf-8') as file:
+             for line in file:
+                 line = line.strip()
+                 split = line.split("=")
+@@ -800,7 +805,7 @@ class MintLocale:
+ 
+         # Load languages into memory
+         self.languages = {}
+-        with codecs.open('/usr/share/linuxmint/mintlocale/languages', "r", encoding='utf-8') as file:
++        with open('/usr/share/linuxmint/mintlocale/languages', "r", encoding='utf-8') as file:
+             for line in file:
+                 line = line.strip()
+                 split = line.split("=")
+@@ -827,11 +832,12 @@ class MintLocale:
+         built_locales = {}
+         for line in locales.rstrip().split("\n"):
+             line = line.replace("utf8", "UTF-8")
+-            cur_index += 1
+-            locale_code = line.split(".")[0].strip()
+-            charmap = None
+-            if len(line.split(".")) > 1:
+-                charmap = line.split(".")[1].strip()
++            if "UTF-8" not in line:
++                continue            
++            cur_index += 1        
++            locale_code = line.replace("UTF-8", "")
++            locale_code = locale_code.replace(".", "")
++            locale_code = locale_code.strip()
+ 
+             if "_" in locale_code:
+                 split = locale_code.split("_")
+@@ -843,16 +849,13 @@ class MintLocale:
+                     else:
+                         language = language_code
+ 
+-                    country_code = split[1].lower().split('@')[0].strip()
++                    country_code = split[1].lower()
+                     if country_code in self.countries:
+                         country = self.countries[country_code]
+                     else:
+                         country = country_code
+ 
+-                    if '@' in split[1]:
+-                        language_label = u"%s (@%s), %s" % (language, split[1].split('@')[1].strip(), country)
+-                    else:
+-                        language_label = u"%s, %s" % (language, country)
++                    language_label = u"%s, %s" % (language, country)
+ 
+                     flag_path = FLAG_PATH % country_code
+             else:
+@@ -864,9 +867,6 @@ class MintLocale:
+ 
+             flag_path = self.set_minority_language_flag_path(locale_code, flag_path)
+ 
+-            if charmap is not None and not all_locales_are_utf8:
+-                language_label = u"%s  <small><span foreground='#3c3c3c'>%s</span></small>" % (language_label, charmap)
+-
+             if os.path.exists(flag_path):
+                 flag = flag_path
+             else:
+@@ -892,7 +892,7 @@ class MintLocale:
+ 
+     def set_user_locale(self, path, locale):
+         self.locale_button.set_button_label(locale.name)
+-        print(u"Setting language to %s" % locale.id)
++        print(u"Setting language to '%s' '%s'" % (locale.name, locale.id))
+         # Set it in Accounts Service
+         try:
+             self.accountService.set_language(locale.id)
+@@ -901,7 +901,7 @@ class MintLocale:
+ 
+         # Set it in .dmrc
+         self.dmrc.set('Desktop', 'Language', locale.id)
+-        with codecs.open(self.dmrc_path, 'w', encoding='utf-8') as configfile:
++        with open(self.dmrc_path, 'w', encoding='utf-8') as configfile:
+             self.dmrc.write(configfile)
+         os.system("sed -i 's/ = /=/g' %s" % self.dmrc_path)  # Remove space characters around "="" sign, created by ConfigParser
+ 
+@@ -916,7 +916,7 @@ class MintLocale:
+ 
+     def set_user_region(self, path, locale):
+         self.region_button.set_button_label(locale.name)
+-        print("Setting region to %s" % locale.id)
++        print("Setting region to '%s' '%s'" % (locale.name, locale.id))
+ 
+         # We don't call self.accountService.set_formats_locale(locale.id) here...
+         # First, we don't really use AccountsService, we're only doing this to be nice to LightDM and all..
+@@ -948,7 +948,7 @@ class MintLocale:
+                 os.system("sed -i 's/^%s=.*/%s=%s/g' %s" % (lc_variable, lc_variable, shortlocale, self.pam_environment_path))
+ 
+             # Check missing fields
+-            with codecs.open(self.pam_environment_path, 'r', encoding='utf-8') as file:
++            with open(self.pam_environment_path, 'r', encoding='utf-8') as file:
+                 content = file.read()
+ 
+             for lc_variable in ['LC_NUMERIC', 'LC_MONETARY', 'LC_PAPER', 'LC_NAME', 'LC_ADDRESS', 'LC_TELEPHONE', 'LC_MEASUREMENT', 'LC_IDENTIFICATION']:

diff --git a/mintlocale.spec b/mintlocale.spec
index fab3fb7..d0ad2cd 100644
--- a/mintlocale.spec
+++ b/mintlocale.spec
@@ -2,20 +2,17 @@
 
 Name:           mintlocale
 Version:        1.4.7
-Release:        21%{?dist}
+Release:        22%{?dist}
 Summary:        Language selection tool
 
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
 License:        GPL-2.0-or-later
 URL:            https://github.com/linuxmint/%{name}
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
 # Revert https://github.com/linuxmint/mintlocale/commit/0206bbf7c12058999e701bb11f9012be54da2cbb
 # Using non utf8 breaks gnome apps
-Patch0:         show_utf8_only.patch
+Patch0:         fixes.patch
 Patch1:         %{url}/pull/56.patch#/add_apt_checking.patch
-Patch2:         %{url}/commit/7041982b69fa9fea065098e7b33f306df1dcac91.patch#/fix_signal_name.patch
-Patch3:         fix_gdk_import.patch
 
 BuildArch:      noarch
 
@@ -74,6 +71,9 @@ echo 'LANG=$locale' > %{buildroot}%{_datadir}/linuxmint/mintlocale/templates/def
 
 
 %changelog
+* Sat Jun 20 2026 Leigh Scott <leigh123linux@gmail.com> - 1.4.7-22
+- Fix all the warnings
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/show_utf8_only.patch b/show_utf8_only.patch
deleted file mode 100644
index a60de36..0000000
--- a/show_utf8_only.patch
+++ /dev/null
@@ -1,110 +0,0 @@
---- a/usr/lib/linuxmint/mintlocale/mintlocale.py
-+++ b/usr/lib/linuxmint/mintlocale/mintlocale.py
-@@ -279,7 +279,7 @@
-                 vbox = Gtk.VBox()
-                 vbox.pack_start(image, False, False, 2)
-                 label = Gtk.Label()
--                label.set_markup(title)
-+                label.set_text(title)
-                 vbox.pack_start(label, False, False, 2)
-                 menuitem.add(vbox)
-             else:
-@@ -720,7 +720,10 @@
-                     vars[var_name] = value
-             if "LANG" in vars:
-                 locale = vars['LANG'].replace('"', '').replace("'", "")
--                locale = locale.split(".")[0].strip()
-+                locale = locale.replace("utf8", "UTF-8")
-+                locale = locale.replace("UTF-8", "")
-+                locale = locale.replace(".", "")
-+                locale = locale.strip()
-                 if "_" in locale:
-                     split = locale.split("_")
-                     if len(split) == 2:
-@@ -745,7 +748,10 @@
- 
-             if "LC_NUMERIC" in vars:
-                 locale = vars['LC_NUMERIC'].replace('"', '').replace("'", "")
--                locale = locale.split(".")[0].strip()
-+                locale = locale.replace("utf8", "UTF-8")
-+                locale = locale.replace("UTF-8", "")
-+                locale = locale.replace(".", "")
-+                locale = locale.strip()
-                 if "_" in locale:
-                     split = locale.split("_")
-                     if len(split) == 2:
-@@ -773,7 +779,7 @@
-         self.system_label.set_markup("<b>%s</b>\n<small>%s <i>%s</i>\n%s <i>%s</i></small>" % (_("System locale"), language_prefix, language_str, region_prefix, region_str))
- 
-     def set_num_installed(self):
--        num_installed = int(subprocess.check_output("localedef --list-archive | wc -l", shell=True))
-+        num_installed = int(subprocess.check_output("localedef --list-archive | grep utf8 | wc -l", shell=True))
-         self.install_label.set_markup("<b>%s</b>\n<small>%s</small>" % (_("Language support"), gettext.ngettext("%d language installed", "%d languages installed", num_installed) % num_installed))
- 
-     def accountservice_ready(self, user, param):
-@@ -827,11 +833,12 @@
-         built_locales = {}
-         for line in locales.rstrip().split("\n"):
-             line = line.replace("utf8", "UTF-8")
--            cur_index += 1
--            locale_code = line.split(".")[0].strip()
--            charmap = None
--            if len(line.split(".")) > 1:
--                charmap = line.split(".")[1].strip()
-+            if "UTF-8" not in line:
-+                continue            
-+            cur_index += 1        
-+            locale_code = line.replace("UTF-8", "")
-+            locale_code = locale_code.replace(".", "")
-+            locale_code = locale_code.strip()
- 
-             if "_" in locale_code:
-                 split = locale_code.split("_")
-@@ -843,16 +850,13 @@
-                     else:
-                         language = language_code
- 
--                    country_code = split[1].lower().split('@')[0].strip()
-+                    country_code = split[1].lower()
-                     if country_code in self.countries:
-                         country = self.countries[country_code]
-                     else:
-                         country = country_code
- 
--                    if '@' in split[1]:
--                        language_label = u"%s (@%s), %s" % (language, split[1].split('@')[1].strip(), country)
--                    else:
--                        language_label = u"%s, %s" % (language, country)
-+                    language_label = u"%s, %s" % (language, country)
- 
-                     flag_path = FLAG_PATH % country_code
-             else:
-@@ -864,9 +868,6 @@
- 
-             flag_path = self.set_minority_language_flag_path(locale_code, flag_path)
- 
--            if charmap is not None and not all_locales_are_utf8:
--                language_label = u"%s  <small><span foreground='#3c3c3c'>%s</span></small>" % (language_label, charmap)
--
-             if os.path.exists(flag_path):
-                 flag = flag_path
-             else:
-@@ -892,7 +893,7 @@
- 
-     def set_user_locale(self, path, locale):
-         self.locale_button.set_button_label(locale.name)
--        print(u"Setting language to %s" % locale.id)
-+        print(u"Setting language to '%s' '%s'" % (locale.name, locale.id))
-         # Set it in Accounts Service
-         try:
-             self.accountService.set_language(locale.id)
-@@ -916,7 +917,7 @@
- 
-     def set_user_region(self, path, locale):
-         self.region_button.set_button_label(locale.name)
--        print("Setting region to %s" % locale.id)
-+        print("Setting region to '%s' '%s'" % (locale.name, locale.id))
- 
-         # We don't call self.accountService.set_formats_locale(locale.id) here...
-         # First, we don't really use AccountsService, we're only doing this to be nice to LightDM and all..
-

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-20  9:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20  9:15 [rpms/mintlocale] rawhide: Fix all the warnings Leigh Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox