Ticket #12278: 12278.diff

File 12278.diff, 550 bytes (added by Tim Graham, 15 years ago)
  • docs/topics/i18n.txt

     
    428428    ...
    429429    name = ugettext_lazy(u'John Lennon')
    430430    instrument = ugettext_lazy(u'guitar')
    431     result = string_concat([name, ': ', instrument])
     431    result = string_concat(name, ': ', instrument)
    432432
    433433In this case, the lazy translations in ``result`` will only be converted to
    434434strings when ``result`` itself is used in a string (usually at template
Back to Top