Ticket #12448: django_i18n.diff
File django_i18n.diff, 660 bytes (added by , 15 years ago) |
---|
-
django/django/views/i18n.py
208 208 for k, v in pdict.items(): 209 209 src.append("catalog['%s'] = [%s];\n" % (javascript_quote(k), ','.join(["''"]*(v+1)))) 210 210 for k, v in get_formats().items(): 211 src.append("catalog['%s'] = '%s';\n" % (javascript_quote(k), javascript_quote( unicode(v))))211 src.append("catalog['%s'] = '%s';\n" % (javascript_quote(k), javascript_quote(str(v)))) 212 212 src.extend(csrc) 213 213 src.append(LibFoot) 214 214 src.append(InterPolate)