<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<c:if test="<%= exceptionLocale != null %>">
	<liferay-ui:icon
		image='<%= "../language/" + LocaleUtil.toLanguageId(exceptionLocale) %>'
		lang="<%= LocaleUtil.toW3cLanguageId(exceptionLocale) %>"
		message=""
	/>
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.ADJACENT_SLASHES %>">
	<liferay-ui:message key="please-enter-a-friendly-url-that-does-not-have-adjacent-slashes" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.DOES_NOT_START_WITH_SLASH %>">
	<liferay-ui:message key="please-enter-a-friendly-url-that-begins-with-a-slash" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.DUPLICATE %>">

	<%
	String duplicateClassName = lfurle.getDuplicateClassName();

	Layout duplicateLayout = LayoutLocalServiceUtil.getLayout(lfurle.getDuplicateClassPK());
	%>

	<liferay-ui:message arguments="<%= new Object[] {ResourceActionsUtil.getModelResource(locale, duplicateClassName), duplicateLayout.getName(locale)} %>" key="please-enter-a-unique-friendly-url" translateArguments="<%= false %>" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.ENDS_WITH_DASH %>">
	<liferay-ui:message key="please-enter-a-friendly-url-that-does-not-end-with-a-dash" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.ENDS_WITH_SLASH %>">
	<liferay-ui:message key="please-enter-a-friendly-url-that-does-not-end-with-a-slash" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.INVALID_CHARACTERS %>">
	<liferay-ui:message key="please-enter-a-friendly-url-with-valid-characters" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.KEYWORD_CONFLICT %>">
	<liferay-ui:message arguments="<%= lfurle.getKeywordConflict() %>" key="please-enter-a-friendly-url-that-does-not-conflict-with-the-keyword-x" translateArguments="<%= false %>" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.POSSIBLE_DUPLICATE %>">
	<liferay-ui:message key="the-friendly-url-may-conflict-with-another-page" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.TOO_DEEP %>">
	<liferay-ui:message key="the-friendly-url-has-too-many-slashes" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.TOO_LONG %>">
	<liferay-ui:message arguments="<%= LayoutConstants.FRIENDLY_URL_MAX_LENGTH %>" key="the-friendly-url-exceeds-the-limit-of-x-characters-in-its-encoded-format.-please-enter-a-shorter-url" translateArguments="<%= false %>" />
</c:if>

<c:if test="<%= lfurle.getType() == LayoutFriendlyURLException.TOO_SHORT %>">
	<liferay-ui:message key="please-enter-a-friendly-url-that-is-at-least-two-characters-long" />
</c:if>