Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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 James Bennett, 16 years ago

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.

comment:2 by Karen Tracey <kmtracey@…>, 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:3 by Karen Tracey <kmtracey@…>, 16 years ago

(At least that's my guess for this day's game of spot the typo.)

comment:4 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [9131]) Fixed #9300 -- Typo fix in docs.

comment:5 by Malcolm Tredinnick, 16 years ago

(In [9135]) [1.0.X] Fixed #9300 -- Typo fix in docs.

Backport of r9131 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top