Переглянути джерело

Added `_e()` around some non translated text. Fixed some bugs where translated text was been echoed inside a function argument rather than being passed to the function.

David Hancock 14 роки тому
батько
коміт
aee8d4e2ee
1 змінених файлів з 6 додано та 6 видалено
  1. 6 6
      index.php

+ 6 - 6
index.php

@@ -17,13 +17,13 @@
 						</header> <!-- end article header -->
 					
 						<section class="post_content clearfix">
-							<?php the_content(_e('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
+							<?php the_content(__('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
 					
 						</section> <!-- end article section -->
 						
 						<footer>
 			
-							<p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
+							<p class="tags"><?php the_tags(__('<span class="tags-title">Tags:</span> ', 'bonestheme'), ', ', ''); ?></p>
 							
 						</footer> <!-- end article footer -->
 					
@@ -40,8 +40,8 @@
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
 							<ul class="clearfix">
-								<li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
-								<li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
+								<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+								<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
 							</ul>
 						</nav>
 					<?php } ?>		
@@ -50,10 +50,10 @@
 					
 					<article id="post-not-found">
 					    <header>
-					    	<h1>Not Found</h1>
+					    	<h1><?php _e('Not Found', 'bonestheme'); ?></h1>
 					    </header>
 					    <section class="post_content">
-					    	<p>Sorry, but the requested resource was not found on this site.</p>
+					    	<p><?php _e('Sorry, but the requested resource was not found on this site.', 'bonestheme'); ?></p>
 					    </section>
 					    <footer>
 					    </footer>