(self, pro_file)
| 12 | |
| 13 | class Translate: |
| 14 | def __init__(self, pro_file): |
| 15 | self._dir_path = os.path.dirname(os.path.realpath(pro_file)) |
| 16 | self._translator = Translator() |
| 17 | |
| 18 | with open(pro_file) as f: |
| 19 | splits = re.split(' |\n|=', f.read()) |
| 20 | |
| 21 | self._ts_files = [] |
| 22 | for split in splits: |
| 23 | if len(split) > 3: |
| 24 | if ".ts" == split[-3:]: |
| 25 | ts_path = os.path.join(self._dir_path, split) |
| 26 | with open(ts_path) as f: |
| 27 | content = f.read() |
| 28 | todo = content.count('<translation type="unfinished"></translation>') |
| 29 | if todo > 0: |
| 30 | self._ts_files.append(ts_path) |
| 31 | |
| 32 | async def runner(self): |
| 33 | tasks = [] |
nothing calls this directly
no outgoing calls
no test coverage detected