Plugins/VcsPlugins/vcsSubversion/SvnChangeListsDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
72 @param path directory name to show change lists for (string) 72 @param path directory name to show change lists for (string)
73 """ 73 """
74 self.changeListsDict = {} 74 self.changeListsDict = {}
75 75
76 self.filesLabel.setText( 76 self.filesLabel.setText(
77 self.trUtf8("Files (relative to {0}):").format(path)) 77 self.tr("Files (relative to {0}):").format(path))
78 78
79 self.errorGroup.hide() 79 self.errorGroup.hide()
80 self.intercept = False 80 self.intercept = False
81 81
82 self.path = path 82 self.path = path
108 if not procStarted: 108 if not procStarted:
109 self.inputGroup.setEnabled(False) 109 self.inputGroup.setEnabled(False)
110 self.inputGroup.hide() 110 self.inputGroup.hide()
111 E5MessageBox.critical( 111 E5MessageBox.critical(
112 self, 112 self,
113 self.trUtf8('Process Generation Error'), 113 self.tr('Process Generation Error'),
114 self.trUtf8( 114 self.tr(
115 'The process {0} could not be started. ' 115 'The process {0} could not be started. '
116 'Ensure, that it is in the search path.' 116 'Ensure, that it is in the search path.'
117 ).format('svn')) 117 ).format('svn'))
118 else: 118 else:
119 self.inputGroup.setEnabled(True) 119 self.inputGroup.setEnabled(True)
136 136
137 self.inputGroup.setEnabled(False) 137 self.inputGroup.setEnabled(False)
138 self.inputGroup.hide() 138 self.inputGroup.hide()
139 139
140 if len(self.changeListsDict) == 0: 140 if len(self.changeListsDict) == 0:
141 self.changeLists.addItem(self.trUtf8("No changelists found")) 141 self.changeLists.addItem(self.tr("No changelists found"))
142 self.buttonBox.button(QDialogButtonBox.Close).setFocus( 142 self.buttonBox.button(QDialogButtonBox.Close).setFocus(
143 Qt.OtherFocusReason) 143 Qt.OtherFocusReason)
144 else: 144 else:
145 self.changeLists.addItems(sorted(self.changeListsDict.keys())) 145 self.changeLists.addItems(sorted(self.changeListsDict.keys()))
146 self.changeLists.setCurrentRow(0) 146 self.changeLists.setCurrentRow(0)

eric ide

mercurial