Please add t() function to breadcrumb, in 63 string (in 6.x-1.4 version).
$trail[] = l($title, trim($paths[$i]));
change to
$trail[] = l(t($title), trim($paths[$i]));
Please fix this problem in new relises.
Thanks!
Sorry for my English =(
Please add t() function to breadcrumb, in 63 string (in 6.x-1.4 version).
$trail[] = l($title, trim($paths[$i]));
change to
$trail[] = l(t($title), trim($paths[$i]));
Please fix this problem in new relises.
Thanks!
Sorry for my English =(
Comments
Comment #1
MGN commentedSorry, I don't think that's an appropriate use of t() - its meant for static strings, not user input.
See the Drupal api page at http://api.drupal.org/api/function/t
The api page goes on to explain why.
I am marking this as "wont fix" because it doesn't satsify Drupal coding standards. If there is another way to accomplish the same thing that meets the Drupal coding standards, please let me know.
Thanks.
Comment #2
Anonymous (not verified) commentedIn core Drupal the 'Home' link translates according to the current language, but as I understand it's overwritten by Custom Breadcrumbs. So this module gives me two options: either don't have 'Home' in my breadcrumbs at all or specify a single string which will overwrite default Drupal behaviour and won't translate. Do you think it's possible to expand the module with a third option to keep the system defaults?
Comment #3
MGN commented@Edith Illyes, I think this is acceptable feature request (but please open a new request so I can better keep track of what needs to be done). But if you are using i18N I believe you can also accomplish your goal with the existing code. See #504400: home reference and i18n for details.
Comment #4
Anonymous (not verified) commentedThanks for your reply. I've just realized I'm using 2.0-beta1. Downgraded to 1.5 and it works. I'll file a bug report against beta1. Resetting this to won't fix.
Comment #5
Anonymous (not verified) commentedBug report filed against 2.x-dev at #647570: 'Home' breadcrumb i18n not working.