source/Core/DbMetaDataHandler.php
public function getSinglelangFields($table, $lang)
    {
        $langTable = getLangTableName($table, $lang);

        $baseFields = $this->getFields($table);
        $langFields = $this->getFields($langTable);

        //Some fields (for example OXID) must be taken from core table.
        $langFields = $this->filterCoreFields($langFields);

        $fields = array_merge($baseFields, $langFields);
        $singleLangFields = [];

        foreach ($fields as $fieldName => $field) {
            if (preg_match("/(({$table}|{$langTable})\.)?(?<field>.+)_(?<lang>[0-9]+)$/", $field, $matches)) {
                if ($matches['lang'] == $lang) {
                    $singleLangFields[$matches['field']] = $field;
                }
            } else {
                $singleLangFields[$fieldName] = $field;
            }
        }

        return $singleLangFields;
    }
public function getSinglelangFields($table, $lang)
    {
        $langTable = getLangTableName($table, $lang);

        $baseFields = $this->getFields($table);
        $langFields = $this->getFields($langTable);

        //Some fields (for example OXID) must be taken from core table.
        $langFields = $this->filterCoreFields($langFields);

        $fields = array_merge($baseFields, $langFields);
        $singleLangFields = [];

        foreach ($fields as $fieldName => $field) {
            if (preg_match("/(({$table}|{$langTable})\.)?(?<field>.+)_(?<lang>[0-9]+)$/", $field, $matches)) {
                if ($matches['lang'] == $lang) {
                    $singleLangFields[$matches['field']] = $field;
                }
            } else {
                $singleLangFields[$fieldName] = $field;
            }
        }

        return $singleLangFields;
    }
public function getSinglelangFields ( $ table , $ lang ) { $ langTable = getLangTableName ( $ table , $ lang ) ; $ baseFields = $ this -> getFields ( $ table ) ; $ langFields = $ this -> getFields ( $ langTable ) ; //Some fields (for example OXID) must be taken from core table. $ langFields = $ this -> filterCoreFields ( $ langFields ) ; $ fields = array_merge ( $ baseFields , $ langFields ) ; $ singleLangFields = [ ] ; foreach ( $ fields as $ fieldName => $ field ) { if ( preg_match ( "/(({$table}|{$langTable})\.)?(?<field>.+)_(?<lang>[0-9]+)$/" , $ field , $ matches ) ) { if ( $ matches [ 'lang' ] == $ lang ) { $ singleLangFields [ $ matches [ 'field' ] ] = $ field ; } } else { $ singleLangFields [ $ fieldName ] = $ field ; } } return $ singleLangFields ; }
Get single language fields

@param string $table table name
@param int    $lang  language id

@return array
Get single language fields