Standard translations

The following code shows how to mark a string for translation:

from django.utils.translation import gettext as _output = _('Text to be translated.')

Get Django 2 by Example 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.