• Hi.

    There is few phrases in includes/bp-wall-filters.php which aren’t translated yet – function bp_wall_input_filter, starting at line 89

    // It’s mentioning one person
    if($len == 1) {
    $user_id = $displayed_user = bp_core_get_core_userdata( (int) $uids[0] );
    $user_url = ‘domain.'”>’.$loggedin_user->fullname.’‘;
    $displayed_user_url = ‘@’.$displayed_user->user_login.’‘;

    $mentions_action = ” mentioned “. $displayed_user_url;
    }

    // It’s mentioning multiple people
    elseif($len > 1)
    {
    $user_url = ‘domain.'”>’.$loggedin_user->fullname.’‘;
    $un = ‘@’.join(‘,@’, $usernames);
    $mentions_action = $user_url. ” mentioned ” . $len . ” people”;
    }

    // If it’s a forum post let’s define some forum topic text
    if ( $bp->current_action == ‘forum’ )
    {
    $new_action = str_replace( ‘ replied to the forum topic’, $mentions_action . ‘ in the forum topic’, $activity->action);
    }

    // If it’s a plublic message let’s define that text as well
    elseif ( $len > 0 ) {
    $new_action = $user_url . $mentions_action .’ in a public message’;
    }

    // Otherwise it’s a normal status update
    else {
    $new_action = false;
    }

    }
    }

    ////////////////////////////////////////////////////////////////////

    So i have replaced this to :

    ////////////////////////////////////////////////////////////////////

    // It’s mentioning one person
    if($len == 1) {
    $user_id = $displayed_user = bp_core_get_core_userdata( (int) $uids[0] );
    $user_url = ‘domain.'”>’.$loggedin_user->fullname.’‘;
    $displayed_user_url = ‘@’.$displayed_user->user_login.’‘;

    $mentions_action = __(” mentioned”, “bp-wall”). $displayed_user_url;
    }

    // It’s mentioning multiple people
    elseif($len > 1)
    {
    $user_url = ‘domain.'”>’.$loggedin_user->fullname.’‘;
    $un = ‘@’.join(‘,@’, $usernames);
    $mentions_action = $user_url. __(” mentioned”, “bp-wall”) . $len . __(” people”, “bp-wall”);
    }

    // If it’s a forum post let’s define some forum topic text
    if ( $bp->current_action == ‘forum’ )
    {
    $new_action = str_replace( __(” replied to the forum topic”, “bp-wall”), $mentions_action . __(” in the forum topic”, “bp-wall”), $activity->action);
    }

    // If it’s a plublic message let’s define that text as well
    elseif ( $len > 0 ) {
    $new_action = $user_url . $mentions_action . __(” in a public message”, “bp-wall”);
    }

    // Otherwise it’s a normal status update
    else {
    $new_action = false;
    }

    }
    }

    //////////////////////////////////////////////////////////////

    Then i had to rescan all folder in buddypress-wall.po with poedit and all works fine.

    If it is not a problem i would ask You to add this translations permanently to plugin.

    Especially because these texts are not changing on the wall after changing the translation files. If I would forget about and make an actualization someone could insert permanently english phrase on wall. That could look unprofessional.

    Hope that won’t be a trouble for You.

    Thanks for this great plugin!

    https://www.ads-software.com/plugins/buddypress-wall/

  • The topic ‘function bp_wall_input_filter translation files’ is closed to new replies.