arkadaşlar comments.php index.php den yorumları türkçe olarak değiştirdim UTF8 de. heryer tamam ama yorumlar halen ingilizce çıkmakta. 999 kere kontrol ettim denedim hala aynı bunun mantıklı açıklamasını yapacak var mı? yorumdum ? Hatta tema Ektedir.Buyrun ekledim..
örnekler :
2 Responses to “Merhaba dünya!”
Bay WordPress Says:
Mart 11th, 2008 at 18:15 e
2
admin Says:
Mart 14th, 2008 at 20:39 e
Leave a Reply
Logged in as admin. Logout »
işte kodlar :
index.php
<?php get_header(); ?>
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div><input type="text" value="Ara..." name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}" />
<input type="submit" id="searchsubmit" value="Ara" />
</div>
</form>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postdata"><SPAN class="category"><div></div><?php the_category(', ') ?>
</SPAN> <span class="comments"> <?php comments_popup_link('Yorum yok »', '1 Yorum »', '%Yorumlar »'); ?></span></div>
</div>
<div class="entry">
<?php the_content('DEVAMINI OKUYUN... »'); ?>
</div><!--/entry -->
</div><!--/post -->
<?php endwhile; ?>
<div class="page-nav"> <span class="previous-entries"><?php next_posts_link('Önceki Yazı') ?></span> <span class="next-entries"><?php previous_posts_link('Sonraki Yazı') ?></span></div><!-- /page nav -->
<?php else : ?>
<h2>Bulunamadı</h2>
<p>Üzgünüm aradığınız bulunamadı.</p>
<?php endif; ?>
</div><!--/content -->
<div align="center" id="footer">Copyright www.Cilt-bakımı.com wp
</div>
</div><!--/left-col -->
<?php get_sidebar(); ?>
<?php wp_pagenavi(); ?>
<?php get_footer(); ?>Comments.PHP <?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">Yorumları okumak için şifre giriniz.!<p>
<?php
return;
}
}
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('Yorum yok', '1 Yorum', '%Yorumlar' );?> “<?php the_title(); ?>”</h3>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> demiş ki:
<?php if ($comment->comment_approved == '0') : ?>
<em>Yorumunuz Yönetici onayı bekliyor...</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
<?php comment_text() ?>
</li>
<?php
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Yorum Kapalı.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respond">Yorum Yazın</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Lütfen<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">Giriş</a>yapmalısınız.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Giriş yaptığınız ad<a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Çıkış Yap">Çıkış »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><strong>Ad:</strong> <?php if ($req) echo "(required)"; ?></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><strong>e-Mail</strong> (will not be published) <?php if ($req) echo "(required)"; ?></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><strong>Website</strong></label></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Yorumu Gönder" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>