How does WordPress know wich language is chosen when there is a database connection error

How does WordPress know wich language is chosen when there is a database connection error

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