(1) In all cases when the county attorney has engaged in the courts of another county in any suit, application, or motion, either civil or criminal, in which the state or county is a party interested, which has been transferred by change of venue from his or her county to another county, he or she shall be allowed his or her reasonable and necessary traveling and hotel expenses while so engaged, in addition to his or her regular salary.
(2) The expenses referred to in subsection (1) of this section shall be paid to him or her upon the presentation of a bill for the same, accompanied by proper vouchers, to the county board of his or her county, in like manner as provided in all other cases of claims against the county. In computing reasonable and necessary traveling expenses, the county attorney shall be allowed mileage at the rate allowed by section 81-1176, but if travel by rail or bus is economical and practical and if mileage expense may be reduced thereby, he or she shall be allowed only the actual cost of rail or bus transportation.