diff -r 52daabbb6f90 -r 6b4d0f4f2fbc util/TranslationCatalogs.py --- 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)