[Gambas-user] Project translation from IDE

Benoit Minisini gambas at ...1...
Wed Sep 24 16:10:32 CEST 2008


On mercredi 24 septembre 2008, M0E Lnx wrote:
> So, I'm trying to add support for translations in my application....
> the IDE offers the translate window that helps in the translation to
> generate the .po and .mo files
>
> But here is my problem. It seems to not be searching for strings in
> the classes or modules. It's only picking up the .text property of the
> objects drawn into forms.
>
> THis is a problem when you have objects that get created at runtime
> from conditional statements, and also for your error/warning/info
> messages to the user
>
> Is there a way to make the IDE pull every string in the project rather
> than just the .text property of each object?
>

Strings that must be translated must be put between braces:

PRINT "Do not translate me"
PRINT ("Translate me")

Regards,

-- 
Benoit Minisini




More information about the User mailing list