Fix path for Relation translations (singular)
This commit is contained in:
parent
1636708cef
commit
fc0b2a1041
@ -41,12 +41,11 @@ public enum Relation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getTranslation() {
|
public String getTranslation() {
|
||||||
for (TL t : TL.values()) {
|
try {
|
||||||
if (t.name().equalsIgnoreCase("RELATION_" + name())) {
|
return TL.valueOf("RELATION_" + name() + "_SINGULAR").toString();
|
||||||
return t.toString();
|
} catch (IllegalArgumentException e) {
|
||||||
}
|
return toString();
|
||||||
}
|
}
|
||||||
return toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPluralTranslation() {
|
public String getPluralTranslation() {
|
||||||
|
@ -584,15 +584,15 @@ public enum TL {
|
|||||||
/**
|
/**
|
||||||
* Relations
|
* Relations
|
||||||
*/
|
*/
|
||||||
RELATION_MEMBER("member"),
|
RELATION_MEMBER_SINGULAR("member"),
|
||||||
RELATION_MEMBER_PURAL("members"),
|
RELATION_MEMBER_PLURAL("members"),
|
||||||
RELATION_ALLY("ally"),
|
RELATION_ALLY_SINGULAR("ally"),
|
||||||
RELATION_ALLY_PURAL("allies"),
|
RELATION_ALLY_PLURAL("allies"),
|
||||||
RELATION_TRUCE("truce"),
|
RELATION_TRUCE_SINGULAR("truce"),
|
||||||
RELATION_TRUCE_PLURAL("truces"),
|
RELATION_TRUCE_PLURAL("truces"),
|
||||||
RELATION_NEUTRAL("neutral"),
|
RELATION_NEUTRAL_SINGULAR("neutral"),
|
||||||
RELATION_NEUTRAL_PURAL("neutrals"),
|
RELATION_NEUTRAL_PLURAL("neutrals"),
|
||||||
RELATION_ENEMY("enemy"),
|
RELATION_ENEMY_SINGULAR("enemy"),
|
||||||
RELATION_ENEMY_PLURAL("enemies"),
|
RELATION_ENEMY_PLURAL("enemies"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user