I recently needed to add a 'translate' link on a node data view, where the translate link points to 'node/xxx/translate'. I was able to do it with the global text, but then none of the permissions and other checks (e.g. are translations allowed for this content type) weren't done. This meant the link appeared regardless of the node type, the user, etc, and when clicked on often returned a 'access denied' error. Really this link needs to be provided by a views field handler.

Attached patch adds this functionality to views/modules/translation.views.inc

Cheers,
Stella

CommentFileSizeAuthor
translate_link.patch2.5 KBstella

Comments

merlinofchaos’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Status: Needs review » Patch (to be ported)

Patch does not apply to D7, so marking for porting. Committed to all D6 branches.

dawehner’s picture

Status: Patch (to be ported) » Fixed

ported and commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.