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

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: 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: 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], [