eric6/Project/ProjectTranslationsBrowser.py

changeset 7959
44e15eda6506
parent 7955
567f2ec958c3
child 8001
3b33b7d493ff
equal deleted inserted replaced
7958:a70ebfad3d0e 7959:44e15eda6506
24 ProjectBrowserDirectoryItem, ProjectBrowserTranslationType 24 ProjectBrowserDirectoryItem, ProjectBrowserTranslationType
25 ) 25 )
26 from .ProjectBaseBrowser import ProjectBaseBrowser 26 from .ProjectBaseBrowser import ProjectBaseBrowser
27 27
28 import UI.PixmapCache 28 import UI.PixmapCache
29 from UI.NotificationWidget import NotificationTypes
29 30
30 import Preferences 31 import Preferences
31 import Utilities 32 import Utilities
32 33
33 34
951 UI.PixmapCache.getPixmap("linguist48"), 952 UI.PixmapCache.getPixmap("linguist48"),
952 self.tr("Translation file generation"), 953 self.tr("Translation file generation"),
953 self.tr( 954 self.tr(
954 "The generation of the translation files (*.ts) has" 955 "The generation of the translation files (*.ts) has"
955 " failed.{0}").format(info), 956 " failed.{0}").format(info),
957 kind=NotificationTypes.Critical,
956 timeout=0) 958 timeout=0)
957 959
958 for index in range(len(self.__pylupdateProcesses)): 960 for index in range(len(self.__pylupdateProcesses)):
959 if proc == self.__pylupdateProcesses[index][0]: 961 if proc == self.__pylupdateProcesses[index][0]:
960 tmpProjectFile = self.__pylupdateProcesses[index][1] 962 tmpProjectFile = self.__pylupdateProcesses[index][1]
1207 ui.showNotification( 1209 ui.showNotification(
1208 UI.PixmapCache.getPixmap("linguist48"), 1210 UI.PixmapCache.getPixmap("linguist48"),
1209 self.tr("Translation file release"), 1211 self.tr("Translation file release"),
1210 self.tr( 1212 self.tr(
1211 "The release of the translation files (*.qm) has failed."), 1213 "The release of the translation files (*.qm) has failed."),
1214 kind=NotificationTypes.Critical,
1212 timeout=0) 1215 timeout=0)
1213 1216
1214 for index in range(len(self.__lreleaseProcesses)): 1217 for index in range(len(self.__lreleaseProcesses)):
1215 if proc == self.__lreleaseProcesses[index]: 1218 if proc == self.__lreleaseProcesses[index]:
1216 del self.__lreleaseProcesses[index] 1219 del self.__lreleaseProcesses[index]

eric ide

mercurial