Skip to content

Commit 0430576

Browse files
authored
Merge pull request #139 from Mars26/translation_fix
fix translation in troubleshoot menu
2 parents f1c4db5 + 5043373 commit 0430576

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

troubleshoot/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2222

2323
from gi.repository import Gtk
24-
from gettext import gettext as _
2524
N_ = lambda x: x
2625
from debug import *
2726

28-
__all__ = [ '_',
29-
'debugprint', 'get_debugging', 'set_debugging',
27+
import config
28+
import gettext
29+
gettext.install(domain=config.PACKAGE, localedir=config.localedir)
30+
31+
__all__ = [ 'debugprint', 'get_debugging', 'set_debugging',
3032
'Question',
3133
'Multichoice',
3234
'TEXT_start_print_admin_tool' ]

0 commit comments

Comments
 (0)