Move translator to separate file

Signed-off-by: Michael Buesch <m@bues.ch>