mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-01-07 11:11:57 -05:00
31 lines
391 B
Markdown
31 lines
391 B
Markdown
|
Returns a plural version of the provided string.
|
||
|
|
||
|
```lua
|
||
|
pl = string.plural("str")
|
||
|
```
|
||
|
|
||
|
### Parameters ###
|
||
|
|
||
|
`str` is the string to be made plural.
|
||
|
|
||
|
|
||
|
### Return Value ###
|
||
|
|
||
|
A plural version of the provided string.
|
||
|
|
||
|
|
||
|
### Availability ###
|
||
|
|
||
|
Premake 5.0 or later.
|
||
|
|
||
|
|
||
|
### Examples ###
|
||
|
|
||
|
```lua
|
||
|
-- returns "projects"
|
||
|
pl = string.plural("project")
|
||
|
|
||
|
-- returns "stories"
|
||
|
pl = string.plural("story")
|
||
|
```
|