Improved pluralization by enabling each language to provide their own pluralization algorithm
This commit is contained in:
1 parent
59e1ed454e
commit
6e5610cce1
29 files changed
+229
-136
No files matched your search
@@ -1093,8 +1093,12 @@ EID.descriptions[languageCode].transformations={
|
||||
|
||||
---------- MISC ----------
|
||||
|
||||
-- This string will be appended to certain words (like pickup names in glitched item descriptions) to pluralize them, make it "" to not pluralize
|
||||
EID.descriptions[languageCode].Pluralize = ""
|
||||
-- a function that will get applied onto specific descriptions (glitched items, Abyss locusts,...) to pluralize them
|
||||
-- Each language can do their own algorithm to modify the given text to their needs
|
||||
EID.descriptions[languageCode].PluralizeFunction = function(text, amount)
|
||||
-- TODO: Not Implemented right now...
|
||||
return text
|
||||
end
|
||||
|
||||
EID.descriptions[languageCode].VoidText = "Se assorbito, si ottiene:"
|
||||
-- {1} will become the number text (like "{1} Tears" -> "+0.5 Tears")
|
||||
@@ -1114,7 +1118,8 @@ EID.descriptions[languageCode].BlackFeatherInformation = "Oggetti tenuti al mome
|
||||
EID.descriptions[languageCode].SingleUseInfo = "{{Warning}} USO SINGOLO {{Warning}}"
|
||||
|
||||
-- Find/replace pairs for changing "+1 Health" to "+1 Soul Heart" for soul health characters, or nothing at all for The Lost
|
||||
-- {1} = number of hearts, {2} = plural character
|
||||
-- {1} = number of hearts, {pluralize} = plural character
|
||||
-- These texts are affected by the PluralizeFunction (ab+ file)
|
||||
-- If having a simple plural character doesn't work for your language, you could just include an extra string pair to catch plural lines
|
||||
EID.descriptions[languageCode].RedToX = {
|
||||
-- These change "+1 Health" to just "+1 Soul Heart" and etc.
|
||||
|
||||
Reference in new issue
Block a user