Improved pluralization by enabling each language to provide their own pluralization algorithm

This commit is contained in:
Wofsauge committed 2025-04-11 00:31:24 +02:00
1 parent 59e1ed454e
commit 6e5610cce1
29 files changed
+229 -136

No files matched your search

+3 -2
View File
@@ -1115,11 +1115,12 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Černé Srdce",
AddBombs = "{{Bomb}} {1} Bomba",
AddBombs = "{{Bomb}} {1} Bomb{plural_ay}",
AddCoins = "{{Coin}} {1} Mince",
AddHearts = "Vyéčí {{Heart}} {1} Červené Srdce",
AddKeys = "{{Key}} {1} Klíč",
AddKeys = "{{Key}} {1} Klíč{plural_e}",
AddMaxHearts = "{{EmptyHeart}} {1} Místo pro srdce",
AddSoulHearts = "{{SoulHeart}} {1} Duševní Srdce",
+7 -7
View File
@@ -692,8 +692,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = {
-- values inside {} brackets will be replaced with text parts below
-- As the last step, {pluralize} will be replaced with the "Pluralize" value.
-- The placeholder therefore can be used in all parts that make up the abyss locust descriptions
-- Abyss texts are affected by the PluralizeFunction (ab+ file)
InfoText = "Eine {size}{speed}Heuschrecke ({dmg})",
InfoTextPlural = "{amount} {size}{speed}Heuschrecken ({dmg})", -- Can be used by translators to provide a pluralized version of the InfoText
Chance = " ({1}% Chance)", -- {1} will be replaced with the chance
@@ -1209,13 +1208,14 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
AddBlackHearts = "{{BlackHeart}} {1} Schwarzes Herz",
AddBombs = "{{Bomb}} {1} Bombe",
AddCoins = "{{Coin}} {1} Münze",
AddHearts = "Heilt {{Heart}} {1} Herz",
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Schwarzes Herz{plural_en}",
AddBombs = "{{Bomb}} {1} Bombe{plural_n}",
AddCoins = "{{Coin}} {1} Münze{plural_n}",
AddHearts = "Heilt {{Heart}} {1} Herz{plural_en}",
AddKeys = "{{Key}} {1} Schlüssel",
AddMaxHearts = "{{EmptyHeart}} {1} Herz-Container",
AddSoulHearts = "{{SoulHeart}} {1} Seelenherz",
AddSoulHearts = "{{SoulHeart}} {1} Seelenherz{plural_en}",
-- Cache Flag names
cacheFlagStart = "Kann beeinflussen ",
+9 -8
View File
@@ -651,7 +651,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = {
-- values inside {} brackets will be replaced with text parts below
-- As the last step, {pluralize} will be replaced with the "Pluralize" value.
-- Abyss texts are affected by the PluralizeFunction (ab+ file)
-- The placeholder therefore can be used in all parts that make up the abyss locust descriptions
InfoText = "{amount} {size}{speed}locust{pluralize} ({dmg})",
InfoTextPlural = nil, -- Can be used by translators to provide a pluralized version of the InfoText
@@ -1313,13 +1313,14 @@ EID.descriptions[languageCode].birthright ={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
AddBlackHearts = "{{BlackHeart}} {1} Black Heart",
AddBombs = "{{Bomb}} {1} Bomb",
AddCoins = "{{Coin}} {1} Coin",
AddHearts = "{{HealingRed}} Heals {1} heart",
AddKeys = "{{Key}} {1} Key",
AddMaxHearts = "{{EmptyHeart}} {1} Heart container",
AddSoulHearts = "{{SoulHeart}} {1} Soul Heart",
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Black Heart{pluralize}",
AddBombs = "{{Bomb}} {1} Bomb{pluralize}",
AddCoins = "{{Coin}} {1} Coin{pluralize}",
AddHearts = "{{HealingRed}} Heals {1} heart{pluralize}",
AddKeys = "{{Key}} {1} Key{pluralize}",
AddMaxHearts = "{{EmptyHeart}} {1} Heart container{pluralize}",
AddSoulHearts = "{{SoulHeart}} {1} Soul Heart{pluralize}",
-- Cache Flag names
cacheFlagStart = "May affect ",
+9 -8
View File
@@ -750,7 +750,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = {
-- values inside {} brackets will be replaced with text parts below
-- As the last step, {pluralize} will be replaced with the "Pluralize" value.
-- Abyss texts are affected by the PluralizeFunction (ab+ file)
-- The placeholder therefore can be used in all parts that make up the abyss locust descriptions
InfoText = "{amount} {size} locuste{pluralize} {speed} ({dmg})", -- values inside {} brackets will be replaced with text parts below
InfoTextPlural = "{amount} {size} locustes {speed} ({dmg})", -- Will be shown when more than 1 locust will spawn
@@ -1376,13 +1376,14 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
AddBlackHearts = "{{BlackHeart}} {1} cœur(s) noir(s)",
AddBombs = "{{Bomb}} {1} bombe(s)",
AddCoins = "{{Coin}} {1} pièce(s)",
AddHearts = "Heals {{Heart}} {1} cœur(s) rouge(s)",
AddKeys = "{{Key}} {1} clé(s)",
AddMaxHearts = "{{EmptyHeart}} {1} réceptacle(s) de cœur",
AddSoulHearts = "{{SoulHeart}} {1} cœur(s) d'âme",
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} cœur{pluralize} noir{pluralize}",
AddBombs = "{{Bomb}} {1} bombe{pluralize}",
AddCoins = "{{Coin}} {1} pièce{pluralize}",
AddHearts = "Heals {{Heart}} {1} cœur{pluralize} rouge{pluralize}",
AddKeys = "{{Key}} {1} clé{pluralize}",
AddMaxHearts = "{{EmptyHeart}} {1} réceptacle{pluralize} de cœur",
AddSoulHearts = "{{SoulHeart}} {1} cœur{pluralize} d'âme",
-- Cache Flag names
cacheFlagStart = "Peut influencer ",
+2 -1
View File
@@ -653,7 +653,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = {
-- values inside {} brackets will be replaced with text parts below
-- As the last step, {pluralize} will be replaced with the "Pluralize" value.
-- Abyss texts are affected by the PluralizeFunction (ab+ file)
-- The placeholder therefore can be used in all parts that make up the abyss locust descriptions
InfoText = "{amount} {size} locusta/e {speed} ({dmg})",
InfoTextPlural = "{amount} {size} locusta/e {speed} ({dmg})", -- Can be used by translators to provide a pluralized version of the InfoText
@@ -1315,6 +1315,7 @@ EID.descriptions[languageCode].birthright ={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Cuore/i Nero/i",
AddBombs = "{{Bomb}} {1} Bomba/e",
AddCoins = "{{Coin}} {1} Moneta/e",
+1
View File
@@ -1202,6 +1202,7 @@ EID.descriptions[languageCode].birthright ={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{1} 黒ハート",
AddBombs = "{1} 爆弾",
AddCoins = "{1} コイン",
+2 -1
View File
@@ -749,7 +749,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
-- Special Locust effects when Item was eaten by Abyss
EID.descriptions[languageCode].AbyssTexts = {
-- values inside {} brackets will be replaced with text parts below
-- As the last step, {pluralize} will be replaced with the "Pluralize" value.
-- Abyss texts are affected by the PluralizeFunction (ab+ file)
-- The placeholder therefore can be used in all parts that make up the abyss locust descriptions
InfoText = "{speed}{size}파리 x{amount} ({dmg})",
InfoTextPlural = nil, -- Can be used by translators to provide a pluralized version of the InfoText
@@ -1305,6 +1305,7 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}}블랙하트 {1}",
AddBombs = "{{Bomb}}폭탄 {1}",
AddCoins = "{{Coin}}동전 {1}",
+1
View File
@@ -995,6 +995,7 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Coração Negro",
AddBombs = "{{Bomb}} {1} Bomba",
AddCoins = "{{Coin}} {1} Moeda",
+1
View File
@@ -1194,6 +1194,7 @@ EID.descriptions[languageCode].birthright ={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Black Heart",
AddBombs = "{{Bomb}} {1} Bomb",
AddCoins = "{{Coin}} {1} Coin",
+1
View File
@@ -997,6 +997,7 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} чёрных сердец",
AddBombs = "{{Bomb}} {1} бомб",
AddCoins = "{{Coin}} {1} монет",
+1
View File
@@ -1037,6 +1037,7 @@ EID.descriptions[languageCode].horsepills={
---------- Glitched Items Descriptions ----------
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Corazón/zones negro/s",
AddBombs = "{{Bomb}} {1} Bomba/s",
AddCoins = "{{Coin}} {1} Moneda/s",
+1
View File
@@ -1100,6 +1100,7 @@ EID.descriptions[languageCode].horsepills={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1} Чорних сердець",
AddBombs = "{{Bomb}} {1} бомб",
AddCoins = "{{Coin}} {1} монет",
+1
View File
@@ -1194,6 +1194,7 @@ EID.descriptions[languageCode].birthright ={
EID.descriptions[languageCode].GlitchedItemText = {
-- Item Config info
-- These texts are affected by the PluralizeFunction (ab+ file)
AddBlackHearts = "{{BlackHeart}} {1}黑心",
AddBombs = "{{Bomb}} {1}炸弹",
AddCoins = "{{Coin}} {1}硬币",