[Gambas-user] Bug in gb3: Message buttons are not translated

Benoît Minisini gambas at ...1...
Fri Feb 18 14:22:07 CET 2011


> With the exception of Message.Optional, all other messages display the
> buttons in the original language.
> 
> Test it in any form with any message:
> Public Sub Form_Menu()
>   If Message.Question(("Do you really want to?"), ("Yes"), ("No")) = 1 Then
>     Me.Close
>   Endif
> End
> 
> The strings "Yes" and "No" will show in the translation form, but if you
> translate them, at runtime it will always be "Yes" and "No".
> 
> Regards
> Matti
> 

It's actually a bit weird : buttons with common labels (Yes, No, Retry, 
Cancel...) are detected by Qt4, and then their translation is handled by Qt4, 
not by Gambas. Alas, qt4 translation files are sparse, and are often not 
installed. So you only get the english text!

Regards,

-- 
Benoît Minisini




More information about the User mailing list