mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-23 18:55:25 +01:00
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() {
|
||||
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() {
|
||||
|
@ -584,15 +584,15 @@ public enum TL {
|
||||
/**
|
||||
* Relations
|
||||
*/
|
||||
RELATION_MEMBER("member"),
|
||||
RELATION_MEMBER_PURAL("members"),
|
||||
RELATION_ALLY("ally"),
|
||||
RELATION_ALLY_PURAL("allies"),
|
||||
RELATION_TRUCE("truce"),
|
||||
RELATION_MEMBER_SINGULAR("member"),
|
||||
RELATION_MEMBER_PLURAL("members"),
|
||||
RELATION_ALLY_SINGULAR("ally"),
|
||||
RELATION_ALLY_PLURAL("allies"),
|
||||
RELATION_TRUCE_SINGULAR("truce"),
|
||||
RELATION_TRUCE_PLURAL("truces"),
|
||||
RELATION_NEUTRAL("neutral"),
|
||||
RELATION_NEUTRAL_PURAL("neutrals"),
|
||||
RELATION_ENEMY("enemy"),
|
||||
RELATION_NEUTRAL_SINGULAR("neutral"),
|
||||
RELATION_NEUTRAL_PLURAL("neutrals"),
|
||||
RELATION_ENEMY_SINGULAR("enemy"),
|
||||
RELATION_ENEMY_PLURAL("enemies"),
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user