How to set the language?

Warzone 2.1.x series. (Unsupported--read only!)
User avatar
Kreuvf
Global Moderator
Global Moderator
Posts: 254
Joined: 22 Sep 2006, 20:56
Contact:

Re: How to set the language?

Post 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).
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: How to set the language?

Post 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. ;)
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: How to set the language?

Post 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);
and it ends here.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: How to set the language?

Post 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.
Locked