Django

Code

Changeset 1540

Show
Ignore:
Timestamp:
12/04/05 12:12:16 (3 years ago)
Author:
hugo
Message:

fixed a small bug in the positional interpol sample in i18n.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/i18n.txt

    r1532 r1540  
    620620So the above could have been written as:: 
    621621 
    622     s = interpolate(ngettext('this is %s object', 'this are %s objects', 11), 11); 
     622    s = interpolate(ngettext('this is %s object', 'this are %s objects', 11), [11]); 
    623623 
    624624The interpolation syntax is borrowed from Python. You shouldn't go over the top with