summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-12-04 18:12:16 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-12-04 18:12:16 +0000
commite19edfbea0801e5217e2b1c97317008975b0f3b2 (patch)
tree73c21d3532a0a37b224949d9c66cd24e6407fef9 /docs
parent9cdcef97e11e96a62a801e2a1fb7e051f5252b20 (diff)
fixed a small bug in the positional interpol sample in i18n.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/i18n.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/i18n.txt b/docs/i18n.txt
index 6d6c939776..b137ddc74e 100644
--- a/docs/i18n.txt
+++ b/docs/i18n.txt
@@ -619,7 +619,7 @@ There even is a ``ngettext`` interface and a string interpolation function::
The ``interpolate`` function both supports positional interpolation and named interpolation.
So the above could have been written as::
- s = interpolate(ngettext('this is %s object', 'this are %s objects', 11), 11);
+ s = interpolate(ngettext('this is %s object', 'this are %s objects', 11), [11]);
The interpolation syntax is borrowed from Python. You shouldn't go over the top with
string interpolation, though: this is still JavaScript, so the code will have to do