django/django — pull request #142 by matthewwithanm (2012-04-26 01:18:13+00:00)
Title: i18n JavaScript Fixes

The primary purpose of this patch is to get rid of the `catalog` and `formats` globals (which seem like they have a high chance of being overridden by other JS). 078a36a0 uses the module pattern (immediately invoked functions) to address the issue.

I also noticed that these two variables are arrays, though they're used as dictionaries, so I made them plain objects in 5b0cdcbb.

Finally, 257e09a6 corrects a small mistake in `get_format` (the referencing of an undefined variable).