Closed (works as designed)
Project:
Path Breadcrumbs
Version:
7.x-3.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2013 at 16:07 UTC
Updated:
27 Jun 2013 at 16:53 UTC
Hello,
first thanks for this great module!
But what bugs me is the fact that in 7.x-3.0 branch the home link title is NOT translated.
When I look into the code of 7.x-2.0-beta17, there clearly is:
$breadcrumb[] = l(t($home), '<front>');
But in 7.x-3.0-beta3 I see just:
$breadcrumb[] = l($home, '<front>');
So the t() function is not applied and the home link title is therefore forever only "Home" (or what I set in the module settings) no matter the language.
Comments
Comment #1
kalabroHello, @jedik!
It is not safe to translate dynamic strings with t() function.
To translate Home link you have to use i18n_variable module from http://drupal.org/project/i18n package.
Related #1645360: Do not use t() function for translating dynamic strings.
Comment #2
jedik commentedThanks for the support, kalabro, I'll look into that.