-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathI18n.php
44 lines (39 loc) · 925 Bytes
/
I18n.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Define the internationalization functionality
*
* Loads and defines the internationalization files for this plugin
* so that it is ready for translation.
*
* @link https://wpsocio.com
* @since 1.0.0
*
* @package WPTelegram_Widget
* @subpackage WPTelegram_Widget/includes
*/
namespace WPTelegram\Widget\includes;
/**
* Define the internationalization functionality.
*
* Loads and defines the internationalization files for this plugin
* so that it is ready for translation.
*
* @since 1.0.0
* @package WPTelegram_Widget
* @subpackage WPTelegram_Widget/includes
* @author WP Socio
*/
class I18n {
/**
* Load the plugin text domain for translation.
*
* @since 1.0.0
*/
public function load_plugin_textdomain() {
load_plugin_textdomain(
'wptelegram-widget',
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
);
}
}