Search found 2268 matches

by isiticov
Mon Jan 11, 2021 11:41 am
Forum: TsiLang Components Suite
Topic: Carriage return
Replies: 3
Views: 1602

Re: Carriage return

Hello, There is a global variable siLang_Def_UsedInCpp declared in siComp unit. You can assign it to True at application's initialization and C++ special chars like \n, \t and others will be treated accordingly. Additionally, every TsiLang component has a public field named UsedInCpp , you can set i...
by isiticov
Fri Jan 08, 2021 6:09 am
Forum: TsiLang Components Suite
Topic: Resource Files (RC) in C++
Replies: 12
Views: 3111

Re: Resource Files (RC) in C++

Hello, If you use only Win32 as a target platform for your project then you can check the following FAQ entry: https://www.tsilang.com/tsilang-faq/#9 (just replace "AnsiString" in the code sample with "string" as this sample code was written in "non-Unicode" times). In case you need to support other...
by isiticov
Thu Jan 07, 2021 4:30 am
Forum: TsiLang Components Suite
Topic: Best practice for multi package projects
Replies: 5
Views: 1839

Re: Best practice for multi package projects

Hello Roberto, Yes, in this case you need to export translations to external file, send it to translators and them load it back into DFMs. Saving and loading could be easily performed in TsiLang Expert. No need to send the DFMs. You can check the following links: 1. https://youtu.be/6R54hJ9FX14 - Ts...
by isiticov
Wed Jan 06, 2021 6:17 am
Forum: TsiLang Components Suite
Topic: Best practice for multi package projects
Replies: 5
Views: 1839

Re: Best practice for multi package projects

Hello Roberto, 1 - Yes, although they will be updated at run-time once you assign dispatcher property. But in order to work properly it is recommended to configure languages in BPLs too. You can select all forms in BPL in Expert and configure them at the same time in a bulk. 2. "FileName" property o...
by isiticov
Thu Dec 24, 2020 4:23 am
Forum: TsiLang Components Suite
Topic: Best practice for multi package projects
Replies: 5
Views: 1839

Re: Best practice for multi package projects

Hello, You can try to use only TsiLangLinked in packages and assign CommonContainer and Dispatcher properties upon package initialization. Something like the following: 1. In a package declare 2 global variables for holding reference to TsiLang and TsiLangDispatcher from the main application. 2. In ...
by isiticov
Tue Dec 15, 2020 9:02 am
Forum: TsiLang Components Suite
Topic: Update dictionary fails
Replies: 3
Views: 1583

Re: Update dictionary fails

The Update Manager shall work now as well. Thank you again.
by isiticov
Tue Dec 15, 2020 8:34 am
Forum: TsiLang Components Suite
Topic: Update dictionary fails
Replies: 3
Views: 1583

Re: Update dictionary fails

Hello,

Thank you for reporting this. Please download the standalone Dictionary Manager installer at: https://www.sicomponents.com/soft/Dicti ... _Setup.exe
by isiticov
Thu Nov 19, 2020 7:09 am
Forum: TsiLang Components Suite
Topic: Scaling issue with siColorDialog
Replies: 5
Views: 5595

Re: Scaling issue with siColorDialog

Hi Malcolm,

Thank you for the info. But TsiColorDialog was never removed from components palette. It should be there as always.
by isiticov
Thu Nov 12, 2020 2:33 pm
Forum: TsiLang Components Suite
Topic: Suggestions for improving "TsiLang Components Suite"
Replies: 10
Views: 2680

Re: Suggestions for improving "TsiLang Components Suite"

5. We will try to implement this. Thank you!
by isiticov
Sat Nov 07, 2020 4:18 am
Forum: TsiLang Components Suite
Topic: Delphi 10.4, FMX
Replies: 1
Views: 1554

Re: Delphi 10.4, FMX

Hello, TsiLangRT component is not applicable for FMX applications. Please use TsiLang instead. Only the following components available under FireMonkey applications: TsiLang, TsiLangLinked and TsiLangDispatcher. As other components are designed for specific tasks which are applicable only under Wind...
by isiticov
Fri Oct 30, 2020 12:30 pm
Forum: TsiLang Components Suite
Topic: Suggestions for improving "TsiLang Components Suite"
Replies: 10
Views: 2680

Re: Suggestions for improving "TsiLang Components Suite"

3. OK, will try to implement this.
by isiticov
Wed Oct 28, 2020 2:52 pm
Forum: TsiLang Components Suite
Topic: Automatic change of a translation
Replies: 19
Views: 28125

Re: Automatic change of a translation

These are changes to your sample that make it work (they are marked with // !!!! ): // !!!! move this here var SibFile: string; procedure TDM.DataModuleCreate(Sender: TObject); var FL: string; begin FL := Application.ExeName; SibFile := ChangeFileExt(FL, '.sib'); if FileExists(SibFile) then begin //...
by isiticov
Wed Oct 28, 2020 2:27 pm
Forum: TsiLang Components Suite
Topic: Suggestions for improving "TsiLang Components Suite"
Replies: 10
Views: 2680

Re: Suggestions for improving "TsiLang Components Suite"

Hello,

3. Is there any sense for this?

4. Right-click on TsiLang on the form and check "Ignore removals". Then TsiLang won't automatically delete data related to deleted components. Uncheck it again to re-activate.
2020-10-28_18-22-31.png
2020-10-28_18-22-31.png (33.8 KiB) Viewed 2672 times
by isiticov
Tue Oct 27, 2020 2:54 pm
Forum: TsiLang Components Suite
Topic: Automatic change of a translation
Replies: 19
Views: 28125

Re: Automatic change of a translation

But in this case your TsiLang on "Form1" won't be loaded from the file. So you may update your code a little: 1. In OnLinkToDispatcher event load ASiLang from Dispatcher's FileName 2. And then update the translation using ReplaceStringValue. Something like this: procedure TDM.siLangDispatcher1LinkTo...
by isiticov
Tue Oct 27, 2020 2:36 pm
Forum: TsiLang Components Suite
Topic: Automatic change of a translation
Replies: 19
Views: 28125

Re: Automatic change of a translation

As you have FileName property set then the sequence of actions/events is: 1. OnLinkToDispatcher event called. 2. Inside it you change translation. 3. LoadAllFromFile([Dispatcher's FileName]) called and your changes made on 2. are overwritten with values from file. In short: if you have dispatcher's ...