The court may when necessary appoint interpreters, who may be summoned in the same manner as witnesses, and shall be subject to the same penalties for disobedience.