Page 1 of 1

MergeAllFromFile question

Posted: Wed Mar 15, 2017 10:10 am
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

Posted: Wed Mar 15, 2017 7:32 pm
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.

Posted: Thu Mar 16, 2017 7:01 am
by cbasso
Thanks,

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

Best regards