Fixed #9300 -- Typo fix in docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-10-05 06:17:29 +00:00
parent 7cec38b076
commit d3c6093645
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ The strings you pass to ``_()`` or ``ugettext()`` can take placeholders,
specified with Python's standard named-string interpolation syntax. Example:: specified with Python's standard named-string interpolation syntax. Example::
def my_view(request, m, d): def my_view(request, m, d):
output = _('Today is %(month)s, %s(day)s.') % {'month': m, 'day': d} output = _('Today is %(month)s, %(day)s.') % {'month': m, 'day': d}
return HttpResponse(output) return HttpResponse(output)
This technique lets language-specific translations reorder the placeholder This technique lets language-specific translations reorder the placeholder