ref #4611 some l10n for taxeditor and taxeditor.editor plugin
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / TaxonEditorInputFactory.java
index 6f7c64f89f9a18cf11eb382063ed701e821379b9..4c83d644842c28b3dc4897e8a00f0ecd72b665d0 100644 (file)
@@ -51,13 +51,13 @@ public class TaxonEditorInputFactory implements IElementFactory {
                return null;
         }
         if (taxonNodeUuid == null || CdmStore.getService(IClassificationService.class).getTaxonNodeByUuid(UUID.fromString(taxonNodeUuid)) == null) {
-               MessagingUtils.warn(this.getClass(), "Couldn't find taxon node with UUID " + taxonNodeUuid);
+               MessagingUtils.warn(this.getClass(), Messages.TaxonEditorInputFactory_NOT_FOUND_TAXON + taxonNodeUuid);
                return null;
         }
         try {
                        return TaxonEditorInput.NewInstance(UUID.fromString(taxonNodeUuid));
                } catch (Exception e) {
-                       MessagingUtils.warningDialog("Could not create element", TaxonEditorInputFactory.class, e.getMessage());
+                       MessagingUtils.warningDialog(Messages.TaxonEditorInputFactory_COULD_NOT_CREATE, TaxonEditorInputFactory.class, e.getMessage());
                }
                return null;
        }