Merge pull request #1 from garenas6/MOODLE_24_STABLE

Fix connection to data base and thumb preview
Checking if the user have repository and giving extension to the file. Also Adding Languages (ca, es)