Fix path for Relation translations (singular)

This commit is contained in:
eueln
2015-01-28 19:58:21 -06:00
parent 1636708cef
commit fc0b2a1041
2 changed files with 12 additions and 13 deletions

View File

@@ -41,12 +41,11 @@ public enum Relation {
}
public String getTranslation() {
for (TL t : TL.values()) {
if (t.name().equalsIgnoreCase("RELATION_" + name())) {
return t.toString();
}
try {
return TL.valueOf("RELATION_" + name() + "_SINGULAR").toString();
} catch (IllegalArgumentException e) {
return toString();
}
return toString();
}
public String getPluralTranslation() {