incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1229225 - in /incubator/lcf/trunk/connectors/livelink/connector/src/main: java/org/apache/manifoldcf/crawler/connectors/livelink/ native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/
Date Mon, 09 Jan 2012 16:00:19 GMT
Author: kwright
Date: Mon Jan  9 16:00:18 2012
New Revision: 1229225

URL: http://svn.apache.org/viewvc?rev=1229225&view=rev
Log:
Patch for CONNECTORS-363.  Further patches will be required.

Modified:
    incubator/lcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkAuthority.java
    incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_en_US.properties
    incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_ja_JP.properties

Modified: incubator/lcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkAuthority.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkAuthority.java?rev=1229225&r1=1229224&r2=1229225&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkAuthority.java
(original)
+++ incubator/lcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkAuthority.java
Mon Jan  9 16:00:18 2012
@@ -461,8 +461,8 @@ public class LivelinkAuthority extends o
     Locale locale, ConfigParams parameters, List<String> tabsArray)
     throws ManifoldCFException, IOException
   {
-    tabsArray.add("Server");
-    tabsArray.add("User Mapping");
+    tabsArray.add(Messages.getString(locale,"LivelinkConnector.Server"));
+    tabsArray.add(Messages.getString(locale,"LivelinkConnector.UserMapping"));
     out.print(
 "<script type=\"text/javascript\">\n"+
 "<!--\n"+
@@ -470,13 +470,13 @@ public class LivelinkAuthority extends o
 "{\n"+
 "  if (editconnection.serverport.value != \"\" && !isInteger(editconnection.serverport.value))\n"+
 "  {\n"+
-"    alert(\"A valid number is required\");\n"+
+"    alert(" + Messages.getString(locale,"LivelinkConnector.AValidNumberIsRequired") + ");\n"+
 "    editconnection.serverport.focus();\n"+
 "    return false;\n"+
 "  }\n"+
 "  if (editconnection.usernameregexp.value != \"\" && !isRegularExpression(editconnection.usernameregexp.value))\n"+
 "  {\n"+
-"    alert(\"User name regular expression must be valid regular expression\");\n"+
+"    alert(" + Messages.getString(locale,"LivelinkConnector.UserNameRegularExpressionMustBeValidRegularExpression")
+ ");\n"+
 "    editconnection.usernameregexp.focus();\n"+
 "    return false;\n"+
 "  }\n"+
@@ -487,22 +487,22 @@ public class LivelinkAuthority extends o
 "{\n"+
 "  if (editconnection.servername.value == \"\")\n"+
 "  {\n"+
-"    alert(\"Enter a livelink server name\");\n"+
-"    SelectTab(\"Server\");\n"+
+"    alert(" + Messages.getString(locale,"LivelinkConnector.EnterALivelinkServerName") +
");\n"+
+"    SelectTab(" + Messages.getString(locale,"LivelinkConnector.Server") + ");\n"+
 "    editconnection.servername.focus();\n"+
 "    return false;\n"+
 "  }\n"+
 "  if (editconnection.serverport.value == \"\")\n"+
 "  {\n"+
-"    alert(\"A server port number is required\");\n"+
-"    SelectTab(\"Server\");\n"+
+"    alert(" + Messages.getString(locale,"LivelinkConnector.AServerPortNumberIsRequired")
+ ");\n"+
+"    SelectTab(" + Messages.getString(locale,"LivelinkConnector.Server") + ");\n"+
 "    editconnection.serverport.focus();\n"+
 "    return false;\n"+
 "  }\n"+
 "  if (editconnection.usernameregexp.value == \"\")\n"+
 "  {\n"+
-"    alert(\"User name regular expression cannot be null\");\n"+
-"    SelectTab(\"User Mapping\");\n"+
+"    alert(" + Messages.getString(locale,"LivelinkConnector.UserNameRegularExpressionCannotBeNull")
+ ");\n"+
+"    SelectTab(" + Messages.getString(locale,"LivelinkConnector.UserMapping") + ");\n"+
 "    editconnection.usernameregexp.focus();\n"+
 "    return false;\n"+
 "  }\n"+
@@ -562,25 +562,25 @@ public class LivelinkAuthority extends o
     livelinkUserExpr = matchMap.getReplaceString(0);
 
     // The "Server" tab
-    if (tabName.equals("Server"))
+    if (tabName.equals(Messages.getString(locale,"LivelinkConnector.Server")))
     {
       out.print(
 "<table class=\"displaytable\">\n"+
 "  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>Server name:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.ServerName")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"text\" size=\"64\" name=\"servername\" value=\""+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(serverName)+"\"/></td>\n"+
 "  </tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>Server port:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.ServerPort")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"text\" size=\"5\" name=\"serverport\" value=\""+serverPort+"\"/></td>\n"+
 "  </tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>Server user name:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.ServerUserName")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"text\" size=\"32\" name=\"serverusername\"
value=\""+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(serverUserName)+"\"/></td>\n"+
 "  </tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>Server password:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.ServerPassword")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"password\" size=\"32\" name=\"serverpassword\"
value=\""+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(serverPassword)+"\"/></td>\n"+
 "  </tr>\n"+
 "</table>\n"
@@ -598,17 +598,17 @@ public class LivelinkAuthority extends o
     }
 
     // The "User Mapping" tab
-    if (tabName.equals("User Mapping"))
+    if (tabName.equals(Messages.getString(locale,"LivelinkConnector.UserMapping")))
     {
       out.print(
 "<table class=\"displaytable\">\n"+
 "  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>User name regular expression:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.UserNameRegularExpression")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"text\" size=\"40\" name=\"usernameregexp\"
value=\""+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(usernameRegexp)+"\"/></td>\n"+
 "  </tr>\n"+
 "  <tr>\n"+
-"    <td class=\"description\"><nobr>Livelink user expression:</nobr></td>\n"+
+"    <td class=\"description\"><nobr>" + Messages.getString(locale,"LivelinkConnector.LivelinkUserExpression")
+ "</nobr></td>\n"+
 "    <td class=\"value\"><input type=\"text\" size=\"40\" name=\"livelinkuserexpr\"
value=\""+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(livelinkUserExpr)+"\"/></td>\n"+
 "  </tr>\n"+
 "</table>\n"
@@ -679,7 +679,7 @@ public class LivelinkAuthority extends o
     out.print(
 "<table class=\"displaytable\">\n"+
 "  <tr>\n"+
-"    <td class=\"description\" colspan=\"1\"><nobr>Parameters:</nobr></td>\n"+
+"    <td class=\"description\" colspan=\"1\"><nobr>" + Messages.getString(locale,"LivelinkConnector.Parameters")
+ "</nobr></td>\n"+
 "    <td class=\"value\" colspan=\"3\">\n"
     );
     Iterator iter = parameters.listParameters();

Modified: incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_en_US.properties
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_en_US.properties?rev=1229225&r1=1229224&r2=1229225&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_en_US.properties
(original)
+++ incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_en_US.properties
Mon Jan  9 16:00:18 2012
@@ -22,4 +22,17 @@ LivelinkConnector.Paths=Paths
 LivelinkConnector.Filters=Filters
 LivelinkConnector.Security=Security
 LivelinkConnector.Metadata=Metadata
+LivelinkConnector.UserMapping=User Mapping
+LivelinkConnector.AValidNumberIsRequired=\"A valid number is required\"
+LivelinkConnector.UserNameRegularExpressionMustBeValidRegularExpression=\"User name regular
expression must be valid regular expression\"
+LivelinkConnector.EnterALivelinkServerName=\"Enter a livelink server name\"
+LivelinkConnector.AServerPortNumberIsRequired=\"A server port number is required\"
+LivelinkConnector.UserNameRegularExpressionCannotBeNull=\"User name regular expression cannot
be null\"
+LivelinkConnector.ServerName=Server name:
+LivelinkConnector.ServerPort=Server port:
+LivelinkConnector.ServerUserName=Server user name:
+LivelinkConnector.ServerPassword=Server password:
+LivelinkConnector.UserNameRegularExpression=User name regular expression:
+LivelinkConnector.LivelinkUserExpression=Livelink user expression:
+LivelinkConnector.Parameters=Parameters:
 

Modified: incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_ja_JP.properties?rev=1229225&r1=1229224&r2=1229225&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_ja_JP.properties
(original)
+++ incubator/lcf/trunk/connectors/livelink/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/livelink/common_ja_JP.properties
Mon Jan  9 16:00:18 2012
@@ -22,4 +22,16 @@ LivelinkConnector.Paths=パス
 LivelinkConnector.Filters=フィルタ
 LivelinkConnector.Security=セキュリティ
 LivelinkConnector.Metadata=メタデータ
-
+LivelinkConnector.UserMapping=ユーザマップ
+LivelinkConnector.AValidNumberIsRequired=\"数値を入力してください\"
+LivelinkConnector.UserNameRegularExpressionMustBeValidRegularExpression=\"正しいユーザ名正規表現式を入力してください\"
+LivelinkConnector.EnterALivelinkServerName=\"LiveLinkサーバ名を入力してください\"
+LivelinkConnector.AServerPortNumberIsRequired=\"サーバポート番号を入力してください\"
+LivelinkConnector.UserNameRegularExpressionCannotBeNull=\"ユーザ名正規表現を入力してください\"
+LivelinkConnector.ServerName=サーバ名:
+LivelinkConnector.ServerPort=サーバポート:
+LivelinkConnector.ServerUserName=サーバユーザ名:
+LivelinkConnector.ServerPassword=サーバパスワード:
+LivelinkConnector.UserNameRegularExpression=ユーザ名正規表現式:
+LivelinkConnector.LivelinkUserExpression=Livelinkユーザ式:
+LivelinkConnector.Parameters=引数:



Mime
View raw message