Closed (outdated)
Project:
Custom Breadcrumbs
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2011 at 02:37 UTC
Updated:
7 Jul 2025 at 14:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
MGN commentedI haven't started working with i18n in D7 yet so I would appreciate it if someone could look into this.
See also #504400: home reference and i18n for instructions on the way it was done it D6 - though I think this is also in the readme.txt file.
Marking this as a support request because its not specific to custom breadcrumbs. At least we didn't have to make any changes to custom breadcrumbs to use this approach in D6. Perhaps the process has changed in D7 - if so it might be a documentation issue.
Comment #2
LTech commentedIs there any way to translate custom breadcrumbs in drupal7? It is really important for my site.
Comment #3
ranx commentedsub
Comment #4
setvik commentedi18n for D7 requires the Variable module for variable translation.
Attached patch defines the needed HOOK_variable_info and supplies it with custom_breadcrumbs_home.
May also want to consider adding a dependency on the variable module as translation won't work without it and that may be confusing to some users setting up a i18n site.
NOTE: Users will also need to go to Configuration -> Multilingual settings -> Variables
and enable the now present "Home breadcrumb text" variable that appears in that list after applying this patch and enabling the variable module.
Once that's done, the variable can be translated on the Custom Breadcrumbs settings screen.
Comment #5
setvik commentedhmm...
Actually, it would probably be good to do full integration with the variable module and expose all of custom_breadcrumbs' variables to it in hook_variable_info()...
Setting back to needs work.
Comment #6
marktheshark commentedAny news on localization of the Home bread crumb in Drupal 7 via the variables?
Thanks
Comment #7
orenroth commentedjust go to:
admin/config/regional/translate/translate
search for the string: "Home" and edit this term with desired translation.
example Hebrew translation screenshots:
screenshot1
screenshot2
Comment #8
gaborpeter commentedThank you very much, patch #4 is confirmed as working perfectly.
Comment #9
sinasalek commentedIt seems that this patch is already applied, however there is a difference
here is the code currently in the latest version.
Also it doesn't work
Comment #10
sinasalek commentedI added the following line to settings.php and still doesn't work
Comment #11
jooplaan commentedWork around for this could be:
In your themes template.php create a hook_breadcrumb function and do some preg_replace.
Comment #12
masipila commentedIn case somebody finds this old thread like I just did. This works in 7.x-2.0-beta1 without any code changes. You can define the "Home" title in different languages as follows:
1. Go to admin/config/regional/i18n/variable
- Enable "Homepage breadcrumb" checkbox
2. Go to admin/config/user-interface/custom-breadcrumbs
- Define the "Home" text for the currently active language
- There is a language switcher on the top of the page. Change the language and define the "Home" text for other languages.
Cheeres,
Markus
Comment #13
lamp5