Skip to content

Commit

Permalink
Don't crash if userLocale is unset, fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
kannes authored and GeoSander committed Mar 18, 2024
1 parent b77dbe3 commit 3d2162f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geocatbridge/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, iface):

self.name = meta.getAppName()
self.provider = None
self.locale = QSettings().value("locale/userLocale")[0:2]
self.locale = QSettings().value("locale/userLocale", QLocale().name())[0:2]
locale_path = files.getLocalePath(f"bridge_{self.locale}")

self.translator = QTranslator()
Expand Down

0 comments on commit 3d2162f

Please sign in to comment.