| Server IP : 121.121.20.254 / Your IP : 216.73.217.18 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/wp-whatsapp/includes/ |
Upload File : |
<?php
namespace NTA_WhatsApp;
defined( 'ABSPATH' ) || exit;
/**
* I18n Logic
*/
class I18n {
public static function loadPluginTextdomain() {
if ( function_exists( 'determine_locale' ) ) {
$locale = determine_locale();
} else {
$locale = is_admin() ? get_user_locale() : get_locale();
}
unload_textdomain( 'wp-whatsapp' );
load_textdomain( 'wp-whatsapp', NTA_WHATSAPP_PLUGIN_DIR . '/languages/' . $locale . '.mo' );
load_plugin_textdomain( 'wp-whatsapp', false, NTA_WHATSAPP_PLUGIN_DIR . '/languages/' );
}
public static function getTranslation() {
$translation = array(
'online' => __( 'Online', 'wp-whatsapp' ),
'offline' => __( 'Offline', 'wp-whatsapp' ),
);
return $translation;
}
}