incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1225063 [7/10] - in /incubator/lcf/trunk: ./ connectors/activedirectory/ connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ connectors/activedirectory/connector/src/main/native...
Date Wed, 28 Dec 2011 00:42:25 GMT
Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editjob.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editjob.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editjob.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editjob.jsp Wed Dec 28 00:42:19 2011
@@ -39,7 +39,7 @@
 	// Figure out tab name
 	String tabName = variableContext.getParameter("tabname");
 	if (tabName == null || tabName.length() == 0)
-		tabName = "Name";
+		tabName = Messages.getString(pageContext.getRequest().getLocale(),"editjob.Name");
 
 	// Get a loaded job object, somehow.
 	String jobID = null;
@@ -147,13 +147,13 @@
 	}
 
 	// Set up the predefined tabs
-	tabsArray.add("Name");
-	tabsArray.add("Connection");
+	tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Name"));
+	tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Connection"));
 	if (connectionName.length() > 0)
 	{
-		tabsArray.add("Scheduling");
+		tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Scheduling"));
 		if (relationshipTypes != null && relationshipTypes.length > 0)
-			tabsArray.add("Hop Filters");
+			tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editjob.HopFilters"));
 	}
 
 
@@ -166,7 +166,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: Edit Job
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ApacheManifoldCFEditJob")%>
 	</title>
 
 	<script type="text/javascript">
@@ -224,7 +224,7 @@
 			if (editjob.description.value == "")
 			{
 				alert("Job must have a name");
-				SelectTab("Name");
+				SelectTab(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Name"));
 				document.editjob.description.focus();
 				return;
 			}
@@ -383,7 +383,7 @@
 		{
 			try
 			{
-				outputConnector.outputSpecificationHeader(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),outputSpecification,tabsArray);
+				outputConnector.outputSpecificationHeader(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),outputSpecification,tabsArray);
 			}
 			finally
 			{
@@ -402,7 +402,7 @@
 		{
 			try
 			{
-				repositoryConnector.outputSpecificationHeader(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),documentSpecification,tabsArray);
+				repositoryConnector.outputSpecificationHeader(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),documentSpecification,tabsArray);
 			}
 			finally
 			{
@@ -424,15 +424,15 @@
 	if (connList.length == 0)
 	{
 %>
-	<p class="windowtitle">Edit a Job</p>
-	<table class="displaytable"><tr><td class="message">No repository connections defined - create one first</td></tr></table>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EditaJob")%></p>
+	<table class="displaytable"><tr><td class="message"><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.NoRepositoryConnectionsDefinedCreateOneFirst")%></td></tr></table>
 <%
 	}
 	else if (outputList.length == 0)
 	{
 %>
-	<p class="windowtitle">Edit a Job</p>
-	<table class="displaytable"><tr><td class="message">No output connections defined - create one first</td></tr></table>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EditaJob")%></p>
+	<table class="displaytable"><tr><td class="message"><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.NoOutputConnectionsDefinedCreateOneFirst")%></td></tr></table>
 <%
 	}
 	else
@@ -477,13 +477,13 @@
 	if (description.length() > 0)
 	{
 %>
-			  <nobr>Edit job '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>'</nobr>
+			  <nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EditJob")%> '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>'</nobr>
 <%
 	}
 	else
 	{
 %>
-		          <nobr>Edit a Job</nobr>
+		          <nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EditaJob")%></nobr>
 <%
 	}
 %>
@@ -495,7 +495,7 @@
 		  <input type="hidden" name="schedulerecords" value='<%=Integer.toString(scheduleRecords.size())%>'/>
 <%
 	// The NAME tab
-	if (tabName.equals("Name"))
+	if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Name")))
 	{
 %>
 		  <table class="displaytable">
@@ -503,7 +503,7 @@
 				<td class="separator" colspan="4"><hr/></td>
 			</tr>
 			<tr>
-				<td class="description" colspan="1"><nobr>Name:</nobr></td><td class="value" colspan="3">
+				<td class="description" colspan="1"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Name")%></nobr></td><td class="value" colspan="3">
 					<input type="text" size="50" name="description" value='<%=org.apache.manifoldcf.ui.util.Encoder.attributeEscape(description)%>'/>
 				</td>
 			</tr>
@@ -518,7 +518,7 @@
 	}
 
 	// Hop Filters tab
-	if (tabName.equals("Hop Filters"))
+	if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editjob.HopFilters")))
 	{
 	    if (relationshipTypes != null)
 	    {
@@ -538,7 +538,7 @@
 				mapField = mapValue.toString();
 %>
 			<tr>
-				<td class="description" colspan="1"><nobr>Maximum hop count for type '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(relationshipType)%>':</nobr></td>
+				<td class="description" colspan="1"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.MaximumHopCountForType")%> '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(relationshipType)%>'<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.semicolon")%></nobr></td>
 				<td class="value" colspan="3" >
 					<input name='<%="hopmax_"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(relationshipType)%>' type="text" size="5" value='<%=mapField%>'/>
 				</td>
@@ -548,11 +548,11 @@
 %>
 			<tr><td class="separator" colspan="4"><hr/></td></tr>
 			<tr>
-				<td class="description" colspan="1"><nobr>Hop count mode:</nobr></td>
+				<td class="description" colspan="1"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.HopCountMode")%></nobr></td>
 				<td class="value" colspan="3">
-					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_ACCURATE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_ACCURATE)?"checked=\"true\"":"")%>>Delete unreachable documents</input></nobr><br/>
-					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_NODELETE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_NODELETE)?"checked=\"true\"":"")%>>Keep unreachable documents, for now</input></nobr><br/>
-					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_NEVERDELETE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_NEVERDELETE)?"checked=\"true\"":"")%>>Keep unreachable documents, forever</input></nobr><br/>
+					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_ACCURATE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_ACCURATE)?"checked=\"true\"":"")%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.DeleteUnreachableDocuments")%></input></nobr><br/>
+					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_NODELETE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_NODELETE)?"checked=\"true\"":"")%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.KeepUnreachableDocumentsForNow")%></input></nobr><br/>
+					<nobr><input type="radio" name="hopcountmode" value='<%=Integer.toString(IJobDescription.HOPCOUNT_NEVERDELETE)%>' <%=((hopcountMode==IJobDescription.HOPCOUNT_NEVERDELETE)?"checked=\"true\"":"")%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.KeepUnreachableDocumentsForever")%></input></nobr><br/>
 				</td>
 			</tr>
 		  </table>
@@ -583,7 +583,7 @@
 	}
 
 	// Connection tab
-	if (tabName.equals("Connection"))
+	if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Connection")))
 	{
 %>
 		  <table class="displaytable">
@@ -595,10 +595,10 @@
 	    if (outputName.length() == 0)
 	    {
 %>
-				<td class="description"><nobr>Output connection:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.OutputConnection")%></nobr></td>
 				<td class="value">
 					<select name="outputname" size="1">
-						<option <%="".equals(outputName)?"selected=\"selected\"":""%> value="">-- None selected --</option>
+						<option <%="".equals(outputName)?"selected=\"selected\"":""%> value="">-- <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.NoneSelected")%> --</option>
 <%
 		int j = 0;
 		while (j < outputList.length)
@@ -616,7 +616,7 @@
 	    else
 	    {
 %>
-				<td class="description"><nobr>Output connection:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.OutputConnection")%></nobr></td>
 				<td class="value"><input type="hidden" name="outputname" value='<%=org.apache.manifoldcf.ui.util.Encoder.attributeEscape(outputName)%>'/><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(outputName)%></td>
 <%
 	    }
@@ -626,10 +626,10 @@
 	    if (connectionName.length() == 0)
 	    {
 %>
-				<td class="description"><nobr>Repository connection:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.RepositoryConnection")%></nobr></td>
 				<td class="value">
 					<select name="connectionname" size="1">
-						<option <%="".equals(connectionName)?"selected=\"selected\"":""%> value="">-- None selected --</option>
+						<option <%="".equals(connectionName)?"selected=\"selected\"":""%> value="">-- <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.NoneSelected")%> --</option>
 <%
 		int j = 0;
 		while (j < connList.length)
@@ -647,17 +647,17 @@
 	    else
 	    {
 %>
-				<td class="description"><nobr>Repository connection:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.RepositoryConnection")%></nobr></td>
 				<td class="value"><input type="hidden" name="connectionname" value='<%=org.apache.manifoldcf.ui.util.Encoder.attributeEscape(connectionName)%>'/><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectionName)%></td>
 <%
 	    }
 %>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Priority:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Priority")%></nobr></td>
 				<td class="value">
 					<select name="priority" size="1">
-						<option value="1" <%=(priority==1)?"selected=\"selected\"":""%>>1 (Highest)</option>
+						<option value="1" <%=(priority==1)?"selected=\"selected\"":""%>>1 <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Highest")%></option>
 						<option value="2" <%=(priority==2)?"selected=\"selected\"":""%>>2</option>
 						<option value="3" <%=(priority==3)?"selected=\"selected\"":""%>>3</option>
 						<option value="4" <%=(priority==4)?"selected=\"selected\"":""%>>4</option>
@@ -666,15 +666,15 @@
 						<option value="7" <%=(priority==7)?"selected=\"selected\"":""%>>7</option>
 						<option value="8" <%=(priority==8)?"selected=\"selected\"":""%>>8</option>
 						<option value="9" <%=(priority==9)?"selected=\"selected\"":""%>>9</option>
-						<option value="10" <%=(priority==10)?"selected=\"selected\"":""%>>10 (Lowest)</option>
+						<option value="10" <%=(priority==10)?"selected=\"selected\"":""%>>10 <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Lowest")%></option>
 					</select>
 				</td>
-				<td class="description"><nobr>Start method:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.StartMethod")%></nobr></td>
 				<td class="value">
 					<select name="startmethod" size="1">
-						<option value='<%=IJobDescription.START_WINDOWBEGIN%>' <%=(startMethod==IJobDescription.START_WINDOWBEGIN)?"selected=\"selected\"":""%>>Start when schedule window starts</option>
-						<option value='<%=IJobDescription.START_WINDOWINSIDE%>' <%=(startMethod==IJobDescription.START_WINDOWINSIDE)?"selected=\"selected\"":""%>>Start even inside a schedule window</option>
-						<option value='<%=IJobDescription.START_DISABLE%>' <%=(startMethod==IJobDescription.START_DISABLE)?"selected=\"selected\"":""%>>Don't automatically start this job</option>
+						<option value='<%=IJobDescription.START_WINDOWBEGIN%>' <%=(startMethod==IJobDescription.START_WINDOWBEGIN)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.StartWhenScheduleWindowStarts")%></option>
+						<option value='<%=IJobDescription.START_WINDOWINSIDE%>' <%=(startMethod==IJobDescription.START_WINDOWINSIDE)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.StartEvenInsideAScheduleWindow")%></option>
+						<option value='<%=IJobDescription.START_DISABLE%>' <%=(startMethod==IJobDescription.START_DISABLE)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.DontAutomaticallyStartThisJob")%></option>
 					</select>
 				</td>
 			</tr>
@@ -691,7 +691,7 @@
 	}
 
 	// Scheduling tab
-	if (tabName.equals("Scheduling"))
+	if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Scheduling")))
 	{
 %>
 		  <table class="displaytable">
@@ -703,21 +703,21 @@
 				<td class="separator" colspan="4"><hr/></td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Schedule type:</nobr></td><td class="value"><select name="scheduletype" size="1">
-					<option value='<%=IJobDescription.TYPE_CONTINUOUS%>' <%=(type==IJobDescription.TYPE_CONTINUOUS)?"selected=\"selected\"":""%>>Rescan documents dynamically</option>
-					<option value='<%=IJobDescription.TYPE_SPECIFIED%>' <%=(type==IJobDescription.TYPE_SPECIFIED)?"selected=\"selected\"":""%>>Scan every document once</option>
-				</select></td><td class="description"><nobr>Recrawl interval (if continuous):</nobr></td><td class="value">
-					<nobr><input type="text" size="5" name="recrawlinterval" value='<%=((recrawlInterval==null)?"":recrawlInterval.toString())%>'/> minutes (blank=infinity)</nobr>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ScheduleType")%></nobr></td><td class="value"><select name="scheduletype" size="1">
+					<option value='<%=IJobDescription.TYPE_CONTINUOUS%>' <%=(type==IJobDescription.TYPE_CONTINUOUS)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.RescanDocumentsDynamically")%></option>
+					<option value='<%=IJobDescription.TYPE_SPECIFIED%>' <%=(type==IJobDescription.TYPE_SPECIFIED)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ScanEveryDocumentOnce")%></option>
+				</select></td><td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.RecrawlIntervalIfContinuous")%></nobr></td><td class="value">
+					<nobr><input type="text" size="5" name="recrawlinterval" value='<%=((recrawlInterval==null)?"":recrawlInterval.toString())%>'/> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutesBlankInfinity")%></nobr>
 				</td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Expiration interval (if continuous):</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ExpirationIntervalIfContinuous")%></nobr></td>
 				<td class="value">
-					<nobr><input type="text" size="5" name="expirationinterval" value='<%=((expirationInterval==null)?"":expirationInterval.toString())%>'/> minutes (blank=infinity)</nobr>
+					<nobr><input type="text" size="5" name="expirationinterval" value='<%=((expirationInterval==null)?"":expirationInterval.toString())%>'/> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutesBlankInfinity")%></nobr>
 				</td>
-				<td class="description"><nobr>Reseed interval (if continuous):</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ReseedIntervalIfContinuous")%></nobr></td>
 				<td class="value">
-					<nobr><input type="text" size="5" name="reseedinterval" value='<%=((reseedInterval==null)?"":reseedInterval.toString())%>'/> minutes (blank=infinity)</nobr>
+					<nobr><input type="text" size="5" name="reseedinterval" value='<%=((reseedInterval==null)?"":reseedInterval.toString())%>'/> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutesBlankInfinity")%></nobr>
 				</td>
 			</tr>
 <%
@@ -739,7 +739,7 @@
 	    if (scheduleRecords.size() == 0)
 	    {
 %>
-			<tr><td class="message" colspan="4">No schedule specified</td></tr>
+			<tr><td class="message" colspan="4"><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.NoScheduleSpecified")%></td></tr>
 <%
 	    }
 	    else
@@ -768,20 +768,20 @@
 		}
 %>
 			<tr>
-				<td class="description"><nobr>Scheduled time:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ScheduledTime")%></nobr></td>
 				<td colspan="3" class="value">
 				    <select class="schedulepulldown" multiple="true" name='<%="dayofweek"+postFix%>' size="3">
-					<option value="none" <%=(srDayOfWeek==null)?"selected=\"selected\"":""%>>Any day of week</option>
-					<option value="0" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(0))?"selected=\"selected\"":""%>>Sundays</option>
-					<option value="1" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(1))?"selected=\"selected\"":""%>>Mondays</option>
-					<option value="2" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(2))?"selected=\"selected\"":""%>>Tuesdays</option>
-					<option value="3" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(3))?"selected=\"selected\"":""%>>Wednesdays</option>
-					<option value="4" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(4))?"selected=\"selected\"":""%>>Thursdays</option>
-					<option value="5" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(5))?"selected=\"selected\"":""%>>Fridays</option>
-					<option value="6" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(6))?"selected=\"selected\"":""%>>Saturdays</option>
-				    </select> at 
+					<option value="none" <%=(srDayOfWeek==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AnyDayOfWeek")%></option>
+					<option value="0" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(0))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Sundays")%></option>
+					<option value="1" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(1))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Mondays")%></option>
+					<option value="2" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(2))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Tuesdays")%></option>
+					<option value="3" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(3))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Wednesdays")%></option>
+					<option value="4" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(4))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Thursdays")%></option>
+					<option value="5" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(5))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Fridays")%></option>
+					<option value="6" <%=(srDayOfWeek!=null&&srDayOfWeek.checkValue(6))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Saturdays")%></option>
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.at")%> 
 				    <select class="schedulepulldown" multiple="true" name='<%="hourofday"+postFix%>' size="3">
-					<option value="none" <%=(srHourOfDay==null)?"selected=\"selected\"":""%>>Midnight/Any hour of day</option>
+					<option value="none" <%=(srHourOfDay==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.MidnightAnyHourOfDay")%></option>
 <%
 					k = 0;
 					while (k < 24)
@@ -804,37 +804,37 @@
 						k++;
 					}
 %>
-				    </select> plus 
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.plus")%> 
 				    <select class="schedulepulldown" multiple="true" name='<%="minutesofhour"+postFix%>' size="3">
-					<option value="none" <%=(srMinutesOfHour==null)?"selected=\"selected\"":""%>>Nothing</option>
+					<option value="none" <%=(srMinutesOfHour==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Nothing")%></option>
 <%
 					k = 0;
 					while (k < 60)
 					{
 %>
-						<option value='<%=k%>' <%=(srMinutesOfHour!=null&&srMinutesOfHour.checkValue(k))?"selected=\"selected\"":""%>><%=Integer.toString(k)%> minutes</option>
+						<option value='<%=k%>' <%=(srMinutesOfHour!=null&&srMinutesOfHour.checkValue(k))?"selected=\"selected\"":""%>><%=Integer.toString(k)%> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutes")%></option>
 <%
 						k++;
 					}
 %>
-				    </select> in 
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.in")%> 
 				    <select class="schedulepulldown" multiple="true" name='<%="monthofyear"+postFix%>' size="3">
-					<option value="none" <%=(srMonthOfYear==null)?"selected=\"selected\"":""%>>Every month of year</option>
-					<option value="0" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(0))?"selected=\"selected\"":""%>>January</option>
-					<option value="1" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(1))?"selected=\"selected\"":""%>>February</option>
-					<option value="2" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(2))?"selected=\"selected\"":""%>>March</option>
-					<option value="3" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(3))?"selected=\"selected\"":""%>>April</option>
-					<option value="4" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(4))?"selected=\"selected\"":""%>>May</option>
-					<option value="5" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(5))?"selected=\"selected\"":""%>>June</option>
-					<option value="6" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(6))?"selected=\"selected\"":""%>>July</option>
-					<option value="7" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(7))?"selected=\"selected\"":""%>>August</option>
-					<option value="8" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(8))?"selected=\"selected\"":""%>>September</option>
-					<option value="9" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(9))?"selected=\"selected\"":""%>>October</option>
-					<option value="10" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(10))?"selected=\"selected\"":""%>>November</option>
-					<option value="11" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(11))?"selected=\"selected\"":""%>>December</option>
-				    </select> on
+					<option value="none" <%=(srMonthOfYear==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EveryMonthOfYear")%></option>
+					<option value="0" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(0))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.January")%></option>
+					<option value="1" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(1))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.February")%></option>
+					<option value="2" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(2))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.March")%></option>
+					<option value="3" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(3))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.April")%></option>
+					<option value="4" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(4))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.May")%></option>
+					<option value="5" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(5))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.June")%></option>
+					<option value="6" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(6))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.July")%></option>
+					<option value="7" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(7))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.August")%></option>
+					<option value="8" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(8))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.September")%></option>
+					<option value="9" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(9))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.October")%></option>
+					<option value="10" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(10))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.November")%></option>
+					<option value="11" <%=(srMonthOfYear!=null&&srMonthOfYear.checkValue(11))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.December")%></option>
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.on")%>
 				    <select class="schedulepulldown" multiple="true" name='<%="dayofmonth"+postFix%>' size="3">
-					<option value="none" <%=(srDayOfMonth==null)?"selected=\"selected\"":""%>>Any day of month</option>
+					<option value="none" <%=(srDayOfMonth==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AnyDayOfMonth")%></option>
 <%
 					k = 0;
 					while (k < 31)
@@ -859,13 +859,13 @@
 				</td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Maximum run time:</nobr></td><td colspan="3" class="value">
-					<input type="text" size="5" name='<%="duration"+postFix%>' value='<%=((srDuration==null)?"":new Long(srDuration.longValue()/60000L).toString())%>'/> minutes
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.MaximumRunTime")%></nobr></td><td colspan="3" class="value">
+					<input type="text" size="5" name='<%="duration"+postFix%>' value='<%=((srDuration==null)?"":new Long(srDuration.longValue()/60000L).toString())%>'/> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutes")%>
 				</td>
 			</tr>
 			<tr>
 				<td class="message" colspan="4">
-					<a name='<%="remove_schedule_"+Integer.toString(l)%>'><input type="button" value="Remove Schedule" onClick='<%="Javascript:RemoveSchedule("+Integer.toString(l)+")"%>' alt='<%="Remove schedule record #"+Integer.toString(l)%>'/></a>
+					<a name='<%="remove_schedule_"+Integer.toString(l)%>'><input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.RemoveSchedule")%>" onClick='<%="Javascript:RemoveSchedule("+Integer.toString(l)+")"%>' alt='<%="Remove schedule record #"+Integer.toString(l)%>'/></a>
 					<input type="hidden" name='<%="recordop"+postFix%>' value=""/>
 				</td>
 			</tr>
@@ -879,20 +879,20 @@
 				<td class="separator" colspan="4"><hr/></td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Scheduled time:</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ScheduledTime")%></nobr></td>
 				<td colspan="3" class="value">
 				    <select class="schedulepulldown" multiple="true" name="dayofweek" size="3">
-					<option value="none" <%=(dayOfWeek==null)?"selected=\"selected\"":""%>>Any day of week</option>
-					<option value="0" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(0))?"selected=\"selected\"":""%>>Sundays</option>
-					<option value="1" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(1))?"selected=\"selected\"":""%>>Mondays</option>
-					<option value="2" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(2))?"selected=\"selected\"":""%>>Tuesdays</option>
-					<option value="3" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(3))?"selected=\"selected\"":""%>>Wednesdays</option>
-					<option value="4" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(4))?"selected=\"selected\"":""%>>Thursdays</option>
-					<option value="5" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(5))?"selected=\"selected\"":""%>>Fridays</option>
-					<option value="6" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(6))?"selected=\"selected\"":""%>>Saturdays</option>
-				    </select> at 
+					<option value="none" <%=(dayOfWeek==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AnyDayOfWeek")%></option>
+					<option value="0" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(0))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Sundays")%></option>
+					<option value="1" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(1))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Mondays")%></option>
+					<option value="2" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(2))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Tuesdays")%></option>
+					<option value="3" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(3))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Wednesdays")%></option>
+					<option value="4" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(4))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Thursdays")%></option>
+					<option value="5" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(5))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Fridays")%></option>
+					<option value="6" <%=(dayOfWeek!=null&&dayOfWeek.checkValue(6))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Saturdays")%></option>
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.at")%> 
 				    <select class="schedulepulldown" multiple="true" name="hourofday" size="3">
-					<option value="none" <%=(hourOfDay==null)?"selected=\"selected\"":""%>>Midnight/Any hour of day</option>
+					<option value="none" <%=(hourOfDay==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.MidnightAnyHourOfDay")%></option>
 <%
 					int k = 0;
 					while (k < 24)
@@ -915,37 +915,37 @@
 						k++;
 					}
 %>
-				    </select> plus 
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.plus")%> 
 				    <select class="schedulepulldown" multiple="true" name="minutesofhour" size="3">
-					<option value="none" <%=(minutesOfHour==null)?"selected=\"selected\"":""%>>Nothing</option>
+					<option value="none" <%=(minutesOfHour==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Nothing")%></option>
 <%
 					k = 0;
 					while (k < 60)
 					{
 %>
-						<option value='<%=k%>' <%=(minutesOfHour!=null&&minutesOfHour.checkValue(k))?"selected=\"selected\"":""%>><%=Integer.toString(k)%> minutes</option>
+						<option value='<%=k%>' <%=(minutesOfHour!=null&&minutesOfHour.checkValue(k))?"selected=\"selected\"":""%>><%=Integer.toString(k)%> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutes")%></option>
 <%
 						k++;
 					}
 %>
-				    </select> in 
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.in")%> 
 				    <select class="schedulepulldown" multiple="true" name="monthofyear" size="3">
-					<option value="none" <%=(monthOfYear==null)?"selected=\"selected\"":""%>>Every month of year</option>
-					<option value="0" <%=(monthOfYear!=null&&monthOfYear.checkValue(0))?"selected=\"selected\"":""%>>January</option>
-					<option value="1" <%=(monthOfYear!=null&&monthOfYear.checkValue(1))?"selected=\"selected\"":""%>>February</option>
-					<option value="2" <%=(monthOfYear!=null&&monthOfYear.checkValue(2))?"selected=\"selected\"":""%>>March</option>
-					<option value="3" <%=(monthOfYear!=null&&monthOfYear.checkValue(3))?"selected=\"selected\"":""%>>April</option>
-					<option value="4" <%=(monthOfYear!=null&&monthOfYear.checkValue(4))?"selected=\"selected\"":""%>>May</option>
-					<option value="5" <%=(monthOfYear!=null&&monthOfYear.checkValue(5))?"selected=\"selected\"":""%>>June</option>
-					<option value="6" <%=(monthOfYear!=null&&monthOfYear.checkValue(6))?"selected=\"selected\"":""%>>July</option>
-					<option value="7" <%=(monthOfYear!=null&&monthOfYear.checkValue(7))?"selected=\"selected\"":""%>>August</option>
-					<option value="8" <%=(monthOfYear!=null&&monthOfYear.checkValue(8))?"selected=\"selected\"":""%>>September</option>
-					<option value="9" <%=(monthOfYear!=null&&monthOfYear.checkValue(9))?"selected=\"selected\"":""%>>October</option>
-					<option value="10" <%=(monthOfYear!=null&&monthOfYear.checkValue(10))?"selected=\"selected\"":""%>>November</option>
-					<option value="11" <%=(monthOfYear!=null&&monthOfYear.checkValue(11))?"selected=\"selected\"":""%>>December</option>
-				    </select> on 
+					<option value="none" <%=(monthOfYear==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.EveryMonthOfYear")%></option>
+					<option value="0" <%=(monthOfYear!=null&&monthOfYear.checkValue(0))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.January")%></option>
+					<option value="1" <%=(monthOfYear!=null&&monthOfYear.checkValue(1))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.February")%></option>
+					<option value="2" <%=(monthOfYear!=null&&monthOfYear.checkValue(2))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.March")%></option>
+					<option value="3" <%=(monthOfYear!=null&&monthOfYear.checkValue(3))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.April")%></option>
+					<option value="4" <%=(monthOfYear!=null&&monthOfYear.checkValue(4))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.May")%></option>
+					<option value="5" <%=(monthOfYear!=null&&monthOfYear.checkValue(5))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.June")%></option>
+					<option value="6" <%=(monthOfYear!=null&&monthOfYear.checkValue(6))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.July")%></option>
+					<option value="7" <%=(monthOfYear!=null&&monthOfYear.checkValue(7))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.August")%></option>
+					<option value="8" <%=(monthOfYear!=null&&monthOfYear.checkValue(8))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.September")%></option>
+					<option value="9" <%=(monthOfYear!=null&&monthOfYear.checkValue(9))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.October")%></option>
+					<option value="10" <%=(monthOfYear!=null&&monthOfYear.checkValue(10))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.November")%></option>
+					<option value="11" <%=(monthOfYear!=null&&monthOfYear.checkValue(11))?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.December")%></option>
+				    </select> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.on")%> 
 				    <select class="schedulepulldown" multiple="true" name="dayofmonth" size="3">
-					<option value="none" <%=(dayOfMonth==null)?"selected=\"selected\"":""%>>Any day of month</option>
+					<option value="none" <%=(dayOfMonth==null)?"selected=\"selected\"":""%>><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AnyDayOfMonth")%></option>
 <%
 					k = 0;
 					while (k < 31)
@@ -970,14 +970,14 @@
 				</td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Maximum run time:</nobr></td><td colspan="3" class="value">
-					<input type="text" size="5" name="duration" value='<%=((duration==null)?"":duration.toString())%>'/> minutes
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.MaximumRunTime")%></nobr></td><td colspan="3" class="value">
+					<input type="text" size="5" name="duration" value='<%=((duration==null)?"":duration.toString())%>'/> <%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.minutes")%>
 				</td>
 			</tr>
 			<tr>
 				<td class="message" colspan="4">
 					<input type="hidden" name="recordop" value=""/>
-					<a name="add_schedule"><input type="button" value="Add Scheduled Time" onClick="javascript:AddScheduledTime()" alt="Add new schedule record"/></a>
+					<a name="add_schedule"><input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AddScheduledTime")%>" onClick="javascript:AddScheduledTime()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.AddNewScheduleRecord")%>"/></a>
 				</td>
 			</tr>
 		  </table>
@@ -1110,7 +1110,7 @@
 		{
 			try
 			{
-				outputConnector.outputSpecificationBody(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),outputSpecification,tabName);
+				outputConnector.outputSpecificationBody(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),outputSpecification,tabName);
 			}
 			finally
 			{
@@ -1130,7 +1130,7 @@
 		{
 			try
 			{
-				repositoryConnector.outputSpecificationBody(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),documentSpecification,tabName);
+				repositoryConnector.outputSpecificationBody(new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),documentSpecification,tabName);
 			}
 			finally
 			{
@@ -1149,20 +1149,20 @@
 	if (connectionName.length() > 0 && outputName.length() > 0)
 	{
 %>
-			<input type="button" value="Save" onClick="javascript:Save()" alt="Save this job"/>
+			<input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Save")%>" onClick="javascript:Save()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.SaveThisJob")%>"/>
 <%
 	}
 	else
 	{
-		if (tabName.equals("Connection"))
+		if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editjob.Connection")))
 		{
 %>
-			<input type="button" value="Continue" onClick="javascript:Continue()" alt="Continue to next screen"/>
+			<input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.Continue")%>" onClick="javascript:Continue()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.ContinueToNextScreen")%>"/>
 <%
 		}
 	}
 %>
-			&nbsp;<input type="button" value="Cancel" onClick="javascript:Cancel()" alt="Cancel job editing"/>
+			&nbsp;<input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.cancel")%>" onClick="javascript:Cancel()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.CancelJobEditing")%>"/>
 			</nobr></td>
 			</tr>
 		  </table>

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editoutput.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editoutput.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editoutput.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/editoutput.jsp Wed Dec 28 00:42:19 2011
@@ -36,8 +36,7 @@
 	// Figure out what the current tab name is.
 	String tabName = variableContext.getParameter("tabname");
 	if (tabName == null || tabName.length() == 0)
-		tabName = "Name";
-
+		tabName = Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Name");
 	String connectionName = null;
 	IOutputConnection connection = (IOutputConnection)threadContext.get("ConnectionObject");
 	if (connection == null)
@@ -80,10 +79,10 @@
 	ArrayList tabsArray = new ArrayList();
 
 	// Set up the predefined tabs
-	tabsArray.add("Name");
-	tabsArray.add("Type");
+	tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Name"));
+	tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Type"));
 	if (className.length() > 0)
-		tabsArray.add("Throttling");
+		tabsArray.add(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Throttling"));
 
 %>
 
@@ -94,7 +93,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: Edit Output Connection
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.ApacheManifoldCFEditOutputConnection")%>
 	</title>
 
 	<script type="text/javascript">
@@ -143,7 +142,7 @@
 			if (editconnection.connname.value == "")
 			{
 				alert("Connection must have a name");
-				SelectTab("Name");
+				SelectTab(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Name"));
 				document.editconnection.connname.focus();
 				return;
 			}
@@ -213,7 +212,7 @@
 	//-->
 	</script>
 <%
-	OutputConnectorFactory.outputConfigurationHeader(threadContext,className,new org.apache.manifoldcf.ui.jsp.JspWrapper(out),parameters,tabsArray);
+	OutputConnectorFactory.outputConfigurationHeader(threadContext,className,new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),parameters,tabsArray);
 %>
 
 </head>
@@ -230,7 +229,7 @@
 	if (set.getRowCount() == 0)
 	{
 %>
-	<p class="windowtitle">Edit Output Connection</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.EditOutputConnection")%></p>
 	<table class="displaytable"><tr><td class="message">No output connectors registered</td></tr></table>
 <%
 	}
@@ -269,13 +268,14 @@
 	  if (description.length() > 0)
 	  {
 %>
-			  <nobr>Edit output connection '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>'</nobr>
+			  <nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.EditOutputConnection")%> '<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>'</nobr>
 <%
 	  }
 	  else
 	  {
 %>
-		          <nobr>Edit an Output Connection</nobr>
+
+		          <nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.EditAnOutputConnection")%></nobr>
 <%
 	  }
 %>
@@ -285,17 +285,18 @@
 		<td class="tabbody" colspan='<%=Integer.toString(tabsArray.size()+1)%>'>
 <%
 
+
 	  // Name tab
-	  if (tabName.equals("Name"))
+	  if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Name")))
 	  {
 %>
 		    <table class="displaytable">
 			<tr><td class="separator" colspan="5"><hr/></td></tr>
 			<tr>
-				<td class="description"><nobr>Name:</nobr></td><td class="value" colspan="4">
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Name")%></nobr></td><td class="value" colspan="4">
 <%
 	    // If the connection doesn't exist yet, we are allowed to change the name.
-	    if (connection == null)
+	    if (connection == null || connectionName.length() < 1)
 	    {
 %>
 					<input type="text" size="32" name="connname" value='<%=org.apache.manifoldcf.ui.util.Encoder.attributeEscape(connectionName)%>'/>
@@ -312,7 +313,7 @@
 				</td>
 			</tr>
 			<tr>
-				<td class="description"><nobr>Description:</nobr></td><td class="value" colspan="4">
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Description")%></nobr></td><td class="value" colspan="4">
 					<input type="text" size="50" name="description" value='<%=org.apache.manifoldcf.ui.util.Encoder.attributeEscape(description)%>'/>
 				</td>
 			</tr>
@@ -330,13 +331,13 @@
 
 
 	  // "Type" tab
-	  if (tabName.equals("Type"))
+	  if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Type")))
 	  {
 %>
 		    <table class="displaytable">
 			<tr><td class="separator" colspan="5"><hr/></td></tr>
 			<tr>
-				<td class="description"><nobr>Connection type:</nobr></td><td class="value" colspan="4">
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.ConnectionType")%></nobr></td><td class="value" colspan="4">
 <%
 	    if (className.length() > 0)
 	    {
@@ -393,13 +394,13 @@
 
 
 	  // The "Throttling" tab
-	  if (tabName.equals("Throttling"))
+	  if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Throttling")))
 	  {
 %>
 		    <table class="displaytable">
 			<tr><td class="separator" colspan="2"><hr/></td></tr>
 			<tr>
-				<td class="description"><nobr>Max connections</nobr><br/><nobr>(per JVM):</nobr></td>
+				<td class="description"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.MaxConnections")%></nobr><br/><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.PerJVM")%></nobr></td>
 				<td class="value"><input type="text" size="6" name="maxconnections" value='<%=Integer.toString(maxConnections)%>'/></td>
 			</tr>
 		    </table>
@@ -414,7 +415,7 @@
 	  }
 
 	  if (className.length() > 0)
-		OutputConnectorFactory.outputConfigurationBody(threadContext,className,new org.apache.manifoldcf.ui.jsp.JspWrapper(out),parameters,tabName);
+		OutputConnectorFactory.outputConfigurationBody(threadContext,className,new org.apache.manifoldcf.ui.jsp.JspWrapper(out),pageContext.getRequest().getLocale(),parameters,tabName);
 
 %>
 		    <table class="displaytable">
@@ -424,20 +425,20 @@
 	  if (className.length() > 0)
 	  {
 %>
-			    <input type="button" value="Save" onClick="javascript:Save()" alt="Save this output connection"/>
+			    <input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Save")%>" onClick="javascript:Save()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.SaveThisOutputConnection")%>"/>
 <%
 	  }
 	  else
 	  {
-		if (tabName.equals("Type"))
+		if (tabName.equals(Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Type")))
 		{
 %>
-			    <input type="button" value="Continue" onClick="javascript:Continue()" alt="Continue to next page"/>
+			    <input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Continue")%>" onClick="javascript:Continue()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.ContinueToNextPage")%>"/>
 <%
 		}
 	  }
 %>
-			    &nbsp;<input type="button" value="Cancel" onClick="javascript:Cancel()" alt="Cancel output connection editing"/></nobr></td>
+			    &nbsp;<input type="button" value="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.Cancel")%>" onClick="javascript:Cancel()" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"editoutput.CancelOutputConnectionEditing")%>"/></nobr></td>
 			</tr>
 		    </table>
 		</td>

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/error.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/error.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/error.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/error.jsp Wed Dec 28 00:42:19 2011
@@ -27,7 +27,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: Error
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"error.ApacheManifoldCFError")%>
 	</title>
 
 </head>
@@ -38,10 +38,10 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">Error!</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"error.Error")%></p>
 
 <%
-	// These have to be fetched from request rather than variableContext since
+	// These have to be fetched from request rather than variableContext since error
 	// forwards screw up the multipart wrapper
 	String errorText = variableContext.getParameter("text");
 	String target = variableContext.getParameter("target");
@@ -49,7 +49,7 @@
 	<table class="displaytable">
 		<tr><td class="message"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(errorText)%></td></tr>
 		<tr><td class="separator"><hr/></td></tr>
-		<tr><td class="message"><a href='<%=java.net.URLEncoder.encode(target,"UTF-8")%>' alt="Return">OK</a></td></tr>
+		<tr><td class="message"><a href='<%=java.net.URLEncoder.encode(target,"UTF-8")%>' alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"error.Return")%>">OK</a></td></tr>
 	</table>
 
        </td>

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/execute.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/execute.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/execute.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/execute.jsp Wed Dec 28 00:42:19 2011
@@ -136,7 +136,7 @@
 						}
 					}
 
-					String error = RepositoryConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,connection.getConfigParams());
+					String error = RepositoryConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,pageContext.getRequest().getLocale(),connection.getConfigParams());
 						
 					if (error != null)
 					{
@@ -251,7 +251,7 @@
 					if (x != null && x.length() > 0)
 						connection.setMaxConnections(Integer.parseInt(x));
 
-					String error = AuthorityConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,connection.getConfigParams());
+					String error = AuthorityConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,pageContext.getRequest().getLocale(),connection.getConfigParams());
 					
 					if (error != null)
 					{
@@ -366,7 +366,7 @@
 					if (x != null && x.length() > 0)
 						connection.setMaxConnections(Integer.parseInt(x));
 
-					String error = OutputConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,connection.getConfigParams());
+					String error = OutputConnectorFactory.processConfigurationPost(threadContext,connection.getClassName(),variableContext,pageContext.getRequest().getLocale(),connection.getConfigParams());
 					
 					if (error != null)
 					{
@@ -731,7 +731,7 @@
 						{
 							try
 							{
-								String error = outputConnector.processSpecificationPost(variableContext,job.getOutputSpecification());
+								String error = outputConnector.processSpecificationPost(variableContext,pageContext.getRequest().getLocale(),job.getOutputSpecification());
 								if (error != null)
 								{
 									variableContext.setParameter("text",error);
@@ -756,7 +756,7 @@
 						{
 							try
 							{
-								String error = repositoryConnector.processSpecificationPost(variableContext,job.getSpecification());
+								String error = repositoryConnector.processSpecificationPost(variableContext,pageContext.getRequest().getLocale(),job.getSpecification());
 								if (error != null)
 								{
 									variableContext.setParameter("text",error);

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp Wed Dec 28 00:42:19 2011
@@ -39,7 +39,7 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">Welcome to Apache ManifoldCF</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"index.WelcomeToApacheManifoldFC")%></p>
        </td>
       </tr>
     </table>

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listauthorities.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listauthorities.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listauthorities.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listauthorities.jsp Wed Dec 28 00:42:19 2011
@@ -30,7 +30,7 @@
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 
 	<title>
-		Apache ManifoldCF: List Authorities
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.ApacheManifoldCFListAuthorities")%>
 	</title>
 
 	<script type="text/javascript">
@@ -57,7 +57,7 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">List of Authority Connections</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.ListOfAuthorityConnections")%></p>
 	<form class="standardform" name="listconnections" action="execute.jsp" method="POST">
 		<input type="hidden" name="op" value="Continue"/>
 		<input type="hidden" name="type" value="authority"/>
@@ -76,8 +76,8 @@
 				<td class="separator" colspan="5"><hr/></td>
 			</tr>
 			<tr class="headerrow">
-				<td class="columnheader"></td><td class="columnheader">Name</td><td class="columnheader">Description</td><td class="columnheader">Authority&nbsp;Type</td>
-				<td class="columnheader">Max</td>
+				<td class="columnheader"></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.Name")%></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.Description")%></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.AuthorityType")%></td>
+				<td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.Max")%></td>
 			</tr>
 <%
 	int i = 0;
@@ -98,7 +98,7 @@
 %>
 		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
 			<td class="columncell">
-				<a href='<%="viewauthority.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>View</a>&nbsp;<a href='<%="editauthority.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Edit</a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Delete</a>
+				<a href='<%="viewauthority.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.View")%></a>&nbsp;<a href='<%="editauthority.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.Edit")%></a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.Delete")%></a>
 			</td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
@@ -111,7 +111,7 @@
 			<tr>
 				<td class="separator" colspan="5"><hr/></td>
 			</tr>
-			<tr><td class="message" colspan="5"><a href="editauthority.jsp" alt="Add new connection">Add a new connection</a></td></tr>
+			<tr><td class="message" colspan="5"><a href="editauthority.jsp" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.AddNewConnection")%>"><%=Messages.getString(pageContext.getRequest().getLocale(),"listauthorities.AddaNewConnection")%></a></td></tr>
 		</table>
 
 <%

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listconnections.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listconnections.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listconnections.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listconnections.jsp Wed Dec 28 00:42:19 2011
@@ -29,7 +29,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: List Connections
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.ApacheManifoldCFListConnections")%>
 	</title>
 
 	<script type="text/javascript">
@@ -56,7 +56,7 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">List of Repository Connections</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.ListOfRepositoryConnections")%></p>
 	<form class="standardform" name="listconnections" action="execute.jsp" method="POST">
 		<input type="hidden" name="op" value="Continue"/>
 		<input type="hidden" name="type" value="connection"/>
@@ -75,8 +75,8 @@
 				<td class="separator" colspan="6"><hr/></td>
 			</tr>
 			<tr class="headerrow">
-				<td class="columnheader"></td><td class="columnheader">Name</td><td class="columnheader">Description</td><td class="columnheader">Connection&nbsp;Type</td><td class="columnheader">Authority</td>
-				<td class="columnheader">Max</td>
+				<td class="columnheader"></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Name")%></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Description")%></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.ConnectionType")%></td><td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Authority")%></td>
+				<td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Max")%></td>
 			</tr>
 <%
 	int i = 0;
@@ -98,12 +98,12 @@
 %>
 		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
 			<td class="columncell">
-				<a href='<%="viewconnection.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>View</a>&nbsp;<a href='<%="editconnection.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Edit</a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Delete</a>
+				<a href='<%="viewconnection.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.View")%></a>&nbsp;<a href='<%="editconnection.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Edit")%></a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.Delete")%></a>
 			</td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%></td>
-			<td class="columncell"><%=((authorityName==null)?"None (global authority)":org.apache.manifoldcf.ui.util.Encoder.bodyEscape(authorityName))%></td>
+			<td class="columncell"><%=((authorityName==null)?Messages.getString(pageContext.getRequest().getLocale(),"listconnections.GlobalAuthority"):org.apache.manifoldcf.ui.util.Encoder.bodyEscape(authorityName))%></td>
 			<td class="columncell"><%=Integer.toString(maxCount)%></td>
 		</tr>
 <%
@@ -112,7 +112,7 @@
 			<tr>
 				<td class="separator" colspan="6"><hr/></td>
 			</tr>
-			<tr><td class="message" colspan="6"><a href="editconnection.jsp" alt="Add a connection">Add a new connection</a></td></tr>
+			<tr><td class="message" colspan="6"><a href="editconnection.jsp" alt="Add a connection"><%=Messages.getString(pageContext.getRequest().getLocale(),"listconnections.AddNewConnection")%></a></td></tr>
 		</table>
 
 <%

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listjobs.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listjobs.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listjobs.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listjobs.jsp Wed Dec 28 00:42:19 2011
@@ -29,7 +29,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: List job descriptions
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.ApacheManifoldCFListJobDescriptions")%>
 	</title>
 
 	<script type="text/javascript">
@@ -57,7 +57,7 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">Job List</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.JobList")%></p>
 	<form class="standardform" name="listjobs" action="execute.jsp" method="POST">
 		<input type="hidden" name="op" value="Continue"/>
 		<input type="hidden" name="type" value="job"/>
@@ -76,10 +76,10 @@
 			</tr>
 			<tr class="headerrow">
 				<td class="columnheader"></td>
-				<td class="columnheader"><nobr>Name</nobr></td>
-				<td class="columnheader"><nobr>Output Connection</nobr></td>
-				<td class="columnheader"><nobr>Repository Connection</nobr></td>
-				<td class="columnheader"><nobr>Schedule Type</nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Name")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.OutputConnection")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.RepositoryConnection")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.ScheduleType")%></nobr></td>
 			</tr>
 <%
 	int i = 0;
@@ -102,7 +102,8 @@
 %>
 		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
 		    <td class="columncell">
-			<a href='<%="viewjob.jsp?jobid="+jd.getID()%>' alt='<%="View job "+jd.getID()%>'>View</a>&nbsp;<a href='<%="editjob.jsp?jobid="+jd.getID()%>' alt='<%="Edit job "+jd.getID()%>'>Edit</a>&nbsp;<a href='<%="javascript:Delete(\""+jd.getID()+"\")"%>' alt='<%="Delete job "+jd.getID()%>'>Delete</a>&nbsp;<a href='<%="editjob.jsp?origjobid="+jd.getID()%>' alt='<%="Copy job "+jd.getID()%>'>Copy</a>
+			<a href='<%="viewjob.jsp?jobid="+jd.getID()%>' alt='<%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Viewjob")+" "+jd.getID()%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.View")%></a>&nbsp;
+			<a href='<%="editjob.jsp?jobid="+jd.getID()%>' alt='<%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Editjob")+" "+jd.getID()%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Edit")%></a>&nbsp;<a href='<%="javascript:Delete(\""+jd.getID()+"\")"%>' alt='<%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.DeleteJob")+" "+jd.getID()%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Delete")%></a>&nbsp;<a href='<%="editjob.jsp?origjobid="+jd.getID()%>' alt='<%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.CopyJob")+" "+jd.getID()%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.Copy")%></a>
 		    </td>
 		    <td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getDescription())%></td>
 		    <td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getOutputConnectionName())%></td>
@@ -115,7 +116,7 @@
 			<tr>
 				<td class="separator" colspan="5"><hr/></td>
 			</tr>
-		<tr><td class="message" colspan="5"><a href="editjob.jsp" alt="Add a job">Add a new job</a></td></tr>
+		<tr><td class="message" colspan="5"><a href="editjob.jsp" alt="Add a job"><%=Messages.getString(pageContext.getRequest().getLocale(),"listjobs.AddaNewJob")%></a></td></tr>
 		</table>
 
 <%

Modified: incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listoutputs.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listoutputs.jsp?rev=1225063&r1=1225062&r2=1225063&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listoutputs.jsp (original)
+++ incubator/lcf/trunk/framework/crawler-ui/src/main/webapp/listoutputs.jsp Wed Dec 28 00:42:19 2011
@@ -29,7 +29,7 @@
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
 	<title>
-		Apache ManifoldCF: List Output Connections
+		<%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.ApacheManifoldCFListOutputConnections")%>
 	</title>
 
 	<script type="text/javascript">
@@ -37,7 +37,7 @@
 
 	function Delete(connectionName)
 	{
-		if (confirm("Delete output connection '"+connectionName+"'?"))
+		if (confirm("<%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.DeleteOutputConnection")%> '"+connectionName+"'?"))
 		{
 			document.listconnections.op.value="Delete";
 			document.listconnections.connname.value=connectionName;
@@ -56,7 +56,7 @@
       <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
       <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
        <td class="window">
-	<p class="windowtitle">List of Output Connections</p>
+	<p class="windowtitle"><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.ListOfOutputConnections")%></p>
 	<form class="standardform" name="listconnections" action="execute.jsp" method="POST">
 		<input type="hidden" name="op" value="Continue"/>
 		<input type="hidden" name="type" value="output"/>
@@ -76,10 +76,10 @@
 			</tr>
 			<tr class="headerrow">
 				<td class="columnheader"></td>
-				<td class="columnheader"><nobr>Name</nobr></td>
-				<td class="columnheader"><nobr>Description</nobr></td>
-				<td class="columnheader"><nobr>Connection Type</nobr></td>
-				<td class="columnheader">Max</td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.Name")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.Description")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.ConnectionType")%></nobr></td>
+				<td class="columnheader"><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.Max")%></td>
 			</tr>
 <%
 	int i = 0;
@@ -100,7 +100,7 @@
 %>
 		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
 			<td class="columncell">
-				<a href='<%="viewoutput.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>View</a>&nbsp;<a href='<%="editoutput.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Edit</a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'>Delete</a>
+				<a href='<%="viewoutput.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="View "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.View")%></a>&nbsp;<a href='<%="editoutput.jsp?connname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%="Edit "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.Edit")%></a>&nbsp;<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>' alt='<%="Delete "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.Delete")%></a>
 			</td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
 			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
@@ -113,7 +113,7 @@
 			<tr>
 				<td class="separator" colspan="5"><hr/></td>
 			</tr>
-			<tr><td class="message" colspan="5"><a href="editoutput.jsp" alt="Add an output connection">Add a new output connection</a></td></tr>
+			<tr><td class="message" colspan="5"><a href="editoutput.jsp" alt="<%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.AddAnOutputConnection")%>"><%=Messages.getString(pageContext.getRequest().getLocale(),"listoutputs.AddaNewOutputConnection")%></a></td></tr>
 		</table>
 
 <%



Mime
View raw message