source/Core/Language.php
protected function _appendLangFile($aLangFiles, $sFullPath, $sFilePattern = "lang")
    {
        $aFiles = glob($sFullPath . "/*_{$sFilePattern}.php");
        if (is_array($aFiles) && count($aFiles)) {
            foreach ($aFiles as $sFile) {
                if (!strpos($sFile, 'cust_lang.php')) {
                    $aLangFiles[] = $sFile;
                }
            }
        }

        return $aLangFiles;
    }
protected function _appendLangFile($aLangFiles, $sFullPath, $sFilePattern = "lang")
    {
        $aFiles = glob($sFullPath . "/*_{$sFilePattern}.php");
        if (is_array($aFiles) && count($aFiles)) {
            foreach ($aFiles as $sFile) {
                if (!strpos($sFile, 'cust_lang.php')) {
                    $aLangFiles[] = $sFile;
                }
            }
        }

        return $aLangFiles;
    }
protected function _appendLangFile ( $ aLangFiles , $ sFullPath , $ sFilePattern = "lang" ) { $ aFiles = glob ( $ sFullPath . "/*_{$sFilePattern}.php" ) ; if ( is_array ( $ aFiles ) && count ( $ aFiles ) ) { foreach ( $ aFiles as $ sFile ) { if ( ! strpos ( $ sFile , 'cust_lang.php' ) ) { $ aLangFiles [ ] = $ sFile ; } } } return $ aLangFiles ; }
Appends lang or options files if exists, except custom lang files

@param array  $aLangFiles   existing language files
@param string $sFullPath    path to language files to append
@param string $sFilePattern file pattern to search for, default is "lang"

@return array
Appends lang or options files if exists except custom lang files