mirror of
https://github.com/Hopiu/django.git
synced 2026-03-20 07:50:25 +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('')
|