Permalink
Browse files

Don't use function for theme's textdomain. Hardcode it.

  • Loading branch information...
1 parent e0b3f6a commit d5966244f13b7096c979512022a944c0ced2caf4 @justintadlock committed Aug 24, 2012
Showing with 53 additions and 53 deletions.
  1. +2 −2 404.php
  2. +3 −3 archive.php
  3. +5 −5 attachment.php
  4. +1 −1 comment.php
  5. +5 −5 comments.php
  6. +1 −1 header.php
  7. +3 −3 home.php
  8. +3 −3 index.php
  9. +1 −1 loop-error.php
  10. +5 −5 loop-meta.php
  11. +5 −5 loop-nav.php
  12. +5 −5 page-template-archives.php
  13. +2 −2 page-template-bookmarks.php
  14. +2 −2 page.php
  15. +4 −4 post.php
  16. +1 −1 search.php
  17. +2 −2 searchform.php
  18. +3 −3 singular.php
View
@@ -24,12 +24,12 @@
<div id="post-0" class="<?php hybrid_entry_class(); ?>">
- <h1 class="error-404-title entry-title"><?php _e( 'Not Found', hybrid_get_textdomain() ); ?></h1>
+ <h1 class="error-404-title entry-title"><?php _e( 'Not Found', 'trending' ); ?></h1>
<div class="entry-content">
<p>
- <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', hybrid_get_textdomain() ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
+ <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'trending' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>
<?php get_search_form(); // Loads the searchform.php template. ?>
View
@@ -34,14 +34,14 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
@@ -31,7 +31,7 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
- <?php if ( wp_attachment_is_image( get_the_ID() ) ) echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . sprintf( __( 'Sizes: %s', hybrid_get_textdomain() ), trending_get_image_size_links() ) . '</div>' ); ?>
+ <?php if ( wp_attachment_is_image( get_the_ID() ) ) echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . sprintf( __( 'Sizes: %s', 'trending' ), trending_get_image_size_links() ) . '</div>' ); ?>
<div class="entry-content">
<?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
@@ -45,19 +45,19 @@
<?php hybrid_attachment(); // Function for handling non-image attachments. ?>
<p class="download">
- <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%s";', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%s";', 'trending' ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p><!-- .download -->
<?php endif; ?>
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php if ( wp_attachment_is_image( get_the_ID() ) ) {
$gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8" numberposts="16" orderby="rand"]', $post->post_parent, get_the_ID() ) );
if ( !empty( $gallery ) )
- echo '<h3>' . __( 'Gallery', hybrid_get_textdomain() ) . '</h3>' . $gallery;
+ echo '<h3>' . __( 'Gallery', 'trending' ) . '</h3>' . $gallery;
}
?>
View
@@ -27,7 +27,7 @@
<div class="comment-content comment-text">
<?php if ( '0' == $comment->comment_approved ) : ?>
- <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', hybrid_get_textdomain() ) . '</p>' ); ?>
+ <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'trending' ) . '</p>' ); ?>
<?php endif; ?>
<?php comment_text( $comment->comment_ID ); ?>
View
@@ -11,7 +11,7 @@
/* Kill the page if trying to access this template directly. */
if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
- die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );
+ die( __( 'Please do not load this page directly. Thanks!', 'trending' ) );
/* If a post password is required or no comments are given and comments/pings are closed, return. */
if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
@@ -26,13 +26,13 @@
<?php if ( have_comments() ) : ?>
- <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>
+ <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'trending' ), __( 'One Response', 'trending' ), __( '% Responses', 'trending' ) ); ?></h3>
<?php do_atomic( 'before_comment_list' );// trending_before_comment_list ?>
<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="comments-nav">
- <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', hybrid_get_textdomain() ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
+ <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'trending' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
<?php previous_comments_link(); ?>
<?php next_comments_link(); ?>
</div><!-- .comments-nav -->
@@ -49,13 +49,13 @@
<?php if ( pings_open() && !comments_open() ) : ?>
<p class="comments-closed pings-open">
- <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), get_trackback_url() ); ?>
+ <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'trending' ), get_trackback_url() ); ?>
</p><!-- .comments-closed .pings-open -->
<?php elseif ( !comments_open() ) : ?>
<p class="comments-closed">
- <?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'Comments are closed.', 'trending' ); ?>
</p><!-- .comments-closed -->
<?php endif; ?>
View
@@ -65,6 +65,6 @@
<?php do_atomic( 'open_main' ); // trending_open_main ?>
- <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', hybrid_get_textdomain() ) ) ); ?>
+ <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', 'trending' ) ) ); ?>
<?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
View
@@ -40,14 +40,14 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
@@ -33,14 +33,14 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
@@ -12,7 +12,7 @@
<div class="entry-content">
- <p><?php _e( 'Apologies, but no entries were found.', hybrid_get_textdomain() ); ?></p>
+ <p><?php _e( 'Apologies, but no entries were found.', 'trending' ); ?></p>
</div><!-- .entry-content -->
View
@@ -88,7 +88,7 @@
<div class="loop-description">
<p>
- <?php printf( __( 'You are browsing the search results for "%s"', hybrid_get_textdomain() ), esc_attr( get_search_query() ) ); ?>
+ <?php printf( __( 'You are browsing the search results for "%s"', 'trending' ), esc_attr( get_search_query() ) ); ?>
</p>
</div><!-- .loop-description -->
@@ -97,11 +97,11 @@
<?php elseif ( is_date() ) : ?>
<div class="loop-meta">
- <h1 class="loop-title"><?php _e( 'Archives by date', hybrid_get_textdomain() ); ?></h1>
+ <h1 class="loop-title"><?php _e( 'Archives by date', 'trending' ); ?></h1>
<div class="loop-description">
<p>
- <?php _e( 'You are browsing the site archives by date.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'You are browsing the site archives by date.', 'trending' ); ?>
</p>
</div><!-- .loop-description -->
@@ -125,11 +125,11 @@
<div class="loop-meta">
- <h1 class="loop-title"><?php _e( 'Archives', hybrid_get_textdomain() ); ?></h1>
+ <h1 class="loop-title"><?php _e( 'Archives', 'trending' ); ?></h1>
<div class="loop-description">
<p>
- <?php _e( 'You are browsing the site archives.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'You are browsing the site archives.', 'trending' ); ?>
</p>
</div><!-- .loop-description -->
View
@@ -13,20 +13,20 @@
<?php if ( is_attachment() ) : ?>
<div class="loop-nav">
- <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Return to entry', hybrid_get_textdomain() ) . '</span>' ); ?>
+ <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Return to entry', 'trending' ) . '</span>' ); ?>
</div><!-- .loop-nav -->
<?php elseif ( is_singular( 'post' ) ) : ?>
<div class="loop-nav">
- <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ) . '</span>' ); ?>
- <?php next_post_link( '%link', '<span class="next">' . __( 'Next <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</span>' ); ?>
+ <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>' ); ?>
+ <?php next_post_link( '%link', '<span class="next">' . __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) . '</span>' ); ?>
</div><!-- .loop-nav -->
- <?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination( array( 'prev_text' => __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ), 'next_text' => __( 'Next <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ) ); ?>
+ <?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination( array( 'prev_text' => __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ), 'next_text' => __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) ) ); ?>
- <?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', hybrid_get_textdomain() ) . '</span>' ) ) ) : ?>
+ <?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'trending' ) . '</span>' ) ) ) : ?>
<div class="loop-nav">
<?php echo $nav; ?>
View
@@ -31,21 +31,21 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
- <h2><?php _e( 'Archives by category', hybrid_get_textdomain() ); ?></h2>
+ <h2><?php _e( 'Archives by category', 'trending' ); ?></h2>
<ul class="xoxo category-archives">
- <?php wp_list_categories( array( 'feed' => __( 'RSS', hybrid_get_textdomain() ), 'show_count' => true, 'use_desc_for_title' => false, 'title_li' => false ) ); ?>
+ <?php wp_list_categories( array( 'feed' => __( 'RSS', 'trending' ), 'show_count' => true, 'use_desc_for_title' => false, 'title_li' => false ) ); ?>
</ul><!-- .xoxo .category-archives -->
- <h2><?php _e( 'Archives by month', hybrid_get_textdomain() ); ?></h2>
+ <h2><?php _e( 'Archives by month', 'trending' ); ?></h2>
<ul class="xoxo monthly-archives">
<?php wp_get_archives( array( 'show_post_count' => true, 'type' => 'monthly' ) ); ?>
</ul><!-- .xoxo .monthly-archives -->
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
@@ -31,7 +31,7 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
<?php $args = array(
'title_li' => false,
@@ -47,7 +47,7 @@
); ?>
<?php wp_list_bookmarks( $args ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
View
@@ -32,8 +32,8 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
Oops, something went wrong.

0 comments on commit d596624

Please sign in to comment.