Split off translations code into separate .pro file

This is required to resolve issues with detection of configuration flags.