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 

Change Language During Testing

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



Joined: 15 Jul 2004
Posts: 1

PostPosted: Thu Jul 15, 2004 12:52 pm    Post subject: Change Language During Testing Reply with quote

Hi. I am using the follwoing snippet to setup my language selection in my code:

switch (SysLocale.PriLangID) {
case LANG_ENGLISH:
siLangDispatcher1->ActiveLanguage = 1;
break;
case LANG_FRENCH:
siLangDispatcher1->ActiveLanguage = 2;
break;
case LANG_GERMAN:
siLangDispatcher1->ActiveLanguage = 3;
break;
case LANG_ITALIAN:
siLangDispatcher1->ActiveLanguage = 4;
break;
case LANG_SPANISH:
siLangDispatcher1->ActiveLanguage = 5;
break;
default:
// Default to English
siLangDispatcher1->ActiveLanguage = 1;
break;
}

Now, how can I get SysLocale.PriLandID to chage...it's always 9 for English. I want to be able to test how my tranlations look at runtime. I'm running on XP and have the language bar enabled but when I change to French or any other language I only see English. The only way I can get it to change is to comment out the code above and manually set the ActvieLanguage property for my siLangDispatcher component within the Object Inspector. Surely I don't have to reboot in between tests, do I?

Thanks,
Rich
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Jul 15, 2004 1:25 pm    Post subject: Reply with quote

Just set Default Locale to French in XP's Regional Settings and restart your application.
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