PluginProbe ʕ •ᴥ•ʔ
File Manager Pro – Filester / trunk
File Manager Pro – Filester vtrunk
2.1.1 trunk 1.6.1 1.7.6 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 2.0 2.0.1 2.0.2 2.1.0
filester / includes / I18n.php
filester / includes Last commit date
File_manager 1 month ago Recommended 2 months ago I18n.php 1 year ago Plugin.php 8 months ago cross.php 8 months ago functions.php 1 year ago index.php 5 years ago
I18n.php
31 lines
1 <?php
2 namespace NinjaFileManager;
3
4 defined('ABSPATH') || exit;
5 /**
6 * I18n Logic
7 */
8 class I18n {
9 protected static $instance = null;
10
11 public static function getInstance() {
12 if (null == self::$instance) {
13 self::$instance = new self;
14 }
15
16 return self::$instance;
17 }
18
19 private function __construct() {
20 add_action('plugins_loaded', array($this, 'loadPluginTextdomain'));
21 }
22
23 public function loadPluginTextdomain() {
24 load_plugin_textdomain(
25 'filester',
26 false,
27 NJT_FS_BN_PLUGIN_URL . 'i18n/languages/'
28 );
29 }
30 }
31