29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
31 |
31 |
32 <c:set scope="page" var="currentLanguage" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}" /> |
32 <c:set scope="page" var="currentLanguage" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}" /> |
33 |
33 |
34 <fmt:bundle basename="${requestScope[Constants.REQ_ATTR_MODULE_INFO].bundleBaseName}"> |
|
35 <form method="POST"id="lang-selector"> |
34 <form method="POST"id="lang-selector"> |
36 <c:forEach items="${languages}" var="l"> |
35 <c:forEach items="${languages}" var="l"> |
37 <label> |
36 <label> |
38 <input type="radio" name="language" value="${l.language}" |
37 <input type="radio" name="language" value="${l.language}" |
39 <c:if test="${l.language eq currentLanguage.language}">checked</c:if>/> |
38 <c:if test="${l.language eq currentLanguage.language}">checked</c:if>/> |
40 ${l.displayLanguage} |
39 ${l.displayLanguage} |
41 (${l.getDisplayLanguage(currentLanguage)}<c:if test="${not empty browserLanguage and l.language eq browserLanguage.language}"> - <fmt:message key="browserLanguage"/></c:if>) |
40 (${l.getDisplayLanguage(currentLanguage)}<c:if test="${not empty browserLanguage and l.language eq browserLanguage.language}"><c:set var="browserLanguagePresent" value="true"/> - <fmt:message key="browserLanguage"/></c:if>) |
42 </label> |
41 </label> |
43 </c:forEach> |
42 </c:forEach> |
|
43 <c:if test="${not browserLanguagePresent}"> |
|
44 <span class="blNA"><fmt:message key="browserLanguageNotAvailable" /></span> |
|
45 </c:if> |
44 <input type="submit" value="<fmt:message key="submit" />"/> |
46 <input type="submit" value="<fmt:message key="submit" />"/> |
45 </form> |
47 </form> |
46 </fmt:bundle> |
|