def text(self, text):


        self.log.debug("Getting language for text: %s", text)
        if self.config and '(' in text and ')' in text:
            for match in self.find_text.findall(text):
                replacement_string = match
                text_string = replacement_string[1:-1]
                modified_string = text_string

                if (self.current_language in self.machine.config['language_strings']
                        and text_string in self.machine.config['language_strings']
                        [self.current_language]):
                    modified_string = (self.machine.config['language_strings']
                        [self.current_language][text_string])

                text = text.replace(replacement_string, modified_string)

        return text
return (cols, rows) of spaces with default attributes.
dataset/ETHPy150Open missionpinball/mpf/mpf/media_controller/core/language.py/Language.text--crossover with--dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/canvas.py/BlankCanvas.content