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!
source
share