Boilerplate to develop Wordpress Plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
622 B

4 years ago
  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. * @since 1.0.0
  9. * @package Test
  10. * @subpackage Test/includes
  11. * @author test <test>
  12. */
  13. if (!defined('ABSPATH')) {
  14. exit; // Exit if accessed directly
  15. }
  16. class Test_i18n
  17. {
  18. /**
  19. * Load the plugin text domain for translation.
  20. *
  21. * @since 1.0.0
  22. */
  23. public function load_plugin_textdomain()
  24. {
  25. load_plugin_textdomain(
  26. 'test',
  27. false,
  28. dirname(dirname(plugin_basename(__FILE__))).'/languages/'
  29. );
  30. }
  31. }