directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1433587 - /directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/
Date Tue, 15 Jan 2013 19:19:10 GMT
Author: pamarcelot
Date: Tue Jan 15 19:19:10 2013
New Revision: 1433587

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

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/BrowserCoreMessages.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

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=1433587&r1=1433586&r2=1433587&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
Tue Jan 15 19:19:10 2013
@@ -54,6 +54,7 @@ import org.dom4j.Element;
 import org.dom4j.io.OutputFormat;
 import org.dom4j.io.SAXReader;
 import org.dom4j.io.XMLWriter;
+import org.eclipse.osgi.util.NLS;
 
 
 /**
@@ -126,7 +127,7 @@ public class BrowserConnectionIO
         Element rootElement = document.getRootElement();
         if ( !rootElement.getName().equals( BROWSER_CONNECTIONS_TAG ) )
         {
-            throw new ConnectionIOException( "The file does not seem to be a valid BrowserConnections
file." );
+            throw new ConnectionIOException( BrowserCoreMessages.BrowserConnectionIO_TheFileDoesNotSeemToBeValid
);
         }
 
         for ( Iterator<?> i = rootElement.elementIterator( BROWSER_CONNECTION_TAG );
i.hasNext(); )
@@ -209,8 +210,9 @@ public class BrowserConnectionIO
             }
             catch ( LdapInvalidDnException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Search Base' of search
'"
-                    + searchParameter.getName() + "' :" + searchBaseAttribute.getValue()
);
+                throw new ConnectionIOException( NLS.bind( BrowserCoreMessages.BrowserConnectionIO_UnableToParseSearchBase,
+                    new String[]
+                        { searchParameter.getName(), searchBaseAttribute.getValue() } ) );
             }
         }
 
@@ -250,8 +252,9 @@ public class BrowserConnectionIO
             }
             catch ( IllegalArgumentException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Scope' of search '" +
searchParameter.getName()
-                    + "' as int value. Scope value :" + scopeAttribute.getValue() );
+                throw new ConnectionIOException( NLS.bind(
+                    BrowserCoreMessages.BrowserConnectionIO_UnableToParseScope, new String[]
+                        { searchParameter.getName(), scopeAttribute.getValue() } ) );
             }
         }
 
@@ -265,8 +268,10 @@ public class BrowserConnectionIO
             }
             catch ( NumberFormatException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Time limit' of search
'" + searchParameter.getName()
-                    + "' as int value. Time limit value :" + timeLimitAttribute.getValue()
);
+                throw new ConnectionIOException( NLS.bind(
+                    BrowserCoreMessages.BrowserConnectionIO_UnableToParseTimeLimit,
+                    new String[]
+                        { searchParameter.getName(), timeLimitAttribute.getValue() } ) );
             }
         }
 
@@ -280,9 +285,10 @@ public class BrowserConnectionIO
             }
             catch ( NumberFormatException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Count limit' of search
'"
-                    + searchParameter.getName() + "' as int value. Count limit value :"
-                    + countLimitAttribute.getValue() );
+                throw new ConnectionIOException( NLS.bind(
+                    BrowserCoreMessages.BrowserConnectionIO_UnableToParseCountLimit,
+                    new String[]
+                        { searchParameter.getName(), countLimitAttribute.getValue() } ) );
             }
         }
 
@@ -298,9 +304,11 @@ public class BrowserConnectionIO
             }
             catch ( IllegalArgumentException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Aliases Dereferencing
Method' of search '"
-                    + searchParameter.getName() + "' as int value. Aliases Dereferencing
Method value :"
-                    + aliasesDereferencingMethodAttribute.getValue() );
+                throw new ConnectionIOException(
+                    NLS.bind(
+                        BrowserCoreMessages.BrowserConnectionIO_UnableToParseAliasesDereferencingMethod,
+                        new String[]
+                            { searchParameter.getName(), aliasesDereferencingMethodAttribute.getValue()
} ) );
             }
         }
 
@@ -315,9 +323,11 @@ public class BrowserConnectionIO
             }
             catch ( IllegalArgumentException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Referrals Handling Method'
of search '"
-                    + searchParameter.getName() + "' as int value. Referrals Handling Method
value :"
-                    + referralsHandlingMethodAttribute.getValue() );
+                throw new ConnectionIOException(
+                    NLS.bind(
+                        BrowserCoreMessages.BrowserConnectionIO_UnableToParseReferralsHandlingMethod,
+                        new String[]
+                            { searchParameter.getName(), referralsHandlingMethodAttribute.getValue()
} ) );
             }
         }
 
@@ -345,8 +355,9 @@ public class BrowserConnectionIO
                     }
                     catch ( Exception e )
                     {
-                        throw new ConnectionIOException( "Unable to parse 'Control' of search
'"
-                            + searchParameter.getName() + "'. Control value :" + valueAttribute.getValue()
);
+                        throw new ConnectionIOException( NLS.bind(
+                            BrowserCoreMessages.BrowserConnectionIO_UnableToParseControl,
new String[]
+                                { searchParameter.getName(), valueAttribute.getValue() }
) );
                     }
                 }
             }
@@ -378,8 +389,9 @@ public class BrowserConnectionIO
             }
             catch ( LdapInvalidDnException e )
             {
-                throw new ConnectionIOException( "Unable to parse 'Dn' of bookmark '" + bookmarkParameter.getName()
-                    + "' :" + dnAttribute.getValue() );
+                throw new ConnectionIOException( NLS.bind( BrowserCoreMessages.BrowserConnectionIO_UnableToParseDn,
+                    new String[]
+                        { bookmarkParameter.getName(), dnAttribute.getValue() } ) );
             }
         }
 

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=1433587&r1=1433586&r2=1433587&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
Tue Jan 15 19:19:10 2013
@@ -431,4 +431,22 @@ public class BrowserCoreMessages extends
 
     public static String model__quick_search_name;
 
+    public static String BrowserConnectionIO_TheFileDoesNotSeemToBeValid;
+    
+    public static String BrowserConnectionIO_UnableToParseAliasesDereferencingMethod;
+    
+    public static String BrowserConnectionIO_UnableToParseControl;
+    
+    public static String BrowserConnectionIO_UnableToParseCountLimit;
+    
+    public static String BrowserConnectionIO_UnableToParseDn;
+    
+    public static String BrowserConnectionIO_UnableToParseReferralsHandlingMethod;
+    
+    public static String BrowserConnectionIO_UnableToParseScope;
+    
+    public static String BrowserConnectionIO_UnableToParseSearchBase;
+    
+    public static String BrowserConnectionIO_UnableToParseTimeLimit;
+
 }

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=1433587&r1=1433586&r2=1433587&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
Tue Jan 15 19:19:10 2013
@@ -238,3 +238,13 @@ jobs__modify_value_error=Error while mod
 jobs__modify_value_name=Modify Value
 jobs__modify_value_task=Modifying Value
 jobs__copy_entries_source_and_target_are_equal=Source and target entries are equal\!
+
+BrowserConnectionIO.TheFileDoesNotSeemToBeValid=The file does not seem to be a valid BrowserConnections
file.
+BrowserConnectionIO.UnableToParseAliasesDereferencingMethod=Unable to parse ''Aliases Dereferencing
Method'' of search ''{0}'' as int value. Aliases Dereferencing Method value: {1}
+BrowserConnectionIO.UnableToParseControl=Unable to parse ''Control'' of search ''{0}''. Control
value: {1}
+BrowserConnectionIO.UnableToParseCountLimit=Unable to parse ''Count limit'' of search ''{0}''
as int value. Count limit value: {1}
+BrowserConnectionIO.UnableToParseDn=Unable to parse ''Dn'' of bookmark ''{0}'': {1}
+BrowserConnectionIO.UnableToParseReferralsHandlingMethod=Unable to parse 'Referrals Handling
Method' of search ''{0}'' as int value. Referrals Handling Method value: {1}
+BrowserConnectionIO.UnableToParseScope=Unable to parse ''Scope'' of search ''{0}'' as int
value. Scope value: {1}
+BrowserConnectionIO.UnableToParseSearchBase=Unable to parse ''Search Base'' of search ''{0}'':
{1}
+BrowserConnectionIO.UnableToParseTimeLimit=Unable to parse ''Time limit'' of search ''{0}''
as int value. Time limit value: {1}

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=1433587&r1=1433586&r2=1433587&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
Tue Jan 15 19:19:10 2013
@@ -230,3 +230,13 @@ jobs__modify_value_error=Fehler beim \u0
 jobs__modify_value_name=\u00C4ndere Wert
 jobs__modify_value_task=\u00C4ndere Wert
 jobs__copy_entries_source_and_target_are_equal=Original und Ziel sind gleich\!
+
+BrowserConnectionIO.TheFileDoesNotSeemToBeValid=TODO:The file does not seem to be a valid
BrowserConnections file.
+BrowserConnectionIO.UnableToParseAliasesDereferencingMethod=TODO:Unable to parse ''Aliases
Dereferencing Method'' of search ''{0}'' as int value. Aliases Dereferencing Method value:
{1}
+BrowserConnectionIO.UnableToParseControl=TODO:Unable to parse ''Control'' of search ''{0}''.
Control value: {1}
+BrowserConnectionIO.UnableToParseCountLimit=TODO:Unable to parse ''Count limit'' of search
''{0}'' as int value. Count limit value: {1}
+BrowserConnectionIO.UnableToParseDn=TODO:Unable to parse ''Dn'' of bookmark ''{0}'': {1}
+BrowserConnectionIO.UnableToParseReferralsHandlingMethod=TODO:Unable to parse ''Referrals
Handling Method'' of search ''{0}'' as int value. Referrals Handling Method value: {1}
+BrowserConnectionIO.UnableToParseScope=TODO:Unable to parse ''Scope'' of search ''{0}'' as
int value. Scope value: {1}
+BrowserConnectionIO.UnableToParseSearchBase=TODO:Unable to parse ''Search Base'' of search
''{0}'': {1}
+BrowserConnectionIO.UnableToParseTimeLimit=TODO:Unable to parse ''Time limit'' of search
''{0}'' as int value. Time limit value: {1}

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=1433587&r1=1433586&r2=1433587&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
Tue Jan 15 19:19:10 2013
@@ -238,3 +238,13 @@ jobs__modify_value_error=Une erreur est 
 jobs__modify_value_name=Modifier la valeur
 jobs__modify_value_task=Modification de la valeur
 jobs__copy_entries_source_and_target_are_equal=Les entr\u00E9es source et de destination
sont identiques \!
+
+BrowserConnectionIO.TheFileDoesNotSeemToBeValid=Le fichier ne semble pas ĂȘtre un fichier
BrowserConnections valide.
+BrowserConnectionIO.UnableToParseAliasesDereferencingMethod=Impossible de parser ''Aliases
Dereferencing Method'' de la recherche ''{0}'' en tant qu'entier. Valeur de Aliases Dereferencing
Method: {1}
+BrowserConnectionIO.UnableToParseControl=Impossible de parser ''Control'' de la recherche
''{0}''. Value de Control value: {1}
+BrowserConnectionIO.UnableToParseCountLimit=Impossible de parser ''Count limit'' de la recherche
''{0}'' en tant qu'entier. Valeur de Count limit: {1}
+BrowserConnectionIO.UnableToParseDn=Impossible de parser ''Dn'' du signet ''{0}'': {1}
+BrowserConnectionIO.UnableToParseReferralsHandlingMethod=Impossible de parser ''Referrals
Handling Method'' de la recherche ''{0}'' en tant qu'entier. Valeur de Referrals Handling
Method: {1}
+BrowserConnectionIO.UnableToParseScope=Impossible de parser ''Scope'' de la recherche ''{0}''
en tant qu'entier. Valeur de Scope: {1}
+BrowserConnectionIO.UnableToParseSearchBase=Impossible de parser ''Search Base'' de la recherche
''{0}'': {1}
+BrowserConnectionIO.UnableToParseTimeLimit=Impossible de parser ''Time limit'' de la recherche
''{0}'' en tant qu'entier. Valeur de Time limit: {1}



Mime
View raw message