PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.1.1
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.1.1
7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 6.0.5 All 36 releases
mlsimport / includes / class-mlsimport-i18n.php

class-mlsimport-i18n.php in MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings 7.1.1, at includes/class-mlsimport-i18n.php

57 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Guard: block direct web access — only load when WordPress is bootstrapped.
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly
5 }
6
7 /**
8 * Define the internationalization functionality
9 *
10 * File role: loads the plugin's translation (.mo) files from the /languages/ directory.
11 * The load_plugin_textdomain() method is hooked to 'plugins_loaded' via the Loader so the
12 * 'mlsimport' text domain is available before admin/public strings are translated.
13 *
14 * Loads and defines the internationalization files for this plugin
15 * so that it is ready for translation.
16 *
17 * @link http://mlsimport.com/
18 * @since 1.0.0
19 *
20 * @package Mlsimport
21 * @subpackage Mlsimport/includes
22 */
23
24 /**
25 * Define the internationalization functionality.
26 *
27 * Loads and defines the internationalization files for this plugin
28 * so that it is ready for translation.
29 *
30 * @since 1.0.0
31 * @package Mlsimport
32 * @subpackage Mlsimport/includes
33 * @author MlsImport <office@mlsimport.com>
34 */
35 class Mlsimport_i18n {
36
37
38 /**
39 * Load the plugin text domain for translation.
40 *
41 * Registers the 'mlsimport' text domain, pointing WordPress at the plugin's
42 * /languages/ directory so .mo files there are used for translated strings.
43 *
44 * @since 1.0.0
45 * @return void
46 */
47 public function load_plugin_textdomain() {
48
49 // Register the text domain; path is derived from this file: includes/ -> plugin root -> /languages/.
50 load_plugin_textdomain(
51 'mlsimport',
52 false,
53 dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
54 );
55 }
56 }
57