Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread M. Cs.
Unfortunatelly, this doesn't work either: I've translated my program into Hungarian and Serbian, and did install locales and KDE support for Serbian, but the Serbian translation just doesn't load. Csaba -- Apps built with t

Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread Benoît Minisini
> I also cannot use the translations into language which locales aren't > installed on the system. Is that O.K? > Csaba Yes. The translation system is based on the standard defined by the GNU translation tools, and so you need to install the locale first before being able to use the translation.

Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread M. Cs.
I also cannot use the translations into language which locales aren't installed on the system. Is that O.K? Csaba -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cr

Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread M. Cs.
For instant language switching I found a better solution: System.Language=... FMain.Delete() FMain.Raise() This works fine. Still, even if I've updated it to version 2.11, which is the most recent version for Mandriva, I can't use this in the .rpm package. The installed version doesn't know what

Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread wig
To "M. Cs": Before .lang... In older versions I read the languages by reading the .po files in de .lang directory: PUBLIC SUB ChooseLanguage() Dialog.Title = ("Choose a language file") Dialog.Path = Application.Path &/ ".lang" DEBUG Dialog.Path Dialog.Filter = ["*.po", "Language files",

Re: [Gambas-user] How to write a multilingual application

2009-03-11 Thread Benoît Minisini
> Dear Benoit, > unfortunatelly that doesn't work with the created package! During the > development and test-run I could retrieve the list of translations with > Dir(".lang"), but not with the installed program. I need another method to > enable forced language switching with the installed package

Re: [Gambas-user] How to write a multilingual application

2009-03-10 Thread M. Cs.
Dear Benoit, unfortunatelly that doesn't work with the created package! During the development and test-run I could retrieve the list of translations with Dir(".lang"), but not with the installed program. I need another method to enable forced language switching with the installed package. Could yo

Re: [Gambas-user] How to write a multilingual application

2009-03-09 Thread Benoît Minisini
> Thank you! > I have one more question: Is it possible to list all available languages > (translations) through a Gambas command? How? > I would plainly do the translations, create the package, but after that at > first run ask the user to choose between available languages...How could I > get the

Re: [Gambas-user] How to write a multilingual application

2009-03-09 Thread M. Cs.
Thank you! I have one more question: Is it possible to list all available languages (translations) through a Gambas command? How? I would plainly do the translations, create the package, but after that at first run ask the user to choose between available languages...How could I get the list to off

Re: [Gambas-user] How to write a multilingual application

2009-03-09 Thread Benoît Minisini
> Once more, if I understood you correctly: > 1.) If I make translations into different languages, during the compilation > time it will pack them all into .RPM or .DEB or source package, and when > installed, it will use the system language if available, or the English. Is > it correct? > > 2). I

Re: [Gambas-user] How to write a multilingual application

2009-03-09 Thread M. Cs.
Once more, if I understood you correctly: 1.) If I make translations into different languages, during the compilation time it will pack them all into .RPM or .DEB or source package, and when installed, it will use the system language if available, or the English. Is it correct? 2). I can use a com

Re: [Gambas-user] How to write a multilingual application

2009-03-09 Thread wig
The language is selected on project start; it depends on the language of the system you work on (shell: echo $LANG) If you programmed your project in English, and made translations for French and German then a French system runs the French version, a German system runs the German version If the l

[Gambas-user] How to write a multilingual application

2009-03-08 Thread M. Cs.
I've seen the built-in translator for Gambas, but I don't know how could I switch languages inside an application. Is it possible to use multiple translations inside a package, or I have to create package for English, German... version? Is it possible to pack some additional text or language files