protected function loadLocaleConfig()
    {
        $xml = $this->getXml();
        $config = &$this->manifest['application_config'];

        if (!isset($xml->locale->pattern)) {
            return $this;
        }

        foreach ($xml->xpath('locale/pattern[@pattern != ""]') as $node) {
            $dir = isset($node['basedir'])? (string)$node['basedir'] : 'locale';

            $config['translator']['translation_file_patterns'][] = array(
                'type' => isset($node['type'])? (string)$node['type'] : 'php',
                'base_dir' => $this->getModulePath($dir),
                'pattern' => isset($node['pattern'])? (string)$node['pattern'] : '%s.php',
            );
        }

        return $this;
    }