Changeset 7361 for django/trunk/docs/i18n.txt
- Timestamp:
- 03/24/08 23:42:21 (4 months ago)
- Files:
-
- django/trunk/docs/i18n.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/i18n.txt
r7357 r7361 826 826 827 827 * Positional interpolation: ``obj`` contains a JavaScript Array object 828 whose elements values are then sequentially interpolated in their828 whose elements values are then sequentially interpolated in their 829 829 corresponding ``fmt`` placeholders in the same order they appear. 830 830 For example:: … … 833 833 'There are %s objects. Remaining: %s', 11); 834 834 s = interpolate(fmts, [11, 20]); 835 // s is 'There are 11 objects. Remaining: 20'835 // s is 'There are 11 objects. Remaining: 20' 836 836 837 837 * Named interpolation: This mode is selected by passing the optional … … 845 845 846 846 fmts = ngettext('Total: %(total)s, there is %(count)s object', 847 'there are %(count)s of a total of %(total)s objects', d.count);847 'there are %(count)s of a total of %(total)s objects', d.count); 848 848 s = interpolate(fmts, d, true); 849 849
