src/Translator.php
public function pgettext($msgctxt, $msgid)
    {
        $key = implode(chr(4), [$msgctxt, $msgid]);
        $ret = $this->gettext($key);
        if (strpos($ret, chr(4)) !== false) {
            return $msgid;
        }

        return $ret;
    }
public function pgettext($msgctxt, $msgid)
    {
        $key = implode(chr(4), [$msgctxt, $msgid]);
        $ret = $this->gettext($key);
        if (strpos($ret, chr(4)) !== false) {
            return $msgid;
        }

        return $ret;
    }
public function pgettext ( $ msgctxt , $ msgid ) { $ key = implode ( chr ( 4 ) , [ $ msgctxt , $ msgid ] ) ; $ ret = $ this -> gettext ( $ key ) ; if ( strpos ( $ ret , chr ( 4 ) ) !== false ) { return $ msgid ; } return $ ret ; }
Translate with context.

@param string $msgctxt Context
@param string $msgid   String to be translated

@return string translated plural form
Translate with context .