%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%><%@ include file="/WEB-INF/jspf/stcontext.jspf"%>
<%
CLDRLocale dcParent = ctx.sm.getSupplementalDataInfo()
.getBaseFromDefaultContent(ctx.getLocale());
CLDRLocale dcChild = ctx.sm.getSupplementalDataInfo()
.getDefaultContentFromBase(ctx.getLocale());
if (ctx.sm.getReadOnlyLocales().contains(ctx.getLocale())) {
String comment = SpecialLocales.getComment(ctx.getLocale());
if (comment == null)
comment = "Editing of this locale has been disabled by the SurveyTool administrators.";
%>
<%=ctx.iconHtml("lock", comment)%><%=comment%>
<%
return;
} else if (dcParent != null) {
ctx.println("" + "Locales"
+ "
");
ctx.println("
" + ctx.getLocale().getDisplayName() + "
");
ctx.println("This locale is the "
+ SurveyMain.DEFAULT_CONTENT_LINK
+ " for "
+ ctx.sm.getLocaleLink(ctx, dcParent, null)
+ "; thus editing and viewing is disabled. Please view and/or propose changes in "
+ ctx.sm.getLocaleLink(ctx, dcParent, null)
+ " instead.");
ctx.print("
");
ctx.sm.printFooter(ctx);
return; // Disable viewing of default content
} else if (dcChild != null) {
String dcChildDisplay = ctx.getLocaleDisplayName(dcChild);
ctx.println("This locale supplies the "
+ SurveyMain.DEFAULT_CONTENT_LINK
+ " for "
+ dcChildDisplay
+ ". Please make sure that all the changes that you make here are appropriate for "
+ dcChildDisplay
+ ". If there are multiple acceptable choices, please try to pick the one that would work for the most sublocales. ");
ctx.print("
");
ctx.redirectToVurl(ctx.vurl(ctx.getLocale(), null, null, null));
} else {
ctx.redirectToVurl(ctx.vurl(ctx.getLocale(), null, null, null));
}
%>
<%
if (false && SurveyMain.isUnofficial()) {
%>
Recent Items in This Locale
<%
}
%>