Download & Extend

'Home' not translating in Breadcrumbs in Dutch translation.

Project:Dutch translation
Version:6.x-1.6
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

For some reason the 'Home' is not translating in the $breadcrumbs trail.

Installed Drupal 6.17 in English, and added the Dutch translation later following the instructions maybe I overlooked something?). Dutch is set as the main language of the site. English is turned off.

Similar Topics

Translation for breadcrumb phrase like "You are here" to "Sie sind hier:"
Breadcrumb translation not working!

Search queries used

site:drupal.org changing the language of breadcrumb
site:drupal.org where is breadcrumbs code?
site:drupal.org which core module is breadcrumbs in
site:drupal.org which core module breadcrumb

Emergency Fix


    <?php if ($breadcrumb && $breadcrumb != '<div class="breadcrumb"></div>'):

// Look for and replace the home with the word in your language. Substitute the 'Home_in_your_language'.

$pattern = "/Home/";
$breadcrumb = preg_replace($pattern, 'Home_in_your_language', $breadcrumb);

print
'<div id="breadcrumb">'.$breadcrumb.'</div>';
            else: print
'<div id="breadcrumb"><a href="' . $front_page . '"Home_in_your_language</a></div>';
            endif;
?>

Comments

#1

My bad. Typo in the code. Correction and tested:

  <?php if ($breadcrumb && $breadcrumb != '<div class="breadcrumb"></div>'):

// Look for and replace the the word 'Home' with the word in your language. Substitute the 'Home_in_your_language' with the native language word for 'Home' to do so.

$pattern = "/Home/";
$breadcrumb = preg_replace($pattern, 'Home_in_your_language', $breadcrumb);

print
'<div id="breadcrumb">'.$breadcrumb.'</div>';
            else: print
'<div id="breadcrumb"><a href="' . $front_page . '">Home_in_your_language</a></div>';
            endif;
?>

#2

There isn't a good dutch translaton for Home? Or do you want to call it '(t)huis' or something like that?

#3

Better have a discussion about this in at drupal.nl. There are more eyes overthere. There might also be an old discussion about this in the translation forums at drupal.nl. I think to remember that in the 4.7 days there was a different translation for 'front' which was changed after discussion.

If you want to look for an alternative, check a lot of Dutch sites and see what is used.

nobody click here