locale = $this->get_locale(); } /** * @return mixed */ protected function get_locale() { return get_locale(); } /** * Load the framework's text domain. */ public function load() { $mo_file = __DIR__ . 'languages/allex-' . $this->locale . '.mo'; if (file_exists($mo_file)) { load_textdomain('allex', $mo_file); } } }