Author: russellm
Date: 2010-05-09 01:42:42 -0500 (Sun, 09 May 2010)
New Revision: 13167
Modified:
django/trunk/docs/topics/i18n/internationalization.txt
Log:
Fixed #12278 -- Corrected an example usage of string_concat. Thanks to loumz
for the report, and timo for the patch.
Modified: django/trunk/docs/topics/i18n/internationalization.txt
===================================================================
--- django/trunk/docs/topics/i18n/internationalization.txt 2010-05-09
06:42:16 UTC (rev 13166)
+++ django/trunk/docs/topics/i18n/internationalization.txt 2010-05-09
06:42:42 UTC (rev 13167)
@@ -283,7 +283,7 @@
...
name = ugettext_lazy(u'John Lennon')
instrument = ugettext_lazy(u'guitar')
- result = string_concat([name, ': ', instrument])
+ result = string_concat(name, ': ', instrument)
In this case, the lazy translations in ``result`` will only be converted to
strings when ``result`` itself is used in a string (usually at template
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.