source/Application/Controller/Admin/LanguageMain.php
protected function _updateAbbervation($sOldId, $sNewId)
    {
        foreach (array_keys($this->_aLangData) as $sTypeKey) {
            if (is_array($this->_aLangData[$sTypeKey]) && count($this->_aLangData[$sTypeKey]) > 0) {
                if ($sTypeKey == 'urls' || $sTypeKey == 'sslUrls') {
                    continue;
                }

                $aKeys = array_keys($this->_aLangData[$sTypeKey]);
                $aValues = array_values($this->_aLangData[$sTypeKey]);
                //find and replace key
                $iReplaceId = array_search($sOldId, $aKeys);
                $aKeys[$iReplaceId] = $sNewId;

                $this->_aLangData[$sTypeKey] = array_combine($aKeys, $aValues);
            }
        }
    }
protected function _updateAbbervation($sOldId, $sNewId)
    {
        foreach (array_keys($this->_aLangData) as $sTypeKey) {
            if (is_array($this->_aLangData[$sTypeKey]) && count($this->_aLangData[$sTypeKey]) > 0) {
                if ($sTypeKey == 'urls' || $sTypeKey == 'sslUrls') {
                    continue;
                }

                $aKeys = array_keys($this->_aLangData[$sTypeKey]);
                $aValues = array_values($this->_aLangData[$sTypeKey]);
                //find and replace key
                $iReplaceId = array_search($sOldId, $aKeys);
                $aKeys[$iReplaceId] = $sNewId;

                $this->_aLangData[$sTypeKey] = array_combine($aKeys, $aValues);
            }
        }
    }
protected function _updateAbbervation ( $ sOldId , $ sNewId ) { foreach ( array_keys ( $ this -> _aLangData ) as $ sTypeKey ) { if ( is_array ( $ this -> _aLangData [ $ sTypeKey ] ) && count ( $ this -> _aLangData [ $ sTypeKey ] ) > 0 ) { if ( $ sTypeKey == 'urls' || $ sTypeKey == 'sslUrls' ) { continue ; } $ aKeys = array_keys ( $ this -> _aLangData [ $ sTypeKey ] ) ; $ aValues = array_values ( $ this -> _aLangData [ $ sTypeKey ] ) ; //find and replace key $ iReplaceId = array_search ( $ sOldId , $ aKeys ) ; $ aKeys [ $ iReplaceId ] = $ sNewId ; $ this -> _aLangData [ $ sTypeKey ] = array_combine ( $ aKeys , $ aValues ) ; } } }
Replaces languages arrays keys by new value.

@param string $sOldId old ID
@param string $sNewId new ID
Replaces languages arrays keys by new value .