当前位置:编程学习 > C#/ASP.NET >>

关于。net多语言谁有好的解决方案。帮我有偿做下也行

关于。net多语言谁有好的解决方案。帮我有偿做下也行 --------------------编程问答-------------------- 配置资源文件如:Resource1.zh-CN.resx,Resource1.zh-TW.resx,Resource1.en-US.resx。
public static void SetLang(string lang, Form form, Type formType)
  {
  System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lang);
  if (form != null)
  {
  System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(formType);
  resources.ApplyResources(form, "$this");
    
  }
  }

提示建立配置类
根据需要来创建不同的配置类
Localizable或
<form Name = 'Login'>
<Control name = 'BtnSave'>
Save
</Control>
</form>
--------------------编程问答-------------------- 本地化远远没有“多语言”那么简单。

包括货币单位、日期格式、用户习惯,甚至文本顺序等等。 --------------------编程问答-------------------- 基于xml的多语言实现
源程序:
http://blog.csdn.net/dunao/archive/2010/10/28/5972927.aspx

思路介绍:
http://blog.csdn.net/dunao/archive/2010/10/19/5952723.aspx

效果预览:


--------------------编程问答-------------------- ls的可以试试,用xml文件
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,