Fix: get_best_locale

This commit is contained in:
Masato TOYOSHIMA
2025-01-25 11:25:44 +09:00
parent 4287851aed
commit 80e66387b2
+1 -1
View File
@@ -250,7 +250,7 @@ class Hello(Gtk.Window):
:return: locale to use
:rtype: str
"""
path = f"{self.preferences["locale_path"]}/LC_MESSAGES/{self.app}*.mo"
path = self.preferences["locale_path"] + "/{}/LC_MESSAGES/" + self.app + ".mo"
if os.path.isfile(path.format(self.usr_prefs["locale"])):
# return usr_preference