directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r820780 - in /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio: entryeditors/ ldapbrowser/ui/ ldapbrowser/ui/editors/entry/
Date Thu, 01 Oct 2009 20:46:15 GMT
Author: seelmann
Date: Thu Oct  1 20:46:15 2009
New Revision: 820780

URL: http://svn.apache.org/viewvc?rev=820780&view=rev
Log:
String externalization

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_de.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_fr.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorActionGroup.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Thu Oct  1 20:46:15 2009
@@ -90,7 +90,7 @@
     private static final String PRIORITY_ATTR = "priority"; //$NON-NLS-1$
 
     /** The priorities separator */
-    public static final String PRIORITIES_SEPARATOR = ",";
+    public static final String PRIORITIES_SEPARATOR = ","; //$NON-NLS-1$
 
     /** The list of entry editors */
     private Map<String, EntryEditorExtension> entryEditorExtensions = new HashMap<String,
EntryEditorExtension>();
@@ -182,7 +182,7 @@
             bean.setIcon( icon );
             bean.setClassName( member.getAttribute( CLASS_ATTR ) );
             bean.setEditorId( member.getAttribute( EDITOR_ID_ATTR ) );
-            bean.setMultiWindow( "true".equalsIgnoreCase( member.getAttribute( MULTI_WINDOW_ATTR
) ) );
+            bean.setMultiWindow( "true".equalsIgnoreCase( member.getAttribute( MULTI_WINDOW_ATTR
) ) ); //$NON-NLS-1$
             bean.setPriority( Integer.parseInt( member.getAttribute( PRIORITY_ATTR ) ) );
 
             entryEditorExtensions.put( bean.getId(), bean );
@@ -290,7 +290,7 @@
         // Getting the user's priorities
         String userPriorities = BrowserUIPlugin.getDefault().getPluginPreferences().getString(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES );
-        if ( ( userPriorities != null ) && ( !"".equals( userPriorities ) ) )
+        if ( ( userPriorities != null ) && ( !"".equals( userPriorities ) ) ) //$NON-NLS-1$
         {
             String[] splittedUserPriorities = userPriorities.split( PRIORITIES_SEPARATOR
);
             if ( ( splittedUserPriorities != null ) && ( splittedUserPriorities.length
> 0 ) )
@@ -608,9 +608,9 @@
     {
         MessageDialog dialog = new MessageDialog(
             partRef.getPart( false ).getSite().getShell(),
-            "Entry Changed",
+            Messages.getString("EntryEditorManager.EntryChanged"), //$NON-NLS-1$
             null,
-            "The entry has been changed in the directory server. Do you want to replace the
editor contents with these changes?",
+            Messages.getString("EntryEditorManager.EntryChangedDescription"), //$NON-NLS-1$
             MessageDialog.QUESTION, new String[]
                 { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0 );
         int result = dialog.open();
@@ -718,7 +718,7 @@
                         if ( diff != null )
                         {
                             MessageDialog dialog = new MessageDialog( partRef.getPart( false
).getSite().getShell(),
-                                "Save Changes", null, "Entry has been modified in another
entry editor. Save changes?",
+                                Messages.getString("EntryEditorManager.SaveChanges"), null,
Messages.getString("EntryEditorManager.SaveChangesDescription"), //$NON-NLS-1$ //$NON-NLS-2$
                                 MessageDialog.QUESTION, new String[]
                                     { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL
}, 0 );
                             int result = dialog.open();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages.properties?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages.properties
Thu Oct  1 20:46:15 2009
@@ -15,6 +15,10 @@
 # specific language governing permissions and limitations
 # under the License.
 
+EntryEditorManager.EntryChanged=Entry Changed
+EntryEditorManager.EntryChangedDescription=The entry has been changed in the directory server.
Do you want to replace the editor contents with these changes?
+EntryEditorManager.SaveChanges=Save Changes
+EntryEditorManager.SaveChangesDescription=Entry has been modified in another entry editor.
Save changes?
 EntryEditorNavigationLocation.Bookmark=Bookmark {0}
 EntryEditorNavigationLocation.Entry=Entry {0}
 EntryEditorNavigationLocation.RootDSE=Root DSE

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_de.properties?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_de.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_de.properties
Thu Oct  1 20:46:15 2009
@@ -15,6 +15,10 @@
 # specific language governing permissions and limitations
 # under the License.
 
+EntryEditorManager.EntryChanged=Eintrag Ge\u00e4ndert
+EntryEditorManager.EntryChangedDescription=Der Eintrag wurde im Verzeichnisserver ge\u00e4ndert.
Wollen Sie den Inhalt des Editors mit dem ge\u00e4nderten Eintrag ersetzen?
+EntryEditorManager.SaveChanges=\u00c4nderungen Speichern
+EntryEditorManager.SaveChangesDescription=Der Eintrag wurde in einem anderen Editor ge\u00e4ndert.
Diese \u00c4nderungen speichern?
 EntryEditorNavigationLocation.Bookmark=Lesezeichen {0}
 EntryEditorNavigationLocation.Entry=Eintrag {0}
 EntryEditorNavigationLocation.SearchResult=Suchergebnis {0}

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_fr.properties?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_fr.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/messages_fr.properties
Thu Oct  1 20:46:15 2009
@@ -15,6 +15,10 @@
 # specific language governing permissions and limitations
 # under the License.
 
+EntryEditorManager.EntryChanged=TODO:Entry Changed
+EntryEditorManager.EntryChangedDescription=TODO:The entry has been changed in the directory
server. Do you want to replace the editor contents with these changes?
+EntryEditorManager.SaveChanges=TODO:Save Changes
+EntryEditorManager.SaveChangesDescription=TODO:Entry has been modified in another entry editor.
Save changes?
 EntryEditorNavigationLocation.Bookmark=Signet {0}
 EntryEditorNavigationLocation.Entry=Entr\u00E9e {0}
 EntryEditorNavigationLocation.RootDSE=Root DSE

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
Thu Oct  1 20:46:15 2009
@@ -32,7 +32,7 @@
     /** The plug-in ID */
     public static final String PLUGIN_ID = BrowserUIPlugin.getDefault().getPluginProperties().getString(
"Plugin_id" ); //$NON-NLS-1$
 
-    public static final String ENTRY_EDITOR_EXTENSION_POINT = "org.apache.directory.studio.entryeditors";
+    public static final String ENTRY_EDITOR_EXTENSION_POINT = "org.apache.directory.studio.entryeditors";
//$NON-NLS-1$
 
     public static final String DN = "DN"; //$NON-NLS-1$
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
Thu Oct  1 20:46:15 2009
@@ -49,7 +49,7 @@
 
         // Entry Editors
         store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES,
false );
-        store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES, ""
);
+        store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES, ""
); //$NON-NLS-1$
         store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE,
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR );
     }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorActionGroup.java?rev=820780&r1=820779&r2=820780&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorActionGroup.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorActionGroup.java
Thu Oct  1 20:46:15 2009
@@ -153,7 +153,7 @@
     private static final String showLsdAction = "showLsdAction"; //$NON-NLS-1$
 
     /** The Constant fetchOperationalAttributesAction. */
-    private static final String fetchOperationalAttributesAction = "fetchOperationalAttributesAction";
+    private static final String fetchOperationalAttributesAction = "fetchOperationalAttributesAction";
//$NON-NLS-1$
 
 
     /**



Mime
View raw message