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

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

		var result = {
			type: 'string',
			value: raw_tag.content ? raw_tag.content[0].trim() : ''
		};

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

		return result;

	}
function(raw_tag) {

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

		var result = {
			type: 'string',
			value: raw_tag.content ? raw_tag.content[0].trim() : ''
		};

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

		return result;

	}
function ( raw_tag ) { if ( Lava . schema . DEBUG && raw_tag . content && raw_tag . content . length != 1 ) Lava . t ( "Malformed resources string tag" ) ; var result = { type : 'string' , value : raw_tag . content ? raw_tag . content [ 0 ] . trim ( ) : '' } ; if ( raw_tag . attributes . description ) result . description = raw_tag . attributes . description ; return result ; }
Parse a translatable string
@param {_cRawTag} raw_tag
Parse a translatable string