Page 1 of 1

Question about EditStrings function

Posted: Wed Apr 11, 2007 4:03 pm
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.

Re: Question about EditStrings function

Posted: Wed Apr 11, 2007 4:08 pm
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', '!@#$');

Posted: Wed Apr 11, 2007 4:48 pm
by frank
Sorry, i don't use SIB also. Is that the same?

Posted: Wed Apr 11, 2007 5:13 pm
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.

Posted: Thu Apr 12, 2007 2:59 am
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.