only loading a language installed on system

  • Thread starter =?iso-8859-1?B?aWFuYXLp?=
  • Start date
?

=?iso-8859-1?B?aWFuYXLp?=

i'm doing this:

mylocale = wx.Locale(wx.LANGUAGE_POLISH, wx.LOCALE_LOAD_DEFAULT)
if not wx.Locale.IsOk(mylocale):
mylocale = wx.Locale(wx.LANGUAGE_DEFAULT, wx.LOCALE_LOAD_DEFAULT)


and getting this:
Segmentation fault (core dumped)

I'm trying to see if I can properly load a language. If the system
will not load it, then use system default. What am I doing wrong?

TIA
 
K

kyosohma

i'm doing this:

mylocale = wx.Locale(wx.LANGUAGE_POLISH, wx.LOCALE_LOAD_DEFAULT)
if not wx.Locale.IsOk(mylocale):
mylocale = wx.Locale(wx.LANGUAGE_DEFAULT, wx.LOCALE_LOAD_DEFAULT)

and getting this:
Segmentation fault (core dumped)

I'm trying to see if I can properly load a language. If the system
will not load it, then use system default. What am I doing wrong?

TIA

You would probably be better off to post this question to the wxPython
users group: http://wxpython.org/maillist.php

Here's some related links about Internationalization with wxPython
though:

http://wiki.wxpython.org/index.cgi/Internationalization
http://wiki.wxpython.org/index.cgi/RecipesI18n

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top