| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * Loads and defines the internationalization files for this plugin |
| 6 | 6 | * so that it is ready for translation. |
| 7 | 7 | * |
| 8 | - * @link https://wpsmartpost.com/ | |
| 8 | + * @link https://smartpostshow.com/ | |
| 9 | 9 | * @since 2.2.0 |
| 10 | 10 | * |
| 11 | 11 | * @package Smart_Post_Show |
| 12 | 12 | * @subpackage Smart_Post_Show/includes |
| @@ -11,30 +11,34 @@ | ||
| 11 | 11 | * @package Smart_Post_Show |
| 12 | 12 | * @subpackage Smart_Post_Show/includes |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | - exit; // Exit if accessed directly. | |
| 17 | -} | |
| 18 | - | |
| 19 | 15 | /** |
| 20 | 16 | * Define the internationalization functionality. |
| 21 | 17 | * |
| 22 | 18 | * Loads and defines the internationalization files for this plugin |
| 23 | 19 | * so that it is ready for translation. |
| 20 | + * | |
| 21 | + * @since 2.2.0 | |
| 22 | + * @package Smart_Post_Show | |
| 23 | + * @subpackage Smart_Post_Show/includes | |
| 24 | + * @author ShapedPlugin <[email protected]> | |
| 24 | 25 | */ |
| 25 | 26 | class Smart_Post_Show_i18n { |
| 26 | 27 | |
| 28 | + | |
| 27 | 29 | /** |
| 28 | - * No longer needed for WordPress.org hosted plugins. | |
| 30 | + * Load the plugin text domain for translation. | |
| 29 | 31 | * |
| 30 | 32 | * @since 2.2.0 |
| 31 | 33 | */ |
| 32 | 34 | public function load_plugin_textdomain() { |
| 33 | - // Deprecated: WordPress automatically loads plugin translations. | |
| 34 | - // load_plugin_textdomain( | |
| 35 | - // 'post-carousel', | |
| 36 | - // false, | |
| 37 | - // dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' | |
| 38 | - // ); | |
| 35 | + | |
| 36 | + load_plugin_textdomain( | |
| 37 | + 'smart-post-show', | |
| 38 | + false, | |
| 39 | + dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' | |
| 40 | + ); | |
| 41 | + | |
| 39 | 42 | } |
| 43 | + | |
| 40 | 44 | } |