WHAT YOU WILL LEARN IN THIS CHAPTER
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 ...