multi language

You need some new stunning features ? Tell us here.
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

multi language

Post by John(ny) »

Hello gnozal,

how can i make multilingual programs with pureFORM?

Thank you.
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: multi language

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

Re: multi language

Post 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
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: multi language

Post 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").
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

Re: multi language

Post 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 :-)
Best regards.
John(ny)
www.loetseite.de
less is more :-)
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

include Versions info

Post 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.
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: include Versions info

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

Re: multi language

Post 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
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: multi language

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

Re: multi language

Post 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.
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: multi language

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

News Problem: color

Post 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
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: News Problem: color

Post 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'
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
John(ny)
User
User
Posts: 23
Joined: Wed Nov 10, 2010 11:44 am
Location: Germany, Niedersachsen

Re: multi language

Post by John(ny) »

Hello Gnozal,

sometimes, words do not come easy :-)

How can i show a picture here?

Thanks
Best regards.
John(ny)
www.loetseite.de
less is more :-)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: multi language

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply