src/Dispatch/VirtualHost.php
public function matchLocale($locale)
    {
        $locale = Locale::create($locale);
        if (!empty($this->redirect))
            return false;
            
        if ($locale === null)
            return true;

        foreach ($this->locales as $l)
            if ($l->getLocale() == $locale->getLocale())
                return true;

        return false;
    }
public function matchLocale($locale)
    {
        $locale = Locale::create($locale);
        if (!empty($this->redirect))
            return false;
            
        if ($locale === null)
            return true;

        foreach ($this->locales as $l)
            if ($l->getLocale() == $locale->getLocale())
                return true;

        return false;
    }
Check if this VirtualHost matches the locale. A VirtualHost that is
a redirect will never match.

@param string $locale The locale to match
@return boolean True if it matches, false if not