Don't use $locale in views, it's a global var