Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| I18n | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| load_plugin_textdomain | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |||
| 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/brianhenryie/bh-wp-plugins-page |
| 9 | * @since 1.0.0 |
| 10 | * |
| 11 | * @package brianhenryie/bh-wp-plugins-page |
| 12 | */ |
| 13 | |
| 14 | namespace BrianHenryIE\WP_Plugins_Page\WP_Includes; |
| 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 brianhenryie/bh-wp-plugins-page |
| 24 | * |
| 25 | * @author BrianHenryIE <BrianHenryIE@gmail.com> |
| 26 | */ |
| 27 | class I18n { |
| 28 | |
| 29 | /** |
| 30 | * Load the plugin text domain for translation. |
| 31 | * |
| 32 | * @hooked plugins_loaded |
| 33 | * |
| 34 | * @since 1.0.0 |
| 35 | */ |
| 36 | public function load_plugin_textdomain(): void { |
| 37 | |
| 38 | load_plugin_textdomain( |
| 39 | 'bh-wp-plugins-page', |
| 40 | false, |
| 41 | plugin_basename( dirname( __FILE__, 3 ) ) . '/languages/' |
| 42 | ); |
| 43 | |
| 44 | } |
| 45 | |
| 46 | } |