Page 1 of 1

Suggestions for improving "TsiLang Components Suite"

Posted: Mon Oct 26, 2020 10:48 am
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;

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Mon Oct 26, 2020 11:50 am
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!

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Wed Oct 28, 2020 10:50 am
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 "?

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Wed Oct 28, 2020 2:27 pm
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 8722 times

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Fri Oct 30, 2020 7:18 am
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.

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Fri Oct 30, 2020 12:30 pm
by isiticov
3. OK, will try to implement this.

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Thu Nov 12, 2020 1:20 pm
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"?

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Thu Nov 12, 2020 2:33 pm
by isiticov
5. We will try to implement this. Thank you!

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Mon Feb 01, 2021 9:05 am
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.

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Mon Feb 01, 2021 9:37 am
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 8221 times

Re: Suggestions for improving "TsiLang Components Suite"

Posted: Mon Feb 01, 2021 9:42 am
by Stalker4
I have Delphi 10.4.1.
Windows 7 SP1 Aero, font size 100%