def extract_translations(self, string):
tree = ast.parse(string)<EOL>visitor = TransVisitor(<EOL>self.tranz_functions,<EOL>self.tranzchoice_functions)<EOL>visitor.visit(tree)<EOL>return visitor.translations<EOL>
Extract messages from Python string.