Click here to Skip to main content
15,895,784 members
Please Sign up or sign in to vote.
1.20/5 (2 votes)
See more:
I am window developer in c# & have project in c#.
how could convert from English to Arabic by using c#
Posted
Comments
Bernhard Hiller 20-Jan-14 3:44am    
Do not repost the same question several times!
http://www.codeproject.com/Questions/711340/how-to-convert-a-project-for-multiple-language-lik
http://www.codeproject.com/Questions/711249/One-Windows-Application-Project-That-Project-Is-Bu
http://www.codeproject.com/Questions/710847/how-to-change-language-of-a-project-like-english-t

1 solution

Hai
u cant convert English to Arabic by any converter,try to use multi language concept,i mean use Global Resources in that u write every English words to Arabic language.in login screen u select lang section,i.e username,password and below Language,based on language selection from drop box,u call that Global Resources and change the English to Arabic language based on control id.



VB
If (ddlLanguage.Text = "English") Then
          
            Dim c As CultureInfo = New CultureInfo("en-GB")
            Thread.CurrentThread.CurrentCulture = c
            Thread.CurrentThread.CurrentUICulture = c

            Dim ResMgr1 As ResourceManager = ResourceManager.CreateFileBasedResourceManager("MyResource", Server.MapPath("") + "\App_GlobalResources", Nothing)
            lblUName.Text = ResMgr1.GetString("Username")
            lblPassword.Text = ResMgr1.GetString("Password")
            
        ElseIf (ddlLanguage.Text = "Arabic") Then
      
            Dim c As CultureInfo = New CultureInfo("en-US")
            Thread.CurrentThread.CurrentCulture = c
            Thread.CurrentThread.CurrentUICulture = c

            Dim ResMgr1 As ResourceManager = ResourceManager.CreateFileBasedResourceManager("MyResource", Server.MapPath("") + "\App_GlobalResources", Nothing)
            lblUName.Text = ResMgr1.GetString("Username")
            lblPassword.Text = ResMgr1.GetString("Password")
End If


Actually above code i written in ASP.Net in vb ,try like this,need to create Global Resources for multi language


Regards
Aravindb
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900