| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/glaza/includes/ |
Upload File : |
<?php
/**
* @param $data
*
* @return array
* default translation data
*/
if ( ! function_exists( 'glaza_theme_translation_default' ) ) {
function glaza_theme_translation_default( $data = array() ) {
$default = array(
'ago' => esc_html__( '%s ago', 'glaza' ),
'by' => esc_html__( 'by:', 'glaza' ),
'add_comment' => esc_html__( 'Add comment', 'glaza' ),
'comment' => esc_html__( '1 Comment', 'glaza' ),
'comments' => esc_html__( '%s Comments', 'glaza' ),
'no_comment' => esc_html__( 'No comment', 'glaza' ),
'old_comment' => esc_html__( '← Older Comments', 'glaza' ),
'new_comment' => esc_html__( 'Newer Comments →', 'glaza' ),
'comment_closed' => esc_html__( 'Comments are closed.', 'glaza' ),
'leave_a_reply' => esc_html__( 'Leave a reply', 'glaza' ),
'show_comment' => esc_html__( 'Show 1 comment', 'glaza' ),
'show_comments' => esc_html__( 'Show %s comments', 'glaza' ),
'in' => esc_html__( 'in', 'glaza' ),
'view' => esc_html__( '1 View', 'glaza' ),
'views' => esc_html__( '%s Views', 'glaza' ),
'load_more' => esc_html__( 'Load More', 'glaza' ),
'name' => esc_html__( 'Name', 'glaza' ),
'email' => esc_html__( 'Email', 'glaza' ),
'website' => esc_html__( 'Website', 'glaza' ),
'write_comment' => esc_html__( 'Write your comment here', 'glaza' ),
'search' => esc_html__( 'Search', 'glaza' ),
'search_for' => esc_html__( 'Search for:', 'glaza' ),
'shares' => esc_html__( 'Shares:', 'glaza' ),
'tags' => esc_html__( 'Tags:', 'glaza' ),
'source' => esc_html__( 'Source:', 'glaza' ),
'via' => esc_html__( 'Via:', 'glaza' ),
'next' => esc_html__( 'Next', 'glaza' ),
'previous' => esc_html__( 'Previous', 'glaza' ),
'author' => esc_html__( 'Author:', 'glaza' ),
'all_posts_by' => esc_html__( 'All posts by:', 'glaza' ),
'search_result_for' => esc_html__( 'Search Results for:', 'glaza' ),
'newer_posts' => esc_html__( 'Newer posts', 'glaza' ),
'older_posts' => esc_html__( 'Older posts', 'glaza' ),
'nothing_found' => esc_html__( 'Nothing Found', 'glaza' ),
'search_result' => esc_html__( 'Search Results for: %s', 'glaza' ),
'pages' => esc_html__( 'Pages:', 'glaza' ),
'return_home' => esc_html__( 'Return to Home', 'glaza' ),
'title_404' => esc_html__( 'Oops! That page can’t be found.', 'glaza' ),
'content_404' => esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'glaza' ),
'shop_the_post' => esc_attr__( 'Shop The Post', 'glaza' ),
'review_overview' => esc_html__( 'Review Overview', 'glaza' ),
'summary' => esc_html__( 'Summary', 'glaza' ),
'cons' => esc_html__( 'The Cons', 'glaza' ),
'pros' => esc_html__( 'The Pros', 'glaza' ),
'all' => esc_html__( 'All', 'glaza' ),
'view_cart' => esc_html__( 'View your shopping cart', 'glaza' ),
'featured' => esc_html__( 'featured', 'glaza' ),
'all_times' => esc_html__( 'all times', 'glaza' ),
);
$data = array_merge( $data, $default );
return $data;
}
}
add_filter( 'glaza_translation_data', 'glaza_theme_translation_default', 10 );
/**
* @param null $text
*
* @return bool
* fallback without install plugin
*
*/
if ( ! function_exists( 'glaza_translate' ) ) {
function glaza_translate( $text = null ) {
$translation_data = glaza_theme_translation_default();
if ( isset( $translation_data[ $text ] ) ) {
return $translation_data[ $text ];
};
return false;
}
}