protected function formatString($source, array $args, array $data = array())
    {
        if (!isset($data[0]) || $data[0] === '') {
            return gplcart_string_format($source, $args);
        }

        return gplcart_string_format($data[0], $args);
    }
protected function formatString($source, array $args, array $data = array())
    {
        if (!isset($data[0]) || $data[0] === '') {
            return gplcart_string_format($source, $args);
        }

        return gplcart_string_format($data[0], $args);
    }
protected function formatString ( $ source , array $ args , array $ data = array ( ) ) { if ( ! isset ( $ data [ 0 ] ) || $ data [ 0 ] === '' ) { return gplcart_string_format ( $ source , $ args ) ; } return gplcart_string_format ( $ data [ 0 ] , $ args ) ; }
Returns a translated and formated string
@param string $source
@param array $args
@param array $data
@return string
Returns a translated and formated string