Hi everyone!
I'm having a problem with wx localization on Linux. I got a tiny proof
of concept (below, copy on http://pastebin.com/m5c2b9358) that
triggers the errors I see over here:
---------------------8<---------------------
use strict;
use warnings;
use Wx ':everything';
use Wx::Locale ();
Wx::Log::SetActiveTarget( Wx::LogStderr->new );
my %wxid_of = (
'en-gb' => Wx::wxLANGUAGE_ENGLISH_UK,
'pt-br' => Wx::wxLANGUAGE_PORTUGUESE_BRAZILIAN,
'zh-cn' => Wx::wxLANGUAGE_CHINESE_SIMPLIFIED,
);
foreach (keys %wxid_of) {
my $locale = Wx::Locale->new($wxid_of{$_});
}
---------------------8<---------------------
If I run this I get:
./locale_poc.pl
01:29:59: Error: Cannot set locale to 'pt_BR'.
01:29:59: Error: Cannot set locale to 'zh_CN'.
I am very new to L10n so I'm not sure how to stop these errors from
occuring. Can anyone point me to the right direction? Is this a
problem on my system (linux ubuntu 8.10 running perl 5.10), a problem
of wxPerl (Wx 0.89) or of wxWidgets (2.8.8 installed via apt-get)?
Or maybe another thing entirely?
Many thanks in advance!
Cheers,
-b