Abyss: More pluralization capabilities for translators
This commit is contained in:
1 parent
b4c6f8dad8
commit
0b2558cdc7
4 files changed
+18
-7
No files matched your search
@@ -691,8 +691,11 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
|
||||
|
||||
---------- Abyss Locust description parts ----------
|
||||
EID.descriptions[languageCode].AbyssTexts = {
|
||||
InfoText = "Eine {size}{speed}Heuschrecke ({dmg})", -- values inside {} brackets will be replaced with text parts below.
|
||||
InfoTextPlural = "{amount} {size}{speed}Heuschrecken ({dmg})", -- Will be shown when more than 1 locust will spawn
|
||||
-- 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
|
||||
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
|
||||
SpeedSlow = "schnelle ", -- Speed < 1
|
||||
SpeedFast = "langsame ", -- Speed > 1
|
||||
|
||||
@@ -650,8 +650,11 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
|
||||
|
||||
---------- Abyss Locust description parts ----------
|
||||
EID.descriptions[languageCode].AbyssTexts = {
|
||||
InfoText = "{amount} {size}{speed}locust ({dmg})", -- values inside {} brackets will be replaced with text parts below
|
||||
InfoTextPlural = "{amount} {size}{speed}locusts ({dmg})", -- Will be shown when more than 1 locust will spawn
|
||||
-- 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
|
||||
InfoText = "{amount} {size}{speed}locust{pluralize} ({dmg})",
|
||||
InfoTextPlural = nil, -- Can be used by translators to provide a pluralized version of the InfoText
|
||||
Chance = " ({1}% Chance)", -- {1} will be replaced with the chance
|
||||
SpeedSlow = "slow ", -- Speed < 1
|
||||
SpeedFast = "fast ", -- Speed > 1
|
||||
|
||||
@@ -748,8 +748,11 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
|
||||
|
||||
-- Special Locust effects when Item was eaten by Abyss
|
||||
EID.descriptions[languageCode].AbyssTexts = {
|
||||
InfoText = "{speed}{size}파리 x{amount} ({dmg})", -- values inside {} brackets will be replaced with text parts below
|
||||
InfoTextPlural = "{speed}{size}파리 x{amount} ({dmg})", -- Will be shown when more than 1 locust will spawn
|
||||
-- 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
|
||||
InfoText = "{speed}{size}파리 x{amount} ({dmg})",
|
||||
InfoTextPlural = nil, -- Can be used by translators to provide a pluralized version of the InfoText
|
||||
Chance = " ({1}% 확률)", -- {1} will be replaced with the chance
|
||||
SpeedSlow = "느린 ", -- Speed < 1
|
||||
SpeedFast = "빠른 ", -- Speed > 1
|
||||
|
||||
@@ -1059,7 +1059,7 @@ if EID.isRepentance then
|
||||
elseif speed > 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedFast") end
|
||||
|
||||
-- overview / headline
|
||||
local infoText = EID:getDescriptionEntry("AbyssTexts", amount > 1 and "InfoTextPlural" or "InfoText")
|
||||
local infoText = amount > 1 and EID:getDescriptionEntry("AbyssTexts", "InfoTextPlural") or EID:getDescriptionEntry("AbyssTexts", "InfoText")
|
||||
descriptionText = "#{{Collectible706}} " .. textColor .. infoText
|
||||
descriptionText = EID:ReplaceVariableStr(descriptionText, "amount", amount)
|
||||
descriptionText = EID:ReplaceVariableStr(descriptionText, "size", scaleText)
|
||||
@@ -1081,6 +1081,8 @@ if EID.isRepentance then
|
||||
descriptionText = descriptionText .. GetFlagString(2, "TearFlagNames", tearFlags2, procChance1, procChance2, procChance3)
|
||||
descriptionText = descriptionText .. GetFlagString(3, "TearFlagNames", tearFlags3, procChance1, procChance2, procChance3)
|
||||
|
||||
local plural = amount > 1 and EID:getDescriptionEntry("Pluralize") or ""
|
||||
descriptionText = EID:ReplaceVariableStr(descriptionText, "pluralize", plural)
|
||||
-- Put everything together
|
||||
EID:appendToDescription(descObj, descriptionText)
|
||||
|
||||
|
||||
Reference in new issue
Block a user