/**
  * Distill the locale from the URL's language prefix. If the prefix isn't a
  * proper locale, return false
  *
  * @return boolean valid locale found
  */
 protected function setLocale($prefix)
 {
     if ($locale = LanguagePrefix::get_locale_from_prefix($prefix)) {
         $this->locale = $locale;
         Translatable::set_current_locale($this->locale);
         return true;
     } else {
         return false;
     }
 }