public function lookup($string, $uuid = null, $arguments = null)
    {
        if (is_array($string) === true) {
            $translate = 'FAIL';
        } else {
            $translate = $string;
        }

        // Get translation by "string"
        $string = gettext($translate);

        if ($arguments !== null) {
            $string = vsprintf($string, $arguments);
        }

        // return the result
        return $string;
    }
public function lookup($string, $uuid = null, $arguments = null)
    {
        if (is_array($string) === true) {
            $translate = 'FAIL';
        } else {
            $translate = $string;
        }

        // Get translation by "string"
        $string = gettext($translate);

        if ($arguments !== null) {
            $string = vsprintf($string, $arguments);
        }

        // return the result
        return $string;
    }
public function lookup ( $ string , $ uuid = null , $ arguments = null ) { if ( is_array ( $ string ) === true ) { $ translate = 'FAIL' ; } else { $ translate = $ string ; } // Get translation by "string" $ string = gettext ( $ translate ) ; if ( $ arguments !== null ) { $ string = vsprintf ( $ string , $ arguments ) ; } // return the result return $ string ; }
This method is intend to look-up the translation of the given combination of values.

@param string $string    The string to encrypt
@param string $uuid      The uuid of the translation-table
@param mixed  $arguments The arguments for inserting values into translation (vsprintf) or null

@author Benjamin Carl <opensource@clickalicious.de>

@return string The translation of the input or the input string on failure
This method is intend to look - up the translation of the given combination of values .