util/TranslationCatalogs.py
changeset 2431 6923074540dd
parent 2349 645eb1bce0a5
child 3750 f62625418bff
equal deleted inserted replaced
2427:9554952d36d7 2431:6923074540dd
    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 
    25 
    26 from __future__ import absolute_import
    26 from __future__ import absolute_import
    27 import os
    27 import os
    28 import __builtin__
    28 from six.moves import builtins
    29 import wx
    29 import wx
    30 
    30 
    31 
    31 
    32 locale = None
    32 locale = None
    33 
    33 
    34 
    34 
    35 __builtin__.__dict__['_'] = wx.GetTranslation
    35 builtins.__dict__['_'] = wx.GetTranslation
    36 
    36 
    37 
    37 
    38 def GetDomain(path):
    38 def GetDomain(path):
    39     for name in os.listdir(path):
    39     for name in os.listdir(path):
    40         filepath = os.path.join(path, name)
    40         filepath = os.path.join(path, name)