call set_language only if gui is used.