def get_strings(self): """ Finds the strings in the file. """ lines = [] filename = renpy.parser.elide_filename(self.filename) for line, s in scan_strings(self.filename): stl = renpy.game.script.translator.strings[ None] # @UndefinedVariable if s in stl.translations: continue stl.translations[s] = s if self.notags: s = notags_filter(s) if self.escape: s = quote_unicode(s) if self.tdf: lines.append(["", "", s, filename, str(line)]) else: lines.append([s]) return lines
def get_strings(self): """ Finds the strings in the file. """ lines = [] filename = renpy.parser.elide_filename(self.filename) for line, s in scan_strings(self.filename): stl = renpy.game.script.translator.strings[None] # @UndefinedVariable if s in stl.translations: continue stl.translations[s] = s if self.notags: s = notags_filter(s) if self.escape: s = quote_unicode(s) if self.tdf: lines.append(["", "", s, filename, str(line)]) else: lines.append([s]) return lines