View previous topic :: View next topic |
Author |
Message |
siatc
Joined: 17 Jul 2006 Posts: 6
|
Posted: Wed Jul 19, 2006 3:48 am Post subject: How to skip the translation for a certain properties during? |
|
|
Hi,
My project includes a TwwGrid from Infopower. I have previously use TsiLang to scan my project and the grid Selected property was saved into the sib file.
The sib file has been distributed to the customer.
Recently I make some changes to the grid's column and this affect the Selected property. However, the sib also contains the old value of that property. This affect column display.
Other than going into the sib file and delete that entry, is there any way to skip that property during runtime using code?
Thanks.
Sia |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Wed Jul 19, 2006 4:22 am Post subject: |
|
|
You can just add it to SmartExcludedProps property, like:
Code: | siLang1.SmartExcludedProps.Add(wwGrid1.Selected); |
Please let me know if this helps. |
|
Back to top |
|
 |
siatc
Joined: 17 Jul 2006 Posts: 6
|
Posted: Wed Jul 19, 2006 2:18 pm Post subject: |
|
|
Unfortunately it doesn't. I tried adding it in either OnFormCreate event or manually in the SmartExcludeProps. It still pick up from the old setting in the sib file.
btw, I'm using TsiLangLinked in the forms. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Thu Jul 20, 2006 8:56 am Post subject: |
|
|
Could you please try to reproduce the problem on sample project and send it to us among with SIB file? |
|
Back to top |
|
 |
siatc
Joined: 17 Jul 2006 Posts: 6
|
Posted: Fri Jul 21, 2006 2:28 am Post subject: |
|
|
I have send an email with an attached test project to support@sicomponents.com.
In the test project I uses TButton instead, and the result are the same.
Would it be possible for TsiLang to skip replacing the original language unless it is explicitly changed in the sib file manually. Otherwise this will create a problem when the software is still under development. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Fri Jul 21, 2006 4:07 am Post subject: |
|
|
Sorry, my fault, the code to use must be like:
Code: | siLang.SmartExcludeProps.Add('Button1.Caption');
siLang.BuildList;
|
Please take a note about BuildList call and quotes.
Please let me know if this helps. |
|
Back to top |
|
 |
siatc
Joined: 17 Jul 2006 Posts: 6
|
Posted: Fri Jul 21, 2006 6:07 am Post subject: |
|
|
Nope, it doesn't work either |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Fri Jul 21, 2006 7:22 am Post subject: |
|
|
I've sent you your modified sample. Please check it. |
|
Back to top |
|
 |
siatc
Joined: 17 Jul 2006 Posts: 6
|
Posted: Fri Jul 21, 2006 12:03 pm Post subject: |
|
|
From your sample, it seems that TsiLang is not able to handle the above situation.
Will TsiLang add this in their future release? It is not practical to always amend the sib files whenever there is a change in the caption/multilines in the source code.
If this is not possible then I will have to look for alternative solution.
Thanks. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Fri Jul 21, 2006 12:28 pm Post subject: |
|
|
Actually, when you changed your desing (added or deleted some compoenents and properties) you can just re-create SIB file and merge old one using SIL Editor without merging "superfluous entries" (there is options for this in SIL Editor merge wizard). So you will easily have up-to-date SIB file and re-use translations from older SIB(s).
Hope this helps. |
|
Back to top |
|
 |
|