Project

General

Profile

« Previous | Next » 

Revision 1902

Added by darkviper over 11 years ago

added posssibility to use different adaptors for each module
added new adaptor to access language definitions in a MySQL database

View differences:

TranslationTable.php
90 90
				$this->aTranslations = $this->loadCacheFile($sCacheFile);
91 91
		}else {
92 92
			$bLanguageFound = false;
93
			if(!class_exists($sAdaptor)) {
94
				throw new TranslationException('unable to load adaptor: '.$sAdaptor);
95
			}
93 96
			$oAdaptor= new $sAdaptor($this->sAddon);
94 97
			if(!$oAdaptor instanceof TranslateAdaptorInterface) {
95 98
				$sMsg = 'Class ['.$sAdaptor.'] does not implement the '

Also available in: Unified diff