在我的 MVC 3 应用程序中,我需要进行本地化。我想请教一些建议,最好的方法是什么。还有一个问题。我在我的应用程序中使用这样的模型:
public class MyModel
{
[HiddenInput(DisplayValue = false)]
public Guid? DepartmentId { get; set; }
[Display(Name = "Caption")]
public string Caption { get; set; }
[Display(Name = "Owner")]
public string Owner { get; set; }
[Display(Name = "Enabled")]
public bool Enabled { get; set; }
}
如何在这个模型类中使用本地化?
更新
我决定创建一个自定义 resource.xml 而不是使用 asp.net 的 Resource .resx 实现,如何在这个模型类中使用本地化?