public function loadTranslations($sFilePath, $sLanguage)
    {
        if(!file_exists($sFilePath))
        {
            return;
        }
        $aTranslations = require($sFilePath);
        if(!is_array($aTranslations))
        {
            return;
        }
        // Load the translations
        if(!array_key_exists($sLanguage, $this->aTranslations))
        {
            $this->aTranslations[$sLanguage] = [];
        }
        $this->_loadTranslations($sLanguage, '', $aTranslations);
    }
public function loadTranslations($sFilePath, $sLanguage)
    {
        if(!file_exists($sFilePath))
        {
            return;
        }
        $aTranslations = require($sFilePath);
        if(!is_array($aTranslations))
        {
            return;
        }
        // Load the translations
        if(!array_key_exists($sLanguage, $this->aTranslations))
        {
            $this->aTranslations[$sLanguage] = [];
        }
        $this->_loadTranslations($sLanguage, '', $aTranslations);
    }
public function loadTranslations ( $ sFilePath , $ sLanguage ) { if ( ! file_exists ( $ sFilePath ) ) { return ; } $ aTranslations = require ( $ sFilePath ) ; if ( ! is_array ( $ aTranslations ) ) { return ; } // Load the translations if ( ! array_key_exists ( $ sLanguage , $ this -> aTranslations ) ) { $ this -> aTranslations [ $ sLanguage ] = [ ] ; } $ this -> _loadTranslations ( $ sLanguage , '' , $ aTranslations ) ; }
Load translated strings from a file

@param string        $sFilePath            The file full path
@param string        $sLanguage            The language of the strings in this file

@return void
Load translated strings from a file