Home | History | Annotate | Download | only in i18n

Lines Matching refs:plural

16  * @fileoverview Message/plural format library with locale support.
22 * elementFormat := "plural" "," pluralStyle
39 * I see {NUM_PEOPLE, plural, offset:1
126 PLURAL: 0,
136 * Mandatory option in both select and plural form.
166 * 1st parameter could mean 5 people, which could influence plural format,
181 * 1st parameter could mean 5 people, which could influence plural format,
197 * 1st parameter could mean 5 people, which could influence plural format,
199 * @param {boolean} ignorePound If true, treat '#' in plural messages as a
233 * @param {boolean} ignorePound If true, treat '#' in plural messages as a
255 case goog.i18n.MessageFormat.BlockType_.PLURAL:
306 * @param {boolean} ignorePound If true, treat '#' in plural messages as a
333 * Formats plural or selectordinal block. Only one option is selected and all #
335 * @param {!Object} parsedPattern JSON object containing plural block info.
340 * which plural/ordinal form to use based on the input number's cardinality.
341 * @param {boolean} ignorePound If true, treat '#' in plural messages as a
366 goog.asserts.assertString(item, 'Invalid plural key.');
376 option, 'Invalid option or missing other option for plural block.');
381 var plural = pluralResult.join('');
382 goog.asserts.assertString(plural, 'Empty block in plural.');
384 result.push(plural);
388 result.push(plural.replace(/#/g, localeAwareDiff));
507 * A regular expression to parse the plural block, extracting the argument
513 /^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/;
542 return goog.i18n.MessageFormat.BlockType_.PLURAL;
583 case goog.i18n.MessageFormat.BlockType_.PLURAL:
584 block.type = goog.i18n.MessageFormat.BlockType_.PLURAL;
651 * Parses a plural type of a block and produces JSON object for it.
652 * @param {string} pattern Subpattern that needs to be parsed as plural pattern.
677 goog.asserts.assertString(key, 'Missing plural key element.');
681 'Missing or invalid plural value element.');
693 'Missing other key in plural statement.');
710 * @param {string} pattern Subpattern that needs to be parsed as plural pattern.