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
@@ -901,9 +901,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 = "При поглинанні дає:"
|
||||
-- {1} will become the number text (like "{1} Tears up" -> "+0.5 Tears up")
|
||||
|
||||
Reference in new issue
Block a user