Wouldn't it be possible to use tr("%1 to %2") in both cases?