TSiLangLinked and TSiLangRT

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
luke
Posts: 1
Joined: Tue Mar 15, 2005 12:05 pm

TSiLangLinked and TSiLangRT

Post by luke »

I have the following situation:
On data module I have SiLangRT component which plays common container role and dispatcher. SiLangRT is connected to dispatcher. On every form of my application I have LangLinked component and its Common Container is SiLangRT and LangDispatcher is dispatcher from DataModule. I want both to provide to an end user possibility to translate forms using EditAll function of SiLangRT component as well as still have CommonContainer. Can I do this in any way?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

This is not possible with TsiLangLinked, but you may try to use the on of the following:
1st way:
  1. 1. Use everywhere TsiLangRT
    2. Translate Dialog Captions only in TsiLangRT from Data Module
    3. Set Options property to [loUseExtCommonStrings] (This will tell to find translations for "common" strings like dialogs in all TsiLangXXXs linked to same dispatcher)
Using this way you will be able to translate each form using EditAll() method.

2nd way:
  1. 1. Don't use TsiLangRT at all but use TsiLang as common container
    2. Save project translations to SIL/SIB file
    3. Set FileName property of dispatcher to this SIL/SIB file
    4. To edit translations use SIL Editor as external editor
Using this way your end-user will be able to edit translations for all forms at once and project will always load translations from SIL/SIB file.
Hope this helps.
Post Reply