Closed (duplicate)
Project:
Custom Breadcrumbs
Version:
6.x-1.3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 15:27 UTC
Updated:
2 Nov 2008 at 12:55 UTC
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!