source/Core/DbMetaDataHandler.php
public function resetMultilangFields($langId, $tableName)
    {
        $langId = (int) $langId;

        if ($langId === 0) {
            return;
        }

        $sql = [];

        $fields = $this->getMultilangFields($tableName);
        if (is_array($fields) && count($fields) > 0) {
            foreach ($fields as $fieldName) {
                $fieldName = $fieldName . "_" . $langId;

                if ($this->fieldExists($fieldName, $tableName)) {
                    //resetting field value to default
                    $sql[] = "UPDATE {$tableName} SET {$fieldName} = DEFAULT;";
                }
            }
        }

        if (!empty($sql)) {
            $this->executeSql($sql);
        }
    }
public function resetMultilangFields($langId, $tableName)
    {
        $langId = (int) $langId;

        if ($langId === 0) {
            return;
        }

        $sql = [];

        $fields = $this->getMultilangFields($tableName);
        if (is_array($fields) && count($fields) > 0) {
            foreach ($fields as $fieldName) {
                $fieldName = $fieldName . "_" . $langId;

                if ($this->fieldExists($fieldName, $tableName)) {
                    //resetting field value to default
                    $sql[] = "UPDATE {$tableName} SET {$fieldName} = DEFAULT;";
                }
            }
        }

        if (!empty($sql)) {
            $this->executeSql($sql);
        }
    }
public function resetMultilangFields ( $ langId , $ tableName ) { $ langId = ( int ) $ langId ; if ( $ langId === 0 ) { return ; } $ sql = [ ] ; $ fields = $ this -> getMultilangFields ( $ tableName ) ; if ( is_array ( $ fields ) && count ( $ fields ) > 0 ) { foreach ( $ fields as $ fieldName ) { $ fieldName = $ fieldName . "_" . $ langId ; if ( $ this -> fieldExists ( $ fieldName , $ tableName ) ) { //resetting field value to default $ sql [ ] = "UPDATE {$tableName} SET {$fieldName} = DEFAULT;" ; } } } if ( ! empty ( $ sql ) ) { $ this -> executeSql ( $ sql ) ; } }
Resetting all multi-language fields with specific language id
to default value in selected table

@param int    $langId    Language id
@param string $tableName Table name

@return null
Resetting all multi - language fields with specific language id to default value in selected table