private static function addLines( array &$lines, $name, $value ) {
		$newlines = self::multilineQuote( $value );

		if ( count( $newlines ) === 1 ) {
			$lines[] = $name . ' ' . $newlines[0];
		} else {
			$lines[] = $name . ' ""';

			foreach ( $newlines as $line ) {
				$lines[] = $line;
			}
		}
	}
private static function addLines( array &$lines, $name, $value ) {
		$newlines = self::multilineQuote( $value );

		if ( count( $newlines ) === 1 ) {
			$lines[] = $name . ' ' . $newlines[0];
		} else {
			$lines[] = $name . ' ""';

			foreach ( $newlines as $line ) {
				$lines[] = $line;
			}
		}
	}
private static function addLines ( array & $ lines , $ name , $ value ) { $ newlines = self :: multilineQuote ( $ value ) ; if ( count ( $ newlines ) === 1 ) { $ lines [ ] = $ name . ' ' . $ newlines [ 0 ] ; } else { $ lines [ ] = $ name . ' ""' ; foreach ( $ newlines as $ line ) { $ lines [ ] = $ line ; } } }
Add one or more lines depending whether the string is multiline or not.

@param array  &$lines Array lines should be added to.
@param string $name   Name of the line, e.g. msgstr or msgid_plural.
@param string $value  The line to add.
Add one or more lines depending whether the string is multiline or not .