Changeset 5849
- Timestamp:
- 08/11/07 05:51:02 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/views/i18n.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r5848 r5849 258 258 Zach Thompson <zthompson47@gmail.com> 259 259 tibimicu@gmax.net 260 tobias@neuyork.de 260 261 Tom Tobin 261 262 Joe Topjian <http://joe.terrarum.net/geek/code/python/django/> django/trunk/django/views/i18n.py
r5091 r5849 70 70 function interpolate(fmt, obj, named) { 71 71 if (named) { 72 return fmt.replace(/%\(\w+\)s/ , function(match){return String(obj[match.slice(2,-2)])});72 return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])}); 73 73 } else { 74 return fmt.replace(/%s/ , function(match){return String(obj.shift())});74 return fmt.replace(/%s/g, function(match){return String(obj.shift())}); 75 75 } 76 76 }
