
{GENDER, select,
    male {He}
  female {She}
   other {They}
} found {NUM_RESULTS, plural,
            one {1 result}
          other {# results}
        } in {NUM_CATEGORIES, plural,
                  one {1 category}
                other {# categories}
             }.

MessageFormat msgFmt = new MessageFormat(
	     "{num_files, plural, " +
		       "=0{There are no files on disk \"{disk_name}\".}" +
		       "=1{There is one file on disk \"{disk_name}\".}" +
		       "other{There are # files on disk \"{disk_name}\".}}",
	          ULocale.ENGLISH);

{GENDER,male:"He",female:"She","They",upper} found {NUM=1:one category,# categories}.

There {{num|pick:"0=are no files","1=is one file","are # files"}} on disk {{disk_name}}



MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}.");
double[] filelimits = {0,1,2};
String[] filepart = {"no files","one file","{0,number} files"};
ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart);
form.setFormatByArgumentIndex(0, fileform);






{{ product.description | prettyprint | truncate: 200  }}
{{ 'foofoo' | replace:'foo','bar' }}

{{ GENDER | pick:"male=He","female=She","They" }} found {{ NUM | pick:"1=one category","# categories" }}.



return ({male:"He",female:"She"}[GENDER]||"They") + " found " + 




"{gender_of_host, select, "
  "female {"
    "{num_guests, plural, offset:1 "
      "=0 {{host} does not give a party.}"
      "=1 {{host} invites {guest} to her party.}"
      "=2 {{host} invites {guest} and one other person to her party.}"
      "other {{host} invites {guest} and # other people to her party.}}}"
  "male {"
    "{num_guests, plural, offset:1 "
      "=0 {{host} does not give a party.}"
      "=1 {{host} invites {guest} to his party.}"
      "=2 {{host} invites {guest} and one other person to his party.}"
      "other {{host} invites {guest} and # other people to his party.}}}"
  "other {"
    "{num_guests, plural, offset:1 "
      "=0 {{host} does not give a party.}"
      "=1 {{host} invites {guest} to their party.}"
      "=2 {{host} invites {guest} and one other person to their party.}"
      "other {{host} invites {guest} and # other people to their party.}}}}"

"{host} {num_guests|pick:'0=does not give a', '1=invites {guest} to her'} party."

"  man {name|upcase}'} {gender_of_host|pick:'male=man {name|upcase}','female=woman {name|downcase}','some {name}'}"
