Question about EditStrings function

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
frank
Posts: 30
Joined: Sat Apr 07, 2007 3:57 am

Question about EditStrings function

Post by frank »

I refer in the help file and have some question:

EditStrings method saves all translation stored in itself into SILFile, then activates automation server object embedded in SIL Editor application for translating it and after that loads translation information from the file named SILFile.
---> is that mean after i edit translation, it will auto reload.

The DefPropty indicates which property will be activated in SIL Editor by default. The FDelim parameter indicates the delimiter that will be used for saving translation in the file.
--> Can you give a sample.

I do not use the SIL file, so how can i work with this function??
Many thanks.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Question about EditStrings function

Post by isiticov »

frank wrote:---> is that mean after i edit translation, it will auto reload.
Yes, exactly.
The DefPropty indicates which property will be activated in SIL Editor by default. The FDelim parameter indicates the delimiter that will be used for saving translation in the file.
--> Can you give a sample.
I do not use the SIL file, so how can i work with this function??
Many thanks.
In case of SIB file you can specify anything as Delimiter. Example:

Code: Select all

siLang1.EditStrings('Captions', '!@#$');
Best regards,
Igor Siticov.
frank
Posts: 30
Joined: Sat Apr 07, 2007 3:57 am

Post by frank »

Sorry, i don't use SIB also. Is that the same?
frank
Posts: 30
Joined: Sat Apr 07, 2007 3:57 am

Post by frank »

i call this function
siLang1.EditProperty(stCaptions)

then it shows the transation editor, i make changes and close it, ask me to save, i ok.
it shows the error: EFCreateError: Cannot create file "". The system can not find.......

I don't use SIB or SIL file.

Please advice.

Thanks alot.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Then you don't use TsiLangRTSE (which uses SIL Editor to edit translations) but TsiLangRT (which uses built-in Translation Editor). Both run-time components need StorageFile property to be set in order to save run-time translation.
Best regards,
Igor Siticov.
Post Reply