I am trying to change one of my modules (daily) to store revisions in its database table. For this, I have changed the nid primary key in the daily table to vid (version-id).
When a node is deleted, I want to remove all old revision records in the daily table belonging to it. But the $node object does not contain the vid's of old revisions, and the node_revisions table is cleared before the node_invoke($node,'delete') .
I am currently working on a multilingual Web Site.
I would like to know if there is a way (code question) to change the interface translation for anonymous user.
I have taken a look to the locale.module code, but I can not figure how to use it to make interface changed for anonymous user. I am abble to find user browser default language or add a link that allow the user to change language, I can compare the language against locale to see if it is available and I can save his configuration in a cookie. But I am unable to change interface translation !