#12278 closed (fixed)
Doc bug: django.utils.translation.string_concat does not take list as argument
Reported by: | William | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Current source (docs/topics/i18n.txt):
427 from django.utils.translation import string_concat 428 ... 429 name = ugettext_lazy(u'John Lennon') 430 instrument = ugettext_lazy(u'guitar') 431 result = string_concat([name, ': ', instrument])
This will result in something like this when forced to unicode: u"[<django.utils.functional.__proxy__ object at 0x1af1d10>, ': ', <django.utils.functional.__proxy__ object at 0x1af1c70>]"
Should be:
result = string_concat(name, ': ', instrument)
Attachments (2)
Change History (7)
by , 15 years ago
Attachment: | 12278.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
by , 15 years ago
Attachment: | 12278.2.diff added |
---|
comment:2 by , 15 years ago
milestone: | → 1.2 |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
updated patch for file location change