private function _loadTranslations($sLanguage, $sPrefix, array $aTranslations)
    {
        foreach($aTranslations as $sName => $xTranslation)
        {
            $sName = trim($sName);
            $sName = ($sPrefix) ? $sPrefix . '.' . $sName : $sName;
            if(!is_array($xTranslation))
            {
                // Save this translation
                $this->aTranslations[$sLanguage][$sName] = $xTranslation;
            }
            else
            {
                // Recursively read the translations in the array
                $this->_loadTranslations($sLanguage, $sName, $xTranslation);
            }
        }
    }
private function _loadTranslations($sLanguage, $sPrefix, array $aTranslations)
    {
        foreach($aTranslations as $sName => $xTranslation)
        {
            $sName = trim($sName);
            $sName = ($sPrefix) ? $sPrefix . '.' . $sName : $sName;
            if(!is_array($xTranslation))
            {
                // Save this translation
                $this->aTranslations[$sLanguage][$sName] = $xTranslation;
            }
            else
            {
                // Recursively read the translations in the array
                $this->_loadTranslations($sLanguage, $sName, $xTranslation);
            }
        }
    }
private function _loadTranslations ( $ sLanguage , $ sPrefix , array $ aTranslations ) { foreach ( $ aTranslations as $ sName => $ xTranslation ) { $ sName = trim ( $ sName ) ; $ sName = ( $ sPrefix ) ? $ sPrefix . '.' . $ sName : $ sName ; if ( ! is_array ( $ xTranslation ) ) { // Save this translation $ this -> aTranslations [ $ sLanguage ] [ $ sName ] = $ xTranslation ; } else { // Recursively read the translations in the array $ this -> _loadTranslations ( $ sLanguage , $ sName , $ xTranslation ) ; } } }
Recursively load translated strings from a array

@param string            $sLanguage            The language of the translations
@param string            $sPrefix              The prefix for names
@param array             $aTranslations        The translated strings

@return void
Recursively load translated strings from a array