directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721247 [1/2] - in /directory/studio/trunk/ldapbrowser-ui/src/main: java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ resources/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/
Date Thu, 27 Nov 2008 17:33:27 GMT
Author: felixk
Date: Thu Nov 27 09:33:27 2008
New Revision: 721247

URL: http://svn.apache.org/viewvc?rev=721247&view=rev
Log:
- Externalize Strings
- Add German translation

Added:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java   (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/messages.properties   (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/messages_de.properties   (with props)
Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/BrowserConnectionWidgetContributionItem.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ReloadSchemaAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowser.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserInput.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserNavigationLocation.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaDetailsPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ShowDefaultSchemaAction.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -29,6 +29,7 @@
 import org.apache.directory.shared.ldap.schema.syntax.MatchingRuleDescription;
 import org.apache.directory.shared.ldap.schema.syntax.ObjectClassDescription;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -146,7 +147,7 @@
 
         // create main section
         mainSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        mainSection.setText( "Details" );
+        mainSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Details" ) ); //$NON-NLS-1$
         mainSection.marginWidth = 0;
         mainSection.marginHeight = 0;
         mainSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -154,7 +155,7 @@
 
         // create flag section
         flagSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        flagSection.setText( "Flags" );
+        flagSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Flags" ) ); //$NON-NLS-1$
         flagSection.marginWidth = 0;
         flagSection.marginHeight = 0;
         flagSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -169,25 +170,29 @@
         flagClient.setLayout( flagLayout );
         flagSection.setClient( flagClient );
 
-        singleValuedText = toolkit.createLabel( flagClient, "Single valued", SWT.CHECK );
+        singleValuedText = toolkit.createLabel( flagClient, Messages
+            .getString( "AttributeTypeDescriptionDetailsPage.SingleValued" ), SWT.CHECK ); //$NON-NLS-1$
         singleValuedText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         singleValuedText.setEnabled( false );
 
-        noUserModificationText = toolkit.createLabel( flagClient, "Read only", SWT.CHECK );
+        noUserModificationText = toolkit.createLabel( flagClient, Messages
+            .getString( "AttributeTypeDescriptionDetailsPage.ReadOnly" ), SWT.CHECK ); //$NON-NLS-1$
         noUserModificationText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         noUserModificationText.setEnabled( false );
 
-        collectiveText = toolkit.createLabel( flagClient, "Collective", SWT.CHECK );
+        collectiveText = toolkit.createLabel( flagClient, Messages
+            .getString( "AttributeTypeDescriptionDetailsPage.Collective" ), SWT.CHECK ); //$NON-NLS-1$
         collectiveText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         collectiveText.setEnabled( false );
 
-        isObsoleteText = toolkit.createLabel( flagClient, "Obsolete", SWT.CHECK );
+        isObsoleteText = toolkit.createLabel( flagClient, Messages
+            .getString( "AttributeTypeDescriptionDetailsPage.Obsolete" ), SWT.CHECK ); //$NON-NLS-1$
         isObsoleteText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         isObsoleteText.setEnabled( false );
 
         // create syntax section
         syntaxSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        syntaxSection.setText( "Syntax" );
+        syntaxSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Syntax" ) ); //$NON-NLS-1$
         syntaxSection.marginWidth = 0;
         syntaxSection.marginHeight = 0;
         syntaxSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -202,24 +207,27 @@
         syntaxClient.setLayout( syntaxLayout );
         syntaxSection.setClient( syntaxClient );
 
-        toolkit.createLabel( syntaxClient, "Syntax OID:", SWT.NONE );
-        syntaxLink = toolkit.createHyperlink( syntaxClient, "", SWT.WRAP );
+        toolkit.createLabel( syntaxClient,
+            Messages.getString( "AttributeTypeDescriptionDetailsPage.SyntaxOID" ), SWT.NONE ); //$NON-NLS-1$
+        syntaxLink = toolkit.createHyperlink( syntaxClient, "", SWT.WRAP ); //$NON-NLS-1$
         syntaxLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         syntaxLink.addHyperlinkListener( this );
 
-        toolkit.createLabel( syntaxClient, "Syntax Description:", SWT.NONE );
-        syntaxDescText = toolkit.createText( syntaxClient, "", SWT.NONE );
+        toolkit.createLabel( syntaxClient,
+            Messages.getString( "AttributeTypeDescriptionDetailsPage.SyntaxDescription" ), SWT.NONE ); //$NON-NLS-1$
+        syntaxDescText = toolkit.createText( syntaxClient, "", SWT.NONE ); //$NON-NLS-1$
         syntaxDescText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         syntaxDescText.setEditable( false );
 
-        toolkit.createLabel( syntaxClient, "Length:", SWT.NONE );
-        lengthText = toolkit.createText( syntaxClient, "", SWT.NONE );
+        toolkit
+            .createLabel( syntaxClient, Messages.getString( "AttributeTypeDescriptionDetailsPage.Length" ), SWT.NONE ); //$NON-NLS-1$
+        lengthText = toolkit.createText( syntaxClient, "", SWT.NONE ); //$NON-NLS-1$
         lengthText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         lengthText.setEditable( false );
 
         // create matching rules section
         matchingRulesSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        matchingRulesSection.setText( "Matching Rules" );
+        matchingRulesSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.MatchingRules" ) ); //$NON-NLS-1$
         matchingRulesSection.marginWidth = 0;
         matchingRulesSection.marginHeight = 0;
         matchingRulesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -234,24 +242,27 @@
         matchClient.setLayout( matchLayout );
         matchingRulesSection.setClient( matchClient );
 
-        toolkit.createLabel( matchClient, "Equality match:", SWT.NONE );
-        equalityLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP );
+        toolkit.createLabel( matchClient,
+            Messages.getString( "AttributeTypeDescriptionDetailsPage.EqualityMatch" ), SWT.NONE ); //$NON-NLS-1$
+        equalityLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP ); //$NON-NLS-1$
         equalityLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         equalityLink.addHyperlinkListener( this );
 
-        toolkit.createLabel( matchClient, "Substring match:", SWT.NONE );
-        substringLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP );
+        toolkit.createLabel( matchClient,
+            Messages.getString( "AttributeTypeDescriptionDetailsPage.SubstringMatch" ), SWT.NONE ); //$NON-NLS-1$
+        substringLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP ); //$NON-NLS-1$
         substringLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         substringLink.addHyperlinkListener( this );
 
-        toolkit.createLabel( matchClient, "Ordering match:", SWT.NONE );
-        orderingLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP );
+        toolkit.createLabel( matchClient,
+            Messages.getString( "AttributeTypeDescriptionDetailsPage.OrderingMatch" ), SWT.NONE ); //$NON-NLS-1$
+        orderingLink = toolkit.createHyperlink( matchClient, "", SWT.WRAP ); //$NON-NLS-1$
         orderingLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         orderingLink.addHyperlinkListener( this );
 
         // create other matching rules section
         otherMatchSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        otherMatchSection.setText( "Other Matching Rules" );
+        otherMatchSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.OtherMatchingRules" ) ); //$NON-NLS-1$
         otherMatchSection.marginWidth = 0;
         otherMatchSection.marginHeight = 0;
         otherMatchSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -266,7 +277,7 @@
 
         // create used as must section
         usedAsMustSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        usedAsMustSection.setText( "Used as MUST" );
+        usedAsMustSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMust" ) ); //$NON-NLS-1$
         usedAsMustSection.marginWidth = 0;
         usedAsMustSection.marginHeight = 0;
         usedAsMustSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -281,7 +292,7 @@
 
         // create used as may section
         usedAsMaySection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        usedAsMaySection.setText( "Used as MAY" );
+        usedAsMaySection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMay" ) ); //$NON-NLS-1$
         usedAsMaySection.marginWidth = 0;
         usedAsMaySection.marginHeight = 0;
         usedAsMaySection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -296,7 +307,7 @@
 
         // create supertype section
         supertypeSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        supertypeSection.setText( "Supertype" );
+        supertypeSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Supertype" ) ); //$NON-NLS-1$
         supertypeSection.marginWidth = 0;
         supertypeSection.marginHeight = 0;
         supertypeSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -311,7 +322,7 @@
 
         // create subtypes section
         subtypesSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        subtypesSection.setText( "Subtypes" );
+        subtypesSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Subtypes" ) ); //$NON-NLS-1$
         subtypesSection.marginWidth = 0;
         subtypesSection.marginHeight = 0;
         subtypesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -454,24 +465,28 @@
         // create new content
         if ( atd != null )
         {
-            toolkit.createLabel( mainClient, "Numeric OID:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "AttributeTypeDescriptionDetailsPage.NumericOID" ), SWT.NONE ); //$NON-NLS-1$
             numericOidText = toolkit.createText( mainClient, getNonNullString( atd.getNumericOid() ), SWT.NONE );
             numericOidText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             numericOidText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Attribute names:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "AttributeTypeDescriptionDetailsPage.AttributeNames" ), SWT.NONE ); //$NON-NLS-1$
             namesText = toolkit.createText( mainClient, getNonNullString( SchemaUtils.toString( atd ) ), SWT.NONE );
             namesText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             namesText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Descripton:", SWT.WRAP );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "AttributeTypeDescriptionDetailsPage.Description" ), SWT.WRAP ); //$NON-NLS-1$
             descText = toolkit.createText( mainClient, getNonNullString( atd.getDescription() ), SWT.WRAP | SWT.MULTI );
             GridData gd = new GridData( GridData.FILL_HORIZONTAL );
             gd.widthHint = detailForm.getForm().getSize().x - 100 - 60;
             descText.setLayoutData( gd );
             descText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Usage:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "AttributeTypeDescriptionDetailsPage.Usage" ), SWT.NONE ); //$NON-NLS-1$
             usageText = toolkit.createText( mainClient, getNonNullString( UsageEnum.render( atd.getUsage() ) ),
                 SWT.NONE );
             usageText.setLayoutData( new GridData( GridData.GRAB_HORIZONTAL ) );
@@ -510,7 +525,10 @@
             Collection<String> otherMrdNames = SchemaUtils.getOtherMatchingRuleDescriptionNames( atd, getSchema() );
             if ( otherMrdNames != null && otherMrdNames.size() > 0 )
             {
-                otherMatchSection.setText( "Other Matching Rules (" + otherMrdNames.size() + ")" );
+                otherMatchSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "AttributeTypeDescriptionDetailsPage.OtherMatchingRulesCount" ), new int[] { otherMrdNames.size() } ) ); //$NON-NLS-1$
                 for ( String mrdName : otherMrdNames )
                 {
                     if ( getSchema().hasMatchingRuleDescription( mrdName ) )
@@ -535,7 +553,8 @@
             }
             else
             {
-                otherMatchSection.setText( "Other Matching Rules (0)" );
+                otherMatchSection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.OtherMatchingRulesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text otherText = toolkit.createText( otherMatchClient, getNonNullString( null ), SWT.NONE );
                 otherText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 otherText.setEditable( false );
@@ -543,7 +562,7 @@
         }
         else
         {
-            otherMatchSection.setText( "Other Matching Rules" );
+            otherMatchSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.OtherMatchingRules" ) ); //$NON-NLS-1$
         }
 
         otherMatchSection.layout();
@@ -577,7 +596,8 @@
             String superType = atd.getSuperType();
             if ( superType != null )
             {
-                supertypeSection.setText( "Supertype (" + "1" + ")" );
+                supertypeSection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.SupertypeCount" ), new int[] { 1 } ) ); //$NON-NLS-1$
                 if ( getSchema().hasAttributeTypeDescription( superType ) )
                 {
                     AttributeTypeDescription supAtd = getSchema().getAttributeTypeDescription( superType );
@@ -599,7 +619,8 @@
             }
             else
             {
-                supertypeSection.setText( "Supertype (0)" );
+                supertypeSection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.SupertypeCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text supText = toolkit.createText( superClient, getNonNullString( null ), SWT.NONE );
                 supText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 supText.setEditable( false );
@@ -607,7 +628,7 @@
         }
         else
         {
-            supertypeSection.setText( "Supertype" );
+            supertypeSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Supertype" ) ); //$NON-NLS-1$
         }
 
         supertypeSection.layout();
@@ -641,7 +662,10 @@
                 getSchema() );
             if ( derivedAtds != null && derivedAtds.size() > 0 )
             {
-                subtypesSection.setText( "Subtypes (" + derivedAtds.size() + ")" );
+                subtypesSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "AttributeTypeDescriptionDetailsPage.SubtypesCount" ), new int[] { derivedAtds.size() } ) ); //$NON-NLS-1$
                 for ( AttributeTypeDescription derivedAtd : derivedAtds )
                 {
                     Hyperlink subAttributeTypeLink = toolkit.createHyperlink( subClient, SchemaUtils
@@ -655,7 +679,8 @@
             }
             else
             {
-                subtypesSection.setText( "Subtypes (0)" );
+                subtypesSection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.SubtypesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text subText = toolkit.createText( subClient, getNonNullString( null ), SWT.NONE );
                 subText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 subText.setEditable( false );
@@ -663,7 +688,7 @@
         }
         else
         {
-            subtypesSection.setText( "Subtypes" );
+            subtypesSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.Subtypes" ) ); //$NON-NLS-1$
         }
 
         subtypesSection.layout();
@@ -697,7 +722,10 @@
             Collection<ObjectClassDescription> usedAsMusts = SchemaUtils.getUsedAsMust( atd, getSchema() );
             if ( usedAsMusts != null && usedAsMusts.size() > 0 )
             {
-                usedAsMustSection.setText( "Used as MUST (" + usedAsMusts.size() + ")" );
+                usedAsMustSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMustCount" ), new int[] { usedAsMusts.size() } ) ); //$NON-NLS-1$
                 for ( ObjectClassDescription ocd : usedAsMusts )
                 {
                     Hyperlink usedAsMustLink = toolkit.createHyperlink( mustClient, SchemaUtils.toString( ocd ),
@@ -711,7 +739,8 @@
             }
             else
             {
-                usedAsMustSection.setText( "Used as MUST (0)" );
+                usedAsMustSection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.UsedAsMustCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text mustText = toolkit.createText( mustClient, getNonNullString( null ), SWT.NONE );
                 mustText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 mustText.setEditable( false );
@@ -719,7 +748,7 @@
         }
         else
         {
-            usedAsMustSection.setText( "Used as MUST" );
+            usedAsMustSection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMust" ) ); //$NON-NLS-1$
         }
 
         usedAsMustSection.layout();
@@ -753,7 +782,10 @@
             Collection<ObjectClassDescription> usedAsMays = SchemaUtils.getUsedAsMay( atd, getSchema() );
             if ( usedAsMays != null && usedAsMays.size() > 0 )
             {
-                usedAsMaySection.setText( "Used as MAY (" + usedAsMays.size() + ")" );
+                usedAsMaySection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMayCount" ), new int[] { usedAsMays.size() } ) ); //$NON-NLS-1$
                 for ( ObjectClassDescription ocd : usedAsMays )
                 {
                     Hyperlink usedAsMayLink = toolkit
@@ -767,7 +799,8 @@
             }
             else
             {
-                usedAsMaySection.setText( "Used as MAY (0)" );
+                usedAsMaySection.setText( NLS.bind( Messages
+                    .getString( "AttributeTypeDescriptionDetailsPage.UsedAsMayCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text mayText = toolkit.createText( mayClient, getNonNullString( null ), SWT.NONE );
                 mayText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 mayText.setEditable( false );
@@ -775,7 +808,7 @@
         }
         else
         {
-            usedAsMaySection.setText( "Used as MAY" );
+            usedAsMaySection.setText( Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMay" ) ); //$NON-NLS-1$
         }
 
         usedAsMaySection.layout();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/AttributeTypeDescriptionPage.java Thu Nov 27 09:33:27 2008
@@ -60,7 +60,7 @@
      */
     protected String getTitle()
     {
-        return "Attribute Types";
+        return Messages.getString( "AttributeTypeDescriptionPage.AttributeTypes" ); //$NON-NLS-1$
     }
 
 
@@ -69,7 +69,7 @@
      */
     protected String getFilterDescription()
     {
-        return "Please select an attribute type. Enter a filter to restrict the list.";
+        return Messages.getString( "AttributeTypeDescriptionPage.SelectAttributeType" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/BrowserConnectionWidgetContributionItem.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/BrowserConnectionWidgetContributionItem.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/BrowserConnectionWidgetContributionItem.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/BrowserConnectionWidgetContributionItem.java Thu Nov 27 09:33:27 2008
@@ -142,7 +142,7 @@
      */
     public final void fill( Menu parent, int index )
     {
-        Assert.isTrue( false, "Can't add a control to a menu" );//$NON-NLS-1$
+        Assert.isTrue( false, Messages.getString( "BrowserConnectionWidgetContributionItem.CantAddControl" ) );//$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -26,6 +26,7 @@
 import org.apache.directory.shared.ldap.schema.syntax.AttributeTypeDescription;
 import org.apache.directory.shared.ldap.schema.syntax.LdapSyntaxDescription;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -79,7 +80,7 @@
 
         // create main section
         mainSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        mainSection.setText( "Details" );
+        mainSection.setText( Messages.getString( "LdapSyntaxDescriptionDetailsPage.Details" ) ); //$NON-NLS-1$
         mainSection.marginWidth = 0;
         mainSection.marginHeight = 0;
         mainSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -87,7 +88,7 @@
 
         // create used from section
         usedFromSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        usedFromSection.setText( "Used from" );
+        usedFromSection.setText( Messages.getString( "LdapSyntaxDescriptionDetailsPage.UsedFrom" ) ); //$NON-NLS-1$
         usedFromSection.marginWidth = 0;
         usedFromSection.marginHeight = 0;
         usedFromSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -148,12 +149,14 @@
         // create new content
         if ( lsd != null )
         {
-            toolkit.createLabel( mainClient, "Numeric OID:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "LdapSyntaxDescriptionDetailsPage.NumericOID" ), SWT.NONE ); //$NON-NLS-1$
             Text numericOidText = toolkit.createText( mainClient, getNonNullString( lsd.getNumericOid() ), SWT.NONE );
             numericOidText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             numericOidText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Descripton:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "LdapSyntaxDescriptionDetailsPage.Description" ), SWT.NONE ); //$NON-NLS-1$
             Text descText = toolkit.createText( mainClient, getNonNullString( lsd.getDescription() ), SWT.WRAP
                 | SWT.MULTI );
             GridData gd = new GridData( GridData.FILL_HORIZONTAL );
@@ -193,10 +196,14 @@
                 getSchema() );
             if ( usedFromATDs != null && !usedFromATDs.isEmpty() )
             {
-                usedFromSection.setText( "Used from (" + usedFromATDs.size() + ")" );
+                usedFromSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "LdapSyntaxDescriptionDetailsPage.UsedFromCount" ), new int[] { usedFromATDs.size() } ) ); //$NON-NLS-1$
                 for ( AttributeTypeDescription atd : usedFromATDs )
                 {
-                    Hyperlink usedFromLink = toolkit.createHyperlink( usedFromClient, SchemaUtils.toString( atd ), SWT.WRAP );
+                    Hyperlink usedFromLink = toolkit.createHyperlink( usedFromClient, SchemaUtils.toString( atd ),
+                        SWT.WRAP );
                     usedFromLink.setHref( atd );
                     usedFromLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                     usedFromLink.setUnderlined( true );
@@ -206,7 +213,8 @@
             }
             else
             {
-                usedFromSection.setText( "Used from (0)" );
+                usedFromSection.setText( NLS.bind( Messages
+                    .getString( "LdapSyntaxDescriptionDetailsPage.UsedFromCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text usedFromText = toolkit.createText( usedFromClient, getNonNullString( null ), SWT.NONE );
                 usedFromText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 usedFromText.setEditable( false );
@@ -214,7 +222,7 @@
         }
         else
         {
-            usedFromSection.setText( "Used from" );
+            usedFromSection.setText( Messages.getString( "LdapSyntaxDescriptionDetailsPage.UsedFrom" ) ); //$NON-NLS-1$
         }
 
         usedFromSection.layout();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/LdapSyntaxDescriptionPage.java Thu Nov 27 09:33:27 2008
@@ -59,7 +59,7 @@
      */
     protected String getTitle()
     {
-        return "Syntaxes";
+        return Messages.getString( "LdapSyntaxDescriptionPage.Syntaxes" ); //$NON-NLS-1$
     }
 
 
@@ -68,7 +68,7 @@
      */
     protected String getFilterDescription()
     {
-        return "Please select a syntax. Enter a filter to restrict the list.";
+        return Messages.getString( "LdapSyntaxDescriptionPage.SelectASyntax" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -28,6 +28,7 @@
 import org.apache.directory.shared.ldap.schema.syntax.MatchingRuleDescription;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.Schema;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -105,7 +106,7 @@
 
         // create main section
         mainSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        mainSection.setText( "Details" );
+        mainSection.setText( Messages.getString( "MatchingRuleDescriptionDetailsPage.Details" ) ); //$NON-NLS-1$
         mainSection.marginWidth = 0;
         mainSection.marginHeight = 0;
         mainSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -113,7 +114,7 @@
 
         // create flag section
         flagSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        flagSection.setText( "Flags" );
+        flagSection.setText( Messages.getString( "MatchingRuleDescriptionDetailsPage.Flags" ) ); //$NON-NLS-1$
         flagSection.marginWidth = 0;
         flagSection.marginHeight = 0;
         flagSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -128,13 +129,14 @@
         flagClient.setLayout( flagLayout );
         flagSection.setClient( flagClient );
 
-        isObsoleteText = toolkit.createLabel( flagClient, "Obsolete", SWT.CHECK );
+        isObsoleteText = toolkit.createLabel( flagClient, Messages
+            .getString( "MatchingRuleDescriptionDetailsPage.Obsolete" ), SWT.CHECK ); //$NON-NLS-1$
         isObsoleteText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         isObsoleteText.setEnabled( false );
 
         // create syntax section
         syntaxSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        syntaxSection.setText( "Syntax" );
+        syntaxSection.setText( Messages.getString( "MatchingRuleDescriptionDetailsPage.Syntax" ) ); //$NON-NLS-1$
         syntaxSection.marginWidth = 0;
         syntaxSection.marginHeight = 0;
         syntaxSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -149,19 +151,21 @@
         syntaxClient.setLayout( syntaxLayout );
         syntaxSection.setClient( syntaxClient );
 
-        toolkit.createLabel( syntaxClient, "Syntax OID:", SWT.NONE );
-        syntaxLink = toolkit.createHyperlink( syntaxClient, "", SWT.WRAP );
+        toolkit.createLabel( syntaxClient,
+            Messages.getString( "MatchingRuleDescriptionDetailsPage.SyntaxOID" ), SWT.NONE ); //$NON-NLS-1$
+        syntaxLink = toolkit.createHyperlink( syntaxClient, "", SWT.WRAP ); //$NON-NLS-1$
         syntaxLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         syntaxLink.addHyperlinkListener( this );
 
-        toolkit.createLabel( syntaxClient, "Syntax Description:", SWT.NONE );
-        syntaxDescText = toolkit.createText( syntaxClient, "", SWT.NONE );
+        toolkit.createLabel( syntaxClient,
+            Messages.getString( "MatchingRuleDescriptionDetailsPage.SyntaxDescription" ), SWT.NONE ); //$NON-NLS-1$
+        syntaxDescText = toolkit.createText( syntaxClient, "", SWT.NONE ); //$NON-NLS-1$
         syntaxDescText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         syntaxDescText.setEditable( false );
 
         // create used from section
         usedFromSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        usedFromSection.setText( "Used from" );
+        usedFromSection.setText( Messages.getString( "MatchingRuleDescriptionDetailsPage.UsedFrom" ) ); //$NON-NLS-1$
         usedFromSection.marginWidth = 0;
         usedFromSection.marginHeight = 0;
         usedFromSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -247,17 +251,20 @@
         // create new content
         if ( mrd != null )
         {
-            toolkit.createLabel( mainClient, "Numeric OID:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleDescriptionDetailsPage.NumericOID" ), SWT.NONE ); //$NON-NLS-1$
             numericOidText = toolkit.createText( mainClient, getNonNullString( mrd.getNumericOid() ), SWT.NONE );
             numericOidText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             numericOidText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Matching rule names:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleDescriptionDetailsPage.MatchingRule" ), SWT.NONE ); //$NON-NLS-1$
             namesText = toolkit.createText( mainClient, getNonNullString( SchemaUtils.toString( mrd ) ), SWT.NONE );
             namesText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             namesText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Descripton:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleDescriptionDetailsPage.Description" ), SWT.NONE ); //$NON-NLS-1$
             descText = toolkit.createText( mainClient, getNonNullString( mrd.getDescription() ), SWT.WRAP | SWT.MULTI );
             GridData gd = new GridData( GridData.FILL_HORIZONTAL );
             gd.widthHint = detailForm.getForm().getSize().x - 100 - 60;
@@ -292,13 +299,18 @@
         // create new content
         if ( mrd != null )
         {
-            Collection<AttributeTypeDescription> usedFromATDs = SchemaUtils.getUsedFromAttributeTypeDescriptions( mrd, getSchema() );
+            Collection<AttributeTypeDescription> usedFromATDs = SchemaUtils.getUsedFromAttributeTypeDescriptions( mrd,
+                getSchema() );
             if ( usedFromATDs != null && usedFromATDs.size() > 0 )
             {
-                usedFromSection.setText( "Used from (" + usedFromATDs.size() + ")" );
+                usedFromSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "MatchingRuleDescriptionDetailsPage.UsedFromCount" ), new int[] { usedFromATDs.size() } ) ); //$NON-NLS-1$
                 for ( AttributeTypeDescription atd : usedFromATDs )
                 {
-                    Hyperlink usedFromLink = toolkit.createHyperlink( usedFromClient, SchemaUtils.toString( atd ), SWT.WRAP );
+                    Hyperlink usedFromLink = toolkit.createHyperlink( usedFromClient, SchemaUtils.toString( atd ),
+                        SWT.WRAP );
                     usedFromLink.setHref( atd );
                     usedFromLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                     usedFromLink.setUnderlined( true );
@@ -308,7 +320,8 @@
             }
             else
             {
-                usedFromSection.setText( "Used from (0)" );
+                usedFromSection.setText( NLS.bind( Messages
+                    .getString( "MatchingRuleDescriptionDetailsPage.UsedFromCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text usedFromText = toolkit.createText( usedFromClient, getNonNullString( null ), SWT.NONE );
                 usedFromText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 usedFromText.setEditable( false );
@@ -316,7 +329,7 @@
         }
         else
         {
-            usedFromSection.setText( "Used from" );
+            usedFromSection.setText( Messages.getString( "MatchingRuleDescriptionDetailsPage.UsedFrom" ) ); //$NON-NLS-1$
         }
 
         usedFromSection.layout();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleDescriptionPage.java Thu Nov 27 09:33:27 2008
@@ -59,7 +59,7 @@
      */
     protected String getTitle()
     {
-        return "Matching Rules";
+        return Messages.getString( "MatchingRuleDescriptionPage.MatchingRules" ); //$NON-NLS-1$
     }
 
 
@@ -68,7 +68,7 @@
      */
     protected String getFilterDescription()
     {
-        return "Please select a matching rule. Enter a filter to restrict the list.";
+        return Messages.getString( "MatchingRuleDescriptionPage.SelectMatchingRule" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -28,6 +28,7 @@
 import org.apache.directory.shared.ldap.schema.syntax.MatchingRuleUseDescription;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.Schema;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -90,7 +91,7 @@
 
         // create main section
         mainSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        mainSection.setText( "Details" );
+        mainSection.setText( Messages.getString( "MatchingRuleUseDescriptionDetailsPage.Details" ) ); //$NON-NLS-1$
         mainSection.marginWidth = 0;
         mainSection.marginHeight = 0;
         mainSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -98,7 +99,7 @@
 
         // create flag section
         flagSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        flagSection.setText( "Flags" );
+        flagSection.setText( Messages.getString( "MatchingRuleUseDescriptionDetailsPage.Flags" ) ); //$NON-NLS-1$
         flagSection.marginWidth = 0;
         flagSection.marginHeight = 0;
         flagSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -113,13 +114,14 @@
         flagClient.setLayout( flagLayout );
         flagSection.setClient( flagClient );
 
-        isObsoleteText = toolkit.createLabel( flagClient, "Obsolete", SWT.CHECK );
+        isObsoleteText = toolkit.createLabel( flagClient, Messages
+            .getString( "MatchingRuleUseDescriptionDetailsPage.Obsolete" ), SWT.CHECK ); //$NON-NLS-1$
         isObsoleteText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         isObsoleteText.setEnabled( false );
 
         // create applies section
         appliesSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        appliesSection.setText( "Applies" );
+        appliesSection.setText( Messages.getString( "MatchingRuleUseDescriptionDetailsPage.Applies" ) ); //$NON-NLS-1$
         appliesSection.marginWidth = 0;
         appliesSection.marginHeight = 0;
         appliesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -186,13 +188,15 @@
         // create new content
         if ( mrud != null )
         {
-            toolkit.createLabel( mainClient, "Numeric OID:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleUseDescriptionDetailsPage.NumericOID" ), SWT.NONE ); //$NON-NLS-1$
             numericOidText = toolkit.createText( mainClient, getNonNullString( mrud.getNumericOid() ), SWT.NONE );
             numericOidText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             numericOidText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Matching rule names:", SWT.NONE );
-            nameLink = toolkit.createHyperlink( mainClient, "", SWT.WRAP );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleUseDescriptionDetailsPage.MatchingRules" ), SWT.NONE ); //$NON-NLS-1$
+            nameLink = toolkit.createHyperlink( mainClient, "", SWT.WRAP ); //$NON-NLS-1$
             nameLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             nameLink.addHyperlinkListener( this );
 
@@ -205,7 +209,8 @@
             nameLink.setUnderlined( mrd != null );
             nameLink.setEnabled( mrd != null );
 
-            toolkit.createLabel( mainClient, "Descripton:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "MatchingRuleUseDescriptionDetailsPage.Description" ), SWT.NONE ); //$NON-NLS-1$
             descText = toolkit.createText( mainClient, getNonNullString( mrud.getDescription() ), SWT.WRAP | SWT.MULTI );
             GridData gd = new GridData( GridData.FILL_HORIZONTAL );
             gd.widthHint = detailForm.getForm().getSize().x - 100 - 60;
@@ -243,7 +248,8 @@
             List<String> names = mrud.getApplicableAttributes();
             if ( names != null && !names.isEmpty() )
             {
-                appliesSection.setText( "Applies (" + names.size() + ")" );
+                appliesSection.setText( NLS.bind( Messages
+                    .getString( "MatchingRuleUseDescriptionDetailsPage.AppliesCount" ), new int[] { names.size() } ) ); //$NON-NLS-1$
                 Schema schema = getSchema();
                 for ( String name : names )
                 {
@@ -269,7 +275,8 @@
             }
             else
             {
-                appliesSection.setText( "Applies (0)" );
+                appliesSection.setText( NLS.bind( Messages
+                    .getString( "MatchingRuleUseDescriptionDetailsPage.AppliesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text usedFromText = toolkit.createText( appliesClient, getNonNullString( null ), SWT.NONE );
                 usedFromText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 usedFromText.setEditable( false );
@@ -277,7 +284,7 @@
         }
         else
         {
-            appliesSection.setText( "Applies" );
+            appliesSection.setText( Messages.getString( "MatchingRuleUseDescriptionDetailsPage.Applies" ) ); //$NON-NLS-1$
         }
 
         appliesSection.layout();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/MatchingRuleUseDescriptionPage.java Thu Nov 27 09:33:27 2008
@@ -60,7 +60,7 @@
      */
     protected String getTitle()
     {
-        return "Matching Rule Use";
+        return Messages.getString( "MatchingRuleUseDescriptionPage.MatchingRule" ); //$NON-NLS-1$
     }
 
 
@@ -69,7 +69,7 @@
      */
     protected String getFilterDescription()
     {
-        return "Please select a matching rule. Enter a filter to restrict the list.";
+        return Messages.getString( "MatchingRuleUseDescriptionPage.SelectMatchingRule" ); //$NON-NLS-1$
     }
 
 
@@ -229,7 +229,8 @@
             if ( element instanceof MatchingRuleUseDescription )
             {
                 MatchingRuleUseDescription mrud = ( MatchingRuleUseDescription ) element;
-                boolean matched = SchemaUtils.toString( mrud ).toLowerCase().indexOf( filterText.getText().toLowerCase() ) != -1
+                boolean matched = SchemaUtils.toString( mrud ).toLowerCase().indexOf(
+                    filterText.getText().toLowerCase() ) != -1
                     || mrud.getNumericOid().toLowerCase().indexOf( filterText.getText().toLowerCase() ) != -1;
                 return matched;
             }

Added: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java?rev=721247&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java (added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java Thu Nov 27 09:33:27 2008
@@ -0,0 +1,42 @@
+/*
+ *  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.ui.editors.schemabrowser;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.ui.editors.schemabrowser.messages"; //$NON-NLS-1$
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}

Propchange: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -27,6 +27,7 @@
 import org.apache.directory.shared.ldap.schema.syntax.AttributeTypeDescription;
 import org.apache.directory.shared.ldap.schema.syntax.ObjectClassDescription;
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -100,7 +101,7 @@
 
         // create main section
         mainSection = toolkit.createSection( detailForm.getBody(), SWT.NONE );
-        mainSection.setText( "Details" );
+        mainSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.Details" ) ); //$NON-NLS-1$
         mainSection.marginWidth = 0;
         mainSection.marginHeight = 0;
         mainSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -108,7 +109,7 @@
 
         // create must section
         mustSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        mustSection.setText( "MUST Attributes" );
+        mustSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.MustAttributes" ) ); //$NON-NLS-1$
         mustSection.marginWidth = 0;
         mustSection.marginHeight = 0;
         mustSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -123,7 +124,7 @@
 
         // create may section
         maySection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        maySection.setText( "MAY Attributes" );
+        maySection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.MayAttributes" ) ); //$NON-NLS-1$
         maySection.marginWidth = 0;
         maySection.marginHeight = 0;
         maySection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -138,7 +139,7 @@
 
         // create superior section
         superclassesSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        superclassesSection.setText( "Superclasses" );
+        superclassesSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.Superclasses" ) ); //$NON-NLS-1$
         superclassesSection.marginWidth = 0;
         superclassesSection.marginHeight = 0;
         superclassesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -153,7 +154,7 @@
 
         // create subclasses section
         subclassesSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        subclassesSection.setText( "Subclasses" );
+        subclassesSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.Subclasses" ) ); //$NON-NLS-1$
         subclassesSection.marginWidth = 0;
         subclassesSection.marginHeight = 0;
         subclassesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -220,41 +221,45 @@
         // create new content
         if ( ocd != null )
         {
-            toolkit.createLabel( mainClient, "Numeric OID:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "ObjectClassDescriptionDetailsPage.NumericOID" ), SWT.NONE ); //$NON-NLS-1$
             numericOidText = toolkit.createText( mainClient, getNonNullString( ocd.getNumericOid() ), SWT.NONE );
             numericOidText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             numericOidText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Objectclass names:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "ObjectClassDescriptionDetailsPage.ObjectclassNames" ), SWT.NONE ); //$NON-NLS-1$
             namesText = toolkit.createText( mainClient, getNonNullString( SchemaUtils.toString( ocd ) ), SWT.NONE );
             namesText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             namesText.setEditable( false );
 
-            toolkit.createLabel( mainClient, "Descripton:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "ObjectClassDescriptionDetailsPage.Description" ), SWT.NONE ); //$NON-NLS-1$
             descText = toolkit.createText( mainClient, getNonNullString( ocd.getDescription() ), SWT.WRAP | SWT.MULTI );
             GridData gd = new GridData( GridData.FILL_HORIZONTAL );
             gd.widthHint = detailForm.getForm().getSize().x - 100 - 60;
             descText.setLayoutData( gd );
             descText.setEditable( false );
 
-            String kind = "";
+            String kind = ""; //$NON-NLS-1$
             switch ( ocd.getKind() )
             {
                 case STRUCTURAL:
-                    kind = "structural";
+                    kind = Messages.getString( "ObjectClassDescriptionDetailsPage.Structural" ); //$NON-NLS-1$
                     break;
                 case ABSTRACT:
-                    kind = "abstract";
+                    kind = Messages.getString( "ObjectClassDescriptionDetailsPage.Abstract" ); //$NON-NLS-1$
                     break;
                 case AUXILIARY:
-                    kind = "auxiliary";
+                    kind = Messages.getString( "ObjectClassDescriptionDetailsPage.Auxiliary" ); //$NON-NLS-1$
                     break;
             }
             if ( ocd.isObsolete() )
             {
-                kind += " (obsolete)";
+                kind += Messages.getString( "ObjectClassDescriptionDetailsPage.Obsolete" ); //$NON-NLS-1$
             }
-            toolkit.createLabel( mainClient, "Objectclass kind:", SWT.NONE );
+            toolkit.createLabel( mainClient,
+                Messages.getString( "ObjectClassDescriptionDetailsPage.ObjectclassKind" ), SWT.NONE ); //$NON-NLS-1$
             kindText = toolkit.createText( mainClient, getNonNullString( kind ), SWT.NONE );
             kindText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             kindText.setEditable( false );
@@ -290,13 +295,17 @@
             Collection<String> names = SchemaUtils.getMustAttributeTypeDescriptionNamesTransitive( ocd, getSchema() );
             if ( names != null && names.size() > 0 )
             {
-                mustSection.setText( "MUST Attributes (" + names.size() + ")" );
+                mustSection
+                    .setText( NLS
+                        .bind(
+                            Messages.getString( "ObjectClassDescriptionDetailsPage.MustAttributesCount" ), new int[] { names.size() } ) ); //$NON-NLS-1$
                 for ( String name : names )
                 {
                     if ( getSchema().hasAttributeTypeDescription( name ) )
                     {
                         AttributeTypeDescription mustAtd = getSchema().getAttributeTypeDescription( name );
-                        Hyperlink mustLink = toolkit.createHyperlink( mustClient, SchemaUtils.toString( mustAtd ), SWT.WRAP );
+                        Hyperlink mustLink = toolkit.createHyperlink( mustClient, SchemaUtils.toString( mustAtd ),
+                            SWT.WRAP );
                         mustLink.setHref( mustAtd );
                         mustLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                         mustLink.setUnderlined( true );
@@ -314,7 +323,8 @@
             }
             else
             {
-                mustSection.setText( "MUST Attributes (0)" );
+                mustSection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.MustAttributesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text mustText = toolkit.createText( mustClient, getNonNullString( null ), SWT.NONE );
                 mustText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 mustText.setEditable( false );
@@ -322,7 +332,7 @@
         }
         else
         {
-            mustSection.setText( "MUST Attributes" );
+            mustSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.MustAttributes" ) ); //$NON-NLS-1$
         }
 
         mustSection.layout();
@@ -355,13 +365,15 @@
             Collection<String> names = SchemaUtils.getMayAttributeTypeDescriptionNamesTransitive( ocd, getSchema() );
             if ( names != null && names.size() > 0 )
             {
-                maySection.setText( "MAY Attributes (" + names.size() + ")" );
+                maySection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.MayAttributesCount" ), new int[] { names.size() } ) ); //$NON-NLS-1$
                 for ( String name : names )
                 {
                     if ( getSchema().hasAttributeTypeDescription( name ) )
                     {
                         AttributeTypeDescription mayAtd = getSchema().getAttributeTypeDescription( name );
-                        Hyperlink mayLink = toolkit.createHyperlink( mayClient, SchemaUtils.toString( mayAtd ), SWT.WRAP );
+                        Hyperlink mayLink = toolkit.createHyperlink( mayClient, SchemaUtils.toString( mayAtd ),
+                            SWT.WRAP );
                         mayLink.setHref( mayAtd );
                         mayLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                         mayLink.setUnderlined( true );
@@ -379,7 +391,8 @@
             }
             else
             {
-                maySection.setText( "MAY Attributes (0)" );
+                maySection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.MayAttributesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text mayText = toolkit.createText( mayClient, getNonNullString( null ), SWT.NONE );
                 mayText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 mayText.setEditable( false );
@@ -387,7 +400,7 @@
         }
         else
         {
-            maySection.setText( "MAY Attributes" );
+            maySection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.MayAttributes" ) ); //$NON-NLS-1$
         }
         maySection.layout();
     }
@@ -419,7 +432,8 @@
             List<ObjectClassDescription> subOcds = SchemaUtils.getSubObjectClassDescriptions( ocd, getSchema() );
             if ( subOcds != null && subOcds.size() > 0 )
             {
-                subclassesSection.setText( "Subclasses (" + subOcds.size() + ")" );
+                subclassesSection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.SubclassesCount" ), new int[] { subOcds.size() } ) ); //$NON-NLS-1$
                 for ( ObjectClassDescription subOcd : subOcds )
                 {
                     Hyperlink subLink = toolkit.createHyperlink( subClient, SchemaUtils.toString( subOcd ), SWT.WRAP );
@@ -432,7 +446,8 @@
             }
             else
             {
-                subclassesSection.setText( "Subclasses (0)" );
+                subclassesSection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.SubclassesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text derivedText = toolkit.createText( subClient, getNonNullString( null ), SWT.NONE );
                 derivedText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 derivedText.setEditable( false );
@@ -440,7 +455,7 @@
         }
         else
         {
-            subclassesSection.setText( "Subclasses" );
+            subclassesSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.Subclasses" ) ); //$NON-NLS-1$
         }
 
         subclassesSection.layout();
@@ -473,7 +488,8 @@
             List<String> names = ocd.getSuperiorObjectClasses();
             if ( names != null && names.size() > 0 )
             {
-                superclassesSection.setText( "Superclasses (" + names.size() + ")" );
+                superclassesSection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.SuperclassesCount" ), new int[] { names.size() } ) ); //$NON-NLS-1$
                 Composite supClient = toolkit.createComposite( superClient, SWT.WRAP );
                 GridLayout gl = new GridLayout();
                 gl.marginWidth = 0;
@@ -484,7 +500,8 @@
                     if ( getSchema().hasObjectClassDescription( name ) )
                     {
                         ObjectClassDescription supOcd = getSchema().getObjectClassDescription( name );
-                        Hyperlink superLink = toolkit.createHyperlink( supClient, SchemaUtils.toString( supOcd ), SWT.WRAP );
+                        Hyperlink superLink = toolkit.createHyperlink( supClient, SchemaUtils.toString( supOcd ),
+                            SWT.WRAP );
                         superLink.setHref( supOcd );
                         superLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                         superLink.setUnderlined( true );
@@ -502,7 +519,8 @@
             }
             else
             {
-                superclassesSection.setText( "Superclasses (0)" );
+                superclassesSection.setText( NLS.bind( Messages
+                    .getString( "ObjectClassDescriptionDetailsPage.SuperclassesCount" ), new int[] { 0 } ) ); //$NON-NLS-1$
                 Text superText = toolkit.createText( superClient, getNonNullString( null ), SWT.NONE );
                 superText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                 superText.setEditable( false );
@@ -510,7 +528,7 @@
         }
         else
         {
-            superclassesSection.setText( "Superclasses" );
+            superclassesSection.setText( Messages.getString( "ObjectClassDescriptionDetailsPage.Superclasses" ) ); //$NON-NLS-1$
         }
 
         superclassesSection.layout();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ObjectClassDescriptionPage.java Thu Nov 27 09:33:27 2008
@@ -59,7 +59,7 @@
      */
     protected String getTitle()
     {
-        return "Object Classes";
+        return Messages.getString( "ObjectClassDescriptionPage.ObjectClasses" ); //$NON-NLS-1$
     }
 
 
@@ -68,7 +68,7 @@
      */
     protected String getFilterDescription()
     {
-        return "Please select an object class. Enter a filter to restrict the list.";
+        return Messages.getString( "ObjectClassDescriptionPage.SelectObjectClass" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ReloadSchemaAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ReloadSchemaAction.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ReloadSchemaAction.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ReloadSchemaAction.java Thu Nov 27 09:33:27 2008
@@ -49,8 +49,8 @@
      */
     public ReloadSchemaAction( SchemaPage schemaPage )
     {
-        super( "Reload Schema" );
-        super.setToolTipText( "Reload Schema" );
+        super( Messages.getString( "ReloadSchemaAction.ReloadSchema" ) ); //$NON-NLS-1$
+        super.setToolTipText( Messages.getString( "ReloadSchemaAction.ReloadSchemaToolTip" ) ); //$NON-NLS-1$
         super.setImageDescriptor( BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_REFRESH ) );
         super.setEnabled( true );
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowser.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowser.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowser.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowser.java Thu Nov 27 09:33:27 2008
@@ -141,21 +141,21 @@
         tabFolder = new CTabFolder( parent, SWT.BOTTOM );
 
         ocdTab = new CTabItem( tabFolder, SWT.NONE );
-        ocdTab.setText( "Object Classes" );
+        ocdTab.setText( Messages.getString( "SchemaBrowser.ObjectClasses" ) ); //$NON-NLS-1$
         ocdTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_OCD ) );
         ocdPage = new ObjectClassDescriptionPage( this );
         Control ocdPageControl = ocdPage.createControl( tabFolder );
         ocdTab.setControl( ocdPageControl );
 
         atdTab = new CTabItem( tabFolder, SWT.NONE );
-        atdTab.setText( "Attribute Types" );
+        atdTab.setText( Messages.getString( "SchemaBrowser.AttributeTypes" ) ); //$NON-NLS-1$
         atdTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_ATD ) );
         atdPage = new AttributeTypeDescriptionPage( this );
         Control atdPageControl = atdPage.createControl( tabFolder );
         atdTab.setControl( atdPageControl );
 
         mrdTab = new CTabItem( tabFolder, SWT.NONE );
-        mrdTab.setText( "Matching Rules" );
+        mrdTab.setText( Messages.getString( "SchemaBrowser.MatchingRules" ) ); //$NON-NLS-1$
         mrdTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_MRD ) );
         mrdPage = new MatchingRuleDescriptionPage( this );
         Control mrdPageControl = mrdPage.createControl( tabFolder );
@@ -163,14 +163,14 @@
 
         mrudTab = new CTabItem( tabFolder, SWT.NONE );
         mrudTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_MRUD ) );
-        mrudTab.setText( "Matching Rule Use" );
+        mrudTab.setText( Messages.getString( "SchemaBrowser.MatchingRulesUse" ) ); //$NON-NLS-1$
         mrudPage = new MatchingRuleUseDescriptionPage( this );
         Control mrudPageControl = mrudPage.createControl( tabFolder );
         mrudTab.setControl( mrudPageControl );
 
         lsdTab = new CTabItem( tabFolder, SWT.NONE );
         lsdTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_LSD ) );
-        lsdTab.setText( "Syntaxes" );
+        lsdTab.setText( Messages.getString( "SchemaBrowser.Syntaxes" ) ); //$NON-NLS-1$
         lsdPage = new LdapSyntaxDescriptionPage( this );
         Control lsdPageControl = lsdPage.createControl( tabFolder );
         lsdTab.setControl( lsdPageControl );
@@ -180,11 +180,11 @@
 
         // init help context
         PlatformUI.getWorkbench().getHelpSystem().setHelp( parent,
-            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" );
+            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" ); //$NON-NLS-1$ //$NON-NLS-2$
         PlatformUI.getWorkbench().getHelpSystem().setHelp( tabFolder,
-            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" );
+            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" ); //$NON-NLS-1$ //$NON-NLS-2$
         PlatformUI.getWorkbench().getHelpSystem().setHelp( ocdPageControl,
-            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" );
+            BrowserUIConstants.PLUGIN_ID + "." + "tools_schema_browser" ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserInput.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserInput.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserInput.java Thu Nov 27 09:33:27 2008
@@ -53,10 +53,10 @@
 
     /** The connection */
     private IBrowserConnection connection;
-    
+
     /** The schema element */
     private AbstractSchemaDescription schemaElement;
-    
+
     /** One instance hack flag */
     private static boolean oneInstanceHackEnabled = true;
 
@@ -72,21 +72,20 @@
         this.connection = connection;
         this.schemaElement = schemaElement;
     }
-    
 
-//    /**
-//     * Creates a new instance of SchemaBrowserInput.
-//     *
-//     *@param connection the connection
-//     * @param schemaElement the schema element input
-//     */
-//    public SchemaBrowserInput( Connection connection, SchemaPart schemaElement )
-//    {
-//        this.connection = BrowserCorePlugin.getDefault().getConnectionManager().getConnection( connection );
-//        this.schemaElement = schemaElement;
-//    }
-    
-    
+
+    //    /**
+    //     * Creates a new instance of SchemaBrowserInput.
+    //     *
+    //     *@param connection the connection
+    //     * @param schemaElement the schema element input
+    //     */
+    //    public SchemaBrowserInput( Connection connection, SchemaPart schemaElement )
+    //    {
+    //        this.connection = BrowserCorePlugin.getDefault().getConnectionManager().getConnection( connection );
+    //        this.schemaElement = schemaElement;
+    //    }
+
     /**
      * This implementation always return false because
      * a schema element should not be visible in the 
@@ -114,7 +113,7 @@
      */
     public String getName()
     {
-        return "Schema Browser";
+        return Messages.getString( "SchemaBrowserInput.SchemaBrowser" ); //$NON-NLS-1$
     }
 
 
@@ -134,7 +133,7 @@
      */
     public String getToolTipText()
     {
-        return "";
+        return ""; //$NON-NLS-1$
     }
 
 
@@ -145,7 +144,7 @@
     {
         return null;
     }
-    
+
 
     /**
      * Gets the connection.
@@ -156,8 +155,8 @@
     {
         return connection;
     }
-    
-    
+
+
     /**
     /**
      * Gets the schema element, may be null.
@@ -168,8 +167,8 @@
     {
         return schemaElement;
     }
-    
-    
+
+
     /**
      * {@inheritDoc}
      */
@@ -196,15 +195,15 @@
             if ( obj instanceof SchemaBrowserInput )
             {
                 SchemaBrowserInput other = ( SchemaBrowserInput ) obj;
-                if ( this.connection == null && other.connection == null)
+                if ( this.connection == null && other.connection == null )
                 {
                     return true;
                 }
-                else if ( this.connection == null || other.connection == null)
+                else if ( this.connection == null || other.connection == null )
                 {
                     return false;
                 }
-                else if ( !this.connection.equals( other.connection ))
+                else if ( !this.connection.equals( other.connection ) )
                 {
                     return false;
                 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserNavigationLocation.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserNavigationLocation.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserNavigationLocation.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserNavigationLocation.java Thu Nov 27 09:33:27 2008
@@ -67,23 +67,23 @@
             if ( schemaElement instanceof ObjectClassDescription )
             {
 
-                return "Object Class " + SchemaUtils.toString( schemaElement );
+                return Messages.getString( "SchemaBrowserNavigationLocation.ObjectClass" ) + SchemaUtils.toString( schemaElement ); //$NON-NLS-1$
             }
             else if ( schemaElement instanceof AttributeTypeDescription )
             {
-                return "Attribute Type " + SchemaUtils.toString( schemaElement );
+                return Messages.getString( "SchemaBrowserNavigationLocation.AttributeType" ) + SchemaUtils.toString( schemaElement ); //$NON-NLS-1$
             }
             else if ( schemaElement instanceof LdapSyntaxDescription )
             {
-                return "Syntax " + SchemaUtils.toString( schemaElement );
+                return Messages.getString( "SchemaBrowserNavigationLocation.Syntax" ) + SchemaUtils.toString( schemaElement ); //$NON-NLS-1$
             }
             else if ( schemaElement instanceof MatchingRuleDescription )
             {
-                return "Matching Rule " + SchemaUtils.toString( schemaElement );
+                return Messages.getString( "SchemaBrowserNavigationLocation.MatchingRule" ) + SchemaUtils.toString( schemaElement ); //$NON-NLS-1$
             }
             else if ( schemaElement instanceof MatchingRuleUseDescription )
             {
-                return "Matching Rule Use " + SchemaUtils.toString( schemaElement );
+                return Messages.getString( "SchemaBrowserNavigationLocation.MatchingRuleUse" ) + SchemaUtils.toString( schemaElement ); //$NON-NLS-1$
             }
             else
             {
@@ -104,9 +104,9 @@
     {
         IBrowserConnection connection = getConnection();
         AbstractSchemaDescription schemaElement = getSchemElement();
-        memento.putString( "CONNECTION", connection.getConnection().getId() );
-        memento.putString( "SCHEMAELEMENTYPE", schemaElement.getClass().getName() );
-        memento.putString( "SCHEMAELEMENTOID", schemaElement.getNumericOid() );
+        memento.putString( "CONNECTION", connection.getConnection().getId() ); //$NON-NLS-1$
+        memento.putString( "SCHEMAELEMENTYPE", schemaElement.getClass().getName() ); //$NON-NLS-1$
+        memento.putString( "SCHEMAELEMENTOID", schemaElement.getNumericOid() ); //$NON-NLS-1$
     }
 
 
@@ -116,9 +116,9 @@
     public void restoreState( IMemento memento )
     {
         IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
-            memento.getString( "CONNECTION" ) );
-        String schemaElementType = memento.getString( "SCHEMAELEMENTYPE" );
-        String schemaElementOid = memento.getString( "SCHEMAELEMENTOID" );
+            memento.getString( "CONNECTION" ) ); //$NON-NLS-1$
+        String schemaElementType = memento.getString( "SCHEMAELEMENTYPE" ); //$NON-NLS-1$
+        String schemaElementOid = memento.getString( "SCHEMAELEMENTOID" ); //$NON-NLS-1$
         AbstractSchemaDescription schemaElement = null;
         if ( ObjectClassDescription.class.getName().equals( schemaElementType ) )
         {
@@ -256,7 +256,7 @@
      */
     public String toString()
     {
-        return "" + getSchemElement();
+        return "" + getSchemElement(); //$NON-NLS-1$
     }
 
 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaDetailsPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaDetailsPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaDetailsPage.java Thu Nov 27 09:33:27 2008
@@ -138,7 +138,7 @@
     protected void createRawSection()
     {
         rawSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
-        rawSection.setText( "Raw Schema Definition" );
+        rawSection.setText( Messages.getString( "SchemaDetailsPage.RawSchemaDefinition" ) ); //$NON-NLS-1$
         rawSection.marginWidth = 0;
         rawSection.marginHeight = 0;
         rawSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -206,7 +206,7 @@
      */
     protected String getNonNullString( String s )
     {
-        return s == null ? "-" : s;
+        return s == null ? "-" : s; //$NON-NLS-1$
     }
 
 
@@ -220,7 +220,7 @@
     {
         if ( s == null || s.isEmpty() )
         {
-            return "-";
+            return "-"; //$NON-NLS-1$
         }
 
         return s.get( 0 );

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaPage.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaPage.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaPage.java Thu Nov 27 09:33:27 2008
@@ -224,8 +224,8 @@
         section.setClient( client );
 
         // create filter field
-        toolkit.createLabel( client, "Filter:" );
-        this.filterText = toolkit.createText( client, "", SWT.NONE );
+        toolkit.createLabel( client, Messages.getString( "SchemaPage.Filter" ) ); //$NON-NLS-1$
+        this.filterText = toolkit.createText( client, "", SWT.NONE ); //$NON-NLS-1$
         this.filterText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         this.filterText.setData( FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER );
         this.filterText.addModifyListener( new ModifyListener()
@@ -283,7 +283,7 @@
             this.viewer.setSelection( newSelection, true );
             if ( this.viewer.getSelection().isEmpty() )
             {
-                this.filterText.setText( "" );
+                this.filterText.setText( "" ); //$NON-NLS-1$
                 this.viewer.setSelection( newSelection, true );
             }
             inChange = false;
@@ -352,7 +352,8 @@
                     // the selection was changed programatically.
                     if ( !inChange && obj instanceof AbstractSchemaDescription )
                     {
-                        schemaBrowser.setInput( new SchemaBrowserInput( getConnection(), ( AbstractSchemaDescription ) obj ) );
+                        schemaBrowser.setInput( new SchemaBrowserInput( getConnection(),
+                            ( AbstractSchemaDescription ) obj ) );
                     }
                 }
             }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ShowDefaultSchemaAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ShowDefaultSchemaAction.java?rev=721247&r1=721246&r2=721247&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ShowDefaultSchemaAction.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/ShowDefaultSchemaAction.java Thu Nov 27 09:33:27 2008
@@ -45,8 +45,8 @@
      */
     public ShowDefaultSchemaAction( SchemaBrowser schemaBrowser )
     {
-        super( "Show Default Schema", Action.AS_CHECK_BOX );
-        super.setToolTipText( "Show Default Schema" );
+        super( Messages.getString( "ShowDefaultSchemaAction.ShowDefaultSchema" ), Action.AS_CHECK_BOX ); //$NON-NLS-1$
+        super.setToolTipText( Messages.getString( "ShowDefaultSchemaAction.ShowDefaultSchemaToolTip" ) ); //$NON-NLS-1$
         super.setImageDescriptor( BrowserUIPlugin.getDefault().getImageDescriptor(
             BrowserUIConstants.IMG_DEFAULT_SCHEMA ) );
         super.setEnabled( true );



Mime
View raw message