i18n for derivate view context menu #5406
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 27 Apr 2016 09:14:35 +0000 (11:14 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 27 Apr 2016 09:14:35 +0000 (11:14 +0200)
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages.properties
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages_de.properties
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/Messages.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/CreateFieldUnitContextMenu.java

index 40a9a44..633e8eb 100644 (file)
@@ -9,6 +9,9 @@ CreateDerivateContextMenu_SINGLE_READ=Single Read
 CreateDerivateContextMenu_SPECIMEN=Specimen
 CreateDerivateContextMenu_TISSUE_SAMPLE=Tissue Sample
 
+CreateFieldUnitContextMenu_CREATE_FIELD_UNIT=Create new field unit
+CreateFieldUnitContextMenu_CREATE_FIELD_UNIT_FOR=Create new field unit for %s
+
 SingleReadSequenceContextMenu_REMOVE_FROM_SEQUENCE=Remove from this Sequence
 SingleReadSequenceContextMenu_REUSE_FOR_SEQUENCE=Reuse for other Sequence
 SingleReadSequenceContextMenu_REUSE_SINGLE_READ_HERE=Reuse SingleRead here
index cf767cd..0f73001 100644 (file)
@@ -9,6 +9,9 @@ CreateDerivateContextMenu_SINGLE_READ=Single Read
 CreateDerivateContextMenu_SPECIMEN=Beleg
 CreateDerivateContextMenu_TISSUE_SAMPLE=Gewebeprobe
 
+CreateFieldUnitContextMenu_CREATE_FIELD_UNIT=Erzeuge neue Field Unit
+CreateFieldUnitContextMenu_CREATE_FIELD_UNIT_FOR=Erzeuge neue Field Unit für %s
+
 SingleReadSequenceContextMenu_REMOVE_FROM_SEQUENCE=Von Sequenz entfernen
 SingleReadSequenceContextMenu_REUSE_FOR_SEQUENCE=Für andere Sequenz verwenden
 SingleReadSequenceContextMenu_REUSE_SINGLE_READ_HERE=SingleRead hier verwenden
index 5a3fd53..790f232 100644 (file)
@@ -28,7 +28,9 @@ public class Messages extends NLS {
     public static String CreateDerivateContextMenu_SINGLE_READ;
     public static String CreateDerivateContextMenu_SPECIMEN;
     public static String CreateDerivateContextMenu_TISSUE_SAMPLE;
-    public static String DeleteDerivateOperation_AND_CHILDREN;
+    public static String CreateFieldUnitContextMenu_CREATE_FIELD_UNIT;
+       public static String CreateFieldUnitContextMenu_CREATE_FIELD_UNIT_FOR;
+       public static String DeleteDerivateOperation_AND_CHILDREN;
     public static String DeleteDerivateOperation_CONFIRM;
     public static String DeleteDerivateOperation_DELETE_FAILED;
     public static String DeleteDerivateOperation_REALLY_DELETE;
index 4de8d34..7a7c749 100644 (file)
@@ -20,6 +20,7 @@ import eu.etaxonomy.cdm.model.description.IndividualsAssociation;
 import eu.etaxonomy.cdm.model.description.TaxonDescription;
 import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
+import eu.etaxonomy.taxeditor.editor.Messages;
 import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -49,7 +50,7 @@ public class CreateFieldUnitContextMenu extends CompoundContributionItem {
                                 if(selectionInput instanceof CdmBase && ((CdmBase) selectionInput).isInstanceOf(Taxon.class)){
                                     final Taxon taxon = HibernateProxyHelper.deproxy(CdmStore.getService(ITaxonService.class).load(((CdmBase)selectionInput).getUuid()), Taxon.class);
                                     MenuItem item = new MenuItem(menu, SWT.NONE);
-                                    item.setText("Create FieldUnit for "+taxon.getName());
+                                    item.setText(String.format(Messages.CreateFieldUnitContextMenu_CREATE_FIELD_UNIT_FOR, taxon.getName()));
                                     item.addSelectionListener(new SelectionAdapter() {
                                         @Override
                                         public void widgetSelected(SelectionEvent e) {
@@ -85,7 +86,7 @@ public class CreateFieldUnitContextMenu extends CompoundContributionItem {
                             }
                             else{
                                 MenuItem item = new MenuItem(menu, SWT.NONE);
-                                item.setText("Create FieldUnit");
+                                item.setText(Messages.CreateFieldUnitContextMenu_CREATE_FIELD_UNIT);
                                 item.addSelectionListener(new SelectionAdapter() {
                                     @Override
                                     public void widgetSelected(SelectionEvent e) {