lib/packages/parsers.js
function(raw_tag) {

		if (Lava.schema.DEBUG && (!raw_tag.content)) Lava.t("Malformed resources plural string tag");

		var plural_tags = Lava.parsers.Common.asBlockType(raw_tag.content, 'tag'),
			i = 0,
			count = plural_tags.length,
			plurals = [],
			result;

		if (Lava.schema.DEBUG && count == 0) Lava.t("Malformed resources plural string definition");

		for (; i < count; i++) {

			if (Lava.schema.DEBUG && (plural_tags[i].name != 'string' || !plural_tags[i].content || !plural_tags[i].content[0])) Lava.t("Resources, malformed plural string");
			plurals.push(plural_tags[i].content[0].trim());

		}

		result = {
			type: 'plural_string',
			value: plurals
		};

		if (raw_tag.attributes.description) result.description = raw_tag.attributes.description;

		return result;

	}
function(raw_tag) {

		if (Lava.schema.DEBUG && (!raw_tag.content)) Lava.t("Malformed resources plural string tag");

		var plural_tags = Lava.parsers.Common.asBlockType(raw_tag.content, 'tag'),
			i = 0,
			count = plural_tags.length,
			plurals = [],
			result;

		if (Lava.schema.DEBUG && count == 0) Lava.t("Malformed resources plural string definition");

		for (; i < count; i++) {

			if (Lava.schema.DEBUG && (plural_tags[i].name != 'string' || !plural_tags[i].content || !plural_tags[i].content[0])) Lava.t("Resources, malformed plural string");
			plurals.push(plural_tags[i].content[0].trim());

		}

		result = {
			type: 'plural_string',
			value: plurals
		};

		if (raw_tag.attributes.description) result.description = raw_tag.attributes.description;

		return result;

	}
function ( raw_tag ) { if ( Lava . schema . DEBUG && ( ! raw_tag . content ) ) Lava . t ( "Malformed resources plural string tag" ) ; var plural_tags = Lava . parsers . Common . asBlockType ( raw_tag . content , 'tag' ) , i = 0 , count = plural_tags . length , plurals = [ ] , result ; if ( Lava . schema . DEBUG && count == 0 ) Lava . t ( "Malformed resources plural string definition" ) ; for ( ; i < count ; i ++ ) { if ( Lava . schema . DEBUG && ( plural_tags [ i ] . name != 'string' || ! plural_tags [ i ] . content || ! plural_tags [ i ] . content [ 0 ] ) ) Lava . t ( "Resources, malformed plural string" ) ; plurals . push ( plural_tags [ i ] . content [ 0 ] . trim ( ) ) ; } result = { type : 'plural_string' , value : plurals } ; if ( raw_tag . attributes . description ) result . description = raw_tag . attributes . description ; return result ; }
Parse translatable plural string
@param {_cRawTag} raw_tag
Parse translatable plural string