Yes, I do believe it works with non-string literals.

`gettext` is imported in base.html; django actually imports 3 functions to handle the translation, one to help out with different number contexts (`ngettext`) and then also an `interpolate` function that does string interpolation similar to python syntax https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#internationalization-in-javascript-code