Add LOCALE_DIR environment variable to allow for usage outside of flatpak

This commit is contained in:
wheaney 2024-08-16 13:27:31 -07:00
parent b8a5e293f7
commit 98a5e514fb
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ gi.require_version('GLib', '2.0')
script_dir = os.path.dirname(os.path.abspath(__file__))
po_dir = os.path.join(script_dir, 'po')
locale_dir = '/app/share/locale'
locale_dir = os.environ.get('LOCALE_DIR', '/app/share/locale')
locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
locale.bindtextdomain('breezydesktop', locale_dir)