Myslideshow_i18n   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load_plugin_textdomain() 0 6 1
1
<?php
2
3
/**
4
 * Define the internationalization functionality
5
 *
6
 * Loads and defines the internationalization files for this plugin
7
 * so that it is ready for translation.
8
 *
9
 * @link       rahicodes.wordpress.com
10
 * @since      1.0.0
11
 *
12
 * @package    Myslideshow
13
 * @subpackage Myslideshow/includes
14
 */
15
16
/**
17
 * Define the internationalization functionality.
18
 *
19
 * Loads and defines the internationalization files for this plugin
20
 * so that it is ready for translation.
21
 *
22
 * @since      1.0.0
23
 * @package    Myslideshow
24
 * @subpackage Myslideshow/includes
25
 * @author     Rahi Prajapati <[email protected]>
26
 */
27
class Myslideshow_i18n {
28
29
30
	/**
31
	 * Load the plugin text domain for translation.
32
	 *
33
	 * @since    1.0.0
34
	 */
35
	public function load_plugin_textdomain() {
36
37
		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

37
		/** @scrutinizer ignore-call */ 
38
  load_plugin_textdomain(
Loading history...
38
			'myslideshow',
39
			false,
40
			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

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