Skip to content

Commit

Permalink
GH-549 Add unique translation for repair all, to allow for even more …
Browse files Browse the repository at this point in the history
…flexibility in translations (#549)
  • Loading branch information
rchomczyk authored Oct 16, 2023
1 parent 38c5456 commit aa2374e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void repairAll(Player player) {

this.noticeService
.create()
.notice(translation -> translation.item().repairMessage())
.notice(translation -> translation.item().repairAllMessage())
.player(player.getUniqueId())
.send();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ interface ItemSection {

// others
Notice repairMessage();
Notice repairAllMessage();
Notice skullMessage();
Notice enchantedMessage();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ public static class ENItemSection implements ItemSection {

@Description(" ")
public Notice giveNotItem = Notice.chat("<green>► <white>Not a valid obtainable item!");
public Notice repairMessage = Notice.chat("<green>► <white>Repaired!");
public Notice repairMessage = Notice.chat("<green>► <white>Repaired held item!");
public Notice repairAllMessage = Notice.chat("<green>► <white>Repaired all items!");

@Description({ " ", "# {SKULL} - Name of the skull owner" })
public Notice skullMessage = Notice.chat("<green>► <white>Player <green>{SKULL} <white>heads received");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ public static class PLItemSection implements ItemSection {

@Description(" ")
public Notice giveNotItem = Notice.chat("<red>✘ <dark_red>Błąd: <red>Podany przedmiot nie istnieje!");
public Notice repairMessage = Notice.chat("<green>► <white>Naprawiono!");
public Notice repairMessage = Notice.chat("<green>► <white>Naprawiono trzymany przedmiot!");
public Notice repairAllMessage = Notice.chat("<green>► <white>Naprawiono wszystkie przedmioty!");

@Description({ " ", "# {SKULL} - Nazwa gracza do którego należy głowa" })
public Notice skullMessage = Notice.chat("<green>► <white>Otrzymałeś głowę gracza: {SKULL}");
Expand Down

0 comments on commit aa2374e

Please sign in to comment.