installation - C# Creating a setup for multi-language -
I've added multi-language using the following text.
When you add an example to German language, you will have these files: formMain.resx formMain.de-DE.resx formMain.Designer.cs formMain.cs
In the first file, you have the resources for the neutral language, like stars, pictures.
Now you need to add resources to the wires used in code. Add a new resource file and name it MEN. Tring .rux Then I should have the name, pair for each string that should be translated. When you add a resource file, it is automatically typed because the name formatted with another file. Designer.cs automatically reappears on every stop of Rex Designer.
Add another resource as the name menu. Transsections.day-day.rex Add the same key to the same name from the previous resource, and simply change the value with the corresponding German word. Now it will happen to access resources created from source.
MessageBox.Show (formMain_Strings.SameStringName);
However, I have changed my Thai language when I am VS If I run my app, everything works fine.
However, as soon as I add a setup project and install it on the client machine, it will not change the language in Thai and just keep it in the default language.
So I've added resource files and th-TH dll in project setup. And I still have the same problem.
Packaging file 'Lang.Strings.resx' ... Packaging file 'MultiLanguage.resources.dll' ... Packaging file 'MultiLanguage.exe'. .. Packaging file 'Lang.Strings.th-TH.resx' ... Everything works fine while running in Visual Studio, do something like this to let me run it Should be installed once for all the files that I keep default for each file.
Many thanks,
=========
Fixed zero main () {System.Threading.Thread.CurrentThread. CurrentUICulture = new System.Globalization.CultureInfo ("th-TH"); Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Application.Run (New Form 1 ()); } Click on the setup project in
I got the answer
Click Solution Explorer and then click \ Project Output. Select the project from the dialog for which you want to include localization (Satellite) assemblies and then select local resources.
After the installation in that folder that I install, I have a TH-TH folder in which the satellite assembly.
Thanks,
Comments
Post a Comment