from django.utils.translation import gettext
# This will generate an xgettext warning
my_string = gettext("This string contain two placeholders: %s and %s" % ('a', 'b'))