Book Image

Learning Website Development with Django

Book Image

Learning Website Development with Django

Overview of this book

Table of Contents (18 chapters)
Learning Website Development with Django
Credits
About the Author
About the Reviewers
Preface
Index

Internationalization (i18n)


People won't use our application if they cannot read its pages. So far, we have been concerned with English-speaking users only. However, there are people all over the world who do not know English, or prefer to use their native language. To appeal to those people, it would be a good idea to offer the interface of our application in multiple languages. This would overcome the language barrier and open new frontiers for our application, especially in regions where English knowledge is not common.

As you may have guessed, Django provides all of the components needed to translate a project into multiple languages. The system that is responsible for providing this feature is called the internationalization system (i18n for short). The process of translating a Django project is quite simple. You basically follow these three steps:

  • Specify what strings should be translated in your application. For example, status and error messages are translatable, whereas usernames...