Multi Language Windows base Software
-
Good Morning, I developed a web base project with different languages in c#. I used "Resources" to save different language variable. I am just wondering that can I use same technique in a desktop base application. I need it because I am going to develop a desktop base software in Visual Studio 2005. This software is a multi language software. User should have facility to choose desire language then whole software should change to that selected language. Any Suggesstion or comments? Regards, Abubakar
-
Good Morning, I developed a web base project with different languages in c#. I used "Resources" to save different language variable. I am just wondering that can I use same technique in a desktop base application. I need it because I am going to develop a desktop base software in Visual Studio 2005. This software is a multi language software. User should have facility to choose desire language then whole software should change to that selected language. Any Suggesstion or comments? Regards, Abubakar
As I know You can do that , in VS2005 you can even declare a variable with name in other languages like Farsi or Arabic not just the value! and it works fine.
//Auto Generated code with Resources /// /// Looks up a localized string similar to سلام به مردمان نیک کد پروژه. /// internal static string متغیرسلام { get { return ResourceManager.GetString("متغیرسلام", resourceCulture); } private void button4_Click(object sender, EventArgs e) { MessageBox.Show(Properties.Resources.متغیرسلام ); }
just as a tip the persian phrase means "Greetings Good People at CodeProject" good luck :) -
Good Morning, I developed a web base project with different languages in c#. I used "Resources" to save different language variable. I am just wondering that can I use same technique in a desktop base application. I need it because I am going to develop a desktop base software in Visual Studio 2005. This software is a multi language software. User should have facility to choose desire language then whole software should change to that selected language. Any Suggesstion or comments? Regards, Abubakar
WinForm supports resources (and the support is better integrated in VS than what you find for ASP.NET - basically it's good enough for hobby translated programs). If you translate professionelly do NOT use VS to manage the translations, let the professionel translation tools do what they do best. As a basic rule, the user has already selected the language (the language of the Windows userinterface), so while it might appear a great idea to allow the user to select language, there really is no need. As it's not that easily done either, I would not bother if I was you.