%@page import="pt.utl.ist.fenix.tools.util.i18n.Language"%>
<%@ page language="java" %>
<%@ page import="net.sourceforge.fenixedu.domain.organizationalStructure.Unit"%>
<%@ page import="net.sourceforge.fenixedu.domain.UnitSite"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/fenix-renderers.tld" prefix="fr"%>
<%@page import="net.sourceforge.fenixedu.domain.functionalities.AbstractFunctionalityContext"%>
<%@page import="net.sourceforge.fenixedu.presentationTier.servlets.filters.functionalities.FilterFunctionalityContext"%>
<%
FilterFunctionalityContext context = (FilterFunctionalityContext) AbstractFunctionalityContext.getCurrentContext(request);
UnitSite site = (UnitSite) context.getSelectedContainer();
Unit unit = site.getUnit();
request.setAttribute("unit", unit);
request.setAttribute("site", site);
if (site != null && site.isDefaultLogoUsed()) {
final String finalLanguage = Language.getLanguage().name();
//String finalLanguage = language == null ? "pt" : String.valueOf(language);
request.setAttribute("siteDefaultLogo",
String.format("%s/images/departments/%s_%s.gif", request.getContextPath(), unit.getAcronym(), finalLanguage));
}
%>
<%= Language.getLanguage().name() %>