If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I’ve found in the class-breadcrumb.php this line of code:
echo '<p class="breadcrumb"><span class="breadcrumb_info">'.__('You are here:','avia_framework').'</span> <a href="'.get_bloginfo('url').'">';<br />
How can I make the part “You are here” ready for translation with the theme’s .po-file, so that – hopefully – the WPML-plugin translate it right, too, when I change my languages between English and German?
in your .po file adding the following should do the trick, though I haven’t tested it:
msgid "You are here:"
msgstr "Ihr seid hier:"
Thanks, but this has no effect :-(
Need I change this part of text within the class-breadcrumb.php itself with some “code” (gettext)?
Basically you can use:
to call the translated text only – you need to echo/output it or you can save the text string in a variable, etc.
or you can use:
to echo/output the text directly. I don’t see a reason to use sprintf/printf with this text string.
The topic ‘Making breadcrumbs ready for translation?’ is closed to new replies.