HEX
Server: LiteSpeed
System: Linux premium321.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: paksjuts (1314)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/paksjuts/apkhoop.com/wp-content/plugins/vibes/includes/system/class-i18n.php
<?php
/**
 * Internationalization handling
 *
 * Loads and defines the internationalization files for this plugin
 * so that it is ready for translation.
 *
 * @package System
 * @author  Pierre Lannoy <https://pierre.lannoy.fr/>.
 * @since   1.0.0
 */

namespace Vibes\System;

/**
 * Define the internationalization functionality.
 *
 * Loads and defines the internationalization files for this plugin
 * so that it is ready for translation.
 *
 * @package System
 * @author  Pierre Lannoy <https://pierre.lannoy.fr/>.
 * @since   1.0.0
 */
class I18n {

	/**
	 * Verification of internationalization extension.
	 *
	 * @return  boolean True if Intl PHP extension is loaded, false otherwise.
	 * @since 1.0.0
	 */
	public static function is_extension_loaded() {
		return ( class_exists( 'Locale' ) && class_exists( 'DateTimeZone' ) );
	}

	/**
	 * Initializes the class and set its properties.
	 *
	 * @since 1.0.0
	 */
	public function __construct() {
	}

	/**
	 * Load the plugin text domain for translation.
	 *
	 * @since 1.0.0
	 */
	public function load_plugin_textdomain() {
		load_plugin_textdomain(
			VIBES_SLUG,
			false,
			VIBES_LANGUAGES_DIR
		);
	}

}