Added to translate texts

This commit is contained in:
Fabiano Alencar 2019-02-20 16:40:56 -03:00
parent f6193228db
commit f7b0a5e47d
2 changed files with 5 additions and 3 deletions

View File

@ -57,8 +57,8 @@ if ( ! function_exists( 'tainacan_setup' ) ) {
if ( function_exists( 'tainacan_register_view_mode' ) ) {
tainacan_register_view_mode('grid', array(
'label' => 'Thumbnail',
'description' => 'A thumbnail grid view, showing only title and thumbnail',
'label' => __( 'Thumbnail', 'tainacan-interface' ),
'description' => __( 'A thumbnail grid view, showing only title and thumbnail', 'tainacan-interface' ),
'icon' => '<span class="icon"><i class="mdi mdi-apps mdi-24px"></i></span>',
'dynamic_metadata' => false,
'template' => get_template_directory() . '/tainacan/view-mode-grid.php',

View File

@ -69,7 +69,9 @@ if ( ! function_exists( 'tainacan_pagination' ) ) :
$to_paged = max( (int) $wp_query->get( 'paged' ), 1 );
$count_max = ( $to_paged - 1 ) * $cur_posts; ?>
<div class="d-flex margin-pagination justify-content-between border-top pt-2">
<?php printf( '<div class="col-sm-3 d-none d-lg-block pl-0 view-items">Viewing Items: %d to %d from %d</div>', $count_max + 1, $count_max + $wp_query->post_count, $wp_query->found_posts ); ?>
<div class="col-sm-3 d-none d-lg-block pl-0 view-items">
<?php printf( __('Viewing Items: %d to %d from %d', 'tainacan-interface'), $count_max + 1, $count_max + $wp_query->post_count, $wp_query->found_posts ); ?>
</div>
<div class="col-sm-5 pr-md-0 justify-content-md-end">
<?php the_posts_pagination(
array(