private function handleLocalizationSalariu($appSettings) { $this->handleLocalizationSalariuInputsIntoSession($appSettings); $this->handleLocalizationSalariuSafe($appSettings); $localizationFile = 'Salariu/locale/' . $this->tCmnSession->get('lang') . '/LC_MESSAGES/salariu.mo'; $translations = new \Gettext\Translations(); $translations->addFromMoFile($localizationFile); $this->tApp = new \Gettext\Translator(); $this->tApp->loadTranslations($translations); }
/** * Takes care of instatiation of localization libraries * used within current module for multi-languages support * * @return NOTHING */ private function handleLocalizationCommon() { $this->handleLanguageIntoSession(); $localizationFile = $this->getCommonLocaleFolder() . '/locale/' . $this->tCmnSession->get('lang') . '/LC_MESSAGES/' . $this->commonLibFlags['localization_domain'] . '.mo'; $translations = new \Gettext\Translations(); $translations->addFromMoFile($localizationFile); $this->tCmnLb = new \Gettext\Translator(); $this->tCmnLb->loadTranslations($translations); }