yii\i18n\GettextMessageSource::getMessageFilePath PHP Method

getMessageFilePath() protected method

Returns message file path for the specified language and category.
protected getMessageFilePath ( string $language ) : string
$language string the target language
return string path to message file
    protected function getMessageFilePath($language)
    {
        $messageFile = Yii::getAlias($this->basePath) . '/' . $language . '/' . $this->catalog;
        if ($this->useMoFile) {
            $messageFile .= self::MO_FILE_EXT;
        } else {
            $messageFile .= self::PO_FILE_EXT;
        }
        return $messageFile;
    }