MadelineProtoDocs/old_docs/API_docs_v91/constructors/langPackStringPluralized.md
2019-12-27 17:48:04 +01:00

1.9 KiB

title description image
langPackStringPluralized A language pack string which has different forms based on the number of some object it mentions. See [https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) for more info https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: langPackStringPluralized

Back to constructors index

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info

Attributes:

Name Type Required Description
key string Yes Localization key
zero_value string Optional Value for zero objects
one_value string Optional Value for one object
two_value string Optional Value for two objects
few_value string Optional Value for a few objects
many_value string Optional Value for many objects
other_value string Yes Default value

Type: LangPackString

Example:

$langPackStringPluralized = ['_' => 'langPackStringPluralized', 'key' => 'string', 'zero_value' => 'string', 'one_value' => 'string', 'two_value' => 'string', 'few_value' => 'string', 'many_value' => 'string', 'other_value' => 'string'];

Or, if you're into Lua:

langPackStringPluralized={_='langPackStringPluralized', key='string', zero_value='string', one_value='string', two_value='string', few_value='string', many_value='string', other_value='string'}