diff options
| author | Feng Shu <[email protected]> | 2022-03-04 18:53:26 +0800 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-06-04 16:50:20 -0400 |
| commit | f1459bdd510b577234ce690f2955b047f1686c51 (patch) | |
| tree | b181777dfd855b93ac88bcafcb9fde2065ee1bf8 /Mozo | |
| parent | de820bfd5669af5ff890756444459590a7106267 (diff) | |
| download | mozo-master.tar.bz2 mozo-master.tar.xz | |
mozo will not show proper language in guix system, for guix do not use
"/usr/share/locale/" directory.
Diffstat (limited to 'Mozo')
| -rw-r--r-- | Mozo/MainWindow.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index 7f1a488..f135a0e 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -27,6 +27,7 @@ from gi.repository import MateMenu import html import os import gettext +import locale import subprocess import filecmp import shutil @@ -35,8 +36,10 @@ try: from Mozo import config gettext.bindtextdomain(config.GETTEXT_PACKAGE,config.localedir) gettext.textdomain(config.GETTEXT_PACKAGE) + locale.bindtextdomain(config.GETTEXT_PACKAGE,config.localedir) + locale.textdomain(config.GETTEXT_PACKAGE) GETTEXT_PACKAGE = config.GETTEXT_PACKAGE -except: +except Exception: GETTEXT_PACKAGE = "mozo" _ = gettext.gettext from Mozo.MenuEditor import MenuEditor |
