You are here

private function FileDumper::getRelativePath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Dumper/FileDumper.php \Symfony\Component\Translation\Dumper\FileDumper::getRelativePath()

Gets the relative file path using the template.

Parameters

string $domain The domain:

string $locale The locale:

Return value

string The relative file path

1 call to FileDumper::getRelativePath()
FileDumper::dump in vendor/symfony/translation/Dumper/FileDumper.php
Dumps the message catalogue.

File

vendor/symfony/translation/Dumper/FileDumper.php, line 114

Class

FileDumper
FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s). Performs backup of already existing files.

Namespace

Symfony\Component\Translation\Dumper

Code

private function getRelativePath($domain, $locale) {
  return strtr($this->relativePathTemplate, array(
    '%domain%' => $domain,
    '%locale%' => $locale,
    '%extension%' => $this
      ->getExtension(),
  ));
}