-
Author
-
November 15, 2013 at 00:39 #6691wttribeParticipant
Hello,
I have a strange problem: main language is english. Second language is italian.
When I am in a group page the breadcrumb is something like this:
HOME / GROUPS / GROUP-NAME
both for IT and EN.
Why GROUPS is not translated to Italian? Its link is http://www.domain.com/it/groups instead of being /it/gruppi (which exists).
In this way people will go from IT to EN and do not know why.
I have wpml and buddypress multilanguage on.
how do I solve this? thanks
November 17, 2013 at 02:54 #6793SQadminKeymasterHi,
That is because breadcrumbs are displayed based on the Buddypress components which aren’t translated.You can display a minimal breadcrumb that will take your translated page names by modifying this file sweetdate/framework/functions/bredcrumb.php and replace lines 115-122 with this:
COPY CODE/* if Buddypress exists */ //if (class_exists('BP_Core_user') && !bp_is_blog_page() ) { // $trail = array_merge( $trail, breadcrumb_trail_get_buddypress_items() ); //} /* If bbPress is installed and we're on a bbPress page. */ if ( function_exists( 'is_bbpress' ) && is_bbpress() ) { $trail = array_merge( $trail, breadcrumb_trail_get_bbpress_items() ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 18, 2013 at 12:16 #6846wttribeParticipantHello,
thank you for your help!
in this case the breadcrumb is showing HOME / GRUPPI and GRUPPI is not clickable.
Plus it does not show the current group where the user is Ex. HOME / GRUPPI / HALLOWEEN PARTYIs that possibile to replicate the same as it was in english?
November 19, 2013 at 12:05 #6900SQadminKeymasterLike I said it is a minimal breadcrumb because it is not aware of the Buddypress components which are not translatable.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.