update django requirement to latest
move legacy translation functions closer to where they're used