mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #18479 -- Stopped makemessages raising error on gettext warnings
Thanks Niels Busch for the initial patch.
This commit is contained in:
4
tests/regressiontests/i18n/commands/code.sample
Normal file
4
tests/regressiontests/i18n/commands/code.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
from django.utils.translation import ugettext
|
||||
|
||||
# This will generate an xgettext warning
|
||||
my_string = ugettext("This string contain two placeholders: %s and %s" % ('a', 'b'))
|
||||
Reference in New Issue
Block a user