function languageFile($withVariation = false) { $type = $withVariation ? 'variation' : 'default'; if (!$this->LanguageINI[$type] instanceof eZINI) { $language = $this->languageCode(); $countryVariation = $this->countryVariation(); $locale = $language; if ($withVariation) { if ($countryVariation !== '') { $locale .= '@' . $countryVariation; } } $languageFile = 'language/' . $locale . '.ini'; if (eZLocale::isDebugEnabled()) { eZDebug::writeNotice("Requesting {$languageFile}", __METHOD__); } if (eZINI::exists($languageFile, 'share/locale')) { $this->LanguageINI[$type] = eZINI::instance($languageFile, 'share/locale'); } } return $this->LanguageINI[$type]; }