Move convert_language_array() to DocumentParser
phpdoc comments and renaming of method convertLanguageArray according to existing convention in DocumentParser.