Chapter 20. Internationalization and Localization
What You’ll Learn in This Hour
- How to localize strings in Python code
- How to localize strings in templates
- How to create language files
- Where to set language preference
- How to enable languages at the session level
Django provides full support for internationalization by allowing you to define localized strings in your Python code and template files. Using localized strings allows you to build a website that can be displayed in several different languages.
Internationalizing your website is a three-step process. First, you define which strings should be localized in different languages. Next, you build message files that contain the translated strings for each language. Finally, you configure a way ...
Get Sams Teach Yourself Django in 24 Hours 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.