directory-commits mailing list archives

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

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

Added:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/Messages.java
  (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages.properties
  (with props)
    directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages_de.properties
  (with props)
Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/LinkWithEditorAction.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java?rev=721265&r1=721264&r2=721265&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
Thu Nov 27 12:23:28 2008
@@ -51,31 +51,31 @@
     private LinkWithEditorAction linkWithEditorAction;
 
     /** The Constant importDsmlAction. */
-    private static final String importDsmlAction = "importDsmlAction";
+    private static final String importDsmlAction = "importDsmlAction"; //$NON-NLS-1$
 
     /** The Constant exportDsmlAction. */
-    private static final String exportDsmlAction = "exportDsmlAction";
+    private static final String exportDsmlAction = "exportDsmlAction"; //$NON-NLS-1$
 
     /** The Constant importLdifAction. */
-    private static final String importLdifAction = "importLdifAction";
+    private static final String importLdifAction = "importLdifAction"; //$NON-NLS-1$
 
     /** The Constant exportLdifAction. */
-    private static final String exportLdifAction = "exportLdifAction";
+    private static final String exportLdifAction = "exportLdifAction"; //$NON-NLS-1$
 
     /** The Constant exportCsvAction. */
-    private static final String exportCsvAction = "exportCsvAction";
+    private static final String exportCsvAction = "exportCsvAction"; //$NON-NLS-1$
 
     /** The Constant exportExcelAction. */
-    private static final String exportExcelAction = "exportExcelAction";
+    private static final String exportExcelAction = "exportExcelAction"; //$NON-NLS-1$
 
     /** The Constant importConnectionsAction. */
-    private static final String importConnectionsAction = "importConnectionsAction";
+    private static final String importConnectionsAction = "importConnectionsAction"; //$NON-NLS-1$
 
     /** The Constant importConnectionsAction. */
-    private static final String exportConnectionsAction = "exportConnectionsAction";
+    private static final String exportConnectionsAction = "exportConnectionsAction"; //$NON-NLS-1$
 
     /** The Constant openSchemaBrowserAction. */
-    private static final String openSchemaBrowserAction = "openSchemaBrowserAction";
+    private static final String openSchemaBrowserAction = "openSchemaBrowserAction"; //$NON-NLS-1$
 
 
     /**
@@ -161,14 +161,14 @@
         menuManager.add( new Separator() );
 
         // import/export
-        MenuManager importMenuManager = new MenuManager( "Import" );
+        MenuManager importMenuManager = new MenuManager( Messages.getString( "ConnectionViewActionGroup.Import"
) ); //$NON-NLS-1$
         importMenuManager.add( ( IAction ) connectionActionMap.get( importLdifAction ) );
         importMenuManager.add( ( IAction ) connectionActionMap.get( importDsmlAction ) );
         importMenuManager.add( new Separator() );
         importMenuManager.add( ( IAction ) connectionActionMap.get( importConnectionsAction
) );
         importMenuManager.add( new Separator() );
         menuManager.add( importMenuManager );
-        MenuManager exportMenuManager = new MenuManager( "Export" );
+        MenuManager exportMenuManager = new MenuManager( Messages.getString( "ConnectionViewActionGroup.Export"
) ); //$NON-NLS-1$
         exportMenuManager.add( ( IAction ) connectionActionMap.get( exportLdifAction ) );
         exportMenuManager.add( ( IAction ) connectionActionMap.get( exportDsmlAction ) );
         exportMenuManager.add( new Separator() );

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/LinkWithEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/LinkWithEditorAction.java?rev=721265&r1=721264&r2=721265&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/LinkWithEditorAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/LinkWithEditorAction.java
Thu Nov 27 12:23:28 2008
@@ -17,6 +17,7 @@
  *  under the License. 
  *  
  */
+
 package org.apache.directory.studio.ldapbrowser.ui.views.connection;
 
 
@@ -146,7 +147,7 @@
      */
     public LinkWithEditorAction( ConnectionView connectionView )
     {
-        super( "Link with editor", AS_CHECK_BOX );
+        super( Messages.getString( "LinkWithEditorAction.LinkWithEditor" ), AS_CHECK_BOX
); //$NON-NLS-1$
 
         super.setImageDescriptor( BrowserUIPlugin.getDefault().getImageDescriptor(
             BrowserUIConstants.IMG_LINK_WITH_EDITOR ) );

Added: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/Messages.java?rev=721265&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/Messages.java
(added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/Messages.java
Thu Nov 27 12:23:28 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.connection;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.ui.views.connection.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/connection/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages.properties?rev=721265&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages.properties
(added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages.properties
Thu Nov 27 12:23:28 2008
@@ -0,0 +1,20 @@
+# 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.
+
+ConnectionViewActionGroup.Export=Export
+ConnectionViewActionGroup.Import=Import
+LinkWithEditorAction.LinkWithEditor=Link with editor

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

Added: directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages_de.properties?rev=721265&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages_de.properties
(added)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/resources/org/apache/directory/studio/ldapbrowser/ui/views/connection/messages_de.properties
Thu Nov 27 12:23:28 2008
@@ -0,0 +1,20 @@
+# 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.
+
+ConnectionViewActionGroup.Export=Exportieren
+ConnectionViewActionGroup.Import=Importieren
+LinkWithEditorAction.LinkWithEditor=Verkn\u00FCpfen mit Editor

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



Mime
View raw message