Check out to get Moodle current language using get_language()
How to install Moodle on windows using XAMPP