How can I translate the Language to another Language using one resource File

Posted by Amatya under C# on 5/17/2017 | Points: 10 | Views : 410 | Status : [Member] | Replies : 1
I have one resource file in which the Name and Value re in English, without creating another Resource File I want to translate that Page into Spanish or any other Language. How can I do that.
Please reply as soon as possible
Thanks in Advance

Feel free to share informations.
mail Id '


Posted by: Jitendrasoft09 on: 6/11/2017 [Member] [MVP] Starter | Points: 25

You keep your all languages in one resource file and create CultureInfo for each language.
void switch_language(void)

if (vietnameseToolStripMenuItem.Checked == true) //in vietnamese
cul = CultureInfo.CreateSpecificCulture("vi"); //create culture for vietnamese
else //in english
cul = CultureInfo.CreateSpecificCulture("en"); //create culture for english

Check out link. Hope it helps you.

Jitendra Kumar
If my post helps you, plz mark as an answer.

Amatya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response