def create_tm_for_all_projects(self): """Creates the TM memory for all projects""" if os.path.isfile(self.tm_file): os.remove(self.tm_file) projects_catalog = POCatalog(self.tm_file) for project in self.projects: project_catalog = POCatalog(project.get_filename()) projects_catalog.add_pofile(project_catalog.filename) projects_catalog.cleanup()
def _add_tm_for_fileset_to_project_tm(self, fileset_tm): project_catalog = POCatalog(self.tm_file) project_catalog.add_pofile(self.po_catalog.filename) project_catalog.cleanup()