I have made this modification in function custom_breadcrumbs_nodeapi():
if (strlen($path) > 0 && $path != '<none>') {
$trail[] = l(t($title), trim($paths[$i]));
}
else {
$trail[] = check_plain(t($title));
}
Just added t() before the link is created or the text is checked.
Now if I use a token like [month] it gets translated.
Comments
Comment #1
David Lesieur commentedt() should not be used with user-entered data. To get proper multilingual support, see #173173: Multilingual support. You are encouraged to review and test the patch to help push it forward. Thanks!