555 self.tr( |
555 self.tr( |
556 "The compilation of the protocol file was" |
556 "The compilation of the protocol file was" |
557 " successful.")) |
557 " successful.")) |
558 else: |
558 else: |
559 if grpc: |
559 if grpc: |
560 icon = UI.PixmapCache.getPixmap("gRPC48.png") |
560 icon = UI.PixmapCache.getPixmap("gRPC48") |
561 else: |
561 else: |
562 icon = UI.PixmapCache.getPixmap("protobuf48.png") |
562 icon = UI.PixmapCache.getPixmap("protobuf48") |
563 ui.showNotification( |
563 ui.showNotification( |
564 icon, |
564 icon, |
565 self.tr("Protocol Compilation"), |
565 self.tr("Protocol Compilation"), |
566 self.tr( |
566 self.tr( |
567 "The compilation of the protocol file was" |
567 "The compilation of the protocol file was" |
573 self.tr("Protocol Compilation"), |
573 self.tr("Protocol Compilation"), |
574 self.tr( |
574 self.tr( |
575 "The compilation of the protocol file failed.")) |
575 "The compilation of the protocol file failed.")) |
576 else: |
576 else: |
577 if grpc: |
577 if grpc: |
578 icon = UI.PixmapCache.getPixmap("gRPC48.png") |
578 icon = UI.PixmapCache.getPixmap("gRPC48") |
579 else: |
579 else: |
580 icon = UI.PixmapCache.getPixmap("protobuf48.png") |
580 icon = UI.PixmapCache.getPixmap("protobuf48") |
581 ui.showNotification( |
581 ui.showNotification( |
582 icon, |
582 icon, |
583 self.tr("Protocol Compilation"), |
583 self.tr("Protocol Compilation"), |
584 self.tr( |
584 self.tr( |
585 "The compilation of the protocol file failed.")) |
585 "The compilation of the protocol file failed.")) |