SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Depends on system code page?

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Tue Mar 09, 2004 12:19 am    Post subject: Depends on system code page? Reply with quote

I have a problem and not much time left to solve it.

I'm translating a program so that it will work in both Englich and Greek.
It now works fine when the system locale is set to Greek.

When the system locale is set to English, all the greek text comes out with lots of question marks, like this "???sate t? control menu st? p????aua e?st?????: ?p????te"

I recognize this as what happens when you take Unicode in Greek and do MultibyteToWideChar using an English code page.

It looks like something in tsiLang is doing translations specifying CP_ACP rather than using a code page appropriate to the language.

I just discovered that if I open the internal translator with the system code page set to English that all my Greek strings come out the same way.

How can I make my program appear in Greek or English according to the menu selection, indpendent of the system locale setting?
Back to top
View user's profile Send private message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Tue Mar 09, 2004 12:24 am    Post subject: Reply with quote

Neglected to say that all of my Greek specifies GREEK_CHARSET and all my my English text specifies ANSI_CHARSET. Nothing uses the default.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Mar 09, 2004 6:21 am    Post subject: Reply with quote

In internal Translation Editor in sections like Strings, Dialogs the strings are displayed using font settings specified under menu "Tools|Default Fonts".
Please let us know if this was the problem and that under Captions, Hints and other sections strings were displayed correctly.
Some window controls such as TButton, TGroupBox... are just wrappers of standard window controls and draw themselves using "Desktop Font Settings" and ignore Delphi's Font property. You may take a look at the thread http://www.sicomponents.com/forum/viewtopic.php?p=45#45, it demonstrates some additional info under this subject.
Back to top
View user's profile Send private message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Wed Mar 10, 2004 9:24 am    Post subject: Reply with quote

My problems are mostly with the captions on TLabel controls.

Bearing in mind that I am running the same exe on the same system with only the system default locale changed and see Greek in the Greek locale and many question marks in the English locale.

I can also do this: Starting with the system set to Greek, display the internal translator and my captions are Greek. Don't save, change the system locale to English, open the internal translator, and they are question mark garbage.

I'll see what else I can discover tomorrow.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Mar 10, 2004 11:36 am    Post subject: Reply with quote

This looks really strange. What font settings are used in "Tools|Default Fonts" and in "Fonts" section of TsiLang? Do you use the appropriate font for Greek language? Is it listed in drop-down combe when you click on the grid cell under "Fonts" section in Translation Editor?
FYI: Not all fonts able to support all charsets.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group