manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1297909 - in /incubator/lcf/trunk/connectors/alfresco/connector/src/main: java/org/apache/manifoldcf/crawler/connectors/alfresco/ native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/ resources/org/apache/manifoldcf/crawler/conne...
Date Wed, 07 Mar 2012 09:26:47 GMT
Author: kwright
Date: Wed Mar  7 09:26:46 2012
New Revision: 1297909

URL: http://svn.apache.org/viewvc?rev=1297909&view=rev
Log:
Finish Velocity-based i18n work for Alfresco Connector.  Part of CONNECTORS-420.

Added:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js
      - copied unchanged from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
      - copied, changed from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_en_US.html
Removed:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_ja_JP.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_ja_JP.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_ja_JP.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_ja_JP.js
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_ja_JP.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_ja_JP.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_ja_JP.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_en_US.html
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_ja_JP.html
Modified:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java

Modified: incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java?rev=1297909&r1=1297908&r2=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
Wed Mar  7 09:26:46 2012
@@ -117,13 +117,13 @@ public class AlfrescoRepositoryConnector
   private static final String JOB_STARTPOINT_NODE_TYPE = "startpoint";
 
   /** The Lucene Query label for the configuration tab of the job settings */
-  private static final String TAB_LABEL_LUCENE_QUERY = "Lucene Query";
+  private static final String TAB_LABEL_LUCENE_QUERY_RESOURCE = "AlfrescoConnector.LuceneQuery";
 
   /** Read activity */
   protected final static String ACTIVITY_READ = "read document";
   
   /** Alfresco Server configuration tab name */
-  private static final String ALFRESCO_SERVER_TAB_NAME = "Server";
+  private static final String ALFRESCO_SERVER_TAB_RESOURCE = "AlfrescoConnector.Server";
   
   /** Separator used when a node has more than one content stream. More than one d:content
property */
   private static final String INGESTION_SEPARATOR_FOR_MULTI_BINARY = ";";
@@ -511,7 +511,7 @@ public class AlfrescoRepositoryConnector
   public void outputConfigurationHeader(IThreadContext threadContext,
       IHTTPOutput out, Locale locale, ConfigParams parameters, List<String> tabsArray)
       throws ManifoldCFException, IOException {
-    tabsArray.add(ALFRESCO_SERVER_TAB_NAME);
+    tabsArray.add(Messages.getString(locale,ALFRESCO_SERVER_TAB_RESOURCE));
     outputResource(EDIT_CONFIG_HEADER_FORWARD, out, locale, parameters);
   }
 
@@ -562,7 +562,7 @@ public class AlfrescoRepositoryConnector
     parameters.setParameter(AlfrescoConfig.PATH_PARAM, path);
     parameters.setParameter(AlfrescoConfig.TENANT_DOMAIN_PARAM, tenantDomain);
       
-    if(ALFRESCO_SERVER_TAB_NAME.equals(tabName)){
+    if(Messages.getString(locale,ALFRESCO_SERVER_TAB_RESOURCE).equals(tabName)){
       outputResource(EDIT_CONFIG_FORWARD, out, locale, parameters);  
 
     } else {
@@ -752,7 +752,7 @@ public class AlfrescoRepositoryConnector
     
     ConfigParams params = new ConfigParams();
     params.setParameter(AlfrescoConfig.LUCENE_QUERY_PARAM, luceneQuery);
-    if (tabName.equals(TAB_LABEL_LUCENE_QUERY)) {
+    if (tabName.equals(Messages.getString(locale,TAB_LABEL_LUCENE_QUERY_RESOURCE))) {
       outputResource(EDIT_SPEC_FORWARD, out, locale, params);
     } else {
       outputResource(HIDDEN_SPEC_FORWARD, out, locale, params);
@@ -777,7 +777,7 @@ public class AlfrescoRepositoryConnector
   public void outputSpecificationHeader(IHTTPOutput out,
       Locale locale, DocumentSpecification ds, List<String> tabsArray)
       throws ManifoldCFException, IOException {
-    tabsArray.add(TAB_LABEL_LUCENE_QUERY);
+    tabsArray.add(Messages.getString(locale,TAB_LABEL_LUCENE_QUERY_RESOURCE));
     outputResource(EDIT_SPEC_HEADER_FORWARD, out, locale, params);
   }
 

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
Wed Mar  7 09:26:46 2012
@@ -14,3 +14,35 @@
 # limitations under the License.
 
 # Fill in this file with English words and phrases
+
+AlfrescoConnector.Server=Server
+
+AlfrescoConnector.ParametersColon=Parameters:
+
+AlfrescoConnector.TenantDomainColon=Tenant domain:
+AlfrescoConnector.UserNameColon=Username:
+AlfrescoConnector.PasswordColon=Password:
+AlfrescoConnector.ProtocolColon=Protocol:
+AlfrescoConnector.ServerColon=Server:
+AlfrescoConnector.PortColon=Port:
+AlfrescoConnector.PathColon=Path:
+
+AlfrescoConnector.TenantDomainEquals=tenantDomain=
+AlfrescoConnector.UserNameEquals=username=
+AlfrescoConnector.PasswordEquals=password=
+AlfrescoConnector.ProtocolEquals=protocol=
+AlfrescoConnector.ServerEquals=server=
+AlfrescoConnector.PortEquals=port=
+AlfrescoConnector.PathEquals=path=
+
+AlfrescoConnector.TheUsernameMustNotBeNull=The username must not be null
+AlfrescoConnector.ThePasswordMustNotBeNull=The password must not be null
+AlfrescoConnector.ServerNameMustNotBeNull=Server name must not be null
+AlfrescoConnector.ServerCantContainSlash=Server name can't contain the character '/'
+AlfrescoConnector.ThePortMustNotBeNull=The port must not be null
+AlfrescoConnector.TheServerPortMustBeAValidInteger=The server port must be a valid integer
+AlfrescoConnector.PathMustNotBeNull=Path must not be null
+
+AlfrescoConnector.LuceneQuery=Lucene Query
+
+AlfrescoConnector.LuceneQueryColon=Lucene Query:

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
Wed Mar  7 09:26:46 2012
@@ -14,3 +14,35 @@
 # limitations under the License.
 
 # Fill in this file with Japanese words and phrases
+
+AlfrescoConnector.Server=サーバ
+
+AlfrescoConnector.ParametersColon=引数:
+
+AlfrescoConnector.TenantDomainColon=テナントドメイン:
+AlfrescoConnector.UserNameColon=ユーザ名:
+AlfrescoConnector.PasswordColon=パスワード:
+AlfrescoConnector.ProtocolColon=プロトコル:
+AlfrescoConnector.ServerColon=サーバ:
+AlfrescoConnector.PortColon=ポート:
+AlfrescoConnector.PathColon=パス:
+
+AlfrescoConnector.TenantDomainEquals=テナントドメイン=
+AlfrescoConnector.UserNameEquals=ユーザ名=
+AlfrescoConnector.PasswordEquals=パスワード=
+AlfrescoConnector.ProtocolEquals=プロトコル=
+AlfrescoConnector.ServerEquals=サーバ=
+AlfrescoConnector.PortEquals=ポート=
+AlfrescoConnector.PathEquals=パス=
+
+AlfrescoConnector.TheUsernameMustNotBeNull=ユーザ名を入力してください
+AlfrescoConnector.ThePasswordMustNotBeNull=パスワードを入力してください
+AlfrescoConnector.ServerNameMustNotBeNull=サーバ名を入力してください
+AlfrescoConnector.ServerCantContainSlash=サーバ名に文字「/」を含めないでください
+AlfrescoConnector.ThePortMustNotBeNull=ポート番号を入力してください
+AlfrescoConnector.TheServerPortMustBeAValidInteger=サーバポートには整数を入力してください
+AlfrescoConnector.PathMustNotBeNull=パスを入力してください
+
+AlfrescoConnector.LuceneQuery=Luceneクエリー
+
+AlfrescoConnector.LuceneQueryColon=Luceneクエリー:

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
Wed Mar  7 09:26:46 2012
@@ -24,37 +24,37 @@
   <tr>
     <td class="description">
       <nobr>
-        Tenant domain:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.TenantDomainColon'))
       </nobr>
     </td>
     <td class="value">
-        <input id="tenantDomain" name="tenantDomain" type="text" size="32" value="$TENANTDOMAIN_A"
/>
+        <input id="tenantDomain" name="tenantDomain" type="text" size="32" value="$Encoder.attributeEscape($TENANTDOMAIN)"
/>
     </td>
   </tr>
   <tr>
     <td class="description">
       <nobr>
-        Username:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.UserNameColon'))
       </nobr>
     </td>
     <td class="value">
-      <input id="username" type="text" name="username" value="$USERNAME_A" />
+      <input id="username" type="text" name="username" value="$Encoder.attributeEscape($USERNAME)"
/>
     </td>
   </tr>
   <tr>
     <td class="description">
       <nobr>
-        Password:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PasswordColon'))
       </nobr>
     </td>
     <td class="value">
-      <input id="password" type="password" name="password" value="$PASSWORD_A" />
+      <input id="password" type="password" name="password" value="$Encoder.attributeEscape($PASSWORD)"
/>
     </td>
   </tr>
   <tr>
     <td class="description">
       <nobr>
-        Protocol:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.ProtocolColon'))
       </nobr>
     </td>
     <td class="value">
@@ -75,31 +75,31 @@
   <tr>
     <td class="description">
       <nobr>
-        Server:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.ServerColon'))
       </nobr>
     </td>
     <td class="value">
-        <input id="server" name="server" type="text" size="32" value="$SERVER_A"/>
+        <input id="server" name="server" type="text" size="32" value="$Encoder.attributeEscape($SERVER)"/>
     </td>
   </tr>
   <tr>
     <td class="description">
       <nobr>
-        Port:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PortColon'))
       </nobr>
     </td>
     <td class="value">
-        <input id="port" name="port" type="text" size="5" value="$PORT_A" />
+        <input id="port" name="port" type="text" size="5" value="$Encoder.attributeEscape($PORT)"
/>
     </td>
   </tr>
   <tr>
     <td class="description">
       <nobr>
-        Path:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PathColon'))
       </nobr>
     </td>
     <td class="value">
-        <input id="path" name="path" type="text" size="32" value="$PATH_A" />
+        <input id="path" name="path" type="text" size="32" value="$Encoder.attributeEscape($PATH)"
/>
     </td>
   </tr>
-</table>
\ No newline at end of file
+</table>

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.js)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.js&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration_en_US.js
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
Wed Mar  7 09:26:46 2012
@@ -26,50 +26,50 @@ function checkConfigForSave()
 {
   if (editconnection.username.value == "")
   {
-    alert("The username must be not null");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.TheUsernameMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.username.focus();
     return false;
   }
   if (editconnection.password.value == "")
   {
-    alert("The password must be not null");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.ThePasswordMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.password.focus();
     return false;
   }
   if (editconnection.server.value =="")
   {
-    alert("Server name must be not null");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.ServerNameMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.server.focus();
     return false;
   }
   else if(!editconnection.server.value.indexOf('/')==-1)
   {
-    alert("Server name can't contain the character '/'");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.ServerNameCantContainSlash'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.server.focus();
     return false;
   }
   if (editconnection.port.value == "")
   {
-    alert("The port must be not null");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.ThePortMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.port.focus();
     return false;
   }
   else if (!isInteger(editconnection.port.value))
   {
-    alert("The server port must be a valid integer");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.TheServerPortMustBeAValidInteger'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.port.focus();
     return false;
   }
   if(editconnection.path.value == "")
   {
-    alert("Path must be not null");
-    SelectTab("Server");
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.PathMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('AlfrescoConnector.Server'))");
     editconnection.path.focus();
     return false;
   }

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
Wed Mar  7 09:26:46 2012
@@ -24,12 +24,12 @@
   <tr>
     <td class="description">
       <nobr>
-        Lucene Query:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.LuceneQueryColon'))
       </nobr>
     </td>
     <td class="value">
       <nobr>
-        <input type="text" size="120" name="luceneQuery" value="$LUCENEQUERY_A" />
+        <input type="text" size="120" name="luceneQuery" value="$Encoder.attributeEscape($LUCENEQUERY)"
/>
       </nobr>
     </td>
   </tr>

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenConfiguration.html
Wed Mar  7 09:26:46 2012
@@ -14,10 +14,10 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-<input type="hidden" name="username" value="$USERNAME_A" />
-<input type="hidden" name="password" value="$PASSWORD_A" />
-<input type="hidden" name="protocol" value="$PROTOCOL_A" />
-<input type="hidden" name="server" value="$SERVER_A" />
-<input type="hidden" name="port" value="$PORT_A" />
-<input type="hidden" name="path" value="$PATH_A" />
-<input type="hidden" name="tenantDomain" value="$TENANTDOMAIN_A" />
\ No newline at end of file
+<input type="hidden" name="username" value="$Encoder.attributeEscape($USERNAME)" />
+<input type="hidden" name="password" value="$Encoder.attributeEscape($PASSWORD)" />
+<input type="hidden" name="protocol" value="$Encoder.attributeEscape($PROTOCOL)" />
+<input type="hidden" name="server" value="$Encoder.attributeEscape($SERVER)" />
+<input type="hidden" name="port" value="$Encoder.attributeEscape($PORT)" />
+<input type="hidden" name="path" value="$Encoder.attributeEscape($PATH)" />
+<input type="hidden" name="tenantDomain" value="$Encoder.attributeEscape($TENANTDOMAIN)"
/>
\ No newline at end of file

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/hiddenSpecification.html
Wed Mar  7 09:26:46 2012
@@ -14,4 +14,4 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-<input type="hidden" name="luceneQuery" value="$LUCENEQUERY_A" />
\ No newline at end of file
+<input type="hidden" name="luceneQuery" value="$Encoder.attributeEscape($LUCENEQUERY)"
/>
\ No newline at end of file

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
Wed Mar  7 09:26:46 2012
@@ -19,36 +19,36 @@
   <tr>
     <td class="description" colspan="1">
       <nobr>
-        Parameters:
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.ParametersColon'))
       </nobr>
     </td>
     <td class="value" colspan="3">
       <nobr>
-        tenantDomain=$TENANTDOMAIN_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.TenantDomainEquals'))$Encoder.bodyEscape($TENANTDOMAIN)
       </nobr>
       <br />
       <nobr>
-        username=$USERNAME_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.UserNameEquals'))$Encoder.bodyEscape($USERNAME)
       </nobr>
       <br />
       <nobr>
-        password=********
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PasswordEquals'))********
       </nobr>
       <br />
       <nobr>
-        protocol=$PROTOCOL_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.ProtocolEquals'))$Encoder.bodyEscape($PROTOCOL)
       </nobr>
       <br />
       <nobr>
-        server=$SERVER_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.ServerEquals'))$Encoder.bodyEscape($SERVER)
       </nobr>
       <br />
       <nobr>
-        port=$PORT_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PortEquals'))$Encoder.bodyEscape($PORT)
       </nobr>
       <br />
       <nobr>
-        path=$PATH_B
+        $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.PathEquals'))$Encoder.bodyEscape($PATH)
       </nobr>
       <br />
     </td>

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
(from r1297875, incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_en_US.html)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_en_US.html&r1=1297875&r2=1297909&rev=1297909&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification_en_US.html
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
Wed Mar  7 09:26:46 2012
@@ -18,10 +18,10 @@
 <table class="displaytable">
   <tr>
     <td class="description">
-      Lucene Query:
+      $Encoder.bodyEscape($ResourceBundle.getString('AlfrescoConnector.LuceneQueryColon'))
     </td>
     <td class="value">
-      $LUCENEQUERY_B
+      $Encoder.bodyEscape($LUCENEQUERY)
     </td>
   </tr>
 </table>



Mime
View raw message