When using 'add link to nodetype' the content type isn't translated by hansel even when it is in Drupal.
eg. 'home > news' should be 'home > nieuws' in dutch

I've fixed this with using the t function on 2 lines. Since I'm not really sure if this is the correct approach I will just post my patch here.

CommentFileSizeAuthor
add-link-to-nodetype-translatable.patch455 bytesFreekyMage

Comments

bertboerland’s picture

patch looks clean to me and t() is indeed needed there. Mau, could you verify this? Thanks Marijn for the patch.

mauritsl’s picture

Status: Needs review » Fixed

Commited to GIT. Thanks!

I only added the t() around $title. $path shouldn't be translated.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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