[Gambas-user] Translating application
Leonardo Miliani
leonardo at ...1237...
Tue Apr 25 19:14:58 CEST 2006
Rob Kudla ha scritto:
> On Tue April 25 2006 11:28, Leonardo Miliani wrote:
>> I would like to follow a more professional way, getting the
>> user the ability to choose the interface language using the
>> program menu (i.e., Tools/Language and then English/Italian)
>> and having the interface language translated "on the run".
>> How can I get this?
>
> This is actually a less professional way (reminds me of video
> games and early Windows 3.x software, before setting the
> language in the operating system was common.)
>
> Nonetheless, the way to do what you want is the same way we did
> it back in the early 90's.... put placeholder text in all your
> controls (for example, the name of the control or a shortened
> version of the text to be displayed) and loop through them
> replacing the placeholder with the language-appropriate string
> when you display each form or change the setting. You can store
> the strings in an ini file or database or whatever you like.
>
> You'll probably want to mark the project as "not translatable" to
> avoid any fights between your app and Gambas' own translation
> support.... and since, after all, it won't be translatable in
> any standard way.
>
> Rob
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
Thanks for your answer.
Let me understand how the translation works in Gambas...
If I create an application that is tranlatable, then Gambas get the work
to translate it when it runs it? I have just to create the translation
strings for some languages?
--
Ciao.
Leo
Visita il mio sito personale: www.leonardomiliani.com
e-mail: leonardo at ...1237...
More information about the User
mailing list