source/Core/Language.php
protected function _appendModuleLangFiles($aLangFiles, $aModulePaths, $sLang, $blForAdmin = false)
    {
        if (is_array($aModulePaths)) {
            foreach ($aModulePaths as $sPath) {
                $moduleTranslationPathFinder = $this->getModuleTranslationPathFinder();
                $sFullPath = $moduleTranslationPathFinder->findTranslationPath($sLang, $blForAdmin, $sPath);

                $aLangFiles = $this->_appendLangFile($aLangFiles, $sFullPath);
                //load admin modules options lang files
                if ($blForAdmin) {
                    $aLangFiles[] = $sFullPath . '/module_options.php';
                }
            }
        }

        return $aLangFiles;
    }
protected function _appendModuleLangFiles($aLangFiles, $aModulePaths, $sLang, $blForAdmin = false)
    {
        if (is_array($aModulePaths)) {
            foreach ($aModulePaths as $sPath) {
                $moduleTranslationPathFinder = $this->getModuleTranslationPathFinder();
                $sFullPath = $moduleTranslationPathFinder->findTranslationPath($sLang, $blForAdmin, $sPath);

                $aLangFiles = $this->_appendLangFile($aLangFiles, $sFullPath);
                //load admin modules options lang files
                if ($blForAdmin) {
                    $aLangFiles[] = $sFullPath . '/module_options.php';
                }
            }
        }

        return $aLangFiles;
    }
protected function _appendModuleLangFiles ( $ aLangFiles , $ aModulePaths , $ sLang , $ blForAdmin = false ) { if ( is_array ( $ aModulePaths ) ) { foreach ( $ aModulePaths as $ sPath ) { $ moduleTranslationPathFinder = $ this -> getModuleTranslationPathFinder ( ) ; $ sFullPath = $ moduleTranslationPathFinder -> findTranslationPath ( $ sLang , $ blForAdmin , $ sPath ) ; $ aLangFiles = $ this -> _appendLangFile ( $ aLangFiles , $ sFullPath ) ; //load admin modules options lang files if ( $ blForAdmin ) { $ aLangFiles [ ] = $ sFullPath . '/module_options.php' ; } } } return $ aLangFiles ; }
Appends module lang or options files if exists

@param array  $aLangFiles   existing language files
@param array  $aModulePaths module language file paths
@param string $sLang        language abbreviation
@param bool   $blForAdmin   add files for admin

@return array
Appends module lang or options files if exists