107 if wx.VERSION < (3, 0, 0): |
107 if wx.VERSION < (3, 0, 0): |
108 wx.InitAllImageHandlers() |
108 wx.InitAllImageHandlers() |
109 |
109 |
110 # popup splash |
110 # popup splash |
111 splash = ShowSplashScreen() |
111 splash = ShowSplashScreen() |
|
112 |
|
113 # load internatialization files |
|
114 from util.misc import InstallLocalRessources |
|
115 InstallLocalRessources(beremiz_dir) |
112 |
116 |
113 if updateinfo_url is not None: |
117 if updateinfo_url is not None: |
114 updateinfo = "Fetching %s" % updateinfo_url |
118 updateinfo = _("Fetching %s") % updateinfo_url |
115 # warn for possible updates |
119 # warn for possible updates |
116 def updateinfoproc(): |
120 def updateinfoproc(): |
117 global updateinfo |
121 global updateinfo |
118 try : |
122 try : |
119 import urllib2 |
123 import urllib2 |
120 updateinfo = urllib2.urlopen(updateinfo_url,None).read() |
124 updateinfo = urllib2.urlopen(updateinfo_url,None).read() |
121 except : |
125 except : |
122 updateinfo = "update info unavailable." |
126 updateinfo = _("update info unavailable.") |
123 |
127 |
124 from threading import Thread |
128 from threading import Thread |
125 splash.SetText(text=updateinfo) |
129 splash.SetText(text=updateinfo) |
126 wx.Yield() |
130 wx.Yield() |
127 updateinfoThread = Thread(target=updateinfoproc) |
131 updateinfoThread = Thread(target=updateinfoproc) |
128 updateinfoThread.start() |
132 updateinfoThread.start() |
129 updateinfoThread.join(2) |
133 updateinfoThread.join(2) |
130 splash.SetText(text=updateinfo) |
134 splash.SetText(text=updateinfo) |
131 wx.Yield() |
135 wx.Yield() |
132 |
|
133 from util.misc import InstallLocalRessources |
|
134 InstallLocalRessources(beremiz_dir) |
|
135 |
136 |
136 # Load extensions |
137 # Load extensions |
137 for extfilename in extensions: |
138 for extfilename in extensions: |
138 from util.TranslationCatalogs import AddCatalog |
139 from util.TranslationCatalogs import AddCatalog |
139 from util.BitmapLibrary import AddBitmapFolder |
140 from util.BitmapLibrary import AddBitmapFolder |