Skip to content

Commit 8709350

Browse files
committed
Fix translations path
1 parent b6675c8 commit 8709350

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

nlsgpkgloader/nls_geopackage_loader.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def __init__(self, iface):
7878
self.plugin_dir = os.path.dirname(__file__)
7979
# initialize locale
8080
locale = QSettings().value("locale/userLocale")[0:2]
81-
locale_path = os.path.join(
82-
self.plugin_dir, "i18n", "NLSGeoPackageLoader_{}.qm".format(locale)
83-
)
81+
locale_path = resources_path("i18n", "NLSGeoPackageLoader_{}.qm".format(locale))
8482

8583
if os.path.exists(locale_path):
8684
self.translator = QTranslator()

nlsgpkgloader/resources/i18n/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)