From 3b9a82714cf425d4cd4325a22c98b0b2c1d8c95e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 9 May 2010 06:49:00 +0000 Subject: [PATCH] [1.1.X] Fixed #12278 -- Corrected an example usage of string_concat. Thanks to loumz for the report, and timo for the patch. Backport of r13167 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13173 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/i18n/internationalization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt index e6c9dae2bf..1849e2b3c9 100644 --- a/docs/topics/i18n/internationalization.txt +++ b/docs/topics/i18n/internationalization.txt @@ -283,7 +283,7 @@ is included in a string. For example:: ... 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