2017-01-27 03:58:33 +08:00
|
|
|
from django.utils.translation import gettext
|
2012-07-19 00:34:13 +08:00
|
|
|
|
|
|
|
# This will generate an xgettext warning
|
2017-01-27 03:58:33 +08:00
|
|
|
my_string = gettext("This string contain two placeholders: %s and %s" % ('a', 'b'))
|