File: /var/www/html/wp-content/plugins/content-egg/application/Translator.php
<?php
namespace ContentEgg\application;
defined('\ABSPATH') || exit;
use ContentEgg\application\admin\GeneralConfig;
/**
* Translator class file
*
* @author keywordrush.com <support@keywordrush.com>
* @link https://www.keywordrush.com
* @copyright Copyright © 2025 keywordrush.com
*/
class Translator
{
public static function __($str)
{
return self::translate($str);
}
public static function translate($str)
{
$texts = GeneralConfig::getInstance()->option('frontend_texts');
if (!empty($texts[$str]))
return $texts[$str];
else
return __($str, 'content-egg-tpl');
}
}