Commit 7ccaa557 authored by Matija Obreza's avatar Matija Obreza
Browse files

Show available languages only to authenticated users

parent 8726494e
<%@include file="/WEB-INF/jsp/init.jsp"%>
<%@ taglib prefix="sec" uri=""%>
<html dir="${pageContext.response.locale.language=='fa' || pageContext.response.locale.language=='ar' ? 'rtl' : 'ltr'}">
<title><sitemesh:write property="title" /></title>
<%@include file="/WEB-INF/jsp/head-init.jsp"%>
......@@ -25,8 +25,12 @@
<ul class="dropdown-menu">
<li><a href="?lang=en"><spring:message code="sample.message.locale.en" /></a></li>
<%-- Only show fully translated languages --%>
<security:authorize access="isAuthenticated()">
<li><a href="?lang=sl"><spring:message code="" /></a></li>
<li><a href="?lang=fa"><spring:message code="sample.message.locale.fa" /></a></li>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment