directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1432063 - in /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core: ./ io/api/ io/jndi/
Date Fri, 11 Jan 2013 14:33:30 GMT
Author: pamarcelot
Date: Fri Jan 11 14:33:30 2013
New Revision: 1432063

URL: http://svn.apache.org/viewvc?rev=1432063&view=rev
Log:
Externalized and translated strings.

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages.properties
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_de.properties
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_fr.properties

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
Fri Jan 11 14:33:30 2013
@@ -51,7 +51,7 @@ public final class ConnectionCoreConstan
     public static final String DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"; //$NON-NLS-1$
 
     /** Defines an UTC/GMT time zone */
-    public static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone( "UTC" );
+    public static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone( "UTC" ); //$NON-NLS-1$
 
     /** The constant used to identify if certificates for secure connections should be validated
*/
     public static final String PREFERENCE_VALIDATE_CERTIFICATES = "validateCertificates";
//$NON-NLS-1$

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Messages.java?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
Fri Jan 11 14:33:30 2013
@@ -87,4 +87,7 @@ public class Messages extends NLS
     public static String StudioKeyStoreManager_CantRemoveCertificateFromTrustStore;
     public static String StudioKeyStoreManager_CantReadTrustStore;
 
+    public static String DirectoryApiConnectionWrapper_NoConnection;
+    public static String DirectoryApiConnectionWrapper_UnableToConnect;
+
 }

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Fri Jan 11 14:33:30 2013
@@ -227,7 +227,7 @@ public class DirectoryApiConnectionWrapp
                     boolean connected = ldapConnection.connect();
                     if ( !connected )
                     {
-                        throw new Exception( "Unable to connect" );
+                        throw new Exception( Messages.DirectoryApiConnectionWrapper_UnableToConnect
);
                     }
 
                     // Start TLS
@@ -465,7 +465,7 @@ public class DirectoryApiConnectionWrapp
         }
         else
         {
-            throw new Exception( "No Connection" );
+            throw new Exception( Messages.DirectoryApiConnectionWrapper_NoConnection );
         }
     }
 
@@ -1099,7 +1099,7 @@ public class DirectoryApiConnectionWrapp
         }
         if ( ldapConnection == null )
         {
-            throw new NamingException( "No Connection" );
+            throw new NamingException( Messages.DirectoryApiConnectionWrapper_NoConnection
);
         }
 
         // loop for reconnection

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
Fri Jan 11 14:33:30 2013
@@ -1382,7 +1382,7 @@ public class JNDIConnectionWrapper imple
                 }
                 else
                 {
-                    throw new UnsupportedCallbackException( callBack, "Callback not supported"
);
+                    throw new UnsupportedCallbackException( callBack, "Callback not supported"
); //$NON-NLS-1$
                 }
             }
         }

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages.properties?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages.properties
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages.properties
Fri Jan 11 14:33:30 2013
@@ -53,3 +53,6 @@ StudioTrustManager_CantCreateTrustManage
 StudioKeyStoreManager_CantReadTrustStore=Can't read certificates from key store.
 StudioKeyStoreManager_CantAddCertificateToTrustStore=Can't add certificate to key store.
 StudioKeyStoreManager_CantRemoveCertificateFromTrustStore=Can't remove certificate from key
store.
+
+DirectoryApiConnectionWrapper_NoConnection=No Connection
+DirectoryApiConnectionWrapper_UnableToConnect=Unable to connect

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_de.properties?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_de.properties
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_de.properties
Fri Jan 11 14:33:30 2013
@@ -55,3 +55,6 @@ StudioTrustManager_CantCreateTrustManage
 StudioKeyStoreManager_CantReadTrustStore=Fehler beim Lesen der Zertifikate aus dem Zertifikatsspeicher.
 StudioKeyStoreManager_CantAddCertificateToTrustStore=Fehler beim Hinzuf\u00FCgen des Zertifikates
zum Zertifikatsspeicher.
 StudioKeyStoreManager_CantRemoveCertificateFromTrustStore=Fehler beim L\u00FCschen des Zertifikates
aus dem Zertifikatsspeicher.
+
+DirectoryApiConnectionWrapper_NoConnection=Keine Verbindung
+DirectoryApiConnectionWrapper_UnableToConnect=Verbindung nicht möglich

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_fr.properties?rev=1432063&r1=1432062&r2=1432063&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_fr.properties
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/messages_fr.properties
Fri Jan 11 14:33:30 2013
@@ -55,3 +55,6 @@ StudioTrustManager_CantCreateTrustManage
 StudioKeyStoreManager_CantReadTrustStore=Impossible de charger le magasin de confiance permanent.
 StudioKeyStoreManager_CantAddCertificateToTrustStore=Impossible d'ajouter le certificat au
magasin de confiance.
 StudioKeyStoreManager_CantRemoveCertificateFromTrustStore=Impossible de supprimer le certificat
du magasin de confiance.
+
+DirectoryApiConnectionWrapper_NoConnection=Pas de connexion
+DirectoryApiConnectionWrapper_UnableToConnect=Impossible de se connecter



Mime
View raw message