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

Get Professional DotNetNuke®5: Open Source Web Application Framework for ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.