# HG changeset patch # User Andrey Skvortsov # Date 1460996242 -10800 # Node ID 5d4543ee5a5d687801debbcab55af52c14367bc3 # Parent 5b294dcaae18706d5f8769723a979e02340ac3c0 make mki18n.py wx-3.0 compatible and fix segmentation fault $ python mki18n.py -m -v --moTarget=../locale --domain=Beremiz No project directory given. Using current one: /home/beremiz/beremiz/i18n Application domain used is: 'Beremiz' Target directory for .mo files is: ../locale ../src/common/stdpbase.cpp(62): assert "traits" failed in Get(): create wxApp before calling this Segmentation fault diff -r 5b294dcaae18 -r 5d4543ee5a5d i18n/mki18n.py --- a/i18n/mki18n.py Mon Apr 18 19:15:55 2016 +0300 +++ b/i18n/mki18n.py Mon Apr 18 19:17:22 2016 +0300 @@ -95,7 +95,12 @@ def getlanguageDict(): languageDict = {} - + + if wx.VERSION >= (3, 0, 0): + app = wx.App() + else: + app = wx.PySimpleApp() + for lang in [x for x in dir(wx) if x.startswith("LANGUAGE")]: i = wx.Locale(wx.LANGUAGE_DEFAULT).GetLanguageInfo(getattr(wx, lang)) if i: