Localization support in DotNetNuke
February 13, 2011
Posted by on In general, DNN disables the ASP.NET localization (the resources files) by disabling the build providers of the extensions (.resx and .resources) in the web.config.
<buildProviders> <remove extension=".resx"/> <remove extension=".resources"/> </buildProviders>
So the calls of HttpContext.GetGlobalResourceObject() and HttpContext.GetLocalResourceObject() will always return null!
If we need to support localization in DNN solutions, we have to use the DNN localization class (DotNetNuke.Services.Localization.Localization) to do so.