protected function getPattern($value, $translationId)
    {
        $language = $this->translator->getCurrentLanguage();

        if (!isset($this->patterns[$language][$translationId])) {
            $this->patterns[$language][$translationId] = $this->parsePattern($this->translator->translate($translationId));
        }

        list($positivePattern, $negativePattern) = $this->patterns[$language][$translationId];
        $negative = $this->isNegative($value);

        return $negative ? $negativePattern : $positivePattern;
    }
protected function getPattern($value, $translationId)
    {
        $language = $this->translator->getCurrentLanguage();

        if (!isset($this->patterns[$language][$translationId])) {
            $this->patterns[$language][$translationId] = $this->parsePattern($this->translator->translate($translationId));
        }

        list($positivePattern, $negativePattern) = $this->patterns[$language][$translationId];
        $negative = $this->isNegative($value);

        return $negative ? $negativePattern : $positivePattern;
    }
protected function getPattern ( $ value , $ translationId ) { $ language = $ this -> translator -> getCurrentLanguage ( ) ; if ( ! isset ( $ this -> patterns [ $ language ] [ $ translationId ] ) ) { $ this -> patterns [ $ language ] [ $ translationId ] = $ this -> parsePattern ( $ this -> translator -> translate ( $ translationId ) ) ; } list ( $ positivePattern , $ negativePattern ) = $ this -> patterns [ $ language ] [ $ translationId ] ; $ negative = $ this -> isNegative ( $ value ) ; return $ negative ? $ negativePattern : $ positivePattern ; }
Returns the relevant pattern for the given number.

@param string $value
@param string $translationId
@return string
Returns the relevant pattern for the given number .