O'Reilly logo

The Python 3 Standard Library by Example, Second Edition by Doug Hellmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Internationalization and Localization

Python comes with two modules for preparing an application to work with multiple natural languages and cultural settings. gettext (page 1003) is used to create message catalogs in different languages, so that prompts and error messages can be displayed in a language that the user can understand. locale (page 1012) changes the way numbers, currency, dates, and times are formatted to take into account cultural differences such as how negative values are indicated and what the local currency symbol is. Both modules interface with other tools and the operating environment so that the Python application will fit in with all of the other programs on the system.

15.1 gettext: Message Catalogs

The gettext ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required