MadelineProtoDocs/old_docs/API_docs_v86/constructors/langPackStringPluralized.md

45 lines
1.9 KiB
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: langPackStringPluralized
2019-12-27 17:48:04 +01:00
description: 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
2018-12-26 02:56:50 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: langPackStringPluralized
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
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
2018-12-26 02:56:50 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|key|[string](../types/string.md) | Yes|Localization key|
|zero\_value|[string](../types/string.md) | Optional|Value for zero objects|
|one\_value|[string](../types/string.md) | Optional|Value for one object|
|two\_value|[string](../types/string.md) | Optional|Value for two objects|
|few\_value|[string](../types/string.md) | Optional|Value for a few objects|
|many\_value|[string](../types/string.md) | Optional|Value for many objects|
|other\_value|[string](../types/string.md) | Yes|Default value|
2018-12-26 02:56:50 +01:00
### Type: [LangPackString](../types/LangPackString.md)
### Example:
```php
$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:
```lua
langPackStringPluralized={_='langPackStringPluralized', key='string', zero_value='string', one_value='string', two_value='string', few_value='string', many_value='string', other_value='string'}
```