HomeЛюди и блогиRelated VideosMore From: Fox Learn

C# Tutorial - How to create multi language using Resource Manager and Culture Info | FoxLearn

80 ratings | 37544 views
Create multi-language application in C#, store multiple language in sql database, then you can generate language resource by using resource manager.
Html code for embedding videos on your blog
Text Comments (19)
Solodam (4 months ago)
it would be way better to use a database, store the dataset in memory at runtime, then change text using "parameters", and handling them in form extension .localize().
Fox Learn (4 months ago)
Thank you !
TheOriginYT (9 months ago)
WOW! Darauf wäre ich niemals gekommen!
Mouhamed Boudiaf (11 months ago)
this is how you do it https://www.youtube.com/watch?v=bgAcjxvnJ3M
Ammar The Trainer (11 months ago)
Voice good , music fine. Code... unable to understand what they are doing.
Franz Tech (1 year ago)
It Help me alot Thanks very much, from now i can develop all my software in multilanguages GO ADHEAD!
carlcortez (1 year ago)
Doesn't work don't waste ur time
João Mané (2 months ago)
Worked for me
Milind Dabhade (1 year ago)
hey i want to develop an application in my mother tongue i.e. Marathi language how i can do that all that in only in marathi font waiting for ur response thanks in advance
ALPER ADAK (1 year ago)
harikasın hayatım
Chirantan Patel (2 years ago)
how to SUM Gujarati Numeric Number on DatagridView in C#
Chirantan Patel (2 years ago)
+Fox Learn Hi, I use Rowcount properties but not SUM gujarati Numeric Number . I also complete SUM Of English Numeric Number
Fox Learn (2 years ago)
+patel chirantan Hi, You can use properties RowCount of the DataGridView. Thanks
Aggelos Tzitzifas (3 years ago)
it doesn't work!!!!.... dont pass value in my lbl why???
Fox Learn (2 years ago)
+Aggelos Tzitzifas Hi. Every time you rebuild your project, the resource files will be deleted. So, your application can't find the language resource file, it doesn't change your text. Thanks
Aggelos Tzitzifas (2 years ago)
+Fox Learn Thenx A lof for your try i  complete the project .Please telme why do somethink like this and dont to load from a database?????
Fox Learn (2 years ago)
+Aggelos Tzitzifas Hi, You need to generate language resource file. Please check in the debug folder, make sure it's contain the language resource file. thanks
Aggelos Tzitzifas (3 years ago)
+Fox Learn I Work in VS 2010 my code is same like yours i posti here ResourceWriter ren; ResourceWriter rde; private void BtnSave_Click(object sender, EventArgs e) { appData.WriteXml(string.Format("{0}/data.xml", Application.StartupPath)); ren = new ResourceWriter(Application.StartupPath + "/resourse.en-US.resources"); rde = new ResourceWriter(Application.StartupPath + "/resourse.de-DE.resources"); foreach (AppData.LanguagesRow row in appData.Languages.Rows) { ren.AddResource(row.Id, row.English); rde.AddResource(row.Id, row.German); } ren.Generate(); ren.Close(); rde.Generate(); rde.Close(); MessageBox.Show("Succsfully Saved.", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void Form1_Load(object sender, EventArgs e) { appData.ReadXml(string.Format("{0}/data.xml", Application.StartupPath)); CultureInfo ci = new CultureInfo("de-De"); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; ResourceManager rm = ResourceManager.CreateFileBasedResourceManager("resource", Application.StartupPath, null); if (rm.GetString("0001") != null) { label1.Text = rm.GetString("0001"); } }
Fox Learn (3 years ago)
+Aggelos Tzitzifas Hi, Please check your code again, thanks

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.