Pull in main.py localization setup

This commit is contained in:
wheaney 2024-08-17 10:22:32 -07:00
parent 1797bbee90
commit cb77321feb
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
de es fr it ja pl ru sv zh_CN
de es fr it ja pl ru sv uk_UA zh_CN

View File

@ -34,9 +34,9 @@ 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.setlocale(locale.LC_ALL, locale.getdefaultlocale())
locale.bindtextdomain('breezydesktop', locale_dir)
gettext.bindtextdomain('breezydesktop', locale_dir)
gettext.textdomain('breezydesktop')