use translations when not in debug mode

In production environment (in case of settings.DEBUG == False), translations are not used because X-Accel-Redirect header value always indicates the path for project's original language.

I've not tested this yet because I have no nginx environment, but it should work.