Skip to content

Override plural by the range #3099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Override plural by the range #3099

wants to merge 1 commit into from

Conversation

cjmaxik
Copy link

@cjmaxik cjmaxik commented Feb 9, 2017

Since laravel/framework#17826 bring back the plurals, I find that Symfony's construction like {0} There are none|There are one|There are many is no longer work. However, it works in opposite direction now (like in PR). Since there is no mention how user can do that later, we can add this now.

Also it should works in other languages (like Russian) with more complex plural:
'comments_count' => ':count комментарий|:count комментария|:count комментариев|{0} Нет комментариев',
0 => Нет комментариев
1 => 1 комментарий
2 => 2 комментария
5 => 5 комментариев

Since laravel/framework#17826 bring back the plurals, I find that Symfony's construction like `{0} There are none|There are one|There are many` is no longer work. However, it works in opposite direction now (like in PR). Since there is no mention how user can do that later, we can add this now.

Also it should works in other languages (like Russian) with more complex plural:
`'comments_count' => ':count комментарий|:count комментария|:count комментариев|{0} Нет комментариев',`
0 => Нет комментариев
1 => 1 комментарий
2 => 2 комментария
5 => 5 комментариев
@taylorotwell
Copy link
Member

I don't know what this means.

@taylorotwell
Copy link
Member

This is already demonstrated right above your example.

@cjmaxik
Copy link
Author

cjmaxik commented Feb 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants