How to skip the translation for a certain properties during?
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
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
You can just add it to SmartExcludedProps property, like:
Please let me know if this helps.
Code: Select all
siLang1.SmartExcludedProps.Add(wwGrid1.Selected);
Best regards,
Igor Siticov.
Igor Siticov.
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.
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.
Sorry, my fault, the code to use must be like:
Please take a note about BuildList call and quotes.
Please let me know if this helps.
Code: Select all
siLang.SmartExcludeProps.Add('Button1.Caption');
siLang.BuildList;
Please let me know if this helps.
Best regards,
Igor Siticov.
Igor Siticov.
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.
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.
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.
Hope this helps.
Best regards,
Igor Siticov.
Igor Siticov.