1 | <?php |
||
16 | class Kirki_L10n { |
||
17 | |||
18 | /** |
||
19 | * The plugin textdomain |
||
20 | * |
||
21 | * @access private |
||
22 | * @var string |
||
23 | */ |
||
24 | private $textdomain = 'kirki'; |
||
25 | |||
26 | /** |
||
27 | * The theme textdomain |
||
28 | * |
||
29 | * @access private |
||
30 | * @var string |
||
31 | */ |
||
32 | private $theme_textdomain = ''; |
||
33 | |||
34 | /** |
||
35 | * The class constructor. |
||
36 | * Adds actions & filters to handle the rest of the methods. |
||
37 | * |
||
38 | * @access public |
||
39 | */ |
||
40 | public function __construct() { |
||
53 | |||
54 | /** |
||
55 | * Load the plugin textdomain |
||
56 | * |
||
57 | * @access public |
||
58 | */ |
||
59 | public function load_textdomain() { |
||
67 | |||
68 | /** |
||
69 | * Gets the path to a translation file. |
||
70 | * |
||
71 | * @access protected |
||
72 | * @return string Absolute path to the translation file. |
||
73 | */ |
||
74 | protected function get_path() { |
||
91 | |||
92 | /** |
||
93 | * Returns an array of paths where translation files may be located. |
||
94 | * |
||
95 | * @access protected |
||
96 | * @return array |
||
97 | */ |
||
98 | protected function get_paths() { |
||
106 | |||
107 | /** |
||
108 | * Allows overriding the "kirki" textdomain from a theme. |
||
109 | * |
||
110 | * @since 3.0.12 |
||
111 | * @param bool $override Whether to override the text domain. Default false. |
||
112 | * @param string $domain Text domain. Unique identifier for retrieving translated strings. |
||
113 | * @return bool |
||
114 | */ |
||
115 | function override_load_textdomain( $override, $domain, $mofile ) { |
||
129 | |||
130 | /** |
||
131 | * Get the theme's textdomain. |
||
132 | * |
||
133 | * @since 3.0.12 |
||
134 | * @access private |
||
135 | * @return string |
||
136 | */ |
||
137 | private function get_theme_textdomain() { |
||
153 | } |
||
154 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.