Change Language During Testing

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
rhb327
Posts: 1
Joined: Thu Jul 15, 2004 12:48 pm

Change Language During Testing

Post by rhb327 »

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
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Just set Default Locale to French in XP's Regional Settings and restart your application.
Post Reply