[wxPython-users] [Fwd: Problem with i18n]

Robin Dunn robin at alldunn.com
Tue Nov 7 13:20:49 PST 2006


Mario Lacunza wrote:
> El lun, 06-11-2006 a las 15:40 -0800, Robin Dunn escribió:

>>  If 
>> wxLocale can't successfully change the C Runtime Library's locale then 
>> it will fail too, and on Ubuntu the CRT locale support needs extra 
>> packages installed to be able to change to non-standard locales.
>>
> OK I understand you.
> 
>> The command "locale -a" will show you what locales you have installed.
>>
> In the attach file you see a print of this command.
> 
> But when I try to make work the same example but with the es_ES location
> (change everything dirs and files for the corresponding spanish) , I
> receipt the same error and my Ubuntu has installed es_PE.utf8, its
> correct?
> 

I would think so...  It works here:

  >>> lc = wx.Locale(wx.LANGUAGE_SPANISH_PERU)
  >>> lc.GetCanonicalName()
  u'es_PE'


and also:

  >>> i = wx.Locale.FindLanguageInfo('es_PE')
  >>> i.Description
  u'Spanish (Peru)'
  >>> lc = wx.Locale(i.Language)


Do you also have the locales package installed?  IIRC it is the one that 
contains the utils for actually building the locales for the languages 
that have language-pack packages installed.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list