Set language in dataskq for backup/restore messages

Version 1.52

Bugfix
Finished

When doing language translations, there is an area of code called the "InternalText" class. This is used to translated texts set within the DA binaries, and not part of the html skin code. When browsing in DA through port 2222, the language set set from the user.conf files, so DA knows which internal texts to use. However, for dataskq task.queue commands, there is no login, so the language is not set, so some background messages might be in English, this is the bug. Solution for the backup/restore is to set the docsroot and lang settings from the user.conf as needed, based on who called the backup/restore.

Interested to try DirectAdmin? Get a 30-day Free Trial!