Suggestions for improving "TsiLang Components Suite"

This forum designated to discuss the TsiLang Components Suite.
Post Reply
Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

Hi All,

TsiLang Components Suite 7.8.4, Delphi 10.4.1

1. Add the "Replace" dialog button to the "Translation Editor" expert window. For the "replacement" to work in the selected section of the "Translations" tree.

2.
For example, there is a code like this:

Code: Select all

procedure Test(a :integer);
begin

 if a = 1 then begin
   ShowMessage('bla-bla-bla');
   Exit;
 end;

end;
After processing "Scan selected source" the following code is obtained:

Code: Select all

procedure Test(a :integer);
begin

 if a = 1 then begin
   ShowMessage(siLangLinked.GetTextOrDefault('IDS_1' { 'bla-bla-bla' }));
   Exit;
 end;

end;
That is, the text to be translated as a comment is added to the right inside the GetTextOrDefault call.

Is it possible to add an option to the TsiLang-Expert settings so that this text is added above the replacement line, at its beginning ?

Code: Select all

procedure Test(a :integer);
begin

 if a = 1 then begin
   { 'bla-bla-bla' }
   ShowMessage(siLangLinked.GetTextOrDefault('IDS_1'));
   Exit;
 end;

end;

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

Re: Suggestions for improving "TsiLang Components Suite"

Post by isiticov »

Hello,

1. We will add this definitely. Thank you.
2. We will see what can be done in this direction.

Thank you again for your ideas, we really appreciate them!
Best regards,
Igor Sitikov.

Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Re: Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

A couple more suggestions:

3. In the "Translation Editor", in the "Strings" section, you can add a new string only to the end of the list.
Add the ability to add a new line to any position in the list of lines.

4. There is a form, on the form there is a "Label" with the filled in and the "Caption" property. In the "Translation Editor" for "Label.Caption" translation is set.
(In principle, instead of "Label.Caption" there can be any other component for translating text).
Add a container component to the same form (for example, TGroupBox, TPageControl).
And we need to transfer our "Label" to it. If you do this using Cut and Paste, the translation is lost.

Can there be an opportunity not to delete the translation immediately during the "Cut "?

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

Re: Suggestions for improving "TsiLang Components Suite"

Post by isiticov »

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 1190 times
Best regards,
Igor Sitikov.

Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Re: Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

3. This is necessary so that the translations of the individual logical parts of the module (form) are together, this simplifies the work with them.

Now we have to do an export for this, change the order of lines in a text editor and make an import.
This is not very convenient.

4. Thanks for the tip, I'll try this.

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

Re: Suggestions for improving "TsiLang Components Suite"

Post by isiticov »

3. OK, will try to implement this.
Best regards,
Igor Sitikov.

Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Re: Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

5) In "SIL Editor" leading and trailing spaces can be marked with a special character (bold point). Can the same feature be added to "Translation Editor"?

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

Re: Suggestions for improving "TsiLang Components Suite"

Post by isiticov »

5. We will try to implement this. Thank you!
Best regards,
Igor Sitikov.

Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Re: Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

I saw that in 7.8.5 in the "translation editor" you made the "Find and Replace" dialog. I checked it - it works, but the window itself is a little not neat in the Russian version, correct it.
Attachments
pic1.jpg
pic1.jpg (10.13 KiB) Viewed 694 times

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

Re: Suggestions for improving "TsiLang Components Suite"

Post by isiticov »

What IDE version do you use? Under 10.4.1 everything is fine:
2021-02-01_13-35-18.png
2021-02-01_13-35-18.png (9.24 KiB) Viewed 689 times
Best regards,
Igor Sitikov.

Stalker4
Posts: 22
Joined: Wed Apr 05, 2017 7:18 am

Re: Suggestions for improving "TsiLang Components Suite"

Post by Stalker4 »

I have Delphi 10.4.1.
Windows 7 SP1 Aero, font size 100%

Post Reply