Incorrect Turkish characters in siLang.MessageDlg()

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
CPS
Posts: 21
Joined: Fri Sep 17, 2021 1:48 pm

Incorrect Turkish characters in siLang.MessageDlg()

Post by CPS »

Some Turkish text displascorrectly in a standard Windows message dialog, so there is no problem with encoding...

MessageDlg(msgSameSignExplain, mtError, [mbNo, mbYes], 0);

A caption and buttons are still English, that's naturally.

...but there are incorrect chars if the same string in siLang.MessageDlg

siLang.MessageDlg(msgSameSignExplain, mtError, [mbNo, mbYes], 0);

A caption and buttons are Turkish per siLang component settings.

Image

There are obviously different messages fonts.
Is there any way to control siLang.MessageDlg() font properties?
CPS
Posts: 21
Joined: Fri Sep 17, 2021 1:48 pm

Re: Incorrect Turkish characters in siLang.MessageDlg()

Post by CPS »

I've found a solution!
A parent TForm where TSiLangLinked is placed Font.Charset must be DEFAULT_CHARSET.
isiticov
Site Admin
Posts: 2386
Joined: Thu Nov 21, 2002 3:17 pm

Re: Incorrect Turkish characters in siLang.MessageDlg()

Post by isiticov »

Hello,
I assume you're using non-Unicode version of Delphi. Then the parent form shall have properly defined charset for every language. And it will be used in the MessageDlg().
Best regards,
Igor Siticov.
Post Reply