19declare(strict_types=1);
29trait LanguageFileParsing
31 private function absoluteDirectoryPath(
string $absolute_path, LanguageFileDirectory $directory): string
33 return rtrim($absolute_path,
'/') .
'/' . ltrim($directory->getPath(),
'/');
40 private function cutHeader(array $content)
42 foreach ($content as $key => $val) {
43 if (trim($val) ===
"<!-- language file start -->") {
44 return array_slice($content, $key + 1);
A directory of language files with a path and a prefix for them.