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

David Lesieur’s picture

Status: Active » Closed (duplicate)

t() 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!