[Gambas-user] Problems in translation
ulisse at ...933...
ulisse at ...933...
Tue Mar 29 16:25:30 CEST 2005
Dear Benoit,
thanks for your answer.
I missed one important detail: The issue is in switching the
language in a form.
Following your help I was able to use System.Language ="..."
but it worked only when I made a startup module and I set it
to show the Form1 after having issued System.Language="...".
Changing System.Language after having shown the form doesn't
affect the form itself so:
I can switch the language
A) putting the LANG var or
B) reading the wanted lang from .conf file (and that solve
100% my need)
Still missing is how to switch lang on the fly after having
started the app.
Thanks again especially for explaining the internals (/tmp
and glibc)
Ulisse
>
> On Friday 25 March 2005 18:38, ulisse wrote:
> > I started a couple of weeks ago developing an
> > application with Gambas and the tool is so good that
> after some days I was in production. >
> > Now... I'm facing the following issue.
> >
> > I started developing it in italian but made the project
> translatable. >
> > I added english (both "common" and "en_US"). Anyway I'm
> > not able to start it in the US language even setting
> > lang on bash. I succeded only starting from the
> development environment of gambas.
>
> You must set LANG and LANGUAGES, if your system uses the
> LANGUAGES variable.
>
> >
> > So, probably I don't understand the dinamic.
> >
> > 1) Is the language inserted in the executable file?
>
> Yes it is. The '.mo' translation file is installed in /tmp
> when you launch the program.
>
> > Or have I to make a
> > package?
> >
> > 2) In add, how can I switch during runtime the language?
>
> System.Language = "..." to sets the LANG environment
> variable AND to switch the translation file.
>
> But you cannot use a language with Gambas if the
> localization files (those used by LC_* variables) are not
> installed. It is a glibc requirement.
>
> Regards,
>
> --
> Benoit Minisini
> mailto:gambas at ...1...
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products
> from real users. Discover which products truly live up to
> the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Gambas-user mailing list Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list