Problem with Default Translation of Constants
Posted: Wed Jul 28, 2010 12:26 am
Hello,
I'll try to explain my problem:
while starting the application I look if there is a .sib file. If it's there it will be loaded. If it's not there I'll go on without loading..., so the default language stored will be the one that is valid.
I put some strings to constants (example: 'Would you like to save the changes?") to a unit without a form. So, if there is no .sib file to load, the constant is initialized with an empty string because there is no "ChangeLanguage" event that will read the default string stored with the .frm.
Is there any function to load just the default values for the constants (var strings) stored in the .frm's without changing the language forward and back to get an "ChangeLanguage" event that would also try to read all the caption's?
Another question:
Is there any "exclude list" to add components?
I saw that it's possible to add Properties to an exclude list. We have a lot of components we don't want to exclude in every form by hand.
I just did this on an project with > 300 forms... was a lot of work.
TIA
Ralf
I'll try to explain my problem:
while starting the application I look if there is a .sib file. If it's there it will be loaded. If it's not there I'll go on without loading..., so the default language stored will be the one that is valid.
I put some strings to constants (example: 'Would you like to save the changes?") to a unit without a form. So, if there is no .sib file to load, the constant is initialized with an empty string because there is no "ChangeLanguage" event that will read the default string stored with the .frm.
Is there any function to load just the default values for the constants (var strings) stored in the .frm's without changing the language forward and back to get an "ChangeLanguage" event that would also try to read all the caption's?
Another question:
Is there any "exclude list" to add components?
I saw that it's possible to add Properties to an exclude list. We have a lot of components we don't want to exclude in every form by hand.
I just did this on an project with > 300 forms... was a lot of work.
TIA
Ralf