Path : /home/vishqocm/vishalwebtech.in/blog/wp-content/themes/katerio/functions/
File Upload :
Current File : /home/vishqocm/vishalwebtech.in///blog/wp-content/themes/katerio/functions/translations.php

<?php
/**
 * Theme Translations for deus plugins
 *
 * @package Katerio
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/*
--------------------------------------------------------------------------------
* Get the translated text
* ------------------------------------------------------------------------------
*/
if ( ! function_exists( 'th90_translate' ) ) {

	function th90_translate( $text ) {

		$default_text  = th90_texts_translation();

		if ( array_key_exists( $text, $default_text ) ) {
			return $default_text[ $text ];
		} else {
			return $text;
		}
	}
}


/*
--------------------------------------------------------------------------------
* Print the translated text
* ------------------------------------------------------------------------------
*/
if( ! function_exists( 'th90_translate_p' )){

	function th90_translate_p( $text ){
		echo th90_translate( $text );
	}

}

/*
--------------------------------------------------------------------------------
* Translations texts
* ------------------------------------------------------------------------------
*/
if ( ! function_exists( 'th90_texts_translation' ) ) {

	function th90_texts_translation() {
		return array(
			'Fans'        => esc_html__('Fans', 'katerio'),
			'Followers'   => esc_html__('Followers', 'katerio'),
			'Subscribers' => esc_html__('Subscribers', 'katerio'),
			'Share' => esc_html__('Share', 'katerio'),
			'Send' => esc_html__('Send', 'katerio'),
			'Tweet' => esc_html__('Tweet', 'katerio'),
			'Pin' => esc_html__('Pin', 'katerio'),
		);
	}
}