protected function getI18nDirectoryText($directory, $isValid)
    {
        if ($this->translator !== null) {
            if ($isValid) {
                $sentence = 'The directory %directory% is writable';
            } else {
                $sentence = 'The directory %directory% is not writable';
            }

            $translatedText = $this->translator->trans(
                $sentence,
                array(
                    '%directory%' => $directory
                )
            );
        } else {
            $translatedText = sprintf('The directory %s should be writable', $directory);
        }

        return $translatedText;
    }
protected function getI18nDirectoryText($directory, $isValid)
    {
        if ($this->translator !== null) {
            if ($isValid) {
                $sentence = 'The directory %directory% is writable';
            } else {
                $sentence = 'The directory %directory% is not writable';
            }

            $translatedText = $this->translator->trans(
                $sentence,
                array(
                    '%directory%' => $directory
                )
            );
        } else {
            $translatedText = sprintf('The directory %s should be writable', $directory);
        }

        return $translatedText;
    }
protected function getI18nDirectoryText ( $ directory , $ isValid ) { if ( $ this -> translator !== null ) { if ( $ isValid ) { $ sentence = 'The directory %directory% is writable' ; } else { $ sentence = 'The directory %directory% is not writable' ; } $ translatedText = $ this -> translator -> trans ( $ sentence , array ( '%directory%' => $ directory ) ) ; } else { $ translatedText = sprintf ( 'The directory %s should be writable' , $ directory ) ; } return $ translatedText ; }
Get Translated text about the directory state

@param string $directory Directory being checked
@param bool   $isValid   If directory permission is valid

@return string
Get Translated text about the directory state