directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721266 - in /directory/studio/trunk/ldapbrowser-ui/src/main: java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/
Date Thu, 27 Nov 2008 20:30:39 GMT
Author: felixk
Date: Thu Nov 27 12:30:39 2008
New Revision: 721266

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

Added:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/Messages.java
  (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties
  (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties
  (with props)
Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/EnableModificationLogsAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ExportAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/NewerAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OlderAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OpenModificationLogsPreferencePageAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/RefreshAction.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
Thu Nov 27 12:30:39 2008
@@ -75,7 +75,7 @@
      */
     public String getText()
     {
-        return "Clear";
+        return Messages.getString( "ClearAction.Clear" ); //$NON-NLS-1$
     }
 
 
@@ -93,7 +93,8 @@
      */
     public void run()
     {
-        if ( MessageDialog.openConfirm( this.getShell(), "Delete", "Delete all log files?"
) )
+        if ( MessageDialog.openConfirm( this.getShell(),
+            Messages.getString( "ClearAction.Delete" ), Messages.getString( "ClearAction.DeleteAllLogFiles"
) ) ) //$NON-NLS-1$ //$NON-NLS-2$
         {
             view.getUniversalListener().clearInput();
         }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/EnableModificationLogsAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/EnableModificationLogsAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/EnableModificationLogsAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/EnableModificationLogsAction.java
Thu Nov 27 12:30:39 2008
@@ -40,7 +40,7 @@
      */
     public EnableModificationLogsAction()
     {
-        super( "Enable Modification Logs", AS_CHECK_BOX );
+        super( Messages.getString( "EnableModificationLogsAction.EnableModificationLogs"
), AS_CHECK_BOX ); //$NON-NLS-1$
         setToolTipText( getText() );
         setEnabled( true );
         setChecked( ConnectionCorePlugin.getDefault().getPluginPreferences().getBoolean(

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ExportAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ExportAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ExportAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ExportAction.java
Thu Nov 27 12:30:39 2008
@@ -17,6 +17,7 @@
  *  under the License.
  *
  */
+
 package org.apache.directory.studio.ldapbrowser.ui.views.modificationlogs;
 
 
@@ -68,7 +69,7 @@
      */
     public String getText()
     {
-        return "Export Modification Logs...";
+        return Messages.getString( "ExportAction.ExportModificationLogs" ); //$NON-NLS-1$
     }
 
 

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

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

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/NewerAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/NewerAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/NewerAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/NewerAction.java
Thu Nov 27 12:30:39 2008
@@ -35,7 +35,7 @@
  */
 public class NewerAction extends BrowserAction
 {
-    
+
     /** The modification logs view. */
     private ModificationLogsView view;
 
@@ -66,7 +66,8 @@
     public void run()
     {
         ModificationLogsViewInput oldInput = ( ModificationLogsViewInput ) getInput();
-        ModificationLogsViewInput newInput = new ModificationLogsViewInput( oldInput.getBrowserConnection(),
oldInput.getIndex() - 1 );
+        ModificationLogsViewInput newInput = new ModificationLogsViewInput( oldInput.getBrowserConnection(),
oldInput
+            .getIndex() - 1 );
         view.getUniversalListener().setInput( newInput );
         view.getUniversalListener().scrollToOldest();
 
@@ -80,7 +81,7 @@
      */
     public String getText()
     {
-        return "Newer";
+        return Messages.getString( "NewerAction.Newer" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OlderAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OlderAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OlderAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OlderAction.java
Thu Nov 27 12:30:39 2008
@@ -82,7 +82,7 @@
      */
     public String getText()
     {
-        return "Older";
+        return Messages.getString( "OlderAction.Older" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OpenModificationLogsPreferencePageAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OpenModificationLogsPreferencePageAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OpenModificationLogsPreferencePageAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/OpenModificationLogsPreferencePageAction.java
Thu Nov 27 12:30:39 2008
@@ -42,8 +42,8 @@
      */
     public OpenModificationLogsPreferencePageAction()
     {
-        setText( "Preferences..." );
-        setToolTipText( "Preferences..." );
+        setText( Messages.getString( "OpenModificationLogsPreferencePageAction.Preferences"
) ); //$NON-NLS-1$
+        setToolTipText( Messages.getString( "OpenModificationLogsPreferencePageAction.PreferencesToolTip"
) ); //$NON-NLS-1$
         setEnabled( true );
     }
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/RefreshAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/RefreshAction.java?rev=721266&r1=721265&r2=721266&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/RefreshAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/RefreshAction.java
Thu Nov 27 12:30:39 2008
@@ -77,7 +77,7 @@
      */
     public String getText()
     {
-        return "Refresh";
+        return Messages.getString( "RefreshAction.Refresh" ); //$NON-NLS-1$
     }
 
 

Added: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties?rev=721266&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties
(added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties
Thu Nov 27 12:30:39 2008
@@ -0,0 +1,27 @@
+# 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.
+
+ClearAction.Clear=Clear
+ClearAction.Delete=Delete
+ClearAction.DeleteAllLogFiles=Delete all log files?
+EnableModificationLogsAction.EnableModificationLogs=Enable Modification Logs
+ExportAction.ExportModificationLogs=Export Modification Logs...
+NewerAction.Newer=Newer
+OlderAction.Older=Older
+OpenModificationLogsPreferencePageAction.Preferences=Preferences...
+OpenModificationLogsPreferencePageAction.PreferencesToolTip=Preferences...
+RefreshAction.Refresh=Refresh

Propchange: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties?rev=721266&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties
(added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties
Thu Nov 27 12:30:39 2008
@@ -0,0 +1,27 @@
+# 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.
+
+ClearAction.Clear=L\u00F6schen
+ClearAction.Delete=L\u00F6schen
+ClearAction.DeleteAllLogFiles=Alle Log-Dateien l\u00F6schen?
+EnableModificationLogsAction.EnableModificationLogs=\u00C4nderungs-Log einschalten
+ExportAction.ExportModificationLogs=\u00C4nderungs-Log exportieren...
+NewerAction.Newer=Neuer
+OlderAction.Older=\u00C4lter
+OpenModificationLogsPreferencePageAction.Preferences=Pr\u00E4ferenzen...
+OpenModificationLogsPreferencePageAction.PreferencesToolTip=Pr\u00E4ferenzen...
+RefreshAction.Refresh=Erneuern

Propchange: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/messages_de.properties
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message