Change translate name to tainacan-theme.

This commit is contained in:
Fabiano Alencar 2018-03-01 12:20:06 -03:00
parent 84f8038249
commit 0998fd58b0
8 changed files with 16 additions and 23 deletions

View File

@ -21,7 +21,7 @@ if (
<header class="mb-4 border-bottom">
<?php if ($isAuthor === true): ?>
<h1>
<?php _e('Posts by: ', 'tainacan'); echo get_the_author_meta( 'display_name' ); ?>
<?php _e('Posts by: ', 'tainacan-theme'); echo get_the_author_meta( 'display_name' ); ?>
</h1>
<?php endif; ?>
</header>

View File

@ -7,7 +7,7 @@
<div id="content" role="main">
<header class="mb-4 border-bottom">
<h1>
<?php _e('Category: ', 'tainacan'); echo single_cat_title(); ?>
<?php _e('Category: ', 'tainacan-theme'); echo single_cat_title(); ?>
</h1>
</header>
<?php get_template_part('template-parts/index-loop'); ?>

View File

@ -14,8 +14,8 @@ if ( ! function_exists( 'pagination_bst4' ) ) {
'total' => $wp_query->max_num_pages,
'mid_size' => 5,
'prev_next' => True,
'prev_text' => __('< Newer', 'tainacan'),
'next_text' => __('Older >', 'tainacan'),
'prev_text' => __('< Newer', 'tainacan-theme'),
'next_text' => __('Older >', 'tainacan-theme'),
'type' => 'list'
) );
$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination'>", $paginate_links );

View File

@ -6,7 +6,7 @@
<div class="col-sm">
<div id="content" role="main">
<header class="mb-4 border-bottom">
<h1><?php _e('Search Results for', 'tainacan'); ?> &ldquo;<?php the_search_query(); ?>&rdquo;</h1>
<h1><?php _e('Search Results for', 'tainacan-theme'); ?> &ldquo;<?php the_search_query(); ?>&rdquo;</h1>
</header>
<?php get_template_part('template-parts/search-results'); ?>
</div><!-- /#content -->

View File

@ -3,13 +3,14 @@
<div class="container-fluid mt-5">
<div class="row">
<div class="col-sm">
<div class="col-sm-9">
<div id="content" role="main">
<?php get_template_part('template-parts/single-post', get_post_format()); ?>
</div><!-- /#content -->
</div>
<div class="col-sm-3">
<?php get_sidebar(); ?>
</div>
</div><!-- /.row -->
</div><!-- /.container-fluid -->

View File

@ -12,7 +12,7 @@
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.', 'tainacan'); ?></p>
<p><?php _e('Sorry, no posts matched your criteria.', 'tainacan-theme'); ?></p>
<?php endif; ?>
</div>

View File

@ -7,6 +7,6 @@
</article>
<?php endwhile; else: ?>
<div class="alert alert-warning">
<i class="material-icons">warning</i> <?php _e('Sorry, your search yielded no results.', 'tainacan'); ?>
<i class="material-icons">warning</i> <?php _e('Sorry, your search yielded no results.', 'tainacan-theme'); ?>
</div>
<?php endif; ?>

View File

@ -6,9 +6,9 @@
</h1>
<div class="header-meta text-muted">
<?php
_e('By ', 'tainacan');
_e('By ', 'tainacan-theme');
the_author_posts_link();
_e(' on ', 'tainacan');
_e(' on ', 'tainacan-theme');
tainacan_post_date();
?>
</div>
@ -22,14 +22,14 @@
</main>
<footer class="mt-5 border-top pt-3">
<p>
<?php _e('Category: ', 'tainacan'); the_category(', ') ?> | <?php if (has_tag()) { the_tags('Tags: ', ', '); ?> | <?php } _e('Comments', 'tainacan'); ?>: <?php comments_popup_link(__('None', 'tainacan'), '1', '%'); ?>
<?php _e('Category: ', 'tainacan-theme'); the_category(', ') ?> | <?php if (has_tag()) { the_tags('Tags: ', ', '); ?> | <?php } _e('Comments', 'tainacan-theme'); ?>: <?php comments_popup_link(__('None', 'tainacan-theme'), '1', '%'); ?>
</p>
<div class="author-bio media border-top pt-3">
<?php get_avatar(); ?>
<div class="media-body ml-3">
<p class="h4 author-name"><?php the_author_posts_link(); ?></p>
<p class="author-description"><?php the_author_description(); ?></p>
<p class="author-other-posts mb-0 border-top pt-3"><?php _e('Other posts by ', 'tainacan'); the_author_posts_link(); ?></p>
<p class="author-other-posts mb-0 border-top pt-3"><?php _e('Other posts by ', 'tainacan-theme'); the_author_posts_link(); ?></p>
</div>
</div><!-- /.author-bio -->
</footer>
@ -43,11 +43,3 @@
exit;
endif;
?>
<div class="row mt-5 border-top pt-3">
<div class="col">
<?php previous_post_link('%link', '<i class="fas fa-fw fa-arrow-left"></i> Previous post: '.'%title'); ?>
</div>
<div class="col text-right">
<?php next_post_link('%link', 'Next post: '.'%title' . ' <i class="fas fa-fw fa-arrow-right"></i>'); ?>
</div>
</div>