class-simple-job-board-i18n.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Simple_Job_Board_i18n Class
  4. *
  5. * Define the internationalization functionality, loads and defines the
  6. * internationalization files for this plugin so that it is ready for translation.
  7. *
  8. * @link https://wordpress.org/plugins/simple-job-board
  9. * @since 1.0.0
  10. *
  11. * @package Simple_Job_Board
  12. * @subpackage Simple_Job_Board/includes
  13. * @author PressTigers <support@presstigers.com>
  14. */
  15. class Simple_Job_Board_i18n {
  16. /**
  17. * The domain specified for this plugin.
  18. *
  19. * @since 1.0.0
  20. * @access private
  21. * @var string $domain The domain identifier for this plugin.
  22. */
  23. private $domain;
  24. /**
  25. * Load the plugin text domain for translation.
  26. *
  27. * @since 1.0.0
  28. */
  29. public function load_plugin_textdomain() {
  30. load_plugin_textdomain(
  31. $this->domain, false, dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
  32. );
  33. }
  34. /**
  35. * Set the domain equal to that of the specified domain.
  36. *
  37. * @since 1.0.0
  38. * @param string $domain The domain that represents the locale of this plugin.
  39. */
  40. public function set_domain($domain) {
  41. $this->domain = $domain;
  42. }
  43. }