To begin, Chasles' theorem states that translational motion and rotational motion obey the law of superposition. Therefore, you can compute the rotation and translation separately and add them together. The best way to keep track of what you are doing is to draw a good picture, define reference frames and system parameters.
From your existing code, it apears that you are defining the position of point P based on a rotation angle, Theta. In the figure I have drawn, theta is measured relative to some body axis.
Now I am assuming that you want to add translation to this, so the location of the body axis is moving with respect to some other axis (let's call it the Inertial axis). To get the position of P in the inertial axis, you add the position in the Body axis (vector Pn) to the position of the body axis reference center in the inertial axis (vector Rc).
Since we are dealing with a point, the position Pn can be defined in body axes based on your rotational equations, and the position of the Body reference frame (Rc) can be defined based on the translational dynamics. You simply add Rc + Pn to get the position Rn in the Inertial fame.
Note that this vector addition must be performed using the same basis vectors on each vector. If the reference frames are defined such that the X-body axis is aligned with the X-inertial axis (likewise in the y-axis, as in my drawing) then this is achieved and you may perform the addition.