#9300 closed (fixed)
misprint
Reported by: | Roman Kalinichenko | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Keywords: | misprint | |
Cc: | romankrv@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have found a misprint.
It is here: http://docs.djangoproject.com/en/dev//topics/i18n/#in-python-code
and around the bold font.
snippet:
"
The strings you pass to _() or ugettext() can take placeholders, specified with Python's standard named-string interpolation syntax. Example:
def my_view(request, m, d):
output = _('Today is %(month)s, %s(day)s.') % {'month': m, 'day': d}
return HttpResponse(output)
"
Change History (5)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
I think it's the "%s(day)s" should be "%(day)s". The 's' before (day) doesn't belong there, right?
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
What is the alleged error here? If you feel there's a bug here, you need to actually explain what is wrong, not just highlight some text and hope someone will figure it out for you.