Click here to Skip to main content
15,890,579 members
Articles / Web Development / ASP.NET
Tip/Trick

Localization support in DotNetNuke

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Feb 2011CPOL 10.3K   3  
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.

XML
<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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --