directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r919765 [3/3] - in /directory/shared/trunk: i18n/src/main/java/org/apache/directory/shared/i18n/ i18n/src/main/resources/org/apache/directory/shared/i18n/ ldap/src/main/java/org/apache/directory/shared/ldap/schema/ ldap/src/main/java/org/ap...
Date Sat, 06 Mar 2010 13:44:55 GMT
Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SystemUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SystemUtils.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SystemUtils.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SystemUtils.java
Sat Mar  6 13:44:54 2010
@@ -22,6 +22,8 @@
 
 import java.io.File;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
 /**
  * <p>
@@ -1457,8 +1459,7 @@
         catch ( SecurityException ex )
         {
             // we are not allowed to look at this property
-            System.err.println( "Caught a SecurityException reading the system property '"
+ property
-                + "'; the SystemUtils property value will default to null." );
+            System.err.println( I18n.err( I18n.ERR_04437, property ) );
             return null;
         }
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ToStringBuilder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ToStringBuilder.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ToStringBuilder.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ToStringBuilder.java
Sat Mar  6 13:44:54 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.ldap.util;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
 /**
  * <p>
@@ -201,7 +203,7 @@
     {
         if ( style == null )
         {
-            throw new IllegalArgumentException( "The style must not be null" );
+            throw new IllegalArgumentException( I18n.err( I18n.ERR_04438 ) );
         }
         defaultStyle = style;
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java
Sat Mar  6 13:44:54 2010
@@ -43,6 +43,8 @@
 
 package org.apache.directory.shared.ldap.util;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
    /*
     * @(#)UnixCrypt.java   0.9 96/11/25
@@ -508,11 +510,11 @@
      {
          if (arg.length!=2)
          {
-             System.err.println("Usage - java org.mortbay.util.UnixCrypt <key> <salt>");
+             System.err.println( I18n.err( I18n.ERR_04439 ) );
              System.exit(1);
          }
  
-         System.err.println("Crypt="+crypt(arg[0],arg[1]));
+         System.err.println( I18n.err( I18n.ERR_04440, crypt(arg[0],arg[1]) ) );
      }
      
  }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnBranchNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnBranchNode.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnBranchNode.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnBranchNode.java
Sat Mar  6 13:44:54 2010
@@ -26,6 +26,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.name.RDN;
 import org.slf4j.Logger;
@@ -104,7 +105,7 @@
             
             if ( newNode instanceof DnLeafNode )
             {
-                String message = "Overlapping partitions are not allowed";
+                String message = I18n.err( I18n.ERR_04334 );
                 LOG.error( message );
                 throw new NamingException( message );
             }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/unicode/InvalidCharacterException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/unicode/InvalidCharacterException.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/unicode/InvalidCharacterException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/unicode/InvalidCharacterException.java
Sat Mar  6 13:44:54 2010
@@ -20,6 +20,8 @@
 
 import java.io.IOException;
 
+import org.apache.directory.shared.i18n.I18n;
+
 /**
  * 
  * Exception thrown when a Character is invalid
@@ -42,6 +44,6 @@
     @Override
     public String getMessage()
     {
-        return "Invalid Character 0x" + Integer.toHexString( input );
+        return I18n.err( I18n.ERR_04335, Integer.toHexString( input ) );
     }
 }
\ No newline at end of file



Mime
View raw message