translate java and xml resources