ref #4611 i18n feature tree editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 18 Jul 2018 09:30:56 +0000 (11:30 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 18 Jul 2018 09:30:56 +0000 (11:30 +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/dialog/selection/FeatureTreeSelectionDialog.java

index 7b7c0cb0189c79067b1477a8f783586c33326de5..09ff387c811c95feda54bba7f50ac3aba46d4925 100644 (file)
@@ -280,6 +280,18 @@ public class Messages extends NLS {
     public static String FeatureTreeEditorComposite_REMOVE_FEATURE;
 
 
+    public static String FeatureTreeSelectionDialog_CHOOSE_TREE;
+
+
+    public static String FeatureTreeSelectionDialog_ENTER_LABEL;
+
+
+    public static String FeatureTreeSelectionDialog_NEW_TREE;
+
+
+    public static String FeatureTreeSelectionDialog_TREE_LABEL;
+
+
        public static String NonViralNameDetails_confirmDeleteOfZoologicalNameParts;
 
 
index ec6b195225bef84b98adbbbbd2a325ffd30381e0..72c4f6fb59a896babc12dc489f5ed4e3f11228dc 100644 (file)
@@ -215,6 +215,10 @@ FeatureTreeEditorComposite_ADD_FEATURE=Add a feature to this feature tree.
 FeatureTreeEditorComposite_FEATURE_TREE=Feature Tree
 FeatureTreeEditorComposite_OPEN_TREE=Open Tree
 FeatureTreeEditorComposite_REMOVE_FEATURE=Remove a feature from this feature tree.
+FeatureTreeSelectionDialog_CHOOSE_TREE=Choose a feature tree
+FeatureTreeSelectionDialog_ENTER_LABEL=Enter label for feature tree
+FeatureTreeSelectionDialog_NEW_TREE=New Feature tree
+FeatureTreeSelectionDialog_TREE_LABEL=Feature tree label
 
 NonViralNameDetails_confirmDeleteOfZoologicalNameParts=The publication and original publication year needs to be removed
 NonViralNameDetails_descriptionDeleteZoologicalNameParts=If you click Yes, the original publication and publication year is removed and the nomenclatural code is changed.
@@ -266,7 +270,6 @@ SelectionViewMenu_SET_FLAG='%s' set flag
 SelectionViewMenu_4_YES=Yes
 SelectionViewMenu_NO=No
 
-
 AbcdImportPreference_create_Individual_Association=Create an Individual Association for each specimen
 AbcdImportPreference_create_Individual_Association_tooltip=For each specimen associated to a taxon an individual association to this taxon is created
 AbcdImportPreference_create_new_classification_new_taxa=Create new classification for new taxa
index 371631e3e8335759a6444f77d46e917481218252..a1ab59630ea8e6b55ff3b05a4edacaf6c19dd86b 100644 (file)
@@ -124,6 +124,7 @@ RemotingLoginDialog_TASK_LAUNCHING_SERVER=Starte internen CDM-Server
 
 EditPasswordElement_PLEASE_CREATE_OR_SAVE_USER=Bitte erstellen oder speichern sie den Nutzer '%s', bevor Sie das Kennwort ändern
 EditPasswordElement_USERNAME_DOES_NOT_EXIST=Nutzername existiert nicht
+EmptySection_NO_VIEW_IMPLEMENTED=Unbekanntes Objekt. Details können nicht angezeigt werden.
 PasswordWizard_COULD_NOT_CHANGE_PWD=Konnte das Kennwort nicht ändern
 PasswordWizard_OLD_PWD_INCORRECT=Das alte Kennwort ist inkorrekt
 PasswordWizard_PROBLEM_WITH_CHANGING_PWD=Fehler beim Ändern des Kennworts
@@ -145,6 +146,7 @@ DefinedTermMenu_MENU=Men
 DefinedTermMenu_OTHER_S=Weitere %ss
 DefinedTermMenu_OTHERS=Weitere
 DefinedTermMenu_TERM_EDITOR=Term-Editor
+DetailsViewerE4_TAXON_HAS_NO_NAME=Taxon hat keinen Namen. Details können nicht angezeigt werden.
 DetailsViewPart_VIEWER_NAME=Details
 
 AuthenticatedUserBar_LOGGED_IN_AS=Angemeldet als: %s         
@@ -213,6 +215,10 @@ FeatureTreeEditorComposite_ADD_FEATURE=Merkmal zum Merkmalsbaum hinzuf
 FeatureTreeEditorComposite_FEATURE_TREE=Merkmalsbaum
 FeatureTreeEditorComposite_OPEN_TREE=Merkmalsbaum öffnen
 FeatureTreeEditorComposite_REMOVE_FEATURE=Merkmal vom Merkmalsbaum entfernen
+FeatureTreeSelectionDialog_CHOOSE_TREE=Merkmalsbaum auswählen
+FeatureTreeSelectionDialog_ENTER_LABEL=Namen für Merkmalsbaum eingeben
+FeatureTreeSelectionDialog_NEW_TREE=Neuer Merkmalsbaum
+FeatureTreeSelectionDialog_TREE_LABEL=Merkmalsbaumname
 
 NonViralNameDetails_confirmDeleteOfZoologicalNameParts=Breed, Publication Date und Original Publication Date müssen entfernt werden.
 NonViralNameDetails_descriptionDeleteZoologicalNameParts=Bestätigen Sie, wenn Sie Breed, Publication Date und Original Publication Date löschen und den Nomenklatorischen Code des Namens ändern wollen.
index bf1109454ecdf9f0d4c566dac2dea1b559ce3917..da91832219c6be3347e4009c165133717afe3851 100644 (file)
@@ -23,6 +23,7 @@ import org.eclipse.swt.widgets.Shell;
 import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
 import eu.etaxonomy.cdm.model.description.FeatureTree;
 import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
+import eu.etaxonomy.taxeditor.l10n.Messages;
 import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
@@ -37,7 +38,7 @@ public class FeatureTreeSelectionDialog extends
        public static FeatureTree select(Shell shell,
                FeatureTree featureTree) {
                FeatureTreeSelectionDialog dialog = new FeatureTreeSelectionDialog(shell,
-                               "Choose a feature tree", false, featureTree);
+                               Messages.FeatureTreeSelectionDialog_CHOOSE_TREE, false, featureTree);
                return getSelectionFromDialog(dialog);
        }
 
@@ -63,7 +64,7 @@ public class FeatureTreeSelectionDialog extends
                model.clear();
                for(FeatureTree featureTree : featureTrees){
                        UuidAndTitleCache<FeatureTree> element = new UuidAndTitleCache<FeatureTree>(FeatureTree.class, featureTree.getUuid(),featureTree.getId(), featureTree.getTitleCache());
-                       if(pattern == null || element.getTitleCache().matches("(?i)"+pattern + ".*")) {
+                       if(pattern == null || element.getTitleCache().matches("(?i)"+pattern + ".*")) { //$NON-NLS-1$ //$NON-NLS-2$
                 model.add(element);
             }
                }
@@ -76,7 +77,7 @@ public class FeatureTreeSelectionDialog extends
 
             @Override
             public void widgetSelected(SelectionEvent e) {
-                InputDialog dialog = new InputDialog(getShell(), "Feature tree label", "Enter label for feature tree", null, null);
+                InputDialog dialog = new InputDialog(getShell(), Messages.FeatureTreeSelectionDialog_TREE_LABEL, Messages.FeatureTreeSelectionDialog_ENTER_LABEL, null, null);
                 if (dialog.open() == Window.OK) {
                     // User clicked OK; update the label with the input
                     FeatureTree tree = FeatureTree.NewInstance();
@@ -91,7 +92,7 @@ public class FeatureTreeSelectionDialog extends
 
        @Override
        protected String[] getNewWizardText() {
-               return new String[]{ "New Feature tree"};
+               return new String[]{ Messages.FeatureTreeSelectionDialog_NEW_TREE};
        }
 
        @Override