LPCManager.py
changeset 18 17e6293e9191
parent 17 7228610e2273
child 19 1ef6f6fddaa8
equal deleted inserted replaced
17:7228610e2273 18:17e6293e9191
    50 
    50 
    51 app = wx.PySimpleApp(redirect=BMZ_DBG)
    51 app = wx.PySimpleApp(redirect=BMZ_DBG)
    52 app.SetAppName('beremiz')
    52 app.SetAppName('beremiz')
    53 wx.InitAllImageHandlers()
    53 wx.InitAllImageHandlers()
    54 
    54 
    55 # Import module for internationalization
    55 _base_folder = os.path.split(sys.path[0])[0]
    56 import gettext
    56 sys.path.append(os.path.join(_base_folder, "beremiz"))
       
    57 
       
    58 from util.TranslationCatalogs import AddCatalog, locale
       
    59 AddCatalog(os.path.join(CWD, "locale"))
    57 
    60 
    58 if __name__ == '__main__':
    61 if __name__ == '__main__':
    59     __builtin__.__dict__['_'] = wx.GetTranslation#unicode_translation
    62     # Import module for internationalization
       
    63     import gettext
       
    64     
       
    65     __builtin__.__dict__['loc'] = locale
       
    66     __builtin__.__dict__['_'] = wx.GetTranslation
    60 
    67 
    61 _base_path = os.path.split(__file__)[0]
    68 _base_path = os.path.split(__file__)[0]
    62 import features
    69 import features
    63 from POULibrary import POULibrary
    70 from POULibrary import POULibrary
    64 
    71