What should you do to test the application by using the resources contained in the satellite assembly?

Windows Forms application includes resources that are localized for several languages. You want to view your application when a users resources that are localized for the French language as spoken in France. This culture is denoted by the culture name fr-FR. You need to test the application by using the resources contained in the satellite assembly. You must not modify the regional settings of your computer. What should you do?

Windows Forms application includes resources that are localized for several languages. You want to view your application when a users resources that are localized for the French language as spoken in France. This culture is denoted by the culture name fr-FR. You need to test the application by using the resources contained in the satellite assembly. You must not modify the regional settings of your computer. What should you do?

A.
Set the following assembly attribute.
[assembly: NeutralResourcesLanguage(“fr-FR”)]

B.
Add the following code to the application initialization.
RegionInfo ri = new RegionInfo(“FR”);
Thread. CurrentThread.Name = ri.NativeName;

C.
Add the following code to the application initialization.
Thread.CurrentThread.CurrentUICulture = new CultuerInfo(“fr-FR”);

D.
Add the following code to the applicationSettings section of the application configuration file.
<setting name=”CultureInfo” serilizeAs=”String”>
<value> “fr-FR” </value>
</setting>



Leave a Reply 0

Your email address will not be published. Required fields are marked *