Finite-dimensional approximations of push-forwards on locally analytic functionals and truncation of least-squares polynomials