directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720846 - in /directory/studio/trunk/schemaeditor/src/main: java/org/apache/directory/studio/schemaeditor/view/editors/schema/ resources/org/apache/directory/studio/schemaeditor/view/editors/schema/
Date Wed, 26 Nov 2008 13:40:39 GMT
Author: felixk
Date: Wed Nov 26 05:40:38 2008
New Revision: 720846

URL: http://svn.apache.org/viewvc?rev=720846&view=rev
Log:
- Fix NLS parameter stuff
- Add German translation

Added:
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
  (with props)
Modified:
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorOverviewPage.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorTableViewerLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages.properties

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorOverviewPage.java?rev=720846&r1=720845&r2=720846&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorOverviewPage.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorOverviewPage.java
Wed Nov 26 05:40:38 2008
@@ -39,6 +39,7 @@
 import org.eclipse.jface.viewers.IDoubleClickListener;
 import org.eclipse.jface.viewers.StructuredSelection;
 import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -243,8 +244,7 @@
         // Attribute Types Section
         Section attributeTypesSection = toolkit.createSection( parent, Section.DESCRIPTION
| Section.EXPANDED
             | Section.TITLE_BAR );
-        attributeTypesSection.setDescription( Messages.getString("SchemaEditorOverviewPage.SchemaAttributeBegin")
+ schema.getName()
-            + Messages.getString("SchemaEditorOverviewPage.SchemaAttributeEnd") );
+        attributeTypesSection.setDescription( NLS.bind( Messages.getString("SchemaEditorOverviewPage.SchemaAttribute"),
new String[]{ schema.getName()}) );
         attributeTypesSection.setText( Messages.getString("SchemaEditorOverviewPage.AttributeTypes")
);
 
         // Creating the layout of the section
@@ -275,8 +275,7 @@
         // Attribute Types Section
         Section objectClassesSection = toolkit.createSection( parent, Section.DESCRIPTION
| Section.EXPANDED
             | Section.TITLE_BAR );
-        objectClassesSection.setDescription( Messages.getString("SchemaEditorOverviewPage.SchemaObjectClassesBegin")
+ schema.getName()
-            + Messages.getString("SchemaEditorOverviewPage.SchemaObjectClassesEnd") );
+        objectClassesSection.setDescription( NLS.bind( Messages.getString("SchemaEditorOverviewPage.SchemaObjectClasses"),new
String[]{ schema.getName()}) );
         objectClassesSection.setText( Messages.getString("SchemaEditorOverviewPage.ObjectClasses")
);
 
         // Creating the layout of the section

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorTableViewerLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorTableViewerLabelProvider.java?rev=720846&r1=720845&r2=720846&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorTableViewerLabelProvider.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorTableViewerLabelProvider.java
Wed Nov 26 05:40:38 2008
@@ -28,6 +28,7 @@
 import org.apache.directory.studio.schemaeditor.view.ViewUtils;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.graphics.Image;
 
 
@@ -74,7 +75,7 @@
             }
             else
             {
-                return Messages.getString("SchemaEditorTableViewerLabelProvider.None") +
oc.getOid() + ")"; //$NON-NLS-2$
+                return NLS.bind( Messages.getString("SchemaEditorTableViewerLabelProvider.None"),new
String[]{oc.getOid()}); //$NON-NLS-1$
             }
         }
         else if ( element instanceof AttributeTypeImpl )
@@ -88,7 +89,7 @@
             }
             else
             {
-                return Messages.getString("SchemaEditorTableViewerLabelProvider.None") +
at.getOid() + ")"; //$NON-NLS-2$
+                return NLS.bind( Messages.getString("SchemaEditorTableViewerLabelProvider.None"),
new String[]{ at.getOid()}); //$NON-NLS-1$
             }
         }
 

Modified: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages.properties?rev=720846&r1=720845&r2=720846&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages.properties
(original)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages.properties
Wed Nov 26 05:40:38 2008
@@ -20,9 +20,7 @@
 SchemaEditorOverviewPage.ErrorOpenEditor=An error occured when opening the editor.
 SchemaEditorOverviewPage.ObjectClasses=Object Classes
 SchemaEditorOverviewPage.Overview=Overview
-SchemaEditorOverviewPage.SchemaAttributeBegin=The schema '
-SchemaEditorOverviewPage.SchemaAttributeEnd=' contains the following attribute types.
-SchemaEditorOverviewPage.SchemaObjectClassesBegin=The schema '
-SchemaEditorOverviewPage.SchemaObjectClassesEnd=' contains the following object classes.
+SchemaEditorOverviewPage.SchemaAttribute=The schema "{0}" contains the following attribute
types.
+SchemaEditorOverviewPage.SchemaObjectClasses=The schema "{0}" contains the following object
classes.
 SchemaEditorSourceCodePage.SourceCode=Source Code
-SchemaEditorTableViewerLabelProvider.None=(None)  -  (
+SchemaEditorTableViewerLabelProvider.None=(None)  -  ({0})

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties?rev=720846&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
(added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
Wed Nov 26 05:40:38 2008
@@ -0,0 +1,25 @@
+# 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.
+
+SchemaEditorOverviewPage.AttributeTypes=Attribut-Typen
+SchemaEditorOverviewPage.Error=Fehler
+SchemaEditorOverviewPage.ErrorOpenEditor=Bein \u00D6ffnen des Editors trat ein Fehler auf.
+SchemaEditorOverviewPage.ObjectClasses=Objekt Klassen
+SchemaEditorOverviewPage.Overview=\u00DCbersicht
+SchemaEditorOverviewPage.SchemaAttribute=Das Schema "{0}" enth\u00E4lt folgende Attribut-Typen.
+SchemaEditorOverviewPage.SchemaObjectClasses=Das Schema "{0}" enth\u00E4lt folgende Objekt
Klassen.
+SchemaEditorTableViewerLabelProvider.None=(Keine)  -  ({0})

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/editors/schema/messages_de.properties
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message