protected function getI18nPhpVersionText($expectedValue, $currentValue, $isValid)
    {
        if ($this->translator !== null) {
            if ($isValid) {
                $sentence = 'PHP version %currentValue% matches the minimum required (PHP %expectedValue%).';
            } else {
                $sentence = 'The installer detected PHP version %currentValue%, but Thelia 2 requires PHP %expectedValue% or newer.';
            }

            $translatedText = $this->translator->trans(
                $sentence,
                array(
                    '%expectedValue%' => $expectedValue,
                    '%currentValue%' => $currentValue,
                )
            );
        } else {
            $translatedText = sprintf('Thelia requires PHP %s or newer (%s currently).', $expectedValue, $currentValue);
        }

        return $translatedText;
    }
protected function getI18nPhpVersionText($expectedValue, $currentValue, $isValid)
    {
        if ($this->translator !== null) {
            if ($isValid) {
                $sentence = 'PHP version %currentValue% matches the minimum required (PHP %expectedValue%).';
            } else {
                $sentence = 'The installer detected PHP version %currentValue%, but Thelia 2 requires PHP %expectedValue% or newer.';
            }

            $translatedText = $this->translator->trans(
                $sentence,
                array(
                    '%expectedValue%' => $expectedValue,
                    '%currentValue%' => $currentValue,
                )
            );
        } else {
            $translatedText = sprintf('Thelia requires PHP %s or newer (%s currently).', $expectedValue, $currentValue);
        }

        return $translatedText;
    }
protected function getI18nPhpVersionText ( $ expectedValue , $ currentValue , $ isValid ) { if ( $ this -> translator !== null ) { if ( $ isValid ) { $ sentence = 'PHP version %currentValue% matches the minimum required (PHP %expectedValue%).' ; } else { $ sentence = 'The installer detected PHP version %currentValue%, but Thelia 2 requires PHP %expectedValue% or newer.' ; } $ translatedText = $ this -> translator -> trans ( $ sentence , array ( '%expectedValue%' => $ expectedValue , '%currentValue%' => $ currentValue , ) ) ; } else { $ translatedText = sprintf ( 'Thelia requires PHP %s or newer (%s currently).' , $ expectedValue , $ currentValue ) ; } return $ translatedText ; }
Get Translated hint about the PHP version requirement issue

@param string $expectedValue
@param string $currentValue
@param bool   $isValid

@return string
Get Translated hint about the PHP version requirement issue