O'Reilly logo

Professional DotNetNuke®5: Open Source Web Application Framework for ASP.NET by Ryan Morgan, Stan Schultes, Darrell Hardy, Brian Scarbeau, Shaun Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Localization

The World Wide Web is an international network that must accommodate users from hundreds of cultures, speaking many different languages. This poses a significant challenge for every web application that is targeted at a worldwide audience. To address this challenge, DotNetNuke provides a built-in localization framework that addresses many of the issues required to make DotNetNuke usable by a global audience. This framework is built to take advantage of the ASP.NET localization features while tackling some of its shortcomings.

This chapter covers how DotNetNuke detects languages and locales, then provides instruction for using the API to implement localization in your modules. You will work with RESX files to store strings that are used to localize strings of text directly in the HTML of your modules and with method calls from code-behind. You also learn about the upgraded token replacement engine and a technique for localizing images using dynamically selected CSS style sheets.

Overview

DotNetNuke builds upon the localization API in the .NET Framework to make the functionality easier to implement and manage in core and third-party modules. At the time of writing, DotNet Nuke provides localization for static text in module user interfaces and system messages, but does not provide the core modules with the ability to localize web site content stored in modules dynamically. With this limitation, multi-lingual portals are not supported using only core modules and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required