Page 1 of 1
multi language
Posted: Mon Feb 28, 2011 8:26 pm
by John(ny)
Hello gnozal,
how can i make multilingual programs with pureFORM?
Thank you.
Re: multi language
Posted: Tue Mar 01, 2011 8:54 am
by gnozal
John(ny) wrote:Hello gnozal,
how can i make multilingual programs with pureFORM?
Thank you.
PureFORM may help you if you check 'Prepare multilanguage support' in
Preferences.
If enabled, the generated code uses a language array or procedure to prepare multilanguage support.
Re: multi language
Posted: Tue Mar 01, 2011 11:21 pm
by John(ny)
Hello Gnozal,
thank you.
I have check it out.
At first the version with array.
All goes right, the software generate the default lang file.
All path are right (in Config an so on).
But if i edit the default .catalog file, the generatet EXE will not read the catalog.
The EXE will show the lang strings, that are inside the EXE (default values).
And an further question; can i change the default langfilename?
And how to chance the lang? Have i to save several files with several langs, and then copy it to the .catalog filename?
Thanks
Re: multi language
Posted: Wed Mar 02, 2011 9:13 am
by gnozal
John(ny) wrote:... But if i edit the default .catalog file, the generatet EXE will not read the catalog.
The EXE will show the lang strings, that are inside the EXE (default values).
PureFORM will not do everything for you, you still have to write some code !
Use ReadLanguageFile(Catalog.s) somewhere in your code to load the language file, for example add 'ReadLanguageFile("Default.catalog")' to 'Program init' location in code infusion.
John(ny) wrote:And an further question; can i change the default langfilename?
And how to chance the lang? Have i to save several files with several langs, and then copy it to the .catalog filename?
Translate the default file ("Default.catalog") to another language, rename it (like "German.catalog") and use ReadLanguageFile() to load it : ReadLanguageFile("German.catalog").
Re: multi language
Posted: Sat Mar 05, 2011 11:30 pm
by John(ny)
Hello gnozal,
yes, that works really very fine.
Thank you / merci beaucoup.
And sorry, i have not seen the forest, because there are so many trees

include Versions info
Posted: Thu Mar 31, 2011 12:40 pm
by John(ny)
Hallo Gnozal,
i have some questions / suggestions for your very fine pureFORM.
1.) when starting the project (compile/run) with your tool, then in the purebasic (or the pureform) folder will generate the "pureform_codegeneration.exe"
o.k.
Is it possible, to generate to the same name like the projekt name? (This is not so important).
2.) In the codegeneration.exe is not any versions info, like "File Version....Produkt Version...Produkt Name...and so on".
Is ist possible to compile this inside the codegeneration.exe ? (yes, with the pureBASIC ide this is possible, i know).
And, of possible (Question 2) than perheps can define an ICON for the EXE?
Think about it.
Thank you.
Re: include Versions info
Posted: Fri Apr 01, 2011 2:44 pm
by gnozal
John(ny) wrote:i have some questions / suggestions for your very fine pureFORM.
...
Hi, why would you need these features ?
'Compile / Run' is only for testing the form in runtime condition.
No need for an icon or file info imho.
To generate the final executable, use the IDE or jaPBe.
Re: multi language
Posted: Fri Apr 01, 2011 8:12 pm
by John(ny)
Hallo Gnozal,
thank you for your Feedback.
Yes, i know.
But i look for an possibility to use only ONE Tool to develop programs - best with pureFORM.
But there another reasons, where this is not (optimal) possible;
- no help future for the basic commands
- no way to debug, or single step, and so on...
At this time, i have work very good inside of PB (use almost your pureFORM), but i am look further for an way to develop more faster (like RAD).
Do you think i should test your Editor - use instead of the PB IDE?
Thanks
Re: multi language
Posted: Sat Apr 02, 2011 7:40 am
by gnozal
John(ny) wrote:But i look for an possibility to use only ONE Tool to develop programs - best with pureFORM.
PureFORM was designed to build forms, not to be a RAD.
John(ny) wrote:Do you think i should test your Editor - use instead of the PB IDE?
No.
If you are happy / comfortable with the IDE, no need to change.
Re: multi language
Posted: Wed Apr 20, 2011 3:23 pm
by John(ny)
Hello Gnozal,
i have come much further in developing my - if it will be ready in about some months - very big business programm.
I develop much time with your pureFORM, and i use your multi language (ML) support.
Actualy german, english and francaise/french.
But there are some point, that will not work well.
1.) it is not possible to edit in pureFORM your ML Code.
2.) the new language is only available after new programm start.
Is there is an easy way, to save the new variables of the new language in the array (lang array), so that the programm will show immediately the new language?
I have try to call your .....
....ReadLanguageFile(db_lang_filename) ; aktuelle Sprachdatei lesen...
....Sub, which is in "Programm init" Part, but it will not work.
I have to start the programm once again, then the Lang will show.
Thank you.
Re: multi language
Posted: Thu Apr 21, 2011 11:17 am
by gnozal
John(ny) wrote:i have come much further in developing my - if it will be ready in about some months - very big business programm.
I develop much time with your pureFORM, and i use your multi language (ML) support.
Actualy german, english and francaise/french.
But there are some point, that will not work well.
1.) it is not possible to edit in pureFORM your ML Code.
2.) the new language is only available after new programm start.
Please keep in mind that PureFORM was designed to build forms, not to be a RAD. It will not handle everything for you.
John(ny) wrote:Is there is an easy way, to save the new variables of the new language in the array (lang array), so that the programm will show immediately the new language?
Indeed, the generated code doesn't take care of that.
After calling ReadLanguageFile(), you have to recreate all the windows / gadgets or use SetGadgetText() / SetWindowTitle() for each gadget and window actually displayed to change the gadget / window text to show the new language.
News Problem: color
Posted: Thu Apr 21, 2011 1:20 pm
by John(ny)
Hello Gnozal,
thank you.
New Problem;
i do not use any color librarys. I use only the PB inside tools.
Now, if i use with pureFORM an 3dFrame, the text of the frame will come in blue color.
Why???
How can i use black color (like all other gadgets), without ativating purecolor or any other?
Thanks
Re: News Problem: color
Posted: Fri Apr 22, 2011 8:54 am
by gnozal
John(ny) wrote:i do not use any color librarys. I use only the PB inside tools.
Now, if i use with pureFORM an 3dFrame, the text of the frame will come in blue color.
?!
I don't have any text problems with Frame3D gadgets in PureFORM.
Check :
- 'Extra' tab in 'Gadget properties' for gadget text colors
- Default gadget colors in 'Preferences'
Re: multi language
Posted: Fri Apr 22, 2011 8:16 pm
by John(ny)
Hello Gnozal,
sometimes, words do not come easy
How can i show a picture here?
Thanks
Re: multi language
Posted: Wed Apr 27, 2011 12:33 pm
by gnozal
John(ny) wrote:sometimes, words do not come easy

How can i show a picture here?
You may upload the picture to your web site (or a public site) and use the Img tags to display the pictures.