Fix translation problem of legend