View previous topic :: View next topic |
Author |
Message |
Stalker4
Joined: 05 Apr 2017 Posts: 10
|
Posted: Fri Oct 13, 2017 4:32 pm Post subject: The text encoding is corrupted when it is inserted into pas |
|
|
Hi All,
TsiLang 7.5.6.2, Delphi 10.2.1 Tokio
There is a program module (pas + dfm).
pas-file in ANSI encoding (Win1251).
The pas-file contains a string constant in the Win1251 encoding,
see picture
.
I select this line in the editor, in the context menu I select the item "TsiLang Expert->Scan selected source ..."
and click "Modify Source" in the "Found String Constants" window.
After that, the text with spoiled encoding is inserted into the program code, see picture
You need to fix this error. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Sun Oct 15, 2017 3:15 am Post subject: |
|
|
Hello,
Thank you for reporting this. We will try to fix this. |
|
Back to top |
|
 |
Stalker4
Joined: 05 Apr 2017 Posts: 10
|
Posted: Mon Oct 16, 2017 9:31 am Post subject: |
|
|
isiticov wrote: | Hello,
Thank you for reporting this. We will try to fix this. |
Good. Please let us know in this thread the version of the library in which you will correct this error.
A small request: Add to the expert settings the constant for brackets "(*" and "*)". |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Tue Oct 17, 2017 3:07 am Post subject: |
|
|
Stalker4 wrote: | A small request: Add to the expert settings the constant for brackets "(*" and "*)". |
Could you please describe a little bit more what did you mean? Thank you in advance. |
|
Back to top |
|
 |
Stalker4
Joined: 05 Apr 2017 Posts: 10
|
Posted: Tue Oct 17, 2017 10:47 am Post subject: |
|
|
isiticov wrote: | Stalker4 wrote: | A small request: Add to the expert settings the constant for brackets "(*" and "*)". |
Could you please describe a little bit more what did you mean? Thank you in advance. |
For example, there is such code:
Code: | ShowMessage('is my text') |
After processing it with "TsiLang Expert->Scan selected source ..." changes are made to the code:
Code: | ShowMessage(siLangLinked.GetTextOrDefault('IDS_37' (* 'is my text' *) )) |
So I want TsiLang to be able to specify the kind of brackets for comments (* *) for the translated text.
For example, braces are more convenient for me, that is, so that I can do this:
Code: | ShowMessage(siLangLinked.GetTextOrDefault('IDS_37' { 'is my text' } )) |
|
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Tue Oct 17, 2017 11:05 am Post subject: |
|
|
We will try to implement this. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Wed Nov 08, 2017 9:45 am Post subject: |
|
|
FYI: Just released version 7.5.7 includes this fix and improvement mentioned. |
|
Back to top |
|
 |
Stalker4
Joined: 05 Apr 2017 Posts: 10
|
Posted: Tue Nov 14, 2017 9:05 am Post subject: |
|
|
Checked, now everything works correctly.
Thank you. |
|
Back to top |
|
 |
|