MergeAllFromFile question

This forum designated to discuss the TsiLang Components Suite.
Post Reply
cbasso
Posts: 4
Joined: Thu Jan 29, 2009 6:11 am

MergeAllFromFile question

Post by cbasso »

I have an application, with main form with SiLang + SiLangDispatcher,
and all subforms with SiLangLinked components.

I have a sib file with all project translations (main form + all child forms).

I need to merge translations in my whole project.

If I run on main form Silang.MergeAllFromFile, only Main form translations are loaded,
to get all application translated, I need to run SiLangLinked.MergeAllFromFile on every form.

Is there a way to merge (not overwrite, because I need to keep newly strings that exist in application and not in sib file) all project with a single command?

Thanks

Claudio Basso

isiticov
Site Admin
Posts: 2204
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

You can just use SIL Editor to merge with command line:
sileditor.exe -morig [FULL_PATH_TO_THE_FILE]\orig.sil -mnew [FULL_PATH_TO_THE_FILE]\new.sil -mlang German

or if you don't store translations in external file you can use OnLinkToDispatcher even of TsiLangDispatcher and perform run-time merging for every form created.

cbasso
Posts: 4
Joined: Thu Jan 29, 2009 6:11 am

Post by cbasso »

Thanks,

OnLinkToDispatcher event works great,
it's exactly what I need.

Best regards

Post Reply