src/eric7/Project/ProjectTranslationsBrowser.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9531
155b2646799a
child 9624
b47dfa7a137d
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
1106 if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0: 1106 if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0:
1107 ui.showNotification( 1107 ui.showNotification(
1108 EricPixmapCache.getPixmap("linguist48"), 1108 EricPixmapCache.getPixmap("linguist48"),
1109 self.tr("Translation file generation"), 1109 self.tr("Translation file generation"),
1110 self.tr( 1110 self.tr(
1111 "The generation of the translation files (*.ts)" " was successful." 1111 "The generation of the translation files (*.ts) was successful."
1112 ), 1112 ),
1113 ) 1113 )
1114 else: 1114 else:
1115 if exitStatus == QProcess.ExitStatus.CrashExit: 1115 if exitStatus == QProcess.ExitStatus.CrashExit:
1116 info = self.tr(" The process has crashed.") 1116 info = self.tr(" The process has crashed.")
1118 info = "" 1118 info = ""
1119 ui.showNotification( 1119 ui.showNotification(
1120 EricPixmapCache.getPixmap("linguist48"), 1120 EricPixmapCache.getPixmap("linguist48"),
1121 self.tr("Translation file generation"), 1121 self.tr("Translation file generation"),
1122 self.tr( 1122 self.tr(
1123 "The generation of the translation files (*.ts) has" " failed.{0}" 1123 "The generation of the translation files (*.ts) has failed.{0}"
1124 ).format(info), 1124 ).format(info),
1125 kind=NotificationTypes.CRITICAL, 1125 kind=NotificationTypes.CRITICAL,
1126 timeout=0, 1126 timeout=0,
1127 ) 1127 )
1128 1128
1401 ui = ericApp().getObject("UserInterface") 1401 ui = ericApp().getObject("UserInterface")
1402 if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0: 1402 if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0:
1403 ui.showNotification( 1403 ui.showNotification(
1404 EricPixmapCache.getPixmap("linguist48"), 1404 EricPixmapCache.getPixmap("linguist48"),
1405 self.tr("Translation file release"), 1405 self.tr("Translation file release"),
1406 self.tr( 1406 self.tr("The release of the translation files (*.qm) was successful."),
1407 "The release of the translation files (*.qm)" " was successful."
1408 ),
1409 ) 1407 )
1410 if self.project.getProjectData(dataKey="TRANSLATIONSBINPATH"): 1408 if self.project.getProjectData(dataKey="TRANSLATIONSBINPATH"):
1411 target = os.path.join( 1409 target = os.path.join(
1412 self.project.ppath, 1410 self.project.ppath,
1413 self.project.getProjectData(dataKey="TRANSLATIONSBINPATH"), 1411 self.project.getProjectData(dataKey="TRANSLATIONSBINPATH"),

eric ide

mercurial