-
Book Overview & Buying
-
Table Of Contents
Django 1.0 Template Development
Internationalization, also known as i18n (the word "internationalization" consists of the letters "i" and "n" with 18 letters in between), provides a way to present your site in multiple languages from the same template files. Instead of creating a separate site in a different language, you identify strings of text in your templates that are substituted with a string in the appropriate language for the visitor.
In this chapter, we will:
Learn how i18n works
Build a sample application
Configure the project for i18n
Install the appropriate libraries to create language files
Mark strings in our template for translation
Create English and German translations for our project
Learn how to manually and automatically configure language preference
Change the font size
Change margin width
Change background colour