1
0
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:
Claude Paroz
2012-07-18 18:34:13 +02:00
parent d8e221db90
commit c54905b359
3 changed files with 54 additions and 24 deletions

View 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'))