It is currently Thu Jun 20, 2013 10:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: multi language
PostPosted: Mon Feb 28, 2011 8:26 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
Hello gnozal,

how can i make multilingual programs with pureFORM?

Thank you.

_________________
Best regards.
John(ny)
www.loetseite.de
less is more :-)


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Tue Mar 01, 2011 8:54 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Tue Mar 01, 2011 11:21 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Wed Mar 02, 2011 9:13 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Sat Mar 05, 2011 11:30 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: include Versions info
PostPosted: Thu Mar 31, 2011 12:40 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: include Versions info
PostPosted: Fri Apr 01, 2011 2:44 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Fri Apr 01, 2011 8:12 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Sat Apr 02, 2011 7:40 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Wed Apr 20, 2011 3:23 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Thu Apr 21, 2011 11:17 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: News Problem: color
PostPosted: Thu Apr 21, 2011 1:20 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: News Problem: color
PostPosted: Fri Apr 22, 2011 8:54 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Fri Apr 22, 2011 8:16 pm 
Offline
User
User

Joined: Wed Nov 10, 2010 11:44 am
Posts: 23
Location: Germany, Niedersachsen
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 :-)


Top
 Profile  
 
 Post subject: Re: multi language
PostPosted: Wed Apr 27, 2011 12:33 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye