Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9300 closed (fixed)


Reported by: romankrv 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: UI/UX:


I have found a misprint.
It is here:

and around the bold font.


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 Changed 8 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 Changed 8 years ago by Karen Tracey <kmtracey@…>

I think it's the "%s(day)s" should be "%(day)s". The 's' before (day) doesn't belong there, right?

comment:3 Changed 8 years ago by Karen Tracey <kmtracey@…>

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

comment:4 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 Changed 8 years ago by mtredinnick

(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