Page 1 of 1

Change Language During Testing

Posted: Thu Jul 15, 2004 12:52 pm
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

Posted: Thu Jul 15, 2004 1:25 pm
by isiticov
Just set Default Locale to French in XP's Regional Settings and restart your application.