simplify progress line translate code