how to localize this
-
please if anyone can help me with this:
i need to localize a specific string that hasn’t been assigned to be localized
here is the string colored in `red and the code attached`function widget( $args, $instance ) {
if ( ! isset( $args[‘widget_id’] ) ) $args[‘widget_id’] = null;
extract( $args, EXTR_SKIP );echo $before_widget;
$title = apply_filters( ‘widget_title’, $instance[‘title’], $instance, $this->id_base);
if( $title ) echo $before_title . $title . $after_title;$comments = get_comments( apply_filters( ‘widget_comments_args’, array( ‘number’ => intval( $instance[‘count’]),
‘status’ => ‘approve’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘post’ ) ) );if(is_array($comments))
{
$output = ‘<div class=”Recent_comments”>’;
$output .= ‘- ‘;
- ‘;
$output .='<p><i class=”fa-user”></i> ‘.strip_tags($comment->comment_author) .
‘ commented on ‘. get_the_title($comment->comment_post_ID) .’</p>’;
$output .= ‘<span class=”date”><i class=”fa-calendar”></i> ‘. $date->format(‘F j, Y’) .'</span>’;
$output .= ‘
foreach($comments as $comment)
{
$url = get_permalink($comment->comment_post_ID).’#comment-‘.$comment->comment_ID .'” title=”‘.
$comment->comment_author .’ | ‘.get_the_title($comment->comment_post_ID);
$date = new DateTime($comment->comment_date);
$output .= ‘‘;
}
$output .= ‘‘;
$output .= ‘</div>’.”\n”;
}
echo $output;echo $after_widget;
} - ‘;
- The topic ‘how to localize this’ is closed to new replies.