I'm trying to make my application support multiple languages. I've made some satellite assemblies and now I want to test what the app will look like when run on a French machine, for example.
In [Control Panel->Regional And Language Options] I can select French (France) in the Regional Options tab, and I can select French (France) in the Advanced tab.
But this is not enough to make my application think it's French.
If I add this code to the start of my main function,
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
CultureInfo^ ci1 = Thread::CurrentThread->CurrentCulture;
CultureInfo^ ci2 = Thread::CurrentThread->CurrentUICulture;
then ci1->Name is fr-FR
but ci2->Name is en-US
.
And unfortunately for me, for the French satellite assembly to be used, the CurrentUICulture is the one that needs to be fr-FR
.
I don't want to set the CurrentUICulture to the same one as the CurrentCulture in code - I want to change the default one using the Control Panel or something.
I've seen many posts on t'internet about how to detect an event when the CurrentUICulture is changed, just nothing that tells me how to change it!