protected function makePot($path, $pot_file) { $makepot = new \MakePOT(); $slug = preg_replace("!^{$this->path}/(.*)\\.php!", '$1', $this->getPluginFile()); $makepot->wp_plugin($path, $pot_file, $slug); }