public function createTranslations($e, $siteFolder, $locale)
    { 
    	$sm = $e->getApplication()->getServiceManager();
    	$translator = $sm->get('translator');
    	
    	$langFileTarget = $_SERVER['DOCUMENT_ROOT'] . '/../module/MelisSites/' .$siteFolder . '/language/' . $locale . '.php';
    	
    	if (!file_exists($langFileTarget))
    	{
    	    $langFileTarget = $_SERVER['DOCUMENT_ROOT'] . '/../module/MelisSites/' .$siteFolder . '/language/en_EN.php';
    	    
    	    if (!file_exists($langFileTarget))
    	    {
    	        $langFileTarget = null;
    	    }
    	}
    	else 
    	{
    	    $langFileTarget = null;
    	}
    	
    	if (!is_null($langFileTarget) && !empty($siteFolder) && !empty($locale))
    	{
    	    $translator->addTranslationFile(
    	        'phparray',
    	        $langFileTarget
	        );
    	}
    }
public function createTranslations($e, $siteFolder, $locale)
    { 
    	$sm = $e->getApplication()->getServiceManager();
    	$translator = $sm->get('translator');
    	
    	$langFileTarget = $_SERVER['DOCUMENT_ROOT'] . '/../module/MelisSites/' .$siteFolder . '/language/' . $locale . '.php';
    	
    	if (!file_exists($langFileTarget))
    	{
    	    $langFileTarget = $_SERVER['DOCUMENT_ROOT'] . '/../module/MelisSites/' .$siteFolder . '/language/en_EN.php';
    	    
    	    if (!file_exists($langFileTarget))
    	    {
    	        $langFileTarget = null;
    	    }
    	}
    	else 
    	{
    	    $langFileTarget = null;
    	}
    	
    	if (!is_null($langFileTarget) && !empty($siteFolder) && !empty($locale))
    	{
    	    $translator->addTranslationFile(
    	        'phparray',
    	        $langFileTarget
	        );
    	}
    }
public function createTranslations ( $ e , $ siteFolder , $ locale ) { $ sm = $ e -> getApplication ( ) -> getServiceManager ( ) ; $ translator = $ sm -> get ( 'translator' ) ; $ langFileTarget = $ _SERVER [ 'DOCUMENT_ROOT' ] . '/../module/MelisSites/' . $ siteFolder . '/language/' . $ locale . '.php' ; if ( ! file_exists ( $ langFileTarget ) ) { $ langFileTarget = $ _SERVER [ 'DOCUMENT_ROOT' ] . '/../module/MelisSites/' . $ siteFolder . '/language/en_EN.php' ; if ( ! file_exists ( $ langFileTarget ) ) { $ langFileTarget = null ; } } else { $ langFileTarget = null ; } if ( ! is_null ( $ langFileTarget ) && ! empty ( $ siteFolder ) && ! empty ( $ locale ) ) { $ translator -> addTranslationFile ( 'phparray' , $ langFileTarget ) ; } }
Creates translation for the appropriate site

@param MvcEvent $e
@param string $siteFolder
@param string $locale
Creates translation for the appropriate site