i18n for TaxonNodeDetailElement
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 16 Jun 2020 19:00:43 +0000 (21:00 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 16 Jun 2020 19:00:43 +0000 (21:00 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java

index 0a4d5442020d69b8c72dcdf0bd49bf6dd7377e75..530e9db64dfebbed607bb4bf6c6ea49685e64201 100644 (file)
@@ -571,6 +571,16 @@ public class Messages extends NLS {
     public static String TaxonNodeWizardPage_no_classification;
     public static String TaxonNodeWizardPage_no_taxon_name;
     public static String TaxonNodeWizardPage_not_all_required_fields;
+    public static String TaxonNodeWizardPage_PLACEMENT_SOURCE;
+    public static String TaxonNodeWizardPage_PARENT;
+    public static String TaxonNodeWizardPage_PLACEMENT_SOURCE_DETAIL;
+    public static String TaxonNodeWizardPage_NEW_TAXON;
+    public static String TaxonNodeWizardPage_TAXON;
+    public static String TaxonNodeWizardPage_REUSE_EXISTING_TAXON;
+    public static String TaxonNodeWizardPage_REUSE_EXISTING_NAME;
+    public static String TaxonNodeWizardPage_SECUNDUM_REFERENCE;
+    public static String TaxonNodeWizardPage_STATUS_NOTES;
+    public static String TaxonNodeWizardPage_CLASSIFICATION;
 
     public static String TaxonomicEditorGeneralPreferences_background;
     public static String TaxonomicEditorGeneralPreferences_connect;
@@ -750,9 +760,6 @@ public class Messages extends NLS {
 
     public static String AggregationWizardPage_WITHOUT_CHILDREN;
 
-    public static String TaxonNodeWizardPage_PLACEMENT_SOURCE;
-
-
     static {
         // initialize resource bundle
         NLS.initializeMessages(BUNDLE_NAME, Messages.class);
index 95fe020a32f4e58deaf498556c1eeb47e786a5d9..6a667a580594c6c299e180b676d211eb23e9c7b0 100644 (file)
@@ -272,6 +272,15 @@ TaxonNodeWizardPage_no_classification=No classification set.
 TaxonNodeWizardPage_no_taxon_name=No taxon name set.
 TaxonNodeWizardPage_not_all_required_fields=Not all required fields are filled.
 TaxonNodeWizardPage_PLACEMENT_SOURCE=Placement source
+TaxonNodeWizardPage_PARENT=Parent
+TaxonNodeWizardPage_PLACEMENT_SOURCE_DETAIL=Detail
+TaxonNodeWizardPage_NEW_TAXON=New Taxon
+TaxonNodeWizardPage_TAXON=Taxon
+TaxonNodeWizardPage_REUSE_EXISTING_TAXON=Reuse existing taxon
+TaxonNodeWizardPage_REUSE_EXISTING_NAME=Reuse existing name
+TaxonNodeWizardPage_SECUNDUM_REFERENCE=Secundum Reference
+TaxonNodeWizardPage_STATUS_NOTES=Status notes
+TaxonNodeWizardPage_CLASSIFICATION=Classification
 TaxonomicEditorGeneralPreferences_background=Run long running operations in background
 TaxonomicEditorGeneralPreferences_connect=Connect to last used datasource when launching
 TaxonRelationshipTypeMenuPreferences_configure=Configure taxon relationship types
index 2d62f67d6823dd417619973053aad78396f30aa5..72d311f98577715a81db09edce0ff102f1252807 100644 (file)
@@ -271,6 +271,15 @@ TaxonNodeWizardPage_no_classification=Keine Klassifikation ausgew
 TaxonNodeWizardPage_no_taxon_name=Kein Taxonnamen ausgewählt
 TaxonNodeWizardPage_not_all_required_fields=Nicht alle notwendigen Felder sind ausgefüllt
 TaxonNodeWizardPage_PLACEMENT_SOURCE=Platzierungsquelle
+TaxonNodeWizardPage_PARENT=Eltern
+TaxonNodeWizardPage_PLACEMENT_SOURCE_DETAIL=Detail
+TaxonNodeWizardPage_NEW_TAXON=Neues Taxon
+TaxonNodeWizardPage_TAXON=Taxon
+TaxonNodeWizardPage_REUSE_EXISTING_TAXON=Taxon wiederverwenden
+TaxonNodeWizardPage_REUSE_EXISTING_NAME=Namen wiederverwenden
+TaxonNodeWizardPage_SECUNDUM_REFERENCE=Secundum Referenz
+TaxonNodeWizardPage_STATUS_NOTES=Status Annmerkungen
+TaxonNodeWizardPage_CLASSIFICATION=Klassifikation
 TaxonomicEditorGeneralPreferences_background=Long Running Operations laufen im Hintergrund
 TaxonomicEditorGeneralPreferences_connect=Beim Starten mit der zuletzt verwendeten Datenquelle verbinden
 TaxonRelationshipTypeMenuPreferences_configure=Auswahl der zur Verf\u00FCgung stehenden Taxonrelationstypen
index 1d6868914690fbd912b0f77e5b63b6371d01f419..efc061e84acb9cf98a1559bbdfac1da656f0ba72 100644 (file)
@@ -55,6 +55,12 @@ import eu.etaxonomy.taxeditor.ui.selection.TaxonNodeSelectionElement;
  */
 public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode> {
 
+    private static final String STATUS_NOTES = Messages.TaxonNodeWizardPage_STATUS_NOTES;
+    private static final String CLASSIFICATION_STR = Messages.TaxonNodeWizardPage_CLASSIFICATION;
+    private static final String REUSE_EXISTING_TAXON = Messages.TaxonNodeWizardPage_REUSE_EXISTING_TAXON;
+    private static final String REUSE_EXISTING_NAME = Messages.TaxonNodeWizardPage_REUSE_EXISTING_NAME;
+    private static final String SECUNDUM_REFERENCE = Messages.TaxonNodeWizardPage_SECUNDUM_REFERENCE;
+
     private boolean createNew = false;
        private Classification classification;
        private TaxonNode parentNode;
@@ -116,7 +122,7 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode>
            if (isCreateNew()){
 //             setParentTreeNode(entity);
                selection_parentTaxonNode = formFactory
-                               .createTaxonNodeSelectionElement(getConversationHolder(), formElement, "Parent", parentNode,
+                               .createTaxonNodeSelectionElement(getConversationHolder(), formElement, Messages.TaxonNodeWizardPage_PARENT, parentNode,
                                                EntitySelectionElement.DELETABLE, style, 100);
 
                selection_Ref = formFactory
@@ -124,38 +130,43 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode>
                             formElement, Messages.TaxonNodeWizardPage_PLACEMENT_SOURCE, null,
                             EntitySelectionElement.DELETABLE, style, 100);
 
-            microReference = formFactory.createTextWithLabelElement(formElement,"Detail", "", style);
+            microReference = formFactory.createTextWithLabelElement(formElement,
+                    Messages.TaxonNodeWizardPage_PLACEMENT_SOURCE_DETAIL, "", style);
             microReference.setText(parentNode.getMicroReference());
 
                selection_reuseExistingTaxon = formFactory
                                .createSelectionElement(Taxon.class,//getConversationHolder(),
                                        formElement,
-                                               "Reuse existing taxon", null,
+                                               REUSE_EXISTING_TAXON, null,
                                                EntitySelectionElement.DELETABLE, style);
 
                selection_reuseExistingName = formFactory
                                .createSelectionElement(TaxonName.class,//getConversationHolder(),
                                        formElement,
-                                               "Reuse existing name", taxon != null? taxon.getName(): null,
+                                               REUSE_EXISTING_NAME, taxon != null? taxon.getName(): null,
                                                EntitySelectionElement.DELETABLE, style);
                selection_SecRef = formFactory
                     .createSelectionElement(Reference.class,//getConversationHolder(),
-                            formElement, "Secundum Reference", taxon != null? taxon.getSec(): null,
+                            formElement, SECUNDUM_REFERENCE, taxon != null? taxon.getSec(): null,
                             EntitySelectionElement.DELETABLE, style, 100);
 
                if (isCreateNew()){
-                   textNewTaxonName = formFactory.createTextWithLabelElement(formElement,"New Taxon", "", style);
+                   textNewTaxonName = formFactory.createTextWithLabelElement(formElement,
+                           Messages.TaxonNodeWizardPage_NEW_TAXON, "", style);
                    textNewTaxonName.setFocus();
                } else{
-                   textNewTaxonName = formFactory.createTextWithLabelElement(formElement,"Taxon", "", style);
+                   textNewTaxonName = formFactory.createTextWithLabelElement(formElement,
+                           Messages.TaxonNodeWizardPage_TAXON, "", style);
                }
            }else{
                taxon = getEntity().getTaxon();
                if (entity.getParent().getTaxon() == null){
-                   TextWithLabelElement textParent = formFactory.createTextWithLabelElement(formElement,"Classification", entity.getClassification().getTitleCache(), style);
+                   TextWithLabelElement textParent = formFactory.createTextWithLabelElement(
+                           formElement,CLASSIFICATION_STR, entity.getClassification().getTitleCache(), style);
                 textParent.setEnabled(false);
                }else{
-                   TextWithLabelElement textParent = formFactory.createTextWithLabelElement(formElement,"Parent", entity.getParent().getTaxon().getTitleCache(), style);
+                   TextWithLabelElement textParent = formFactory.createTextWithLabelElement(
+                           formElement, Messages.TaxonNodeWizardPage_PARENT, entity.getParent().getTaxon().getTitleCache(), style);
                    textParent.setEnabled(false);
                }
 
@@ -167,10 +178,10 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode>
                selection_reuseExistingTaxon = formFactory
                   .createSelectionElement(Taxon.class,//getConversationHolder(),
                           formElement,
-                          "Taxon", taxon,
+                          Messages.TaxonNodeWizardPage_TAXON, taxon,
                           EntitySelectionElement.DELETABLE, style);
 
-               textTaxonSec = formFactory.createTextWithLabelElement(formElement,"Secundum Reference", "", style);
+               textTaxonSec = formFactory.createTextWithLabelElement(formElement,SECUNDUM_REFERENCE, "", style);
             if (entity.getTaxon().getSec() != null){
                 textTaxonSec.setText(taxon.getSec().getTitleCache());
             }
@@ -220,7 +231,7 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode>
                    preFillTaxonName();
                }
 
-           multiLanguageTextStatusNotes = formFactory.createMultiLanguageTextElement(formElement, "Status Notes", null, 50, style);
+           multiLanguageTextStatusNotes = formFactory.createMultiLanguageTextElement(formElement, STATUS_NOTES, null, 50, style);
            if (!isCreateNew()){
                multiLanguageTextStatusNotes.setMultilanguageText(entity.getStatusNote());
                multiLanguageTextStatusNotes.setEnabled(entity.getStatus() != null);