directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1432110 - in /directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core: ./ jobs/ model/ model/filter/ model/filter/parser/ model/impl/ utils/
Date Fri, 11 Jan 2013 15:55:00 GMT
Author: pamarcelot
Date: Fri Jan 11 15:55:00 2013
New Revision: 1432110

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

Added:
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/Messages.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_de.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_fr.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Messages.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_de.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_fr.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Messages.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages_fr.properties
Modified:
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreMessages.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCorePlugin.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_de.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_fr.properties
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportLdifRunnable.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapAndFilterComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterExtensibleComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterItemComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapNotFilterComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapOrFilterComponent.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/parser/LdapFilterToken.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Value.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java Fri Jan 11 15:55:00 2013
@@ -90,12 +90,12 @@ public class BrowserConnectionIO
     private static final String DN_TAG = "dn"; //$NON-NLS-1$
 
     // Scope values
-    private static final String SCOPE_OBJECT = "OBJECT";
-    private static final String SCOPE_ONELEVEL = "ONELEVEL";
-    private static final String SCOPE_SUBTREE = "SUBTREE";
-    private static final String SCOPE_OBJECT_2 = "base";
-    private static final String SCOPE_ONELEVEL_2 = "one";
-    private static final String SCOPE_SUBTREE_2 = "sub";
+    private static final String SCOPE_OBJECT = "OBJECT"; //$NON-NLS-1$
+    private static final String SCOPE_ONELEVEL = "ONELEVEL"; //$NON-NLS-1$
+    private static final String SCOPE_SUBTREE = "SUBTREE"; //$NON-NLS-1$
+    private static final String SCOPE_OBJECT_2 = "base"; //$NON-NLS-1$
+    private static final String SCOPE_ONELEVEL_2 = "one"; //$NON-NLS-1$
+    private static final String SCOPE_SUBTREE_2 = "sub"; //$NON-NLS-1$
 
 
     /**

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java Fri Jan 11 15:55:00 2013
@@ -600,7 +600,7 @@ public class BrowserConnectionManager im
             Class<?> type = oldInstance.getClass();
             if ( !Modifier.isPublic( type.getModifiers() ) )
             {
-                throw new IllegalArgumentException( "Could not instantiate instance of non-public class: "
+                throw new IllegalArgumentException( "Could not instantiate instance of non-public class: " //$NON-NLS-1$
                     + oldInstance );
             }
 
@@ -620,11 +620,11 @@ public class BrowserConnectionManager im
                     }
                     catch ( IllegalAccessException exception )
                     {
-                        throw new IllegalArgumentException( "Could not get value of the field: " + field, exception );
+                        throw new IllegalArgumentException( "Could not get value of the field: " + field, exception ); //$NON-NLS-1$
                     }
                 }
             }
-            throw new IllegalArgumentException( "Could not instantiate value: " + oldInstance );
+            throw new IllegalArgumentException( "Could not instantiate value: " + oldInstance ); //$NON-NLS-1$
         }
     }
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreMessages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreMessages.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreMessages.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreMessages.java Fri Jan 11 15:55:00 2013
@@ -46,6 +46,8 @@ public class BrowserCoreMessages extends
         // initialize resource bundle
         NLS.initializeMessages( BUNDLE_NAME, BrowserCoreMessages.class );
     }
+    
+    public static String activator_unable_get_plugin_properties;
 
     public static String copy_n_of_s;
 
@@ -181,6 +183,10 @@ public class BrowserCoreMessages extends
 
     public static String dsml__n_errors_see_responsefile;
 
+    public static String dsml__kind_request_not_supported;
+
+    public static String dsml__should_not_be_encountering_request;
+
     public static String model__no_connection;
 
     public static String model__no_auth_handler;

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCorePlugin.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCorePlugin.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCorePlugin.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCorePlugin.java Fri Jan 11 15:55:00 2013
@@ -173,7 +173,7 @@ public class BrowserCorePlugin extends P
                 // So we're using a default plugin id.
                 getLog().log(
                     new Status( Status.ERROR, "org.apache.directory.studio.ldapbrowser.core", Status.OK, //$NON-NLS-1$
-                        "Unable to get the plugin properties.", e ) );
+                        BrowserCoreMessages.activator_unable_get_plugin_properties, e ) );
             }
         }
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages.properties?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages.properties (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages.properties Fri Jan 11 15:55:00 2013
@@ -15,6 +15,8 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+activator_unable_get_plugin_properties=Unable to get the plugin properties.
+
 copy_n_of_s=Copy {0}of {1}
 
 event__added_att_to_dn=Added {0} to {1}
@@ -96,6 +98,8 @@ ldif__import_into_host_port_failed_on_da
 ldif__error_msg=# ERROR: {0}
 
 dsml__n_errors_see_responsefile={0} errors occurred, see response file for details
+dsml__kind_request_not_supported=This kind of request is not yet supported.
+dsml__should_not_be_encountering_request=Should not be encountering a request type of: 
 
 model__unsupported_hash=Unsupported hash method
 model__invalid_hash=Invalid hash value

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_de.properties?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_de.properties (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_de.properties Fri Jan 11 15:55:00 2013
@@ -15,6 +15,8 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+activator_unable_get_plugin_properties=Die Plugin Eigenschaften k\u00F6nnen nicht geladen werden.
+
 copy_n_of_s=Kopie {0}von {1}
 
 event__added_att_to_dn={0} hinzugef\u00FCgt zu {1}
@@ -94,6 +96,8 @@ ldif__import_into_host_port_failed_on_da
 ldif__error_msg=\# FEHLER\: {0}
 
 dsml__n_errors_see_responsefile={0} Fehler sind aufgetreten, siehe Antwort-Datei f\u00FCr Details
+dsml__kind_request_not_supported=Diese Art der Anfrage wird noch nicht unterstützt.
+dsml__should_not_be_encountering_request=Sollte nicht begegnet eine Anfrage Typ: 
 
 model__unsupported_hash=Nicht unterst\u00FCtze Hash Methode
 model__invalid_hash=Ung\u00FCltiger Hash Wert

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_fr.properties?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_fr.properties (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/browsercoremessages_fr.properties Fri Jan 11 15:55:00 2013
@@ -15,6 +15,8 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+activator_unable_get_plugin_properties=UImpossible de r\u00E9cup\u00E9rer les propri\u00E9t\u00E9s du plugin
+
 copy_n_of_s=Copie {0}de {1}
 
 event__added_att_to_dn=Ajout de {0} \u00E0 {1}
@@ -96,6 +98,8 @@ ldif__import_into_host_port_failed_on_da
 ldif__error_msg=# ERREUR: {0}
 
 dsml__n_errors_see_responsefile={0} erreurs sont survenues, consulter le fichier de r\u00E9ponse pour les d\u00E9tails
+dsml__kind_request_not_supported=Ce type de requête n'est pas encore supporté.
+dsml__should_not_be_encountering_request=On ne devrait pas rencontrer une requête de type : 
 
 model__unsupported_hash=M\u00E9thode de hahage non support\u00E9e
 model__invalid_hash=Valeur de hashage invalide

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java Fri Jan 11 15:55:00 2013
@@ -75,14 +75,14 @@ import org.apache.directory.studio.ldapb
  */
 public class ExportDsmlRunnable implements StudioConnectionRunnableWithProgress
 {
-    private static final String OBJECTCLASS_OBJECTCLASS_OID = "objectClass";
-    private static final String OBJECTCLASS_OBJECTCLASS_NAME = "2.5.4.0";
+    private static final String OBJECTCLASS_OBJECTCLASS_OID = "objectClass"; //$NON-NLS-1$
+    private static final String OBJECTCLASS_OBJECTCLASS_NAME = "2.5.4.0"; //$NON-NLS-1$
 
-    private static final String REFERRAL_OBJECTCLASS_OID = "2.16.840.1.113730.3.2.6";
-    private static final String REFERRAL_OBJECTCLASS_NAME = "referral";
+    private static final String REFERRAL_OBJECTCLASS_OID = "2.16.840.1.113730.3.2.6"; //$NON-NLS-1$
+    private static final String REFERRAL_OBJECTCLASS_NAME = "referral"; //$NON-NLS-1$
 
-    private static final String REF_ATTRIBUTETYPE_OID = "2.16.840.1.113730.3.1.34";
-    private static final String REF_ATTRIBUTETYPE_NAME = "ref";
+    private static final String REF_ATTRIBUTETYPE_OID = "2.16.840.1.113730.3.1.34"; //$NON-NLS-1$
+    private static final String REF_ATTRIBUTETYPE_NAME = "ref"; //$NON-NLS-1$
 
     /** The name of the DSML file to export to */
     private String exportDsmlFilename;
@@ -167,7 +167,7 @@ public class ExportDsmlRunnable implemen
     public Object[] getLockedObjects()
     {
         List<String> l = new ArrayList<String>();
-        l.add( browserConnection.getUrl() + "_" + DigestUtils.shaHex( exportDsmlFilename ) );
+        l.add( browserConnection.getUrl() + "_" + DigestUtils.shaHex( exportDsmlFilename ) ); //$NON-NLS-1$
         return l.toArray();
     }
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java Fri Jan 11 15:55:00 2013
@@ -249,7 +249,7 @@ public class ImportDsmlRunnable implemen
             if ( errorsCount > 0 )
             {
                 monitor.reportError( BrowserCoreMessages.bind(
-                    "{0} errors occurred, see the response file for details", new String[]
+                    BrowserCoreMessages.dsml__n_errors_see_responsefile, new String[]
                         { "" + errorsCount } ) ); //$NON-NLS-1$
             }
         }
@@ -312,7 +312,7 @@ public class ImportDsmlRunnable implemen
                 break;
             default:
                 throw new IllegalArgumentException(
-                    "Should not be encountering a request type of: "
+                    BrowserCoreMessages.dsml__should_not_be_encountering_request
                         + request.getDecorated().getType() );
         }
     }
@@ -338,7 +338,7 @@ public class ImportDsmlRunnable implemen
             BindResponseDsml authResponseDsml = new BindResponseDsml( codec );
             LdapResult ldapResult = authResponseDsml.getLdapResult();
             ldapResult.setResultCode( ResultCodeEnum.UNWILLING_TO_PERFORM );
-            ldapResult.setDiagnosticMessage( "This kind of request is not yet supported." );
+            ldapResult.setDiagnosticMessage( BrowserCoreMessages.dsml__kind_request_not_supported );
             batchResponseDsml.addResponse( authResponseDsml );
         }
     }
@@ -409,7 +409,7 @@ public class ImportDsmlRunnable implemen
             CompareResponseDsml compareResponseDsml = new CompareResponseDsml( codec );
             LdapResult ldapResult = compareResponseDsml.getLdapResult();
             ldapResult.setResultCode( ResultCodeEnum.UNWILLING_TO_PERFORM );
-            ldapResult.setDiagnosticMessage( "This kind of request is not yet supported." );
+            ldapResult.setDiagnosticMessage( BrowserCoreMessages.dsml__kind_request_not_supported );
             batchResponseDsml.addResponse( compareResponseDsml );
         }
     }
@@ -477,7 +477,7 @@ public class ImportDsmlRunnable implemen
             ExtendedResponseDsml extendedResponseDsml = new ExtendedResponseDsml( codec );
             LdapResult ldapResult = extendedResponseDsml.getLdapResult();
             ldapResult.setResultCode( ResultCodeEnum.UNWILLING_TO_PERFORM );
-            ldapResult.setDiagnosticMessage( "This kind of request is not yet supported." );
+            ldapResult.setDiagnosticMessage( BrowserCoreMessages.dsml__kind_request_not_supported );
             batchResponseDsml.addResponse( extendedResponseDsml );
         }
     }

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportLdifRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportLdifRunnable.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportLdifRunnable.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportLdifRunnable.java Fri Jan 11 15:55:00 2013
@@ -589,7 +589,7 @@ public class ImportLdifRunnable implemen
             errorComment = errorComment.replaceAll( "\n", " " ); //$NON-NLS-1$ //$NON-NLS-2$
             LdifCommentLine errorCommentLine = LdifCommentLine.create( errorComment );
 
-            logWriter.write( LdifCommentLine.create( "#!RESULT ERROR" )
+            logWriter.write( LdifCommentLine.create( "#!RESULT ERROR" ) //$NON-NLS-1$
                 .toFormattedString( LdifFormatParameters.DEFAULT ) ); //$NON-NL LdifFormatParameters.DEFAULTS-1$
             logWriter
                 .write( LdifCommentLine

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java Fri Jan 11 15:55:00 2013
@@ -61,7 +61,7 @@ public class AttributeHierarchy implemen
         if ( entry == null || attributeDescription == null || attributes == null || attributes.length < 1
             || attributes[0] == null )
         {
-            throw new IllegalArgumentException( "Empty AttributeHierachie" );
+            throw new IllegalArgumentException( "Empty AttributeHierachie" ); //$NON-NLS-1$
         }
         this.entry = entry;
         this.attributeDescription = attributeDescription;

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapAndFilterComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapAndFilterComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapAndFilterComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapAndFilterComponent.java Fri Jan 11 15:55:00 2013
@@ -66,15 +66,15 @@ public class LdapAndFilterComponent exte
     {
         if ( startToken == null )
         {
-            return "Missing AND character '&'";
+            return Messages.LdapAndFilterComponent_MissingAndCharacter;
         }
         else if ( filterList == null || filterList.isEmpty() )
         {
-            return "Missing filters";
+            return Messages.LdapAndFilterComponent_MissingFilters;
         }
         else
         {
-            return "Invalid AND filter";
+            return Messages.LdapAndFilterComponent_InvalidAndFilter;
         }
     }
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterComponent.java Fri Jan 11 15:55:00 2013
@@ -56,7 +56,7 @@ public abstract class LdapFilterComponen
     {
         if ( parent == null )
         {
-            throw new IllegalArgumentException( "parent is null" );
+            throw new IllegalArgumentException( Messages.LdapFilterComponent_ParentIsNull );
         }
 
         this.parent = parent;

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterExtensibleComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterExtensibleComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterExtensibleComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterExtensibleComponent.java Fri Jan 11 15:55:00 2013
@@ -467,27 +467,27 @@ public class LdapFilterExtensibleCompone
     {
         if ( dnAttrColonToken != null && dnAttrToken == null )
         {
-            return "Missing dn";
+            return Messages.LdapFilterExtensibleComponent_MissingDn;
         }
         else if ( matchingRuleColonToken != null && matchingRuleToken == null )
         {
-            return "Missing matching rule";
+            return Messages.LdapFilterExtensibleComponent_MissingMatchingRule;
         }
         else if ( equalsColonToken == null )
         {
-            return "Missing colon";
+            return Messages.LdapFilterExtensibleComponent_MissingColon;
         }
         else if ( equalsToken == null )
         {
-            return "Missing equals";
+            return Messages.LdapFilterExtensibleComponent_MissingEquals;
         }
         else if ( attributeToken == null )
         {
-            return "Missing attribute type";
+            return Messages.LdapFilterExtensibleComponent_MissingAttributeType;
         }
         else if ( valueToken != null )
         {
-            return "Missing value";
+            return Messages.LdapFilterExtensibleComponent_MissingValue;
         }
         else
         {

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterItemComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterItemComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterItemComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapFilterItemComponent.java Fri Jan 11 15:55:00 2013
@@ -280,15 +280,15 @@ public class LdapFilterItemComponent ext
     {
         if ( startToken == null )
         {
-            return "Missing attribute name";
+            return Messages.LdapFilterItemComponent_MissingAttributeName;
         }
         else if ( filtertypeToken == null )
         {
-            return "Missing filter type, select one of '=', '>=', '<=','~='";
+            return Messages.LdapFilterItemComponent_MissingFilterType;
         }
         else if ( valueToken == null )
         {
-            return "Missing value";
+            return Messages.LdapFilterItemComponent_MissingValue;
         }
         else
         {

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapNotFilterComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapNotFilterComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapNotFilterComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapNotFilterComponent.java Fri Jan 11 15:55:00 2013
@@ -84,15 +84,15 @@ public class LdapNotFilterComponent exte
     {
         if ( startToken == null )
         {
-            return "Missing NOT character '!'";
+            return Messages.LdapNotFilterComponent_MissingNotCharacter;
         }
         else if ( filterList == null || filterList.isEmpty() )
         {
-            return "Missing filter expression";
+            return Messages.LdapNotFilterComponent_MissingFilterExpression;
         }
         else
         {
-            return "Invalid NOT filter";
+            return Messages.LdapNotFilterComponent_InvalidNotFilter;
         }
     }
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapOrFilterComponent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapOrFilterComponent.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapOrFilterComponent.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/LdapOrFilterComponent.java Fri Jan 11 15:55:00 2013
@@ -66,15 +66,15 @@ public class LdapOrFilterComponent exten
     {
         if ( startToken == null )
         {
-            return "Missing OR character '|'";
+            return Messages.LdapOrFilterComponent_MissingOrCharacter;
         }
         else if ( filterList == null || filterList.isEmpty() )
         {
-            return "Missing filters";
+            return Messages.LdapOrFilterComponent_MissingFilters;
         }
         else
         {
-            return "Invalid OR filter";
+            return Messages.LdapOrFilterComponent_InvalidOrFilter;
         }
     }
 

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/Messages.java?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/Messages.java (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/Messages.java Fri Jan 11 15:55:00 2013
@@ -0,0 +1,58 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapbrowser.core.model.filter;
+
+
+import org.eclipse.osgi.util.NLS;
+
+
+public class Messages extends NLS
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.core.model.filter.messages"; //$NON-NLS-1$
+    public static String LdapAndFilterComponent_InvalidAndFilter;
+    public static String LdapAndFilterComponent_MissingAndCharacter;
+    public static String LdapAndFilterComponent_MissingFilters;
+    public static String LdapFilterComponent_ParentIsNull;
+    public static String LdapFilterExtensibleComponent_MissingAttributeType;
+    public static String LdapFilterExtensibleComponent_MissingColon;
+    public static String LdapFilterExtensibleComponent_MissingDn;
+    public static String LdapFilterExtensibleComponent_MissingEquals;
+    public static String LdapFilterExtensibleComponent_MissingMatchingRule;
+    public static String LdapFilterExtensibleComponent_MissingValue;
+    public static String LdapFilterItemComponent_MissingAttributeName;
+    public static String LdapFilterItemComponent_MissingFilterType;
+    public static String LdapFilterItemComponent_MissingValue;
+    public static String LdapNotFilterComponent_InvalidNotFilter;
+    public static String LdapNotFilterComponent_MissingFilterExpression;
+    public static String LdapNotFilterComponent_MissingNotCharacter;
+    public static String LdapOrFilterComponent_InvalidOrFilter;
+    public static String LdapOrFilterComponent_MissingFilters;
+    public static String LdapOrFilterComponent_MissingOrCharacter;
+    static
+    {
+        // initialize resource bundle
+        NLS.initializeMessages( BUNDLE_NAME, Messages.class );
+    }
+
+
+    private Messages()
+    {
+    }
+}

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,41 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+LdapAndFilterComponent_InvalidAndFilter=Invalid AND filter
+LdapAndFilterComponent_MissingAndCharacter=Missing AND character '&'
+LdapAndFilterComponent_MissingFilters=Missing filters
+
+LdapFilterComponent_ParentIsNull=Parent is null.
+
+LdapFilterExtensibleComponent_MissingAttributeType=Missing attribute type
+LdapFilterExtensibleComponent_MissingColon=Missing colon
+LdapFilterExtensibleComponent_MissingDn=Missing dn
+LdapFilterExtensibleComponent_MissingEquals=Missing equals
+LdapFilterExtensibleComponent_MissingMatchingRule=Missing matching rule
+LdapFilterExtensibleComponent_MissingValue=Missing value
+
+LdapFilterItemComponent_MissingAttributeName=Missing attribute name
+LdapFilterItemComponent_MissingFilterType=Missing filter type, select one of '=', '>=', '<=','~='
+LdapFilterItemComponent_MissingValue=Missing value
+
+LdapNotFilterComponent_InvalidNotFilter=Invalid NOT filter
+LdapNotFilterComponent_MissingFilterExpression=Missing filter expression
+LdapNotFilterComponent_MissingNotCharacter=Missing NOT character '\!'
+
+LdapOrFilterComponent_InvalidOrFilter=Invalid OR filter
+LdapOrFilterComponent_MissingFilters=Missing filters
+LdapOrFilterComponent_MissingOrCharacter=Missing OR character '|'

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_de.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_de.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_de.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,41 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+LdapAndFilterComponent_InvalidAndFilter=TODO:Invalid AND filter
+LdapAndFilterComponent_MissingAndCharacter=TODO:Missing AND character '&'
+LdapAndFilterComponent_MissingFilters=TODO:Missing filters
+
+LdapFilterComponent_ParentIsNull=TODO:Parent is null.
+
+LdapFilterExtensibleComponent_MissingAttributeType=TODO:Missing attribute type
+LdapFilterExtensibleComponent_MissingColon=TODO:Missing colon
+LdapFilterExtensibleComponent_MissingDn=TODO:Missing dn
+LdapFilterExtensibleComponent_MissingEquals=TODO:Missing equals
+LdapFilterExtensibleComponent_MissingMatchingRule=TODO:Missing matching rule
+LdapFilterExtensibleComponent_MissingValue=TODO:Missing value
+
+LdapFilterItemComponent_MissingAttributeName=TODO:Missing attribute name
+LdapFilterItemComponent_MissingFilterType=TODO:Missing filter type, select one of '=', '>=', '<=','~='
+LdapFilterItemComponent_MissingValue=TODO:Missing value
+
+LdapNotFilterComponent_InvalidNotFilter=TODO:Invalid NOT filter
+LdapNotFilterComponent_MissingFilterExpression=TODO:Missing filter expression
+LdapNotFilterComponent_MissingNotCharacter=TODO:Missing NOT character '\!'
+
+LdapOrFilterComponent_InvalidOrFilter=TODO:Invalid OR filter
+LdapOrFilterComponent_MissingFilters=TODO:Missing filters
+LdapOrFilterComponent_MissingOrCharacter=TODO:Missing OR character '|'

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_fr.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_fr.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/messages_fr.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,41 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+LdapAndFilterComponent_InvalidAndFilter=Filtre AND invalide
+LdapAndFilterComponent_MissingAndCharacter=Caractère AND '&' manquant
+LdapAndFilterComponent_MissingFilters=Filtres manquants
+
+LdapFilterComponent_ParentIsNull=Le parent est nul.
+
+LdapFilterExtensibleComponent_MissingAttributeType=Type d'attribut manquant
+LdapFilterExtensibleComponent_MissingColon=Caractère ':' manquant
+LdapFilterExtensibleComponent_MissingDn=DN manquant
+LdapFilterExtensibleComponent_MissingEquals=Egalité manquante
+LdapFilterExtensibleComponent_MissingMatchingRule=Règle de comparaison manquante
+LdapFilterExtensibleComponent_MissingValue=Valeur manquante
+
+LdapFilterItemComponent_MissingAttributeName=Nom d'attribut manquant
+LdapFilterItemComponent_MissingFilterType=Type de filtre manquant, choisissez parmi '=', '>=', '<=','~='
+LdapFilterItemComponent_MissingValue=Valeur manquante
+
+LdapNotFilterComponent_InvalidNotFilter=Filtre NOT invalide
+LdapNotFilterComponent_MissingFilterExpression=Expression du filtre manquante
+LdapNotFilterComponent_MissingNotCharacter=Caractère NOT '\!' manquant
+
+LdapOrFilterComponent_InvalidOrFilter=Filtre OR invalide
+LdapOrFilterComponent_MissingFilters=Filtres manquants
+LdapOrFilterComponent_MissingOrCharacter=Caractère OR '|' manquant

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/parser/LdapFilterToken.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/parser/LdapFilterToken.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/parser/LdapFilterToken.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/filter/parser/LdapFilterToken.java Fri Jan 11 15:55:00 2013
@@ -194,7 +194,7 @@ public class LdapFilterToken implements 
         }
         else
         {
-            throw new ClassCastException( "Not instanceof LapFilterToken: " + o.getClass().getName() );
+            throw new ClassCastException( "Not instanceof LapFilterToken: " + o.getClass().getName() ); //$NON-NLS-1$
         }
     }
 

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Messages.java?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Messages.java (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Messages.java Fri Jan 11 15:55:00 2013
@@ -0,0 +1,40 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapbrowser.core.model.impl;
+
+
+import org.eclipse.osgi.util.NLS;
+
+
+public class Messages extends NLS
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.core.model.impl.messages"; //$NON-NLS-1$
+    public static String Value_Unknown;
+    static
+    {
+        // initialize resource bundle
+        NLS.initializeMessages( BUNDLE_NAME, Messages.class );
+    }
+
+
+    private Messages()
+    {
+    }
+}

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Value.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Value.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Value.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/Value.java Fri Jan 11 15:55:00 2013
@@ -149,7 +149,7 @@ public class Value implements IValue
         }
         else
         {
-            return "UNKNOWN";
+            return Messages.Value_Unknown;
         }
     }
 
@@ -177,7 +177,7 @@ public class Value implements IValue
         }
         else
         {
-            return LdifUtils.utf8encode( "UNKNOWN" );
+            return LdifUtils.utf8encode( Messages.Value_Unknown );
         }
     }
 

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,18 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+Value_Unknown=UNBEKANNT

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_de.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_de.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_de.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,18 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+Value_Unknown=INCONNUE

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_fr.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_fr.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/messages_fr.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,18 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+Value_Unknown=INCONNUE

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Messages.java?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Messages.java (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Messages.java Fri Jan 11 15:55:00 2013
@@ -0,0 +1,44 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapbrowser.core.utils;
+
+
+import org.eclipse.osgi.util.NLS;
+
+
+public class Messages extends NLS
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.core.utils.messages"; //$NON-NLS-1$
+    public static String Utils_10;
+    public static String Utils_Byte;
+    public static String Utils_Bytes;
+    public static String Utils_KiloBytes;
+    public static String Utils_MegaBytes;
+    static
+    {
+        // initialize resource bundle
+        NLS.initializeMessages( BUNDLE_NAME, Messages.class );
+    }
+
+
+    private Messages()
+    {
+    }
+}

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java?rev=1432110&r1=1432109&r2=1432110&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java (original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java Fri Jan 11 15:55:00 2013
@@ -234,13 +234,14 @@ public class Utils
     {
         String size = ""; //$NON-NLS-1$
         if ( bytes > 1024 * 1024 )
-            size += ( bytes / 1024 / 1024 ) + " MB (" + bytes + " Bytes)";
+            size += ( bytes / 1024 / 1024 )
+                + " " + Messages.Utils_MegaBytes + " (" + bytes + " " + Messages.Utils_Bytes + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-6$
         else if ( bytes > 1024 )
-            size += ( bytes / 1024 ) + " KB (" + bytes + " Bytes)";
+            size += ( bytes / 1024 ) + " " + Messages.Utils_KiloBytes + " (" + bytes + " " + Messages.Utils_Bytes + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-6$
         else if ( bytes > 1 )
-            size += bytes + " Bytes";
+            size += bytes + " " + Messages.Utils_Bytes; //$NON-NLS-1$
         else
-            size += bytes + " Byte";
+            size += bytes + " " + Messages.Utils_Byte; //$NON-NLS-1$
         return size;
     }
 

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+Utils_Byte=Byte
+Utils_Bytes=Bytes
+Utils_KiloBytes=KB
+Utils_MegaBytes=MB

Added: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages_fr.properties?rev=1432110&view=auto
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages_fr.properties (added)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/messages_fr.properties Fri Jan 11 15:55:00 2013
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+Utils_Byte=Octet
+Utils_Bytes=Octets
+Utils_KiloBytes=Ko
+Utils_MegaBytes=Mo



Mime
View raw message