added translation logic and german translation from Maximilian Heise