On a Sobolev-type inequality related to the weighted p-Laplace operator