directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r741930 [2/6] - in /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio: ldapbrowser/common/ ldapbrowser/common/actions/ ldapbrowser/common/dialogs/ ldapbrowser/common/dialogs/preferences/ ldapbrowser/common/...
Date Sat, 07 Feb 2009 18:26:31 GMT
Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/RenameAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/RenameAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/RenameAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/RenameAction.java Sat Feb  7 18:26:27 2009
@@ -66,19 +66,19 @@
 
         if ( entries.length == 1 && searches.length == 0 && bookmarks.length == 0 )
         {
-            return "Rename Entry...";
+            return Messages.getString("RenameAction.RenameEntry"); //$NON-NLS-1$
         }
         else if ( searches.length == 1 && entries.length == 0 && bookmarks.length == 0 )
         {
-            return "Rename Search...";
+            return Messages.getString("RenameAction.RenameSearch"); //$NON-NLS-1$
         }
         else if ( bookmarks.length == 1 && entries.length == 0 && searches.length == 0 )
         {
-            return "Rename Bookmark...";
+            return Messages.getString("RenameAction.RenameBookmark"); //$NON-NLS-1$
         }
         else
         {
-            return "Rename";
+            return Messages.getString("RenameAction.Rename"); //$NON-NLS-1$
         }
     }
 
@@ -236,13 +236,13 @@
                 if ( search.getName().equals( newName ) )
                     return null;
                 else if ( search.getBrowserConnection().getSearchManager().getSearch( newName ) != null )
-                    return "A connection with this name already exists.";
+                    return Messages.getString("RenameAction.ConnectionWithThisNameAlreadyExists"); //$NON-NLS-1$
                 else
                     return null;
             }
         };
 
-        InputDialog dialog = new InputDialog( getShell(), "Rename Search", "New name:", search.getName(), validator );
+        InputDialog dialog = new InputDialog( getShell(), Messages.getString("RenameAction.RenameSearchDialog"), Messages.getString("RenameAction.RenameSearchNewName"), search.getName(), validator ); //$NON-NLS-1$ //$NON-NLS-2$
 
         dialog.open();
         String newName = dialog.getValue();
@@ -287,13 +287,13 @@
                 if ( bookmark.getName().equals( newName ) )
                     return null;
                 else if ( bookmark.getBrowserConnection().getBookmarkManager().getBookmark( newName ) != null )
-                    return "A bookmark with this name already exists.";
+                    return Messages.getString("RenameAction.BookmarkWithThisNameAlreadyExists"); //$NON-NLS-1$
                 else
                     return null;
             }
         };
 
-        InputDialog dialog = new InputDialog( getShell(), "Rename Bookmark", "New name:", bookmark.getName(), validator );
+        InputDialog dialog = new InputDialog( getShell(), Messages.getString("RenameAction.RenameBookmarkDialog"), Messages.getString("RenameAction.RenameBookmarkNewName"), bookmark.getName(), validator ); //$NON-NLS-1$ //$NON-NLS-2$
 
         dialog.open();
         String newName = dialog.getValue();

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/SelectAllAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/SelectAllAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/SelectAllAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/SelectAllAction.java Sat Feb  7 18:26:27 2009
@@ -62,7 +62,7 @@
      */
     public String getText()
     {
-        return "Select All";
+        return Messages.getString("SelectAllAction.SelectAll"); //$NON-NLS-1$
     }
 
     /**

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ShowDecoratedValuesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ShowDecoratedValuesAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ShowDecoratedValuesAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ShowDecoratedValuesAction.java Sat Feb  7 18:26:27 2009
@@ -39,7 +39,7 @@
      */
     public ShowDecoratedValuesAction()
     {
-        super( "Show Decorated Values", AS_CHECK_BOX );
+        super( Messages.getString("ShowDecoratedValuesAction.ShowDecoratedValues"), AS_CHECK_BOX ); //$NON-NLS-1$
         super.setToolTipText( getText() );
         super.setEnabled( true );
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UnfilterChildrenAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UnfilterChildrenAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UnfilterChildrenAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UnfilterChildrenAction.java Sat Feb  7 18:26:27 2009
@@ -65,7 +65,7 @@
      */
     public String getText()
     {
-        return "Remove Children Filter";
+        return Messages.getString("UnfilterChildrenAction.RemoveChildrenFilter"); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java Sat Feb  7 18:26:27 2009
@@ -64,7 +64,7 @@
      */
     public String getText()
     {
-        return "Up";
+        return Messages.getString("UpAction.Up"); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ValueEditorPreferencesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ValueEditorPreferencesAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ValueEditorPreferencesAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ValueEditorPreferencesAction.java Sat Feb  7 18:26:27 2009
@@ -41,8 +41,8 @@
      */
     public ValueEditorPreferencesAction()
     {
-        super.setText( "Preferences..." );
-        super.setToolTipText( "Preferences..." );
+        super.setText( Messages.getString("ValueEditorPreferencesAction.Preferences") ); //$NON-NLS-1$
+        super.setToolTipText( Messages.getString("ValueEditorPreferencesAction.Preferences") ); //$NON-NLS-1$
         super.setEnabled( true );
     }
 

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,84 @@
+# 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.
+CollapseAllAction.CollapseAll=Collapse All
+CopyAction.Copy=Copy
+CopyAction.CopyEntriesDNs=Copy Entries / DNs
+CopyAction.CopyEntryDN=Copy Entry / DN
+CopyAction.CopyValue=Copy Value
+CopyAction.CopyValues=Copy Values
+DeleteAction.Delete=Delete
+DeleteAction.DeleteAttribute=Delete Attribute
+DeleteAction.DeleteAttributeQuestion=Are your sure to delete the following attribute?
+DeleteAction.DeleteAttributes=Delete Attributes
+DeleteAction.DeleteAttributesQuestion=Are your sure to delete the following attribute?
+DeleteAction.DeleteBookmark=Delete Bookmark
+DeleteAction.DeleteBookmarkQuestion=Are your sure to delete the following bookmark?
+DeleteAction.DeleteBookmarks=Delete Bookmarks
+DeleteAction.DeleteBookmarksQuestion=Are your sure to delete the following bookmarks?
+DeleteAction.DeleteEntries=Delete Entries
+DeleteAction.DeleteEntriesQuestion=Are your sure to delete the following entries, including all children?
+DeleteAction.DeleteEntry=Delete Entry
+DeleteAction.DeleteEntryQuestion=Are your sure to delete the following entry, including all children?
+DeleteAction.DeleteSearch=Delete Search
+DeleteAction.DeleteSearches=Delete Searches
+DeleteAction.DeleteSearchesQuestion=Are your sure to delete the following searches?
+DeleteAction.DeleteSearchQuestion=Are your sure to delete the following search?
+DeleteAction.DeleteSelectedAttributesQuestion=Are your sure to delete the selected attributes?
+DeleteAction.DeleteSelectedBookmarksQuestion=Are your sure to delete the selected bookmarks?
+DeleteAction.DeleteSelectedEntriesQuestion=Are your sure to delete the selected entries, including all children?
+DeleteAction.DeleteSelectedSearchesQuestion=Are your sure to delete the selected searches?
+DeleteAction.DeleteSelectedValuesQuestion=Are your sure to delete the selected values?
+DeleteAction.DeleteValue=Delete Value
+DeleteAction.DeleteValueQuestion=Are your sure to delete the following value?
+DeleteAction.DeleteValues=Delete Values
+DeleteAction.DeleteValuesQuestion=Are your sure to delete the following values?
+DeleteAllValuesAction.DeleteAttribute=Delete Attribute
+DeleteAllValuesAction.DeleteAttributeX=Delete Attribute '{0}'
+FilterChildrenAction.FilterChildren=Filter Children
+FilterChildrenAction.FilterChildrenLabel=Filter Children...
+NewAttributeAction.NewAttribute=New Attribute
+NewAttributeAction.NewAttributeLabel=New Attribute...
+NewValueAction.NewValue=New Value
+PasteAction.Paste=Paste
+PasteAction.PasteEntries=Paste Entries
+PasteAction.PasteEntry=Paste Entry
+PasteAction.PasteValue=Paste Value
+PasteAction.PasteValues=Paste Values
+PasteAction.SelectCopyDepth=Select Copy Depth
+PropertiesAction.Properties=Properties
+PropertiesAction.PropertiesForX=Properties for '{0}'
+RefreshAction.PerformSearch=Perform Search
+RefreshAction.PerformSearches=Perform Searches
+RefreshAction.Refresh=Refresh
+RefreshAction.RelaodAttributes=Reload Attributes
+RefreshAction.ReloadAttributesAndChildren=Reload Attributes and Children
+RefreshAction.SearchAgain=Search Again
+RenameAction.BookmarkWithThisNameAlreadyExists=A bookmark with this name already exists.
+RenameAction.ConnectionWithThisNameAlreadyExists=A connection with this name already exists.
+RenameAction.Rename=Rename
+RenameAction.RenameBookmark=Rename Bookmark...
+RenameAction.RenameBookmarkDialog=Rename Bookmark
+RenameAction.RenameBookmarkNewName=New name:
+RenameAction.RenameEntry=Rename Entry...
+RenameAction.RenameSearch=Rename Search...
+RenameAction.RenameSearchDialog=Rename Search
+RenameAction.RenameSearchNewName=New name:
+SelectAllAction.SelectAll=Select All
+ShowDecoratedValuesAction.ShowDecoratedValues=Show Decorated Values
+UnfilterChildrenAction.RemoveChildrenFilter=Remove Children Filter
+UpAction.Up=Up
+ValueEditorPreferencesAction.Preferences=Preferences...

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,84 @@
+# 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.
+CollapseAllAction.CollapseAll=Alle zuklappen
+CopyAction.Copy=Kopieren
+CopyAction.CopyEntriesDNs=Einträge / DNs kopieren
+CopyAction.CopyEntryDN=Eintrag / DN kopieren
+CopyAction.CopyValue=Werte kopieren
+CopyAction.CopyValues=Wert kopieren
+DeleteAction.Delete=Löschen
+DeleteAction.DeleteAttribute=Attribut löschen
+DeleteAction.DeleteAttributeQuestion=Sind Sie sicher das folgende Attribut zu löschen?
+DeleteAction.DeleteAttributes=Attribute löschen
+DeleteAction.DeleteAttributesQuestion=Sind Sie sicher die folgenden Attribute zu löschen?
+DeleteAction.DeleteBookmark=Lesezeichen löschen
+DeleteAction.DeleteBookmarkQuestion=Sind Sie sicher das folgende Lesezeichen zu löschen?
+DeleteAction.DeleteBookmarks=Lesezeichen löschen
+DeleteAction.DeleteBookmarksQuestion=Sind Sie sicher die folgenden Lesezeichen zu löschen?
+DeleteAction.DeleteEntries=Einträge löschen
+DeleteAction.DeleteEntriesQuestion=Sind Sie sicher die folgenden Einträge zu löschen, inklusive aller Kind-Einträge?
+DeleteAction.DeleteEntry=Eintrag löschen
+DeleteAction.DeleteEntryQuestion=Sind Sie sicher den folgenden Eintrag zu löschen, inklusive aller Kind-Einträge?
+DeleteAction.DeleteSearch=Suche löschen
+DeleteAction.DeleteSearches=Suchen löschen
+DeleteAction.DeleteSearchesQuestion=Sind Sie sicher die folgenden Suchen zu löschen?
+DeleteAction.DeleteSearchQuestion=Sind Sie sicher das folgende Suche zu löschen?
+DeleteAction.DeleteSelectedAttributesQuestion=Sind Sie sicher die ausgewählten Attribute zu löschen?
+DeleteAction.DeleteSelectedBookmarksQuestion=Sind Sie sicher die ausgewählten Lesezeichen zu löschen?
+DeleteAction.DeleteSelectedEntriesQuestion=Sind Sie sicher die ausgewählten Einträge zu löschen, inklusive aller Kind-Einträge?
+DeleteAction.DeleteSelectedSearchesQuestion=Sind Sie sicher die ausgewählten Suchen zu löschen?
+DeleteAction.DeleteSelectedValuesQuestion=Sind Sie sicher die ausgewählten Werte zu löschen?
+DeleteAction.DeleteValue=Wert löschen
+DeleteAction.DeleteValueQuestion=Sind Sie sicher den folgenden Wert zu löschen?
+DeleteAction.DeleteValues=Werte löschen
+DeleteAction.DeleteValuesQuestion=Sind Sie sicher die folgenden Werte zu löschen?
+DeleteAllValuesAction.DeleteAttribute=Attribut löschen
+DeleteAllValuesAction.DeleteAttributeX=Attribut '{0}' löschen
+FilterChildrenAction.FilterChildren=Kind-Einträge filtern
+FilterChildrenAction.FilterChildrenLabel=Kind-Einträge filtern...
+NewAttributeAction.NewAttribute=Neues Attribut
+NewAttributeAction.NewAttributeLabel=Neues Attribut...
+NewValueAction.NewValue=Neuer Wert
+PasteAction.Paste=Einfügen
+PasteAction.PasteEntries=Einträge einfügen
+PasteAction.PasteEntry=Eintrag einfügen
+PasteAction.PasteValue=Wert einfügen
+PasteAction.PasteValues=Werte einfügen
+PasteAction.SelectCopyDepth=Kopiertiefe auswählen
+PropertiesAction.Properties=Eigenschaften
+PropertiesAction.PropertiesForX=Eigenschaften für '{0}'
+RefreshAction.PerformSearch=Suche auführen
+RefreshAction.PerformSearches=Suchen auführen
+RefreshAction.Refresh=Aktualisieren
+RefreshAction.RelaodAttributes=Attribute neu laden
+RefreshAction.ReloadAttributesAndChildren=Attribute und Kind-Einträge neu laden
+RefreshAction.SearchAgain=Erneut suchen
+RenameAction.BookmarkWithThisNameAlreadyExists=Ein Lesezeichen mit diesem Namen existiert bereits.
+RenameAction.ConnectionWithThisNameAlreadyExists=Eine Verbindung mit diesem Namen existiert bereits.
+RenameAction.Rename=Umbenennen
+RenameAction.RenameBookmark=Lesezeichen umbenennen...
+RenameAction.RenameBookmarkDialog=Lesezeichen umbenennen
+RenameAction.RenameBookmarkNewName=Neuer Name:
+RenameAction.RenameEntry=Eintrag umbenennen...
+RenameAction.RenameSearch=Suche umbenennen...
+RenameAction.RenameSearchDialog=Suche umbenennen
+RenameAction.RenameSearchNewName=Neuer Name:
+SelectAllAction.SelectAll=Alle auswählen
+ShowDecoratedValuesAction.ShowDecoratedValues=Dekorierte Werte anzeigen
+UnfilterChildrenAction.RemoveChildrenFilter=Kind-Eintrag Filter entfernen
+UpAction.Up=Hoch
+ValueEditorPreferencesAction.Preferences=Präferenzen...

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DeleteDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DeleteDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DeleteDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DeleteDialog.java Sat Feb  7 18:26:27 2009
@@ -41,7 +41,7 @@
 
     /** The "Use Tree Delete Control" dialog setting . */
     private static final String USE_TREE_DELETE_CONTROL_DIALOGSETTING_KEY = DeleteDialog.class.getName()
-        + ".useTreeDeleteControl";
+        + ".useTreeDeleteControl"; //$NON-NLS-1$
 
     private Button useTreeDeleteControlCheckbox;
 
@@ -80,7 +80,7 @@
         if ( askForTreeDeleteControl )
         {
             useTreeDeleteControlCheckbox = new Button( parent, SWT.CHECK );
-            useTreeDeleteControlCheckbox.setText( "Use Tree Delete Control" );
+            useTreeDeleteControlCheckbox.setText( Messages.getString("DeleteDialog.UseTreeDeleteControl") ); //$NON-NLS-1$
             useTreeDeleteControlCheckbox.setSelection( BrowserCommonActivator.getDefault().getDialogSettings()
                 .getBoolean( USE_TREE_DELETE_CONTROL_DIALOGSETTING_KEY ) );
             return useTreeDeleteControlCheckbox;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DnDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DnDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DnDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/DnDialog.java Sat Feb  7 18:26:27 2009
@@ -156,7 +156,7 @@
         if ( getButton( IDialogConstants.OK_ID ) != null )
         {
             getButton( IDialogConstants.OK_ID ).setEnabled(
-                entryWidget.getDn() != null && !"".equals( entryWidget.getDn().toString() ) );
+                entryWidget.getDn() != null && !"".equals( entryWidget.getDn().toString() ) ); //$NON-NLS-1$
         }
     }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/EntryExistsCopyStrategyDialogImpl.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/EntryExistsCopyStrategyDialogImpl.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/EntryExistsCopyStrategyDialogImpl.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/EntryExistsCopyStrategyDialogImpl.java Sat Feb  7 18:26:27 2009
@@ -32,6 +32,7 @@
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
 import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
@@ -54,7 +55,7 @@
 {
 
     /** The dialog title. */
-    private String dialogTitle = "Select copy strategy";
+    private String dialogTitle = Messages.getString("EntryExistsCopyStrategyDialogImpl.SelectCopyStrategy"); //$NON-NLS-1$
 
     /** The break button. */
     private Button breakButton;
@@ -161,10 +162,10 @@
         GridData gd = new GridData( GridData.FILL_BOTH );
         composite.setLayoutData( gd );
 
-        String text = "The entry " + dn.getUpName() + " already exists. Please select how to proceed.";
+        String text = NLS.bind( Messages.getString("EntryExistsCopyStrategyDialogImpl.SelectCopyStrategyDescription"), dn.getUpName() ); //$NON-NLS-1$
         BaseWidgetUtils.createLabel( composite, text, 1 );
 
-        Composite group2 = BaseWidgetUtils.createGroup( composite, "", 1 );
+        Composite group2 = BaseWidgetUtils.createGroup( composite, "", 1 ); //$NON-NLS-1$
         Composite group = BaseWidgetUtils.createColumnContainer( group2, 2, 1 );
 
         SelectionListener listener = new SelectionAdapter()
@@ -175,17 +176,17 @@
             }
         };
 
-        breakButton = BaseWidgetUtils.createRadiobutton( group, "Stop copy process", 2 );
+        breakButton = BaseWidgetUtils.createRadiobutton( group, Messages.getString("EntryExistsCopyStrategyDialogImpl.StopCopyProcess"), 2 ); //$NON-NLS-1$
         breakButton.setSelection( true );
         breakButton.addSelectionListener( listener );
 
-        ignoreButton = BaseWidgetUtils.createRadiobutton( group, "Ignore entry and continue", 2 );
+        ignoreButton = BaseWidgetUtils.createRadiobutton( group, Messages.getString("EntryExistsCopyStrategyDialogImpl.IgnoreEntryAndContinue"), 2 ); //$NON-NLS-1$
         ignoreButton.addSelectionListener( listener );
 
-        overwriteButton = BaseWidgetUtils.createRadiobutton( group, "Overwrite entry and continue", 2 );
+        overwriteButton = BaseWidgetUtils.createRadiobutton( group, Messages.getString("EntryExistsCopyStrategyDialogImpl.OverwriteEntryAndContinue"), 2 ); //$NON-NLS-1$
         overwriteButton.addSelectionListener( listener );
 
-        renameButton = BaseWidgetUtils.createRadiobutton( group, "Rename entry and continue", 2 );
+        renameButton = BaseWidgetUtils.createRadiobutton( group, Messages.getString("EntryExistsCopyStrategyDialogImpl.RenameEntryAndContinue"), 2 ); //$NON-NLS-1$
         renameButton.addSelectionListener( listener );
 
         BaseWidgetUtils.createRadioIndent( group, 1 );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterDialog.java Sat Feb  7 18:26:27 2009
@@ -52,7 +52,7 @@
 {
 
     /** The default dialog title. */
-    private static final String DIALOG_TITLE = "Filter Editor";
+    private static final String DIALOG_TITLE = Messages.getString("FilterDialog.FilterEditor"); //$NON-NLS-1$
 
     /** The button ID for the format button. */
     private static final int FORMAT_BUTTON_ID = 987654321;
@@ -144,7 +144,7 @@
     protected Control createButtonBar( Composite parent )
     {
         Composite composite = ( Composite ) super.createButtonBar( parent );
-        super.createButton( composite, FORMAT_BUTTON_ID, "Format", false );
+        super.createButton( composite, FORMAT_BUTTON_ID, Messages.getString("FilterDialog.Format"), false ); //$NON-NLS-1$
         return composite;
     }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterWidgetDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterWidgetDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterWidgetDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/FilterWidgetDialog.java Sat Feb  7 18:26:27 2009
@@ -137,7 +137,7 @@
         gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
         inner.setLayoutData( gd );
 
-        filterWidget = new FilterWidget( filter != null ? filter : "" );
+        filterWidget = new FilterWidget( filter != null ? filter : "" ); //$NON-NLS-1$
         filterWidget.createWidget( inner );
         filterWidget.setBrowserConnection( connection );
         filterWidget.setFocus();
@@ -149,7 +149,7 @@
             }
         } );
 
-        errorMessageLabel = BaseWidgetUtils.createLabel( inner, "Please enter a valid filter.", 2 );
+        errorMessageLabel = BaseWidgetUtils.createLabel( inner, Messages.getString("FilterWidgetDialog.EnterValidFilter"), 2 ); //$NON-NLS-1$
 
         validate();
 
@@ -166,7 +166,7 @@
         {
             getButton( IDialogConstants.OK_ID ).setEnabled( filterWidget.getFilter() != null );
         }
-        errorMessageLabel.setText( filterWidget.getFilter() == null ? "Please enter a valid filter." : "" );
+        errorMessageLabel.setText( filterWidget.getFilter() == null ? Messages.getString("FilterWidgetDialog.EnterValidFilter") : "" ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 }

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java Sat Feb  7 18:26:27 2009
@@ -56,7 +56,7 @@
 {
 
     /** The default title. */
-    private static final String DIALOG_TITLE = "Hex Editor";
+    private static final String DIALOG_TITLE = Messages.getString("HexDialog.HexEditor"); //$NON-NLS-1$
 
     /** The button ID for the load button. */
     private static final int LOAD_BUTTON_ID = 9998;
@@ -100,7 +100,7 @@
         else if ( buttonId == SAVE_BUTTON_ID )
         {
             FileDialog fileDialog = new FileDialog( getShell(), SWT.SAVE );
-            fileDialog.setText( "Save Data" );
+            fileDialog.setText( Messages.getString("HexDialog.SaveData") ); //$NON-NLS-1$
             // fileDialog.setFilterExtensions(new String[]{"*.jpg"});
             String returnedFileName = fileDialog.open();
             if ( returnedFileName != null )
@@ -117,20 +117,20 @@
                 {
                     ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
                         new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR,
-                            "Can't write to file", e ) );
+                            Messages.getString("HexDialog.CantWriteToFile"), e ) ); //$NON-NLS-1$
                 }
                 catch ( IOException e )
                 {
                     ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
                         new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR,
-                            "Can't write to file", e ) );
+                            Messages.getString("HexDialog.CantWriteToFile"), e ) ); //$NON-NLS-1$
                 }
             }
         }
         else if ( buttonId == LOAD_BUTTON_ID )
         {
             FileDialog fileDialog = new FileDialog( getShell(), SWT.OPEN );
-            fileDialog.setText( "Load Data" );
+            fileDialog.setText( Messages.getString("HexDialog.LoadData") ); //$NON-NLS-1$
             String returnedFileName = fileDialog.open();
             if ( returnedFileName != null )
             {
@@ -153,13 +153,13 @@
                 catch ( FileNotFoundException e )
                 {
                     ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
-                        new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR, "Can't read file",
+                        new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR, Messages.getString("HexDialog.CantReadFile"), //$NON-NLS-1$
                             e ) );
                 }
                 catch ( IOException e )
                 {
                     ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
-                        new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR, "Can't read file",
+                        new Status( IStatus.ERROR, BrowserCommonConstants.PLUGIN_ID, IStatus.ERROR, Messages.getString("HexDialog.CantReadFile"), //$NON-NLS-1$
                             e ) );
                 }
             }
@@ -189,8 +189,8 @@
      */
     protected void createButtonsForButtonBar( Composite parent )
     {
-        createButton( parent, LOAD_BUTTON_ID, "Load Data...", false );
-        createButton( parent, SAVE_BUTTON_ID, "Save Data...", false );
+        createButton( parent, LOAD_BUTTON_ID, Messages.getString("HexDialog.LoadDataButton"), false ); //$NON-NLS-1$
+        createButton( parent, SAVE_BUTTON_ID, Messages.getString("HexDialog.SaveDataButton"), false ); //$NON-NLS-1$
         createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false );
         createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false );
     }
@@ -247,16 +247,16 @@
             String s = Integer.toHexString( b );
             if ( s.length() == 1 )
             {
-                s = "0" + s;
+                s = "0" + s; //$NON-NLS-1$
             }
 
             // space between hex numbers
-            sb.append( s ).append( " " );
+            sb.append( s ).append( " " ); //$NON-NLS-1$
 
             // extra space after 8 hex numbers
             if ( ( i + 1 ) % 8 == 0 )
             {
-                sb.append( " " );
+                sb.append( " " ); //$NON-NLS-1$
             }
 
             // if end of data is reached then fill with spaces
@@ -264,20 +264,20 @@
             {
                 while ( ( i + 1 ) % 16 != 0 )
                 {
-                    sb.append( "   " );
+                    sb.append( "   " ); //$NON-NLS-1$
                     if ( ( i + 1 ) % 8 == 0 )
                     {
-                        sb.append( " " );
+                        sb.append( " " ); //$NON-NLS-1$
                     }
                     i++;
                 }
-                sb.append( " " );
+                sb.append( " " ); //$NON-NLS-1$
             }
 
             // print ASCII characters after 16 hex numbers 
             if ( ( i + 1 ) % 16 == 0 )
             {
-                sb.append( "   " );
+                sb.append( "   " ); //$NON-NLS-1$
                 for ( int x = i - 16 + 1; x <= i && x < data.length; x++ )
                 {
                     // print ASCII charachter if printable
@@ -294,7 +294,7 @@
                     // space after 8 characters 
                     if ( ( x + 1 ) % 8 == 0 )
                     {
-                        sb.append( " " );
+                        sb.append( " " ); //$NON-NLS-1$
                     }
                 }
             }
@@ -302,7 +302,7 @@
             // start new line after 16 hex numbers
             if ( ( i + 1 ) % 16 == 0 )
             {
-                sb.append( "\r\n" );
+                sb.append( "\r\n" ); //$NON-NLS-1$
             }
         }
         return sb.toString();

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/Messages.java?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/Messages.java (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/Messages.java Sat Feb  7 18:26:27 2009
@@ -0,0 +1,51 @@
+/*
+ *  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.common.dialogs;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.common.dialogs.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 + '!';
+        }
+    }
+}

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MoveEntriesDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MoveEntriesDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MoveEntriesDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MoveEntriesDialog.java Sat Feb  7 18:26:27 2009
@@ -48,7 +48,7 @@
 {
 
     /** The dialog title. */
-    private static final String DIALOG_TITLE = "Move Entries";
+    private static final String DIALOG_TITLE = Messages.getString("MoveEntriesDialog.MoveEntries"); //$NON-NLS-1$
 
     /** The entries to move. */
     private IEntry[] entries;
@@ -131,7 +131,7 @@
         composite.setLayoutData( gd );
 
         BaseWidgetUtils.createLabel( composite,
-            "Please enter/select the parent DN where the selected entries should be moved to.", 1 );
+            Messages.getString("MoveEntriesDialog.MoveEntriesDescription"), 1 ); //$NON-NLS-1$
 
         dnBuilderWidget = new DnBuilderWidget( false, true );
         dnBuilderWidget.addWidgetModifyListener( this );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MultivaluedDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MultivaluedDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MultivaluedDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/MultivaluedDialog.java Sat Feb  7 18:26:27 2009
@@ -66,7 +66,7 @@
 {
 
     /** The dialog title. */
-    private static final String DIALOG_TITLE = "Multivalued Editor";
+    private static final String DIALOG_TITLE = Messages.getString("MultivaluedDialog.MultivaluedEditor"); //$NON-NLS-1$
 
     /** The attribute hierarchie to edit. */
     private AttributeHierarchy attributeHierarchie;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/RenameEntryDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/RenameEntryDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/RenameEntryDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/RenameEntryDialog.java Sat Feb  7 18:26:27 2009
@@ -48,10 +48,10 @@
 {
 
     /** The "Delete old RDN" dialog setting . */
-    private static final String DELETE_OLD_RDN_DIALOGSETTING_KEY = RenameEntryDialog.class.getName() + ".deleteOldRdn";
+    private static final String DELETE_OLD_RDN_DIALOGSETTING_KEY = RenameEntryDialog.class.getName() + ".deleteOldRdn"; //$NON-NLS-1$
 
     /** The dialog title. */
-    private static final String DIALOG_TITLE = "Rename Entry";
+    private static final String DIALOG_TITLE = Messages.getString("RenameEntryDialog.RenameEntry"); //$NON-NLS-1$
 
     /** The entry to rename. */
     private IEntry entry;
@@ -137,7 +137,7 @@
         gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH ) * 3 / 2;
         composite.setLayoutData( gd );
 
-        BaseWidgetUtils.createLabel( composite, "Please enter the new RDN of the selected entry.", 1 );
+        BaseWidgetUtils.createLabel( composite, Messages.getString("RenameEntryDialog.RenameEntryDescription"), 1 ); //$NON-NLS-1$
 
         dnBuilderWidget = new DnBuilderWidget( true, false );
         dnBuilderWidget.addWidgetModifyListener( this );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/ScopeDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/ScopeDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/ScopeDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/ScopeDialog.java Sat Feb  7 18:26:27 2009
@@ -118,18 +118,18 @@
         GridData gd = new GridData( GridData.FILL_BOTH );
         composite.setLayoutData( gd );
 
-        Group group = BaseWidgetUtils.createGroup( composite, "Please select the copy depth", 1 );
+        Group group = BaseWidgetUtils.createGroup( composite, Messages.getString("ScopeDialog.SelectCopyDepth"), 1 ); //$NON-NLS-1$
         objectScopeButton = new Button( group, SWT.RADIO );
         objectScopeButton.setSelection( true );
-        objectScopeButton.setText( multipleEntriesSelected ? "&Object (Only the copied entries)"
-            : "&Object (Only the copied entry)" );
+        objectScopeButton.setText( multipleEntriesSelected ? Messages.getString("ScopeDialog.OnlyCopiedEntries") //$NON-NLS-1$
+            : Messages.getString("ScopeDialog.OnlyCopiedEntry") ); //$NON-NLS-1$
         onelevelScopeButton = new Button( group, SWT.RADIO );
         onelevelScopeButton
-            .setText( multipleEntriesSelected ? "O&ne Level (The copied entries and their direct children)"
-                : "O&ne Level (The copied entry and its direct children)" );
+            .setText( multipleEntriesSelected ? Messages.getString("ScopeDialog.CopiedEntriesAndDirectChildren") //$NON-NLS-1$
+                : Messages.getString("ScopeDialog.CopiedEntryAndDirectChildren") ); //$NON-NLS-1$
         subtreeScopeButton = new Button( group, SWT.RADIO );
-        subtreeScopeButton.setText( multipleEntriesSelected ? "&Subtree (The whole subtrees)"
-            : "&Subtree (The whole subtree)" );
+        subtreeScopeButton.setText( multipleEntriesSelected ? Messages.getString("ScopeDialog.WholeSubtrees") //$NON-NLS-1$
+            : Messages.getString("ScopeDialog.WholeSubtree") ); //$NON-NLS-1$
 
         applyDialogFont( composite );
         return composite;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/SimulateRenameDialogImpl.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/SimulateRenameDialogImpl.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/SimulateRenameDialogImpl.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/SimulateRenameDialogImpl.java Sat Feb  7 18:26:27 2009
@@ -27,6 +27,7 @@
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
 import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.widgets.Composite;
@@ -46,7 +47,7 @@
 {
 
     /** The dialog title. */
-    private String dialogTitle = "Simulate moving/renaming?";
+    private String dialogTitle = Messages.getString("SimulateRenameDialogImpl.SimulateRename"); //$NON-NLS-1$
 
     /** The simulate rename flag */
     private boolean isSimulateRename;
@@ -118,14 +119,14 @@
         gd = new GridData( GridData.FILL_BOTH );
         innerComposite.setLayoutData( gd );
 
-        String text1 = "You are trying to move/rename '" + oldDn.getUpName() + "' to '" + newDn.getUpName() + "'.";
+        String text1 = NLS.bind( Messages.getString("SimulateRenameDialogImpl.SimulateRenameDescription1"), oldDn.getUpName(), newDn.getUpName() ); //$NON-NLS-1$
         BaseWidgetUtils.createLabel( innerComposite, text1, 1 );
 
-        String text2 = "The LDAP server '" + browserConnection.getConnection().getName()
-            + "' doesn't support moving/renaming of non-leaf entries.";
+        String text2 = NLS.bind( Messages.getString("SimulateRenameDialogImpl.SimulateRenameDescription2"), //$NON-NLS-1$
+            browserConnection.getConnection().getName() );
         BaseWidgetUtils.createLabel( innerComposite, text2, 1 );
 
-        String text3 = "Press OK to simulate the move/rename operation by searching/copying/deleting.";
+        String text3 = Messages.getString("SimulateRenameDialogImpl.SimulateButton"); //$NON-NLS-1$
         BaseWidgetUtils.createLabel( innerComposite, text3, 1 );
 
         applyDialogFont( composite );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/TextDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/TextDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/TextDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/TextDialog.java Sat Feb  7 18:26:27 2009
@@ -43,7 +43,7 @@
 {
 
     /** The dialog title. */
-    private static final String DIALOG_TITLE = "Text Editor";
+    private static final String DIALOG_TITLE = Messages.getString("TextDialog.TextEditor"); //$NON-NLS-1$
 
     /** The initial value. */
     private String initialValue;

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,50 @@
+# 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.
+DeleteDialog.UseTreeDeleteControl=Use Tree Delete Control
+EntryExistsCopyStrategyDialogImpl.IgnoreEntryAndContinue=Ignore entry and continue
+EntryExistsCopyStrategyDialogImpl.OverwriteEntryAndContinue=Overwrite entry and continue
+EntryExistsCopyStrategyDialogImpl.RenameEntryAndContinue=Rename entry and continue
+EntryExistsCopyStrategyDialogImpl.SelectCopyStrategy=Select copy strategy
+EntryExistsCopyStrategyDialogImpl.SelectCopyStrategyDescription=The entry {0} already exists. Please select how to proceed.
+EntryExistsCopyStrategyDialogImpl.StopCopyProcess=Stop copy process
+FilterDialog.FilterEditor=Filter Editor
+FilterDialog.Format=Format
+FilterWidgetDialog.EnterValidFilter=Please enter a valid filter.
+HexDialog.CantReadFile=Can't read file
+HexDialog.CantWriteToFile=Can't write to file
+HexDialog.HexEditor=Hex Editor
+HexDialog.LoadData=Load Data
+HexDialog.LoadDataButton=Load Data...
+HexDialog.SaveData=Save Data
+HexDialog.SaveDataButton=Save Data...
+MoveEntriesDialog.MoveEntries=Move Entries
+MoveEntriesDialog.MoveEntriesDescription=Please enter/select the parent DN where the selected entries should be moved to.
+MultivaluedDialog.MultivaluedEditor=Multivalued Editor
+RenameEntryDialog.RenameEntry=Rename Entry
+RenameEntryDialog.RenameEntryDescription=Please enter the new RDN of the selected entry.
+ScopeDialog.CopiedEntriesAndDirectChildren=O&ne Level (The copied entries and their direct children)
+ScopeDialog.CopiedEntryAndDirectChildren=O&ne Level (The copied entry and its direct children)
+ScopeDialog.OnlyCopiedEntries=&Object (Only the copied entries)
+ScopeDialog.OnlyCopiedEntry=&Object (Only the copied entry)
+ScopeDialog.SelectCopyDepth=Please select the copy depth
+ScopeDialog.WholeSubtree=&Subtree (The whole subtree)
+ScopeDialog.WholeSubtrees=&Subtree (The whole subtrees)
+SimulateRenameDialogImpl.SimulateButton=Press OK to simulate the move/rename operation by searching/copying/deleting.
+SimulateRenameDialogImpl.SimulateRename=Simulate moving/renaming?
+SimulateRenameDialogImpl.SimulateRenameDescription1=You are trying to move/rename '{0}' to '{1}'.
+SimulateRenameDialogImpl.SimulateRenameDescription2=The LDAP server '{0}' doesn't support moving/renaming of non-leaf entries.
+TextDialog.TextEditor=Text Editor

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages_de.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages_de.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/messages_de.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,50 @@
+# 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.
+DeleteDialog.UseTreeDeleteControl=Benutze 'Tree Delete Control'
+EntryExistsCopyStrategyDialogImpl.IgnoreEntryAndContinue=Ignoriere Eintrag und fortfahren
+EntryExistsCopyStrategyDialogImpl.OverwriteEntryAndContinue=Überschreibe Eintrag und fortfahren
+EntryExistsCopyStrategyDialogImpl.RenameEntryAndContinue=Eintrag umbenennen und fortfahren
+EntryExistsCopyStrategyDialogImpl.SelectCopyStrategy=Kopierstrategie auswählen
+EntryExistsCopyStrategyDialogImpl.SelectCopyStrategyDescription=Der Eintrag {0} existier bereits. Bitte auswählen, wie fortgefahren werden soll.
+EntryExistsCopyStrategyDialogImpl.StopCopyProcess=Kopierprozess beenden
+FilterDialog.FilterEditor=Filter Editor
+FilterDialog.Format=Formatieren
+FilterWidgetDialog.EnterValidFilter=Bitte gültigen Filter eingeben.
+HexDialog.CantReadFile=Datei kann nicht gelesen werden
+HexDialog.CantWriteToFile=Datei kann nicht geschrieben werden
+HexDialog.HexEditor=Hex Editor
+HexDialog.LoadData=Daten laden
+HexDialog.LoadDataButton=Daten laden...
+HexDialog.SaveData=Daten speichern
+HexDialog.SaveDataButton=Daten speichern...
+MoveEntriesDialog.MoveEntries=Einträge verschieben
+MoveEntriesDialog.MoveEntriesDescription=Bitte Eltern-DN eingeben/auswählen, wohin die Einträge verschoben werden sollen.
+MultivaluedDialog.MultivaluedEditor=Editor für mehrwertige Attribute
+RenameEntryDialog.RenameEntry=Eintrag umbenennen
+RenameEntryDialog.RenameEntryDescription=Bitte den neuen RDN des Eintrags eingeben.
+ScopeDialog.CopiedEntriesAndDirectChildren=One Level (die kopierten Einträge und deren direkten Kind-Einträge)
+ScopeDialog.CopiedEntryAndDirectChildren=One Level (der kopierte Eintrag und dessen direkten Kind-Einträge)
+ScopeDialog.OnlyCopiedEntries=&Objekt (nur die kopierten Einträge)
+ScopeDialog.OnlyCopiedEntry=&Objekt (nur der kopierte Eintrag)
+ScopeDialog.SelectCopyDepth=Bitte Kopiertiefe auswählen
+ScopeDialog.WholeSubtree=&Subtree (den gesamten Teilbaum)
+ScopeDialog.WholeSubtrees=&Subtree (die gesamten Teilbäume)
+SimulateRenameDialogImpl.SimulateButton=OK drücken, um die Verschieb-/Umbenenn-Operation zu simulieren (durch suchen/kopieren/löschen).
+SimulateRenameDialogImpl.SimulateRename=Verschieb-/Umbenenn-Operation simulieren?
+SimulateRenameDialogImpl.SimulateRenameDescription1=Sie versuchen '{0}' nach '{1}' umzubenennen bzw. zu verschieben.
+SimulateRenameDialogImpl.SimulateRenameDescription2=Der LDAP server '{0}' unterstützt nicht das Umbenennen bzw. Verschieben von Container-Einträgen.
+TextDialog.TextEditor=Text Editor

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeDialog.java Sat Feb  7 18:26:27 2009
@@ -77,7 +77,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Select Attribute Type or OID" );
+        newShell.setText( Messages.getString("AttributeDialog.SelectAttributeTypeOrOID") ); //$NON-NLS-1$
     }
 
 
@@ -99,7 +99,7 @@
         Composite composite = ( Composite ) super.createDialogArea( parent );
 
         Composite c = BaseWidgetUtils.createColumnContainer( composite, 2, 1 );
-        BaseWidgetUtils.createLabel( c, "Attribute Type or OID:", 1 );
+        BaseWidgetUtils.createLabel( c, Messages.getString("AttributeDialog.AttributeTypeOrOID"), 1 ); //$NON-NLS-1$
         typeOrOidCombo = BaseWidgetUtils.createCombo( c, attributeTypesAndOids, -1, 1 );
         if ( currentAttribute != null )
         {
@@ -119,7 +119,7 @@
 
     private void validate()
     {
-        getButton( IDialogConstants.OK_ID ).setEnabled( !"".equals( typeOrOidCombo.getText() ) );
+        getButton( IDialogConstants.OK_ID ).setEnabled( !"".equals( typeOrOidCombo.getText() ) ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeValueEditorDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeValueEditorDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeValueEditorDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributeValueEditorDialog.java Sat Feb  7 18:26:27 2009
@@ -100,7 +100,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Attribute Value Editor" );
+        newShell.setText( Messages.getString("AttributeValueEditorDialog.AttributeValueEditor") ); //$NON-NLS-1$
     }
 
 
@@ -123,7 +123,7 @@
         Composite composite = ( Composite ) super.createDialogArea( parent );
 
         Composite c = BaseWidgetUtils.createColumnContainer( composite, 2, 1 );
-        BaseWidgetUtils.createLabel( c, "Attribute Type or OID:", 1 );
+        BaseWidgetUtils.createLabel( c, Messages.getString("AttributeValueEditorDialog.AttributeTypeOrOID"), 1 ); //$NON-NLS-1$
         typeOrOidCombo = BaseWidgetUtils.createCombo( c, attributeTypesAndOids, -1, 1 );
         if ( relation != null && relation.getAttributeNumericOidOrType() != null )
         {
@@ -137,7 +137,7 @@
             }
         } );
 
-        BaseWidgetUtils.createLabel( c, "Value Editor:", 1 );
+        BaseWidgetUtils.createLabel( c, Messages.getString("AttributeValueEditorDialog.ValueEditor"), 1 ); //$NON-NLS-1$
         valueEditorCombo = BaseWidgetUtils.createReadonlyCombo( c, veName2classMap.keySet().toArray( new String[0] ),
             -1, 1 );
         if ( relation != null && relation.getValueEditorClassName() != null
@@ -160,7 +160,7 @@
     private void validate()
     {
         super.getButton( IDialogConstants.OK_ID ).setEnabled(
-            !"".equals( valueEditorCombo.getText() ) && !"".equals( typeOrOidCombo.getText() ) );
+            !"".equals( valueEditorCombo.getText() ) && !"".equals( typeOrOidCombo.getText() ) ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributesPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributesPreferencePage.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributesPreferencePage.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/AttributesPreferencePage.java Sat Feb  7 18:26:27 2009
@@ -52,9 +52,9 @@
      */
     public AttributesPreferencePage()
     {
-        super( "Attributes" );
+        super( Messages.getString("AttributesPreferencePage.Attributes") ); //$NON-NLS-1$
         super.setPreferenceStore( BrowserCommonActivator.getDefault().getPreferenceStore() );
-        super.setDescription( "General settings for attributes:" );
+        super.setDescription( Messages.getString("AttributesPreferencePage.GeneralSettings") ); //$NON-NLS-1$
     }
 
 
@@ -85,7 +85,7 @@
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
 
-        showDecoratedValuesButton = BaseWidgetUtils.createCheckbox( composite, "Show decorated values", 1 );
+        showDecoratedValuesButton = BaseWidgetUtils.createCheckbox( composite, Messages.getString("AttributesPreferencePage.ShowDecoratedValues"), 1 ); //$NON-NLS-1$
         showDecoratedValuesButton.setSelection( !getPreferenceStore().getBoolean(
             BrowserCommonConstants.PREFERENCE_SHOW_RAW_VALUES ) );
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BinaryAttributesAndSyntaxesPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BinaryAttributesAndSyntaxesPreferencePage.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BinaryAttributesAndSyntaxesPreferencePage.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BinaryAttributesAndSyntaxesPreferencePage.java Sat Feb  7 18:26:27 2009
@@ -124,8 +124,8 @@
      */
     public BinaryAttributesAndSyntaxesPreferencePage()
     {
-        super( "Binary Attributes" );
-        super.setDescription( "Specify attributes and syntaxes to handle as binary:" );
+        super( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.BinaryAttributes") ); //$NON-NLS-1$
+        super.setDescription( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.BinaryAttributesDescription") ); //$NON-NLS-1$
     }
 
 
@@ -228,7 +228,7 @@
 
     private void createAttributeContents( Composite parent )
     {
-        BaseWidgetUtils.createLabel( parent, "Binary Attributes", 1 );
+        BaseWidgetUtils.createLabel( parent, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.BinaryAttributes"), 1 ); //$NON-NLS-1$
 
         Composite composite = BaseWidgetUtils.createColumnContainer( parent, 2, 1 );
         composite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
@@ -247,14 +247,14 @@
         attributeViewer = new TableViewer( table );
 
         TableColumn c1 = new TableColumn( table, SWT.NONE );
-        c1.setText( "Attribute" );
+        c1.setText( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Attribute") ); //$NON-NLS-1$
         c1.setWidth( 300 );
         TableColumn c2 = new TableColumn( table, SWT.NONE );
-        c2.setText( "Alias" );
+        c2.setText( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Alias") ); //$NON-NLS-1$
         c2.setWidth( 60 );
 
         attributeViewer.setColumnProperties( new String[]
-            { "Attribute" } );
+            { Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Attribute") } ); //$NON-NLS-1$
         attributeViewer.setContentProvider( new ArrayContentProvider() );
         attributeViewer.setLabelProvider( new AttributeLabelProvider() );
 
@@ -266,7 +266,7 @@
             }
         } );
 
-        attributeAddButton = BaseWidgetUtils.createButton( buttonComposite, "Add...", 1 );
+        attributeAddButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Add"), 1 ); //$NON-NLS-1$
         attributeAddButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -274,7 +274,7 @@
                 addAttribute();
             }
         } );
-        attributeEditButton = BaseWidgetUtils.createButton( buttonComposite, "Edit...", 1 );
+        attributeEditButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Edit"), 1 ); //$NON-NLS-1$
         attributeEditButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -282,7 +282,7 @@
                 editAttribute();
             }
         } );
-        attributeRemoveButton = BaseWidgetUtils.createButton( buttonComposite, "Remove", 1 );
+        attributeRemoveButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Remove"), 1 ); //$NON-NLS-1$
         attributeRemoveButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -295,7 +295,7 @@
 
     private void createSyntaxContents( Composite parent )
     {
-        BaseWidgetUtils.createLabel( parent, "Binary Syntaxes", 1 );
+        BaseWidgetUtils.createLabel( parent, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.BinarySyntaxes"), 1 ); //$NON-NLS-1$
 
         Composite composite = BaseWidgetUtils.createColumnContainer( parent, 2, 1 );
         composite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
@@ -314,14 +314,14 @@
         syntaxViewer = new TableViewer( table );
 
         TableColumn c1 = new TableColumn( table, SWT.NONE );
-        c1.setText( "Syntax" );
+        c1.setText( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Syntax") ); //$NON-NLS-1$
         c1.setWidth( 300 );
         TableColumn c2 = new TableColumn( table, SWT.NONE );
-        c2.setText( "Desc" );
+        c2.setText( Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Desc") ); //$NON-NLS-1$
         c2.setWidth( 60 );
 
         syntaxViewer.setColumnProperties( new String[]
-            { "Syntax" } );
+            { Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Syntax") } ); //$NON-NLS-1$
         syntaxViewer.setContentProvider( new ArrayContentProvider() );
         syntaxViewer.setLabelProvider( new SyntaxLabelProvider() );
 
@@ -333,7 +333,7 @@
             }
         } );
 
-        syntaxAddButton = BaseWidgetUtils.createButton( buttonComposite, "Add...", 1 );
+        syntaxAddButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Add"), 1 ); //$NON-NLS-1$
         syntaxAddButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -341,7 +341,7 @@
                 addSyntax();
             }
         } );
-        syntaxEditButton = BaseWidgetUtils.createButton( buttonComposite, "Edit...", 1 );
+        syntaxEditButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Edit"), 1 ); //$NON-NLS-1$
         syntaxEditButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -349,7 +349,7 @@
                 editSyntax();
             }
         } );
-        syntaxRemoveButton = BaseWidgetUtils.createButton( buttonComposite, "Remove", 1 );
+        syntaxRemoveButton = BaseWidgetUtils.createButton( buttonComposite, Messages.getString("BinaryAttributesAndSyntaxesPreferencePage.Remove"), 1 ); //$NON-NLS-1$
         syntaxRemoveButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -489,7 +489,7 @@
                             {
                                 if ( !attribute.getAttributeNumericOidOrName().equals( attributeName ) )
                                 {
-                                    s += ", " + attributeName;
+                                    s += ", " + attributeName; //$NON-NLS-1$
                                 }
                             }
                             return s;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BrowserPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BrowserPreferencePage.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BrowserPreferencePage.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/BrowserPreferencePage.java Sat Feb  7 18:26:27 2009
@@ -53,11 +53,11 @@
 public class BrowserPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
 {
 
-    private static final String DN = "DN";
+    private static final String DN = Messages.getString("BrowserPreferencePage.DN"); //$NON-NLS-1$
 
-    private static final String RDN = "RDN";
+    private static final String RDN = Messages.getString("BrowserPreferencePage.RDN"); //$NON-NLS-1$
 
-    private static final String RDN_VALUE = "RDN value";
+    private static final String RDN_VALUE = Messages.getString("BrowserPreferencePage.RDNValue"); //$NON-NLS-1$
 
     private Combo entryLabelCombo;
 
@@ -87,9 +87,9 @@
      */
     public BrowserPreferencePage()
     {
-        super( "Browser" );
+        super( Messages.getString("BrowserPreferencePage.Browser") ); //$NON-NLS-1$
         super.setPreferenceStore( BrowserCommonActivator.getDefault().getPreferenceStore() );
-        super.setDescription( "General settings for the LDAP browser view:" );
+        super.setDescription( Messages.getString("BrowserPreferencePage.GeneralSettings") ); //$NON-NLS-1$
     }
 
 
@@ -111,10 +111,10 @@
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
         Group entryLabelGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
-            "Entry label", 1 );
+            Messages.getString("BrowserPreferencePage.EntryLabel"), 1 ); //$NON-NLS-1$
 
         Composite entryLabelComposite = BaseWidgetUtils.createColumnContainer( entryLabelGroup, 3, 1 );
-        BaseWidgetUtils.createLabel( entryLabelComposite, "Use ", 1 );
+        BaseWidgetUtils.createLabel( entryLabelComposite, Messages.getString("BrowserPreferencePage.UseAsEntryLabel1"), 1 ); //$NON-NLS-1$
         entryLabelCombo = BaseWidgetUtils.createCombo( entryLabelComposite, new String[]
             { DN, RDN, RDN_VALUE }, 0, 1 );
         entryLabelCombo.setLayoutData( new GridData() );
@@ -122,10 +122,10 @@
             .select( getPreferenceStore().getInt( BrowserCommonConstants.PREFERENCE_BROWSER_ENTRY_LABEL ) == BrowserCommonConstants.SHOW_RDN_VALUE ? 2
                 : getPreferenceStore().getInt( BrowserCommonConstants.PREFERENCE_BROWSER_ENTRY_LABEL ) == BrowserCommonConstants.SHOW_RDN ? 1
                     : 0 );
-        BaseWidgetUtils.createLabel( entryLabelComposite, " as entry label", 1 );
+        BaseWidgetUtils.createLabel( entryLabelComposite, Messages.getString("BrowserPreferencePage.UseAsEntryLabel2"), 1 ); //$NON-NLS-1$
 
         Composite entryAbbreviateComposite = BaseWidgetUtils.createColumnContainer( entryLabelGroup, 3, 1 );
-        entryAbbreviateButton = BaseWidgetUtils.createCheckbox( entryAbbreviateComposite, "Limit label length to ", 1 );
+        entryAbbreviateButton = BaseWidgetUtils.createCheckbox( entryAbbreviateComposite, Messages.getString("BrowserPreferencePage.LimitLabelLength1"), 1 ); //$NON-NLS-1$
         entryAbbreviateButton.setSelection( getPreferenceStore().getBoolean(
             BrowserCommonConstants.PREFERENCE_BROWSER_ENTRY_ABBREVIATE ) );
         entryAbbreviateButton.addSelectionListener( new SelectionAdapter()
@@ -142,25 +142,25 @@
         {
             public void verifyText( VerifyEvent e )
             {
-                if ( !e.text.matches( "[0-9]*" ) )
+                if ( !e.text.matches( "[0-9]*" ) ) //$NON-NLS-1$
                 {
                     e.doit = false;
                 }
-                if ( "".equals( entryAbbreviateMaxLengthText.getText() ) && e.text.matches( "[0]" ) )
+                if ( "".equals( entryAbbreviateMaxLengthText.getText() ) && e.text.matches( "[0]" ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     e.doit = false;
                 }
             }
         } );
-        BaseWidgetUtils.createLabel( entryAbbreviateComposite, " characters", 1 );
+        BaseWidgetUtils.createLabel( entryAbbreviateComposite, Messages.getString("BrowserPreferencePage.LimitLabelLength2"), 1 ); //$NON-NLS-1$
 
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
         Group searchResultLabelGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite,
-            1, 1 ), "Search result label", 1 );
+            1, 1 ), Messages.getString("BrowserPreferencePage.SearchResultLabel"), 1 ); //$NON-NLS-1$
 
         Composite searchResultLabelComposite = BaseWidgetUtils.createColumnContainer( searchResultLabelGroup, 3, 1 );
-        BaseWidgetUtils.createLabel( searchResultLabelComposite, "Use ", 1 );
+        BaseWidgetUtils.createLabel( searchResultLabelComposite, Messages.getString("BrowserPreferencePage.UseAsSearchResultLabel1"), 1 ); //$NON-NLS-1$
         searchResultLabelCombo = BaseWidgetUtils.createCombo( searchResultLabelComposite, new String[]
             { DN, RDN, RDN_VALUE }, 0, 1 );
         searchResultLabelCombo.setLayoutData( new GridData() );
@@ -168,12 +168,12 @@
             .select( getPreferenceStore().getInt( BrowserCommonConstants.PREFERENCE_BROWSER_SEARCH_RESULT_LABEL ) == BrowserCommonConstants.SHOW_RDN_VALUE ? 2
                 : getPreferenceStore().getInt( BrowserCommonConstants.PREFERENCE_BROWSER_SEARCH_RESULT_LABEL ) == BrowserCommonConstants.SHOW_RDN ? 1
                     : 0 );
-        BaseWidgetUtils.createLabel( searchResultLabelComposite, " as search result label", 1 );
+        BaseWidgetUtils.createLabel( searchResultLabelComposite, Messages.getString("BrowserPreferencePage.UseAsSearchResultLabel2"), 1 ); //$NON-NLS-1$
 
         Composite searchResultAbbreviateComposite = BaseWidgetUtils
             .createColumnContainer( searchResultLabelGroup, 3, 1 );
         searchResultAbbreviateButton = BaseWidgetUtils.createCheckbox( searchResultAbbreviateComposite,
-            "Limit label length to ", 1 );
+            Messages.getString("BrowserPreferencePage.LimitLabelLength1"), 1 ); //$NON-NLS-1$
         searchResultAbbreviateButton.setSelection( getPreferenceStore().getBoolean(
             BrowserCommonConstants.PREFERENCE_BROWSER_SEARCH_RESULT_ABBREVIATE ) );
         searchResultAbbreviateButton.addSelectionListener( new SelectionAdapter()
@@ -191,24 +191,24 @@
         {
             public void verifyText( VerifyEvent e )
             {
-                if ( !e.text.matches( "[0-9]*" ) )
+                if ( !e.text.matches( "[0-9]*" ) ) //$NON-NLS-1$
                 {
                     e.doit = false;
                 }
-                if ( "".equals( searchResultAbbreviateMaxLengthText.getText() ) && e.text.matches( "[0]" ) )
+                if ( "".equals( searchResultAbbreviateMaxLengthText.getText() ) && e.text.matches( "[0]" ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     e.doit = false;
                 }
             }
         } );
-        BaseWidgetUtils.createLabel( searchResultAbbreviateComposite, " characters", 1 );
+        BaseWidgetUtils.createLabel( searchResultAbbreviateComposite, Messages.getString("BrowserPreferencePage.LimitLabelLength2"), 1 ); //$NON-NLS-1$
 
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
         Group foldingGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
-            "Folding", 1 );
+            Messages.getString("BrowserPreferencePage.Folding"), 1 ); //$NON-NLS-1$
         Composite pagingGroupComposite = BaseWidgetUtils.createColumnContainer( foldingGroup, 2, 1 );
-        enableFoldingButton = BaseWidgetUtils.createCheckbox( pagingGroupComposite, "Enable folding", 2 );
+        enableFoldingButton = BaseWidgetUtils.createCheckbox( pagingGroupComposite, Messages.getString("BrowserPreferencePage.EnableFolding"), 2 ); //$NON-NLS-1$
         enableFoldingButton.setSelection( getPreferenceStore().getBoolean(
             BrowserCommonConstants.PREFERENCE_BROWSER_ENABLE_FOLDING ) );
         enableFoldingButton.addSelectionListener( new SelectionAdapter()
@@ -218,7 +218,7 @@
                 updateEnabled();
             }
         } );
-        foldingSizeLabel = BaseWidgetUtils.createLabel( pagingGroupComposite, "Folding size: ", 1 );
+        foldingSizeLabel = BaseWidgetUtils.createLabel( pagingGroupComposite, Messages.getString("BrowserPreferencePage.FoldingSize"), 1 ); //$NON-NLS-1$
         foldingSizeLabel.setEnabled( enableFoldingButton.getSelection() );
         foldingSizeText = BaseWidgetUtils.createText( pagingGroupComposite, getPreferenceStore().getString(
             BrowserCommonConstants.PREFERENCE_BROWSER_FOLDING_SIZE ), 4, 1 );
@@ -227,11 +227,11 @@
         {
             public void verifyText( VerifyEvent e )
             {
-                if ( !e.text.matches( "[0-9]*" ) )
+                if ( !e.text.matches( "[0-9]*" ) ) //$NON-NLS-1$
                 {
                     e.doit = false;
                 }
-                if ( "".equals( foldingSizeText.getText() ) && e.text.matches( "[0]" ) )
+                if ( "".equals( foldingSizeText.getText() ) && e.text.matches( "[0]" ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     e.doit = false;
                 }
@@ -241,11 +241,11 @@
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
         expandBaseEntriesButton = BaseWidgetUtils.createCheckbox( composite,
-            "Expand base entries when opening connection", 1 );
+            Messages.getString("BrowserPreferencePage.ExpandBaseEntries"), 1 ); //$NON-NLS-1$
         expandBaseEntriesButton.setSelection( getPreferenceStore().getBoolean(
             BrowserCommonConstants.PREFERENCE_BROWSER_EXPAND_BASE_ENTRIES ) );
         Preferences coreStore = BrowserCorePlugin.getDefault().getPluginPreferences();
-        checkForChildrenButton = BaseWidgetUtils.createCheckbox( composite, "Check for children", 1 );
+        checkForChildrenButton = BaseWidgetUtils.createCheckbox( composite, Messages.getString("BrowserPreferencePage.CheckForChildren"), 1 ); //$NON-NLS-1$
         checkForChildrenButton
             .setSelection( coreStore.getBoolean( BrowserCoreConstants.PREFERENCE_CHECK_FOR_CHILDREN ) );
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/ColorsAndFontsPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/ColorsAndFontsPreferencePage.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/ColorsAndFontsPreferencePage.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/ColorsAndFontsPreferencePage.java Sat Feb  7 18:26:27 2009
@@ -51,7 +51,7 @@
 {
 
     private final String[] ERROR_TYPES = new String[]
-        { "Warnings:", "Errors:" };
+        { Messages.getString("ColorsAndFontsPreferencePage.Warnings"), Messages.getString("ColorsAndFontsPreferencePage.Errors") }; //$NON-NLS-1$ //$NON-NLS-2$
 
     private final String[] ERROR_FONT_CONSTANTS = new String[]
         { BrowserCommonConstants.PREFERENCE_WARNING_FONT, BrowserCommonConstants.PREFERENCE_ERROR_FONT };
@@ -78,7 +78,7 @@
     private Button quickfilterItalicButton;
 
     private final String[] ATTRIBUTE_TYPES = new String[]
-        { "Objectclass attribute:", "Must attributes:", "May attributes:", "Operational attributes:" };
+        { Messages.getString("ColorsAndFontsPreferencePage.ObjectClassAttribute"), Messages.getString("ColorsAndFontsPreferencePage.MustAttributes"), Messages.getString("ColorsAndFontsPreferencePage.MayAttributes"), Messages.getString("ColorsAndFontsPreferencePage.OperationalAttributes") }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
 
     private final String[] ATTRIBUTE_FONT_CONSTANTS = new String[]
         { BrowserCommonConstants.PREFERENCE_OBJECTCLASS_FONT, BrowserCommonConstants.PREFERENCE_MUSTATTRIBUTE_FONT,
@@ -104,9 +104,9 @@
      */
     public ColorsAndFontsPreferencePage()
     {
-        super( "Colors and Fonts" );
+        super( Messages.getString("ColorsAndFontsPreferencePage.colorsAndFonts") ); //$NON-NLS-1$
         super.setPreferenceStore( BrowserCommonActivator.getDefault().getPreferenceStore() );
-        super.setDescription( "Color and Font settings for the LDAP browser:" );
+        super.setDescription( Messages.getString("ColorsAndFontsPreferencePage.colorsAndFontsDescription") ); //$NON-NLS-1$
     }
 
 
@@ -137,7 +137,7 @@
         // warning and error
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
-        Group errorGroup = BaseWidgetUtils.createGroup( composite, "Warning and Error Colors and Fonts", 1 );
+        Group errorGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("ColorsAndFontsPreferencePage.WaringAndErrorColorsAndFonts"), 1 ); //$NON-NLS-1$
         errorGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         Composite errorComposite = BaseWidgetUtils.createColumnContainer( errorGroup, 4, 1 );
         for ( int i = 0; i < ERROR_TYPES.length; i++ )
@@ -145,8 +145,8 @@
             errorTypeLabels[i] = BaseWidgetUtils.createLabel( errorComposite, ERROR_TYPES[i], 1 );
             errorTypeLabels[i].setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             errorColorSelectors[i] = new ColorSelector( errorComposite );
-            errorBoldButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, "Bold", 1 );
-            errorItalicButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, "Italic", 1 );
+            errorBoldButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, Messages.getString("ColorsAndFontsPreferencePage.Bold"), 1 ); //$NON-NLS-1$
+            errorItalicButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, Messages.getString("ColorsAndFontsPreferencePage.Italic"), 1 ); //$NON-NLS-1$
 
             FontData[] fontDatas = PreferenceConverter.getFontDataArray( BrowserCommonActivator.getDefault()
                 .getPreferenceStore(), ERROR_FONT_CONSTANTS[i] );
@@ -158,15 +158,15 @@
         // quick filter
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
-        Group otherGroup = BaseWidgetUtils.createGroup( composite, "Quick Filter Colors and Fonts", 1 );
+        Group otherGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("ColorsAndFontsPreferencePage.QuickFilterColorsAndFonts"), 1 ); //$NON-NLS-1$
         otherGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         Composite otherComposite = BaseWidgetUtils.createColumnContainer( otherGroup, 4, 1 );
-        quickfilterTypeLabel = BaseWidgetUtils.createLabel( otherComposite, "Quick Filter", 1 );
+        quickfilterTypeLabel = BaseWidgetUtils.createLabel( otherComposite, Messages.getString("ColorsAndFontsPreferencePage.QuickFilter"), 1 ); //$NON-NLS-1$
         quickfilterTypeLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         quickfilterForegroundColorSelector = new ColorSelector( otherComposite );
-        quickfilterBoldButton = BaseWidgetUtils.createCheckbox( otherComposite, "Bold", 1 );
-        quickfilterItalicButton = BaseWidgetUtils.createCheckbox( otherComposite, "Italic", 1 );
-        Label quickfilterBgLabel = BaseWidgetUtils.createLabel( otherComposite, "Quick Filter Background", 1 );
+        quickfilterBoldButton = BaseWidgetUtils.createCheckbox( otherComposite, Messages.getString("ColorsAndFontsPreferencePage.Bold"), 1 ); //$NON-NLS-1$
+        quickfilterItalicButton = BaseWidgetUtils.createCheckbox( otherComposite, Messages.getString("ColorsAndFontsPreferencePage.Italic"), 1 ); //$NON-NLS-1$
+        Label quickfilterBgLabel = BaseWidgetUtils.createLabel( otherComposite, Messages.getString("ColorsAndFontsPreferencePage.QuickFilterBackground"), 1 ); //$NON-NLS-1$
         quickfilterBgLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         quickfilterBackgroundColorSelector = new ColorSelector( otherComposite );
         FontData[] qfFontDatas = PreferenceConverter.getFontDataArray( BrowserCommonActivator.getDefault()
@@ -180,7 +180,7 @@
         // attribute
         BaseWidgetUtils.createSpacer( composite, 1 );
         BaseWidgetUtils.createSpacer( composite, 1 );
-        Group colorsAndFontsGroup = BaseWidgetUtils.createGroup( composite, "Attribute Colors and Fonts", 1 );
+        Group colorsAndFontsGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("ColorsAndFontsPreferencePage.AttributeColorsAndFonts"), 1 ); //$NON-NLS-1$
         colorsAndFontsGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
         Composite colorsAndFontsComposite = BaseWidgetUtils.createColumnContainer( colorsAndFontsGroup, 4, 1 );
         for ( int i = 0; i < ATTRIBUTE_TYPES.length; i++ )
@@ -188,8 +188,8 @@
             attributeTypeLabels[i] = BaseWidgetUtils.createLabel( colorsAndFontsComposite, ATTRIBUTE_TYPES[i], 1 );
             attributeTypeLabels[i].setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
             attributeColorSelectors[i] = new ColorSelector( colorsAndFontsComposite );
-            attributeBoldButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, "Bold", 1 );
-            attributeItalicButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, "Italic", 1 );
+            attributeBoldButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, Messages.getString("ColorsAndFontsPreferencePage.Bold"), 1 ); //$NON-NLS-1$
+            attributeItalicButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, Messages.getString("ColorsAndFontsPreferencePage.Italic"), 1 ); //$NON-NLS-1$
 
             FontData[] fontDatas = PreferenceConverter.getFontDataArray( BrowserCommonActivator.getDefault()
                 .getPreferenceStore(), ATTRIBUTE_FONT_CONSTANTS[i] );



Mime
View raw message