简体   繁体   English

在ASP.NET MVC应用程序中重写ResourceManager?

[英]Override the ResourceManager in an ASP.NET MVC application?

Is it possible to override the ResourceManager in an ASP.NET MVC2 application? 是否可以在ASP.NET MVC2应用程序中覆盖ResourceManager? I've skim read several articles about creating a resource provider, but this seems like overkill. 我已经阅读了几篇有关创建资源提供者的文章,但这似乎有点过头了。 All I want to do is override the GetResourceFileName(CultureInfo culture) method on ResourceManager. 我要做的就是重写ResourceManager上的GetResourceFileName(CultureInfo culture)方法。

many thanks, Jordan. 非常感谢,乔丹。

I also recently looked for solution , and implementing based on fallowing Creating a Data Driven ASP.NET Localization Resource Provider and Editor article. 最近,我还寻找了解决方案,并根据“ 创建数据驱动的ASP.NET本地化资源提供程序和编辑器”一文进行了实现。 There is no official example of implementing custom ResourceManager. 没有实现自定义ResourceManager的官方示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM