/******************************************************************************************************************* * * {@inheritDoc} * ******************************************************************************************************************/ @Override @Nonnull public Layout getLayout() { return layoutMapByLocale.get(localeRequestManager.getLocales().get(0)); }
String separator = ""; for (final String localeSuffix : localeRequestManager.getLocaleSuffixes())
/******************************************************************************************************************* * * {@inheritDoc} * ******************************************************************************************************************/ @Override @Nonnull public ResourceProperties getProperties() { return propertyMapByLocale.get(localeRequestManager.getLocales().get(0)); }
final String[] monthNames = DateFormatSymbols.getInstance(requestLocaleManager.getLocales().get(0)).getMonths(); final String[] shortMonthNames = DateFormatSymbols.getInstance(Locale.ENGLISH).getShortMonths();
when(requestLocaleManager.getLocales()).thenReturn(Arrays.asList(Locale.ENGLISH));
for (final Locale locale : localeRequestManager.getLocales())
throws IOException, NotFoundException for (final Locale locale : localeRequestManager.getLocales())
/******************************************************************************************************************* * * Initializes this controller. * ******************************************************************************************************************/ @PostConstruct /* package */ void initialize() throws IOException, NotFoundException { final ResourceProperties viewProperties = getViewProperties(); final ResourceProperties siteNodeProperties = siteNode.getProperties(); setCustomTemplate(viewProperties); view.addAttribute("language", requestLocaleManager.getLocales().get(0).getLanguage()); view.addAttribute("titlePrefix", viewProperties.getProperty(PROPERTY_TITLE_PREFIX, "")); view.addAttribute("description", viewProperties.getProperty(PROPERTY_DESCRIPTION, "")); view.addAttribute("title", siteNodeProperties.getProperty(PROPERTY_TITLE, "")); view.addAttribute("screenCssSection", computeScreenCssSection()); view.addAttribute("printCssSection", computePrintCssSection()); view.addAttribute("rssFeeds", computeRssFeedsSection()); view.addAttribute("scripts", computeScriptsSection()); view.addAttribute("inlinedScripts", computeInlinedScriptsSection()); }