util/TranslationCatalogs.py
changeset 1806 6b4d0f4f2fbc
parent 1762 fcc406143e5b
child 1813 c18adf359d21
--- a/util/TranslationCatalogs.py	Fri Sep 15 18:51:42 2017 +0300
+++ b/util/TranslationCatalogs.py	Fri Sep 15 18:57:20 2017 +0300
@@ -23,7 +23,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 import os
-
+import __builtin__
 import wx
 
 # Get the default language
@@ -33,6 +33,9 @@
 locale = wx.Locale(langid)
 
 
+__builtin__.__dict__['_'] = wx.GetTranslation
+
+
 def GetDomain(path):
     for name in os.listdir(path):
         filepath = os.path.join(path, name)