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 _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev