CLDR <%= ctx.sm.getNewVersion() %> Survey Tool
:
<% CLDRLocale toplocale = ctx.getLocale();
if(toplocale!=null) {
WebContext subCtx2 = (WebContext)ctx.clone();
subCtx2.addQuery(SurveyMain.QUERY_LOCALE,toplocale.toString());
%>
Locales
<%
int n = ctx.docLocale.length; // how many levels deep
int i,j;
for(i=(n-1);i>0;i--) {
boolean canModifyL = ctx!=null && ctx.session!=null && ctx.session.user != null && UserRegistry.userCanModifyLocale(ctx.session.user,ctx.docLocale[i]);
ctx.print("»
");
ctx.print(SurveyMain.decoratedLocaleName(ctx.docLocale[i],ctx.docLocale[i].getDisplayName(),""));
ctx.print(" ");
}
boolean canModifyL = false&&UserRegistry.userCanModifyLocale(ctx.session.user,ctx.getLocale());
%>»
<%= ctx.getLocale().getDisplayName()+(canModifyL?SurveyMain.modifyThing(ctx):"") %>
<%
CLDRLocale dcParent = ctx.sm.getSupplementalDataInfo().getBaseFromDefaultContent(toplocale);
CLDRLocale dcChild = ctx.sm.getSupplementalDataInfo().getDefaultContentFromBase(ctx.getLocale());
if (dcChild != null) {
String dcChildDisplay = ctx.getLocaleDisplayName(dcChild);
ctx.println("
" +
"= "+dcChildDisplay+
"content"
+ "");
}
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.println(ctx.iconHtml("lock", comment));
}
if(title!=null&&!title.trim().isEmpty()) {%>
|
<% } } %>
<%= title %>