SiteRenderingContext i18nContext = createSiteRenderingContext( locale );
i18nContext.setInputEncoding( getInputEncoding() );
i18nContext.setOutputEncoding( getOutputEncoding() );
Map<String, DocumentRenderer> i18nDocuments = locateDocuments( i18nContext, reports, locale );
DoxiaBean doxiaBean;
if ( defaultLocale.equals( locale ) )
{
doxiaBean = new DoxiaBean( i18nContext, i18nDocuments, generatedSiteDirectory );
}
else
{
doxiaBean =
new DoxiaBean( i18nContext, i18nDocuments, new File( generatedSiteDirectory,
locale.getLanguage() ) );
}
i18nDoxiaContexts.put( locale.getLanguage(), doxiaBean );
if ( defaultLocale.equals( locale ) )