src/XliffDictionaryProvider.php
private function getFileNameFor(string $name, string $sourceLanguage, string $targetLanguage): string
    {
        if ('' !== $this->subDirectoryMask) {
            return $this->rootDir . DIRECTORY_SEPARATOR
                . strtr($this->subDirectoryMask, ['{source}' => $sourceLanguage, '{target}' => $targetLanguage])
                . DIRECTORY_SEPARATOR . $name . '.xlf';
        }

        return $this->rootDir . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . $name . '.xlf';
    }
private function getFileNameFor(string $name, string $sourceLanguage, string $targetLanguage): string
    {
        if ('' !== $this->subDirectoryMask) {
            return $this->rootDir . DIRECTORY_SEPARATOR
                . strtr($this->subDirectoryMask, ['{source}' => $sourceLanguage, '{target}' => $targetLanguage])
                . DIRECTORY_SEPARATOR . $name . '.xlf';
        }

        return $this->rootDir . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . $name . '.xlf';
    }
private function getFileNameFor ( string $ name , string $ sourceLanguage , string $ targetLanguage ) : string { if ( '' !== $ this -> subDirectoryMask ) { return $ this -> rootDir . DIRECTORY_SEPARATOR . strtr ( $ this -> subDirectoryMask , [ '{source}' => $ sourceLanguage , '{target}' => $ targetLanguage ] ) . DIRECTORY_SEPARATOR . $ name . '.xlf' ; } return $ this -> rootDir . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . $ name . '.xlf' ; }
Generate the file name for a dictionary.

@param string $name           The name of the dictionary.
@param string $sourceLanguage The source language.
@param string $targetLanguage The target language.

@return string
Generate the file name for a dictionary .