convert language code based on file format, issue #480

BTW : the code is untested, I didn't have a running instance of Weblate around