Skip to content

Commit

Permalink
fixed translation where it was __ and not _e
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemachado committed Jun 20, 2012
1 parent 87d70f1 commit 99bd5ba
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 92 deletions.
6 changes: 3 additions & 3 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@

<header class="article-header">

<h1><?php __("Epic 404 - Article Not Found", "bonestheme"); ?></h1>
<h1><?php _e("Epic 404 - Article Not Found", "bonestheme"); ?></h1>

</header> <!-- end article header -->

<section class="post-content">

<p><?php __("The article you were looking for was not found, try looking for it again!", "bonestheme"); ?></p>
<p><?php _e("The article you were looking for was not found, try looking for it again!", "bonestheme"); ?></p>

</section> <!-- end article section -->

<footer class="article-header">

<p><?php __("This is the 404.php template.", "bonestheme"); ?></p>
<p><?php _e("This is the 404.php template.", "bonestheme"); ?></p>

</footer> <!-- end article footer -->

Expand Down
12 changes: 6 additions & 6 deletions archive-custom_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

<p class="meta"><?php __("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php __("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>
<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>

</header> <!-- end article header -->

Expand All @@ -41,8 +41,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(__('&laquo; Older Entries', "bonestheme")) ?></li>
<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
<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>
</ul>
</nav>
<?php } ?>
Expand All @@ -51,13 +51,13 @@

<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php __("Oops, Post Not Found!", "bonestheme"); ?></h1>
<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
</header>
<section class="post-content">
<p><?php __("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
</section>
<footer class="article-footer">
<p><?php __("This is the error message in the custom posty type archive template.", "bonestheme"); ?></p>
<p><?php _e("This is the error message in the custom posty type archive template.", "bonestheme"); ?></p>
</footer>
</article>

Expand Down
24 changes: 12 additions & 12 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@

<?php if (is_category()) { ?>
<h1 class="archive-title h2">
<span><?php __("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
<span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
</h1>

<?php } elseif (is_tag()) { ?>
<h1 class="archive-title h2">
<span><?php __("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
<span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
</h1>

<?php } elseif (is_author()) { ?>
<h1 class="archive-title h2">
<span><?php __("Posts By:", "bonestheme"); ?></span> <?php get_the_author_meta('display_name'); ?>
<span><?php _e("Posts By:", "bonestheme"); ?></span> <?php get_the_author_meta('display_name'); ?>
</h1>

<?php } elseif (is_day()) { ?>
<h1 class="archive-title h2">
<span><?php __("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
<span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
</h1>

<?php } elseif (is_month()) { ?>
<h1 class="archive-title h2">
<span><?php __("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
<span><?php _e("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
</h1>

<?php } elseif (is_year()) { ?>
<h1 class="archive-title h2">
<span><?php __("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
<span><?php _e("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
</h1>
<?php } ?>

Expand All @@ -45,7 +45,7 @@

<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

<p class="meta"><?php __("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php __("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php __("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>

</header> <!-- end article header -->

Expand All @@ -72,8 +72,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(__('&laquo; Older Entries', "bonestheme")) ?></li>
<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
<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>
</ul>
</nav>
<?php } ?>
Expand All @@ -82,13 +82,13 @@

<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php __("Oops, Post Not Found!", "bonestheme"); ?></h1>
<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
</header>
<section class="post-content">
<p><?php __("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
</section>
<footer class="article-footer">
<p><?php __("This is the error message in the archive.php template.", "bonestheme"); ?></p>
<p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
</footer>
</article>

Expand Down
4 changes: 2 additions & 2 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

if ( post_password_required() ) { ?>
<div class="alert help">
<p class="nocomments"><?php __("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p>
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p>
</div>
<?php
return;
Expand Down Expand Up @@ -89,7 +89,7 @@
<li>
<label for="email"><?php _e("Mail", "bonestheme"); ?> <?php if ($req) echo "(required)"; ?></label>
<input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="<?php _e('Your E-Mail*', 'bonestheme'); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<small><?php __("(will not be published)", "bonestheme"); ?></small>
<small><?php _e("(will not be published)", "bonestheme"); ?></small>
</li>

<li>
Expand Down
10 changes: 5 additions & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ function bones_comments($comment, $args, $depth) {
<!-- custom gravatar call -->
<img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>&s=32" class="load-gravatar avatar avatar-48 photo" height="32" width="32" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" />
<!-- end custom gravatar call -->
<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
<?php printf(_e('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
<time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time('F jS, Y'); ?> </a></time>
<?php edit_comment_link(__('(Edit)'),' ','') ?>
<?php edit_comment_link(_e('(Edit)'),' ','') ?>
</header>
<?php if ($comment->comment_approved == '0') : ?>
<div class="alert info">
<p><?php __('Your comment is awaiting moderation.') ?></p>
<p><?php _e('Your comment is awaiting moderation.') ?></p>
</div>
<?php endif; ?>
<section class="comment_content clearfix">
Expand All @@ -148,9 +148,9 @@ function bones_comments($comment, $args, $depth) {
// Search Form
function bones_wpsearch($form) {
$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
<label class="screen-reader-text" for="s">' . __('Search for:', 'bonestheme') . '</label>
<label class="screen-reader-text" for="s">' . _e('Search for:', 'bonestheme') . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="Search the Site..." />
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
<input type="submit" id="searchsubmit" value="'. esc_attr_e('Search') .'" />
</form>';
return $form;
} // don't remove this bracket!
Expand Down
12 changes: 6 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>

<p class="meta"><?php __('Posted', 'bonestheme'); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time(get_option('date_format')); ?></time> <?php __('by', 'bonestheme'); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php __('filed under', 'bonestheme'); ?> <?php the_category(', '); ?>.</p>
<p class="meta"><?php _e('Posted', 'bonestheme'); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time(get_option('date_format')); ?></time> <?php _e('by', 'bonestheme'); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e('filed under', 'bonestheme'); ?> <?php the_category(', '); ?>.</p>

</header> <!-- end article header -->

Expand All @@ -41,8 +41,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(__('&laquo; Older Entries', 'bonestheme')) ?></li>
<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', 'bonestheme')) ?></li>
<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>
</ul>
</nav>
<?php } ?>
Expand All @@ -51,13 +51,13 @@

<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php __("Oops, Post Not Found!", "bonestheme"); ?></h1>
<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
</header>
<section class="post-content">
<p><?php __("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
</section>
<footer class="article-footer">
<p><?php __("This is the error message in the index.php template.", "bonestheme"); ?></p>
<p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
</footer>
</article>

Expand Down
66 changes: 33 additions & 33 deletions library/custom-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ function custom_post_example() {
register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
// let's now add all the options for this post type
array('labels' => array(
'name' => __('Custom Types', 'post type general name'), /* This is the Title of the Group */
'singular_name' => __('Custom Post', 'post type singular name'), /* This is the individual type */
'all_items' => __('All Custom Posts'), /* the all items menu item */
'add_new' => __('Add New', 'custom post type item'), /* The add new menu item */
'add_new_item' => __('Add New Custom Type'), /* Add New Display Title */
'edit' => __( 'Edit' ), /* Edit Dialog */
'edit_item' => __('Edit Post Types'), /* Edit Display Title */
'new_item' => __('New Post Type'), /* New Display Title */
'view_item' => __('View Post Type'), /* View Display Title */
'search_items' => __('Search Post Type'), /* Search Custom Type Title */
'not_found' => __('Nothing found in the Database.'), /* This displays if there are no entries yet */
'not_found_in_trash' => __('Nothing found in Trash'), /* This displays if there is nothing in the trash */
'name' => _e('Custom Types', 'post type general name'), /* This is the Title of the Group */
'singular_name' => _e('Custom Post', 'post type singular name'), /* This is the individual type */
'all_items' => _e('All Custom Posts'), /* the all items menu item */
'add_new' => _e('Add New', 'custom post type item'), /* The add new menu item */
'add_new_item' => _e('Add New Custom Type'), /* Add New Display Title */
'edit' => _e( 'Edit' ), /* Edit Dialog */
'edit_item' => _e('Edit Post Types'), /* Edit Display Title */
'new_item' => _e('New Post Type'), /* New Display Title */
'view_item' => _e('View Post Type'), /* View Display Title */
'search_items' => _e('Search Post Type'), /* Search Custom Type Title */
'not_found' => _e('Nothing found in the Database.'), /* This displays if there are no entries yet */
'not_found_in_trash' => _e('Nothing found in Trash'), /* This displays if there is nothing in the trash */
'parent_item_colon' => ''
), /* end of arrays */
'description' => __( 'This is the example custom post type' ), /* Custom Type Description */
'description' => _e( 'This is the example custom post type' ), /* Custom Type Description */
'public' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
Expand Down Expand Up @@ -72,16 +72,16 @@ function custom_post_example() {
array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
array('hierarchical' => true, /* if this is true it acts like categories */
'labels' => array(
'name' => __( 'Custom Categories' ), /* name of the custom taxonomy */
'singular_name' => __( 'Custom Category' ), /* single taxonomy name */
'search_items' => __( 'Search Custom Categories' ), /* search title for taxomony */
'all_items' => __( 'All Custom Categories' ), /* all title for taxonomies */
'parent_item' => __( 'Parent Custom Category' ), /* parent title for taxonomy */
'parent_item_colon' => __( 'Parent Custom Category:' ), /* parent taxonomy title */
'edit_item' => __( 'Edit Custom Category' ), /* edit custom taxonomy title */
'update_item' => __( 'Update Custom Category' ), /* update title for taxonomy */
'add_new_item' => __( 'Add New Custom Category' ), /* add new title for taxonomy */
'new_item_name' => __( 'New Custom Category Name' ) /* name title for taxonomy */
'name' => _e( 'Custom Categories' ), /* name of the custom taxonomy */
'singular_name' => _e( 'Custom Category' ), /* single taxonomy name */
'search_items' => _e( 'Search Custom Categories' ), /* search title for taxomony */
'all_items' => _e( 'All Custom Categories' ), /* all title for taxonomies */
'parent_item' => _e( 'Parent Custom Category' ), /* parent title for taxonomy */
'parent_item_colon' => _e( 'Parent Custom Category:' ), /* parent taxonomy title */
'edit_item' => _e( 'Edit Custom Category' ), /* edit custom taxonomy title */
'update_item' => _e( 'Update Custom Category' ), /* update title for taxonomy */
'add_new_item' => _e( 'Add New Custom Category' ), /* add new title for taxonomy */
'new_item_name' => _e( 'New Custom Category Name' ) /* name title for taxonomy */
),
'show_ui' => true,
'query_var' => true,
Expand All @@ -93,16 +93,16 @@ function custom_post_example() {
array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
array('hierarchical' => false, /* if this is false, it acts like tags */
'labels' => array(
'name' => __( 'Custom Tags' ), /* name of the custom taxonomy */
'singular_name' => __( 'Custom Tag' ), /* single taxonomy name */
'search_items' => __( 'Search Custom Tags' ), /* search title for taxomony */
'all_items' => __( 'All Custom Tags' ), /* all title for taxonomies */
'parent_item' => __( 'Parent Custom Tag' ), /* parent title for taxonomy */
'parent_item_colon' => __( 'Parent Custom Tag:' ), /* parent taxonomy title */
'edit_item' => __( 'Edit Custom Tag' ), /* edit custom taxonomy title */
'update_item' => __( 'Update Custom Tag' ), /* update title for taxonomy */
'add_new_item' => __( 'Add New Custom Tag' ), /* add new title for taxonomy */
'new_item_name' => __( 'New Custom Tag Name' ) /* name title for taxonomy */
'name' => _e( 'Custom Tags' ), /* name of the custom taxonomy */
'singular_name' => _e( 'Custom Tag' ), /* single taxonomy name */
'search_items' => _e( 'Search Custom Tags' ), /* search title for taxomony */
'all_items' => _e( 'All Custom Tags' ), /* all title for taxonomies */
'parent_item' => _e( 'Parent Custom Tag' ), /* parent title for taxonomy */
'parent_item_colon' => _e( 'Parent Custom Tag:' ), /* parent taxonomy title */
'edit_item' => _e( 'Edit Custom Tag' ), /* edit custom taxonomy title */
'update_item' => _e( 'Update Custom Tag' ), /* update title for taxonomy */
'add_new_item' => _e( 'Add New Custom Tag' ), /* add new title for taxonomy */
'new_item_name' => _e( 'New Custom Tag Name' ) /* name title for taxonomy */
),
'show_ui' => true,
'query_var' => true,
Expand Down
Loading

0 comments on commit 99bd5ba

Please sign in to comment.