Weighted Sobolev theorem in Lebesgue spaces with variable exponent