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 

German->Bulgarian: Strange letters appear in program

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



Joined: 06 Aug 2009
Posts: 3

PostPosted: Thu Aug 06, 2009 1:06 pm    Post subject: German->Bulgarian: Strange letters appear in program Reply with quote

Hello,

I have to do a translation from german to bulgarian.
I have a german PC where Delphi 6 is installed, from where I do the translation.
And I have a bulgarian PC where the translated program should run.

The translation is inserted by TsiLang as 1byte characters, so instead of the cyrillic letter I see some strange german letters(on my german PC), but thats ok as I'm working with codepages.
Now I put the translated program onto the bulgarian PC. But instead of showing me the correct cyrillic letters, I just see nonsense.

Now I had a look at the *.exe itself in a HEX editor.
The translation was ok, as you can see at the following picture(its not the same position in the hex code, but you can see that translation worked).



But the program itself shows some different letters:


I have no idea why.
I had a closer look of what happens.
Look at the following picture: I have some letters in each row, and you can see that they change when showing up in the program on the bulgarian PC. Even the ascii-number of the letter changes!!!
As you can see, Windows tries to show up a "similar" letter, but thats not what I want!



German PC: Win2000
Bulgarian PC: WinXP
Delphi 6
TsiLang 6.4

Any ideas?


With kind regards
Back to top
View user's profile Send private message
Fragender



Joined: 06 Aug 2009
Posts: 3

PostPosted: Thu Aug 06, 2009 1:23 pm    Post subject: Reply with quote

So, some news:

You see the form with the wrong strings in the posting above!
If I change for example the caption on runtime via:
Code:
hsform.Caption:=siLangLinked_hsform.GetTextOrDefault('IDS_6' (* 'hallo' *) ) ;

Then the caption shows up right with beatiful cyrillic letters!!!
Back to top
View user's profile Send private message
Fragender



Joined: 06 Aug 2009
Posts: 3

PostPosted: Fri Aug 07, 2009 12:11 pm    Post subject: Reply with quote

Problem was solved by reloading all resource strings via:

Code:
 
  //I want lang2, but to reload lang2 I first have to switch to lang1 and then back
  siLangDispatcher1.ActiveLanguage:=1;
  application.ProcessMessages;
  siLangDispatcher1.ActiveLanguage:=2;
  application.ProcessMessages;
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Aug 12, 2009 2:48 am    Post subject: Reply with quote

Thank you, glad to see that the problem was resolved on your side.
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