public function lookup($string, $uuid = null, $arguments = null)
    {
        // Cause of german umlauts and special chars in identifier we need to use crc as index
        $id = md5($string);

        // Get translation by "string" and the corresponding "key"
        $string = (isset(self::$translationTables[$uuid][$id])) ? self::$translationTables[$uuid][$id] : $string;

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

        // return the result
        return $string;
    }
public function lookup($string, $uuid = null, $arguments = null)
    {
        // Cause of german umlauts and special chars in identifier we need to use crc as index
        $id = md5($string);

        // Get translation by "string" and the corresponding "key"
        $string = (isset(self::$translationTables[$uuid][$id])) ? self::$translationTables[$uuid][$id] : $string;

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

        // return the result
        return $string;
    }
public function lookup ( $ string , $ uuid = null , $ arguments = null ) { // Cause of german umlauts and special chars in identifier we need to use crc as index $ id = md5 ( $ string ) ; // Get translation by "string" and the corresponding "key" $ string = ( isset ( self :: $ translationTables [ $ uuid ] [ $ id ] ) ) ? self :: $ translationTables [ $ uuid ] [ $ id ] : $ string ; if ( $ arguments !== null ) { $ string = vsprintf ( $ string , $ arguments ) ; } // return the result return $ string ; }
Looks for the passed looks 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
Looks for the passed looks up the translation of the given combination of values .