def parse_translations(self, markup):
global languages<EOL>translations = {}<EOL>m = re.findall(self.re["<STR_LIT>"], markup)<EOL>for language, translation in m:<EOL><INDENT>if language in languages:<EOL><INDENT>translations[language] = translation<EOL><DEDENT><DEDENT>return translations<EOL>
Returns a dictionary of translations for the page title.

        A Wikipedia language link looks like: [[af:Rekenaar]].
        The parser will also fetch links like "user:" and "media:"
        but these are stripped against the dictionary of
        Wikipedia languages.

        You can get a translated page by searching Wikipedia
        with the appropriate language code and supplying
        the translated title as query.