equal
deleted
inserted
replaced
21 # You should have received a copy of the GNU General Public License |
21 # You should have received a copy of the GNU General Public License |
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 import os |
25 import os |
26 |
26 import __builtin__ |
27 import wx |
27 import wx |
28 |
28 |
29 # Get the default language |
29 # Get the default language |
30 langid = wx.LANGUAGE_DEFAULT |
30 langid = wx.LANGUAGE_DEFAULT |
31 |
31 |
32 # Define locale for wx |
32 # Define locale for wx |
33 locale = wx.Locale(langid) |
33 locale = wx.Locale(langid) |
|
34 |
|
35 |
|
36 __builtin__.__dict__['_'] = wx.GetTranslation |
34 |
37 |
35 |
38 |
36 def GetDomain(path): |
39 def GetDomain(path): |
37 for name in os.listdir(path): |
40 for name in os.listdir(path): |
38 filepath = os.path.join(path, name) |
41 filepath = os.path.join(path, name) |