On 29/07/2013 6:36 AM, "Graydon Hoare" <[email protected]> wrote:
>
> On 13-07-28 04:06 PM, Steven Ashley wrote:
>
>> {0:(
>>    if count == 0 then (You have no messages.)
>>    else (You have {count:#####} messages.)
>> )}
>
>
> That's exactly the case that the nested pluralization forms are for. Read
the docs on MessageFormat. They've been working on this problem space for
quite a long time and have reasonable mechanisms mapped out for the most
common value-driven grammar alteration cases (plural, gender, selects).
>
> -Graydon

Apologies. This was exactly the use case  I was trying to convey.
Unfortunately I was writing the email from my phone while on the run and
couldn't recall the specifics of the syntax. I should have indicated it was
pseudo code of sorts.

In any case I really like the direction this is heading and I'm really
looking forward to playing with it. Thanks again Alex for kicking this off.

Cheers
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to