source/CommonLibLocale.php
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);
    }
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);
    }
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 ) ; }
Takes care of instantiation of localization libraries
used within current module for multi-languages support
Takes care of instantiation of localization libraries used within current module for multi - languages support