Messaggi da inglese a italiano

This commit is contained in:
ulaulaman 2020-07-08 16:05:18 +02:00
parent e89d6d3480
commit 6994e57929
2 changed files with 7 additions and 7 deletions

View File

@ -80,8 +80,8 @@ class Ajax_Filter_Posts {
$script_variables = [
'nonce' => wp_create_nonce( 'filter-posts-nonce' ),
'ajaxUrl' => admin_url( 'admin-ajax.php' ),
'timeoutMessage' => __('It took to long the get the posts. Please reload the page and try again.', 'ajax-filter-posts'),
'serverErrorMessage' => __('Got no response. Please reload the page and try again.', 'ajax-filter-posts'),
'timeoutMessage' => __('Troppo tempo per caricare i contenuti. Per facore ricarica e prova di nuovo.', 'ajax-filter-posts'),
'serverErrorMessage' => __('Nessuna risposta. Per favore ricarica e prova di nuovo.', 'ajax-filter-posts'),
];
// IF WPML is installed add language variable to set variable later during the query
@ -186,7 +186,7 @@ class Ajax_Filter_Posts {
if ($response) {
wp_send_json_success($response);
} else {
wp_send_json_error(__('Oops, something went wrong. Please reload the page and try again.', 'ajax-filter-posts'));
wp_send_json_error(__('Qualcosa è andato storto. Per favore ricarica e prova di nuovo.', 'ajax-filter-posts'));
}
die();
}
@ -311,7 +311,7 @@ class Ajax_Filter_Posts {
}
if ( !file_exists( $template ) ) {
_doing_it_wrong( __FUNCTION__, sprintf( '<code>%s</code> does not exist.', $template ), '4.6.0' );
_doing_it_wrong( __FUNCTION__, sprintf( '<code>%s</code> non esiste.', $template ), '4.6.0' );
return;
}

View File

@ -2,9 +2,9 @@
<div class="ajax-posts__status" style="display:none;"></div>
<?php if ( $query->have_posts() && $query->post_count > 1) : ?>
<button class="js-toggle-filters ajax-posts__toggle-filter">
<span class="ajax-posts__filter-recipes-text">+ <?php printf( __('Filter %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__show-recipes-text">+ <?php printf( __('Show %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__hide-filters-text">- <?= __('Hide filters', 'ajax-filter-posts'); ?></span>
<span class="ajax-posts__filter-recipes-text">+ <?php printf( __('Mostra filtri %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__show-recipes-text">+ <?php printf( __('Mostra %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__hide-filters-text">- <?= __('Nascondi filtri', 'ajax-filter-posts'); ?></span>
</button>
<?php endif; ?>
<div class="ajax-posts__view">