如何在c#中将英语语言项目转换为阿拉伯语项目 [英] How to Convert English Language Project to Arabic Language Project in c#
本文介绍了如何在c#中将英语语言项目转换为阿拉伯语项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是c#中的窗口开发人员,并且在c#中有项目。
如何使用c#
I am window developer in c# & have project in c#.
how could convert from English to Arabic by using c#
推荐答案
将英语转换为阿拉伯语Hai
$ b $不能通过任何转换器将英语转换成阿拉伯语,尝试使用多语言概念,我的意思是使用Global Resources,因为你把每个英语单词都写成阿拉伯语。在登录界面你选择lang section,ie用户名,密码及以下语言,根据下拉框中的语言选择,您调用全局资源并根据控件ID将英语更改为阿拉伯语。
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.
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
实际上我在vb中用ASP.Net编写的代码,请尝试这样,需要创建多语言全球资源
问候
Aravindb
Actually above code i written in ASP.Net in vb ,try like this,need to create Global Resources for multi language
Regards
Aravindb
这篇关于如何在c#中将英语语言项目转换为阿拉伯语项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文