comp.soft-sys.wxwindows
[Top] [All Lists]

Re: No result on wxLocale::GetCanonicalName() and wxLANGUAGE_SPANISH

Subject: Re: No result on wxLocale::GetCanonicalName() and wxLANGUAGE_SPANISH
From: Vadim Zeitlin
Date: Tue, 8 Apr 2008 23:02:03 +0200
Newsgroups: comp.soft-sys.wxwindows

On Tue, 08 Apr 2008 20:34:43 +0200 Andreas Wittmann <andy_x86@xxxxxxx> wrote:

AW> The function GetCanonicalName() from wxLocale in combination with the
AW> spanish-language doesn't return any useful string. I expected "es_ES" but
AW> i just got "".

 This is probably a bug but I'm a bit afraid to touch the fragile code in
2.8 and it was already fixed in the trunk.

 You can use FindLanguageInfo(wxLANGUAGE_SPANISH)->CanonicalName as a
workaround.

AW> There are no problems with other languages like wxLANGUAGE_FRENCH,
AW> wxLANGUAGE_GERMAN, ...

 Surely because these locales are supported by your system while Spanish
isn't.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/


<Prev in Thread] Current Thread [Next in Thread>