public function find($context, $original = '')
    {
        if ($context instanceof Translation) {
            $id = $context->getId();
        } else {
            $id = Translation::generateId($context, $original);
        }

        return $this->offsetExists($id) ? $this[$id] : false;
    }
public function find($context, $original = '')
    {
        if ($context instanceof Translation) {
            $id = $context->getId();
        } else {
            $id = Translation::generateId($context, $original);
        }

        return $this->offsetExists($id) ? $this[$id] : false;
    }
public function find ( $ context , $ original = '' ) { if ( $ context instanceof Translation ) { $ id = $ context -> getId ( ) ; } else { $ id = Translation :: generateId ( $ context , $ original ) ; } return $ this -> offsetExists ( $ id ) ? $ this [ $ id ] : false ; }
Search for a specific translation.

@param string|Translation $context  The context of the translation or a translation instance
@param string             $original The original string

@return Translation|false
Search for a specific translation .