util/TranslationCatalogs.py
changeset 2349 645eb1bce0a5
parent 1881 091005ec69c4
child 2431 6923074540dd
equal deleted inserted replaced
2348:3a755d690398 2349:645eb1bce0a5
    53         domain = GetDomain(locale_dir)
    53         domain = GetDomain(locale_dir)
    54         if domain is not None:
    54         if domain is not None:
    55             global locale
    55             global locale
    56             if locale is None:
    56             if locale is None:
    57                 # Define locale for wx
    57                 # Define locale for wx
       
    58                 wx.LogGui.EnableLogging(False)
    58                 locale = wx.Locale(wx.LANGUAGE_DEFAULT)
    59                 locale = wx.Locale(wx.LANGUAGE_DEFAULT)
       
    60                 wx.LogGui.EnableLogging(True)
    59 
    61 
    60             locale.AddCatalogLookupPathPrefix(locale_dir)
    62             locale.AddCatalogLookupPathPrefix(locale_dir)
    61             locale.AddCatalog(domain)
    63             locale.AddCatalog(domain)
    62 
    64 
    63 
    65