getTranslationOutput example

public function getLine(string $line, array $args = [])
    {
        // if no file is given, just parse the line         if (strpos($line, '.') === false) {
            return $this->formatMessage($line$args);
        }

        // Parse out the file name and the actual alias.         // Will load the language file and strings.         [$file$parsedLine] = $this->parseLine($line$this->locale);

        $output = $this->getTranslationOutput($this->locale, $file$parsedLine);

        if ($output === null && strpos($this->locale, '-')) {
            [$locale] = explode('-', $this->locale, 2);

            [$file$parsedLine] = $this->parseLine($line$locale);

            $output = $this->getTranslationOutput($locale$file$parsedLine);
        }

        // if still not found, try English         if ($output === null) {
            [
Home | Imprint | This part of the site doesn't use cookies.