cli/preprocess-xgettextjs-match.js
function concatenateBinaryExpression( ASTNode ) {
	var result;
	if ( ASTNode.operator !== '+' ) {
		return false;
	}
	result = ( 'StringLiteral' === ASTNode.left.type ) ? ASTNode.left.value : concatenateBinaryExpression( ASTNode.left );
	result += ( 'StringLiteral' === ASTNode.right.type ) ? ASTNode.right.value : concatenateBinaryExpression( ASTNode.right );

	return result;
}
function concatenateBinaryExpression( ASTNode ) {
	var result;
	if ( ASTNode.operator !== '+' ) {
		return false;
	}
	result = ( 'StringLiteral' === ASTNode.left.type ) ? ASTNode.left.value : concatenateBinaryExpression( ASTNode.left );
	result += ( 'StringLiteral' === ASTNode.right.type ) ? ASTNode.right.value : concatenateBinaryExpression( ASTNode.right );

	return result;
}
function concatenateBinaryExpression ( ASTNode ) { var result ; if ( ASTNode . operator !== '+' ) { return false ; } result = ( 'StringLiteral' === ASTNode . left . type ) ? ASTNode . left . value : concatenateBinaryExpression ( ASTNode . left ) ; result += ( 'StringLiteral' === ASTNode . right . type ) ? ASTNode . right . value : concatenateBinaryExpression ( ASTNode . right ) ; return result ; }
Long translation strings can be broken into multiple strings concatenated with the + operator.
This function concatenates the substrings into a single string.
@param  {object} ASTNode - the BinaryExpression object returned from the AST parser
@return {string}          - the concatenated string
Long translation strings can be broken into multiple strings concatenated with the + operator . This function concatenates the substrings into a single string .