File "WordPressTranslation.php"
Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/Framework/Translation/WordPress/WordPressTranslation.php
File size: 611 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Nextend\Framework\Translation\WordPress;
use Nextend\Framework\Translation\AbstractTranslation;
class WordPressTranslation extends AbstractTranslation {
public function __construct() {
if (defined('QTRANSLATE_FILE')) {
add_filter('nextend_translation', 'qtranxf_useCurrentLanguageIfNotFoundShowAvailable', 0);
}
}
public function _($text) {
return apply_filters('nextend_translation', $text);
}
public function getLocale() {
return is_admin() && function_exists('get_user_locale') ? get_user_locale() : get_locale();
}
}