Redirect after the registration

If you are using WPML you can use its built-in language condition statement.

if(ICL_LANGUAGE_CODE=='en')

Therefore you can put your redirect function in this.

if(ICL_LANGUAGE_CODE=='en'){
    // Your function
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)