65.9K
CodeProject is changing. Read more.
Home

Localization support in DotNetNuke

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Feb 22, 2011

CPOL
viewsIcon

10420

Localization support in DotNetNuke

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.