This topic has 3 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #6691
     wttribe
    Participant

    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

    #6793
     SQadmin
    Keymaster

    Hi,
    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 solution
    #6846
     wttribe
    Participant

    Hello,
    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 PARTY

    Is that possibile to replicate the same as it was in english?

    #6900
     SQadmin
    Keymaster

    Like 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
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?