django1/tests/i18n/commands/code.sample

5 lines
171 B
Plaintext
Raw Normal View History

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'))