Nothing jumps out as wrong with your code. At least with regard to the cookies, I'm not really up on the translation stuff. But if the cookie isn't being set, then nothing else will work.
Are you perchance running on localhost? I believe some (all?) browsers won't accept cookies from localhost, there is a comment to that effect on the setcookie() manual page.