سلام مجدد،
ببینید دوستان قالب من داره از این تابع برای نمایش تعداد دیدگاه ها و لینکش استفاده می کنه:
// Comment Number and Link
// =============================================================================
if ( ! function_exists( 'x_icon_comment_number' ) ) :
function x_icon_comment_number() {
if ( comments_open() ) {
$title = get_the_title();
$link = get_comments_link();
$number = get_comments_number();
if ( $number == 0 ) {
$comments = '';
} else {
$comments = sprintf( '<a href="%1$s" title="%2$s" class="meta-comments">%3$s</a>',
esc_url( $link ),
esc_attr( sprintf( __( 'Leave a comment on: “%s”', '__x__' ), $title ) ),
number_format_i18n( $number )
);
}
} else {
$comments = '';
}
$post_type = get_post_type();
$post_type_post = $post_type == 'post';
$no_post_meta = x_get_option( 'x_blog_enable_post_meta', '' ) == '';
if ( $post_type_post && $no_post_meta ) {
return;
} else {
echo $comments;
}
}
endif;
حالا من باید با توجه به توابع موجود در افزونه ی فارسی ساز چه تابعی رو به فایل functions.php اضافه کنم و یا همین تابع رو چجوری تغییر بدم تا اعداد به فارسی نشون داده بشه؟