/** * Loads backend translations of the bundle */ private function LoadFrontendTranslations(Site $site) { $language = $site->GetLanguage()->GetCode(); $frontendTranslations = PathUtil::FrontendBundleTranslationFile($this->BundleName(), $language); if (File::Exists($frontendTranslations)) { require_once $frontendTranslations; } }