equal
deleted
inserted
replaced
26 |
26 |
27 from __future__ import print_function |
27 from __future__ import print_function |
28 import os |
28 import os |
29 import sys |
29 import sys |
30 import getopt |
30 import getopt |
|
31 import gettext |
31 import threading |
32 import threading |
32 from threading import Thread, currentThread, Semaphore |
33 from threading import Thread, currentThread, Semaphore |
33 import traceback |
34 import traceback |
34 import __builtin__ |
35 import __builtin__ |
35 import Pyro.core as pyro |
36 import Pyro.core as pyro |
130 def Bpath(*args): |
131 def Bpath(*args): |
131 return os.path.join(beremiz_dir, *args) |
132 return os.path.join(beremiz_dir, *args) |
132 |
133 |
133 |
134 |
134 def SetupI18n(): |
135 def SetupI18n(): |
135 # Import module for internationalization |
|
136 import gettext |
|
137 |
|
138 # Get folder containing translation files |
136 # Get folder containing translation files |
139 localedir = os.path.join(beremiz_dir, "locale") |
137 localedir = os.path.join(beremiz_dir, "locale") |
140 # Get the default language |
138 # Get the default language |
141 langid = wx.LANGUAGE_DEFAULT |
139 langid = wx.LANGUAGE_DEFAULT |
142 # Define translation domain (name of translation files) |
140 # Define translation domain (name of translation files) |