The board of supervisors may provide for the payment of wages and pay such wages from the treasury of such county to the wards for the work they do, the sums earned to be paid in reparation, or to the parents or dependents of the ward, or to the ward himself, in such manner and in such proportions as the court directs.