PLCOpenEditor.py
changeset 967 8a339cd61cb4
parent 838 06db7d4edbe6
child 980 c7ba67d01d65
equal deleted inserted replaced
966:dc1318160073 967:8a339cd61cb4
    62     # Windows) 
    62     # Windows) 
    63     app = wx.PySimpleApp()
    63     app = wx.PySimpleApp()
    64 
    64 
    65 from docutil import *
    65 from docutil import *
    66 
    66 
    67 from util.TranslationCatalogs import AddCatalog, locale
    67 from util.TranslationCatalogs import AddCatalog
    68 from util.BitmapLibrary import AddBitmapFolder, GetBitmap
    68 from util.BitmapLibrary import AddBitmapFolder, GetBitmap
    69 
    69 
    70 AddCatalog(os.path.join(CWD, "locale"))
    70 AddCatalog(os.path.join(CWD, "locale"))
    71 AddBitmapFolder(os.path.join(CWD, "images"))
    71 AddBitmapFolder(os.path.join(CWD, "images"))
    72 
    72 
    73 if __name__ == '__main__':
    73 if __name__ == '__main__':
    74     # Import module for internationalization
    74     # Import module for internationalization
    75     import gettext
    75     import gettext
    76     import __builtin__
    76     import __builtin__
    77     
    77     
    78     __builtin__.__dict__['loc'] = locale
       
    79     __builtin__.__dict__['_'] = wx.GetTranslation
    78     __builtin__.__dict__['_'] = wx.GetTranslation
    80 
    79 
    81 from IDEFrame import IDEFrame, AppendMenu
    80 from IDEFrame import IDEFrame, AppendMenu
    82 from IDEFrame import TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, PAGETITLES
    81 from IDEFrame import TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, PAGETITLES
    83 from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath
    82 from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath