adamyg / mcwin32

Midnight Commander for Windows
https://sourceforge.net/projects/mcwin32/
210 stars 14 forks source link

How to change Language? #27

Closed mikekgr closed 2 years ago

mikekgr commented 2 years ago

Dear Sirs, when I started mc in my Windows 10 pc, mc is started in Greek language and this is probably getting from my Windows 10 region settings that is Greece/Greek, even my selected language for Windows is English and all in Windows U.I. is in English. That is super annoying. How can select or force mc to started in English language? Thanks and Best Regards, Mike Kranidis

adamyg commented 2 years ago

Please confirm version information, build 226 is the latest

norbux commented 2 years ago

I solved this by removing all the locales except english. In my instalation those locales are in C:\Program Files (x86)\Midnight Commander\locale. So I just backed up the original folder and left the original only with en_GB. But, yeah, it would be cool to have a way to select the locale from the configuration.

mikekgr commented 2 years ago

Thanks, probably I will follow your trick!

adamyg commented 2 years ago

the locale selection, build 266+ search logic follows the steps below:

Setting any of above before starting mc should impact the locale; note the first encountered is utilized,

norbux commented 2 years ago

the locale selection, build 266+ follows the logic in order:

  • LC_ALL environment variable.
  • LC_MESSAGES environment variable.
  • LANG environment variable.
  • LANGUAGE environment variable.
  • and by default, results of GetThreadLocale(); which should be the user's default locale.

Setting any of above before starting mc should impact the locale; note the first encountered is utilized,

Great, thanks @adamyg

adamyg commented 2 years ago

resolved

mikekgr commented 2 years ago

Many thanks dear developer!