508 self, |
508 self, |
509 self.tr("New Resource"), |
509 self.tr("New Resource"), |
510 self.tr( |
510 self.tr( |
511 "<p>The new resource file <b>{0}</b> could not" |
511 "<p>The new resource file <b>{0}</b> could not" |
512 " be created.<br>Problem: {1}</p>") |
512 " be created.<br>Problem: {1}</p>") |
513 .format(str(fpath), str(e))) |
513 .format(fpath, str(e))) |
514 return |
514 return |
515 |
515 |
516 self.project.appendFile(str(fpath)) |
516 self.project.appendFile(str(fpath)) |
517 self.sourceFile.emit(str(fpath)) |
517 self.sourceFile.emit(str(fpath)) |
518 |
518 |