رفتن به مطلب

مشکل فارسی سازی


پست های پیشنهاد شده

سلام , می خوام یه قالب رو فارسی کنم , تو قسمت دیدگاههاش یه مشکلی دارم که داخل input ها مثلا برای نام نویسنده نوشته Name* و برای ایمیل و متن دیدگاه کدش به اینصورته


<?php
if (!isset($aria_req)) {
$aria_req = '';
}
$args = array('fields' => array(
'author' => '<p class="comment-form-author">' .
'<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="20"' . $aria_req . ' /></p>',
'email' => '<p class="comment-form-email">' .
'<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="20"' . $aria_req . ' /></p>'
),
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="6" aria-required="true"></textarea></p>',
'title_reply' => '',
'title_reply_to' => 'پاسخ به %s - ',
'comment_notes_before' => '',
'comment_notes_after' => '',
'label_submit' => 'ارسال دیدگاه');
comment_form($args);

function dry_theme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>

باید چیکار کنم تا داخل اینپوت ها فارسی بنویسه

لینک به ارسال

مطمين نیستم

این رو تست کنید


<?php
if (!isset($aria_req)) {
$aria_req = '';
}
$args = array('fields' => array(
'نام' => '<p class="comment-form-author">' .
'<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="20"' . $aria_req . ' /></p>',
'ایمیل' => '<p class="comment-form-email">' .
'<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="20"' . $aria_req . ' /></p>'
),
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="6" aria-required="true"></textarea></p>',
'title_reply' => '',
'title_reply_to' => 'پاسخ به %s - ',
'comment_notes_before' => '',
'comment_notes_after' => '',
'label_submit' => 'ارسال دیدگاه');
comment_form($args);

function dry_theme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>

اگر نشد

نوشته ها مربوط به این بخش نیست

  • امتیاز 2
لینک به ارسال

در کد اثری از برچسب/عنوان نیست

از این کد

به جای

comment_form($args);

استفاده کنید

  • امتیاز 1
لینک به ارسال

یه برگه تماس هم داره که فیلد ها اون از فایل فانکشن تغییر نام داده میشه ولی برای بخش دیدگاه ها اینطور نیست ؟

ویرایش شده توسط rasooul
لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...