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

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access