diff options
author | alexia <me@alexia.lol> | 2024-02-16 08:55:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 08:55:11 +0100 |
commit | 24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750 (patch) | |
tree | 65bdc64bb157d5574a53cb05197de33c034312f6 /src/main/java/at/hannibal2/skyhanni/features/bingo | |
parent | 20f087a2597ee46260c949414bed3ce16df8a8bb (diff) | |
download | skyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.tar.gz skyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.tar.bz2 skyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.zip |
Clean up string pluralization methods. #975
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardDisplay.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardDisplay.kt index f7c166d37..2c0245985 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardDisplay.kt @@ -123,7 +123,7 @@ class BingoCardDisplay { } if (hiddenGoals > 0) { - val name = StringUtils.canBePlural(hiddenGoals, "goal", "goals") + val name = StringUtils.pluralize(hiddenGoals, "goal") add(Renderable.string("§7+ $hiddenGoals more §cunknown §7community $name.")) } add(Renderable.string(" ")) @@ -156,7 +156,7 @@ class BingoCardDisplay { addGoals(todo) { it.description.removeColor() } if (hiddenGoals > 0) { - val name = StringUtils.canBePlural(hiddenGoals, "goal", "goals") + val name = StringUtils.pluralize(hiddenGoals, "goal") add(Renderable.string("§7+ $hiddenGoals more §cunknown §7$name.")) } hasHiddenPersonalGoals = config.nextTipDuration.get() && nextTip != 14.days |