translate timeperiods and check_commands in services templates