Page 2 of 2

Re: How to set the language?

Posted: 22 Mar 2008, 17:53
by Kreuvf
Here's how I managed to set the language under Windows 98 (without any additional stuff):
Edit the autoexec.bat and add the line "SET LANG=de_DE" (for German, this is an example after all ^^) to it.
Restart your computer. (yes, this is true.. I tried if restarting into dos-mode only is enough so the changes are "applied" (wherever they are applied to))
Start Warzone.

If you want to play with another language you will need to edit your autoexec.bat and restart yet again (one of win98's hobbies).

Re: How to set the language?

Posted: 22 Mar 2008, 22:34
by DevUrandom
Buginator just told me "de_DE" will not work, but "de" or "German" will... Don't know what's about that. Maybe you need to try all variants. ;)

Re: How to set the language?

Posted: 23 Mar 2008, 05:30
by Buginator
DevUrandom wrote: Buginator just told me "de_DE" will not work, but "de" or "German" will... Don't know what's about that. Maybe you need to try all variants. ;)
Actually, that isn't the case.
You can only use "German", since de_DE & de don't work.
Before when I checked, I set it to "German", then printed the results, and then set it to "de", and it printed the same results, even though "de" is invalid.

If I would have set it to "de" first, then I would have noticed it would have been the last known good language, (English in my case)...

Sorry for the confusion.

Code: Select all

setlocale(LC_ALL, "de_DE"); //fails
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);
setlocale(LC_ALL, "de");   // fails
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);
setlocale(LC_ALL, "German");   // works
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);

Re: How to set the language?

Posted: 23 Mar 2008, 18:34
by DevUrandom
Buginator wrote:

Code: Select all

setlocale(LC_ALL, "de_DE"); //fails
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);
setlocale(LC_ALL, "de");   // fails
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);
setlocale(LC_ALL, "German");   // works
localeName = setlocale(LC_MESSAGES, NULL);
printf(" lang = %s\n",localeName);
On my system, Windows does not support LC_MESSAGES. The return value of setlocale() will be NULL.