mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
07a30f5616
"format string with unnamed arguments cannot be properly localized" warning is not raised in xgettext 0.21+. This patch uses a message that causes an xgettext warning regardless of the version.
5 lines
126 B
Plaintext
5 lines
126 B
Plaintext
from django.utils.translation import gettext
|
|
|
|
# This will generate an xgettext "Empty msgid" warning.
|
|
my_string = gettext('')
|