Fixes translations install dir

Only use variables after they are defined. Just move the code around.