Where can I set the current value of CurrentUICulture in Windows XP?

I am trying to configure an application in several languages. I made some satellite assemblies, and now I want to check how the application will look when working on a French machine, for example.

In [Control Panel-> Region and Language Settings] I can select French (France) on the "Regional Settings" tab, and I can select French (France) on the "Advanced" tab.

But this is not enough for my application to consider this French.

If I add this code at the beginning of my main function,

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
    CultureInfo^ ci1 = Thread::CurrentThread->CurrentCulture;
    CultureInfo^ ci2 = Thread::CurrentThread->CurrentUICulture;

then ci1-> Name fr-FR, but ci2-> Name en-US.

And, unfortunately, for me, to use the French satellite assembly, CurrentUICulture is the one that should be fr-FR.

I don't want CurrentUICulture to be the same as CurrentCulture in the code - I want to change the default value using the control panel or something like that.

I saw a lot of posts on t'internet on how to detect an event when CurrentUICulture changes, nothing that tells me how to change it!

+3
source share
3 answers

See How to change the language used to display menus and dialogs in MUI :

Windows MUI ( ) , . 33 ( ), muisetup.exe.

.NET CurrentUICulture .

+2

Windows 8 ( 8.1).

" " > " , " > "" . "".

, CurrentUICulture . , :

  • ( Lanuage: cool!)
  • " "
  • " , "
    • > : ""
    • > : " " .
    • > : " , ",
  • " " :
    • - , CurrentUICulture, , ,
  • , each /

, , CurrentUICulture ! , , .

CurrentCulture . , OK/, , ! ​​

0

Source: https://habr.com/ru/post/1718817/


All Articles