Support the ongoing development of Laravel.io →
posted 10 years ago
Views
Last updated 2 years ago.
0

Did you try?

{{ Lang::choice("There is one apple|There are many apples", 7) }}

Did you try values other then 7? Did you try 1 instead of 7?

Last updated 2 years ago.
0

Yes..

I tried ... and yet

{{ Lang::choice("There is one apple|There are many apples", 7) }}
// Output There is one apple

I use 'Laravel Framework version 4.2.6'

= (

Last updated 2 years ago.
0

Same problem here!! :(

Work around:

{{ Lang::choice("{1}There is one apple|[2,Inf]There are many apples", 7) }}

It's not elegant... :( But it works!

Last updated 2 years ago.
0

Same here. Did you guys found a solution in addition to the work around nic provide ? :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.