O'Reilly logo

Professional DNN7: Open Source .NET CMS Platform by Ralph Williams, Jr., Scott Willhite, Erik van Ballegoij, Will Strohl, Dennis Shiao, Mitchel Sellers, Nathan Rover, Ashish Prasad, Clinton Bland, Chris Paterra, Charles Nurse, Israel Martinez, Peter Donker, Cathal Connolly, Bruce Chapman, 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

images

Localization

WHAT YOU WILL LEARN IN THIS CHAPTER

  • Configuring different languages
  • Using the localization API in your own modules
  • Managing static resources

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, DNN provides a built-in localization framework that addresses many of the issues required to make DNN 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 DNN detects languages and locales and then provides instruction for using the API to implement localization in your modules. You will work with resource files (*.resx) 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 token replacement engine and a technique for localizing images using dynamically selected CSS stylesheets.

DNN builds on the localization API in the .NET Framework to make the functionality easier to implement and manage in core and third-party modules. DNN provides localization for static text in module user interfaces and system messages and also features the ability to ...

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