Relativistic extended thermodynamics from the Lagrangian view-point