ref #2380: implement usage of Dto for taxon navigator
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / TaxonRelationshipTypeInverseContainer.java
index 8c1c809b485c58d1b4c2146aead91244e7237ee9..23e5c66665b098d825c6072de785d0c79b2bb5f2 100644 (file)
@@ -84,7 +84,9 @@ public class TaxonRelationshipTypeInverseContainer extends DefinedTermBase<Defin
                Representation result;
                result = inverse ? type.getInverseRepresentation(language) : type.getRepresentation(language);
                if (result == null){
-                       result = inverse ? type.getInverseRepresentation(Language.ENGLISH()) : type.getRepresentation(Language.ENGLISH());
+                       result = inverse ? 
+                                       type.getInverseRepresentation(Language.getLanguageFromUuid(Language.uuidEnglish)) : 
+                                               type.getRepresentation(Language.getLanguageFromUuid(Language.uuidEnglish));
                }
                return result;
        }
@@ -105,7 +107,7 @@ public class TaxonRelationshipTypeInverseContainer extends DefinedTermBase<Defin
        }
        
        public String getAbbreviatedLabel(){
-               return getRepresentation(Language.ENGLISH()).getAbbreviatedLabel();
+               return getRepresentation(Language.getLanguageFromUuid(Language.uuidEnglish)).getAbbreviatedLabel();
        }
        
        public void setInverse(boolean inverse) {