MadelineProtoDocs/docs/API_docs/constructors/langPackStringPluralized.md

45 lines
1.9 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02: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-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: langPackStringPluralized
2018-04-01 13:19:25 +02:00
[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
2018-04-01 13:19:25 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| 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-04-01 13:19:25 +02:00
### Type: [LangPackString](../types/LangPackString.md)
### Example:
```php
2018-04-01 13:19:25 +02:00
$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:
2018-04-01 13:19:25 +02:00
```lua
2018-04-01 13:19:25 +02:00
langPackStringPluralized={_='langPackStringPluralized', key='string', zero_value='string', one_value='string', two_value='string', few_value='string', many_value='string', other_value='string'}
```