Beremiz_service.py
changeset 2429 15f18dc8b56a
parent 2324 1cf3768ebf85
parent 2427 9554952d36d7
child 2459 21164625b393
equal deleted inserted replaced
2428:e0f16317668e 2429:15f18dc8b56a
   161     domain = "Beremiz"
   161     domain = "Beremiz"
   162 
   162 
   163     # Define locale for wx
   163     # Define locale for wx
   164     loc = __builtin__.__dict__.get('loc', None)
   164     loc = __builtin__.__dict__.get('loc', None)
   165     if loc is None:
   165     if loc is None:
       
   166         wx.LogGui.EnableLogging(False)
   166         loc = wx.Locale(langid)
   167         loc = wx.Locale(langid)
       
   168         wx.LogGui.EnableLogging(True)
   167         __builtin__.__dict__['loc'] = loc
   169         __builtin__.__dict__['loc'] = loc
   168         # Define location for searching translation files
   170         # Define location for searching translation files
   169     loc.AddCatalogLookupPathPrefix(localedir)
   171     loc.AddCatalogLookupPathPrefix(localedir)
   170     # Define locale domain
   172     # Define locale domain
   171     loc.AddCatalog(domain)
   173     loc.AddCatalog(domain)