source/Application/Controller/Admin/LanguageMain.php
protected function _checkMultilangFieldsExistsInDb($sOxId)
    {
        $iBaseId = $this->_aLangData['params'][$sOxId]['baseId'];
        $sTable = getLangTableName('oxarticles', $iBaseId);
        $sColumn = 'oxtitle' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageTag($iBaseId);

        $oDbMetadata = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);

        return $oDbMetadata->tableExists($sTable) && $oDbMetadata->fieldExists($sColumn, $sTable);
    }
protected function _checkMultilangFieldsExistsInDb($sOxId)
    {
        $iBaseId = $this->_aLangData['params'][$sOxId]['baseId'];
        $sTable = getLangTableName('oxarticles', $iBaseId);
        $sColumn = 'oxtitle' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageTag($iBaseId);

        $oDbMetadata = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);

        return $oDbMetadata->tableExists($sTable) && $oDbMetadata->fieldExists($sColumn, $sTable);
    }
protected function _checkMultilangFieldsExistsInDb ( $ sOxId ) { $ iBaseId = $ this -> _aLangData [ 'params' ] [ $ sOxId ] [ 'baseId' ] ; $ sTable = getLangTableName ( 'oxarticles' , $ iBaseId ) ; $ sColumn = 'oxtitle' . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getLanguageTag ( $ iBaseId ) ; $ oDbMetadata = oxNew ( \ OxidEsales \ Eshop \ Core \ DbMetaDataHandler :: class ) ; return $ oDbMetadata -> tableExists ( $ sTable ) && $ oDbMetadata -> fieldExists ( $ sColumn , $ sTable ) ; }
Check if selected language already has multilanguage fields in DB

@param string $sOxId language abbervation

@return bool
Check if selected language already has multilanguage fields in DB