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 : 251 | 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 9731764134
mail Id ' adityagupta200@gmail.com
Thanks



Responses

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

Up
0
Down
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.
https://www.codeproject.com/Tips/580043/How-to-make-a-multi-language-application-in-Csharp

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