public function setLocale($locale, $bind = true) { if ($this->loaded_locale != $locale) { $this->loaded_locale = $locale; waLocale::load($locale, $this->getAppPath('locale'), $this->application, $bind); } if ($bind && waLocale::getDomain() != $this->application) { waLocale::load($locale, $this->getAppPath('locale'), $this->application, $bind); } }