sn_race
Member
- Joined
- Feb 27, 2022
- Messages
- 11
- Programming Experience
- 5-10
Hello,
I developed this sample test to create a Setup project for a Multilingual WinForm application.
I used Visual Studio 2022 and .resx files to translate into three languages.
The test project has only Form1 as a user interface, so the .resx files are:
Form1.resx = Italian (default)
Form1.en.resx = English
Form1.ro.resx = Romanian
I managed the language change with:
CultureInfo ("it");
CultureInfo ("en");
CultureInfo ("ro");
And I update the components with:
this.Controls.Clear ();
InitializeComponent ();
When I start the project from Visual Studio everything works ok.
I create the Setup and only the Italian language works (default), when you change the language you see the components refresh, then the update but it does not load the selected language.
I think the default resx incorporates it into the setup project and the others don't, it's just a theory.
What could I try to solve?
Here 2 pictures to better understand:
I developed this sample test to create a Setup project for a Multilingual WinForm application.
I used Visual Studio 2022 and .resx files to translate into three languages.
The test project has only Form1 as a user interface, so the .resx files are:
Form1.resx = Italian (default)
Form1.en.resx = English
Form1.ro.resx = Romanian
I managed the language change with:
CultureInfo ("it");
CultureInfo ("en");
CultureInfo ("ro");
And I update the components with:
this.Controls.Clear ();
InitializeComponent ();
When I start the project from Visual Studio everything works ok.
I create the Setup and only the Italian language works (default), when you change the language you see the components refresh, then the update but it does not load the selected language.
I think the default resx incorporates it into the setup project and the others don't, it's just a theory.
What could I try to solve?
Here 2 pictures to better understand:
Stefano Nocentini is under construction
stefanonocentini.it
Stefano Nocentini is under construction
stefanonocentini.it