Re: Wx::Locale

2008-08-21 Thread Johan Vromans
"Octavian Rasnita" <[EMAIL PROTECTED]> writes: > Hi, > > I've seen that WxPerl uses gettext as the base for Wx::Locale, just > like Catalyst framework uses gettext in Catalyst::Plugin::I18N. > > In Catalyst I can do: > > t("The name of the city is [_1]", $city); > or > t("The cities are [_1], [

Re: Wx::Locale

2008-08-21 Thread Octavian Rasnita
From: "Johan Vromans" <[EMAIL PROTECTED]> "Octavian Rasnita" <[EMAIL PROTECTED]> writes: Hi, I've seen that WxPerl uses gettext as the base for Wx::Locale, just like Catalyst framework uses gettext in Catalyst::Plugin::I18N. In Catalyst I can do: t("The name of the city is [_1]", $city); or

Re: getting the values from Wx::Dialog

2008-08-21 Thread Brian Donorfio
On Sun, Aug 17, 2008 at 10:03 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I need to create a modal dialog window with a few fields and after closing > it, I need to return the values of those fields to the parent window. > > Please tell me which is the recommended way to do that. I've

Re: Wx::Locale

2008-08-21 Thread Johan Vromans
"Octavian Rasnita" <[EMAIL PROTECTED]> writes: > Unfortunately it doesn't work that way neither. > > It gives the error: > > Usage: Wx::GetTranslation(string) Strange. However, if 't' (I use '_T') works, __x is a no-brainer: # Variable expansion. See GNU gettext for details. sub __expand(

Re: getting the values from Wx::Dialog

2008-08-21 Thread Octavian Rasnita
Thank you Brian, I've also tried to do something like that, but unfortunately I need to use threads and pass shared vars from a thread to another, and threads::shared is not very friendly with hashes of hashes which I need to use. So finally I use shared scalars, array and hash refs which are

Problem running wxPerl on Mac OS X

2008-08-21 Thread Pieter Baele
Hi, Leopard ships with Perl 5.8.x, I've compiled Perl 5.10. myself (overwriting /usr/bin/perl) Next I installed Wx (and some other perl modules), and the install succeeded. But when running the demo or a little dialog, something goes wrong. The window starts up nicely but It doesn't rea

Re: Problem running wxPerl on Mac OS X

2008-08-21 Thread Huub Peters
Pieter Baele wrote: Hi, Leopard ships with Perl 5.8.x, I've compiled Perl 5.10. myself (overwriting /usr/bin/perl) Next I installed Wx (and some other perl modules), and the install succeeded. But when running the demo or a little dialog, something goes wrong. The window starts up nicely

Re: Wx::CheckListBox under Windows

2008-08-21 Thread Mattia Barbon
Octavian Rasnita wrote: Hi, I've seen that my program works, but the CheckListBox is not very accessible for screen readers and this might be due to how wxWidgets were compiled. I doubt that: in wxWidgets under Win32 a wxCheckListBox is an owner-drawn control and there is no special supp

Re: sorted Wx::ListBox (using wxLB_SINGLE ) disregards leading underscore

2008-08-21 Thread Mattia Barbon
Gabor Szabo wrote: Hi, Is this the defined behavior? I am not sure there is any defined behavior, especially since under Windows it's Windows that performs the sorting. Can I somehow tell it to take in account the leading underscore as well so the order will be get_nb _get_local _get_p

Re: Wx::Locale

2008-08-21 Thread Mattia Barbon
Octavian Rasnita wrote: Hi, I've seen that WxPerl uses gettext as the base for Wx::Locale, just like Catalyst framework uses gettext in Catalyst::Plugin::I18N. To be more precise, wxWidgets uses the po/mo format but the implementation is not gettext (because gettext is L?GPL, which is mro