mirror of
https://github.com/django/django.git
synced 2025-09-14 22:45:45 +00:00

"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.
4 lines
126 B
Text
4 lines
126 B
Text
from django.utils.translation import gettext
|
|
|
|
# This will generate an xgettext "Empty msgid" warning.
|
|
my_string = gettext('')
|