Hi,

I have made a program that translates the text using Google's translation 
services and it also uses Wx::Locale.

If the interface of the program is in English, the program works fine. If I 
change the language_id of the current language of the interface in the config 
file to 155 (Romanian), then the program gives an error:

HTTP request failed: 501 Attempt to reload IO/Socket.pm aborted.
Compilation failed in require at E:/lucru/lib/Translate/Translator.pm line 26

At line 26 there is the following:

my $gt = REST::Google::Translate->new(
  q => $chunk,
  langpair => $self->source_language . '|' . $self->destination_language,
);

I verified and these variables are well initialized.

I've also seen that after changing the current locale to Romanian, when I 
printed the version of the application in the About window (0.03), this version 
was also localized to 0,03. This is fine, but I am wondering if this 
localization of numbers doesn't effect other programming code making it not 
work well.

Is there a way to specify that I want to just translate the strings specified 
in the .mo files, but without localizing other things? Or it may be another 
problem?

Thanks.

Octavian

Reply via email to