Completed
Push — master ( c1bd80...7840cd )
by CodexShaper
11:04 queued 12s
created

WPB_I18n::load_plugin_textdomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
/**
3
 * Define the internationalization functionality
4
 *
5
 * Loads and defines the internationalization files for this plugin
6
 * so that it is ready for translation.
7
 *
8
 * @link       https://github.com/maab16
9
 * @since      1.0.0
10
 *
11
 * @package    WPB
12
 * @subpackage WPB/includes
13
 */
14
15
/**
16
 * Define the internationalization functionality.
17
 *
18
 * Loads and defines the internationalization files for this plugin
19
 * so that it is ready for translation.
20
 *
21
 * @since      1.0.0
22
 * @package    WPB
23
 * @subpackage WPB/includes
24
 * @author     Md Abu Ahsan basir <[email protected]>
25
 */
26
class WPB_I18n {
27
28
29
	/**
30
	 * Load the plugin text domain for translation.
31
	 *
32
	 * @since    1.0.0
33
	 */
34
	public function load_plugin_textdomain() {
35
36
		load_plugin_textdomain(
0 ignored issues
show
Bug introduced by
The function load_plugin_textdomain was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

36
		/** @scrutinizer ignore-call */ 
37
  load_plugin_textdomain(
Loading history...
37
			'wpb',
38
			false,
39
			dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
0 ignored issues
show
Bug introduced by
The function plugin_basename was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

39
			dirname( dirname( /** @scrutinizer ignore-call */ plugin_basename( __FILE__ ) ) ) . '/languages/'
Loading history...
40
		);
41
42
	}
43
44
45
46
}
47