public function setLocale($locale) { $this->hyphenator = Hyphenator::factory(null, $this->fixLocale($locale)); $this->setOptions(); }