Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

rename: make browse dialog titles better translatable

Changeset 80ebe4a7ad0f

Parent b16bf5dba378

by Johan Samyn

Changes to one file · Browse files at 80ebe4a7ad0f Showing diff from parent b16bf5dba378 Diff from another changeset...

 
184
185
186
187
 
 
 
 
188
189
190
 
 
 
 
191
192
193
194
195
196
197
198
199
200
201
202
 
184
185
186
 
187
188
189
190
191
192
 
193
194
195
196
197
198
 
199
200
201
202
203
 
204
205
206
@@ -184,19 +184,23 @@
  def get_file_or_folder(self, mode):   if mode == 'src':   curr = self.get_src() - capt = 'Source' + if os.path.isfile(curr): + caption = _('Select Source File') + else: + caption = _('Select Source Folder')   else:   curr = self.get_dest() - capt = 'Destination' + if os.path.isfile(curr): + caption = _('Select Destination File') + else: + caption = _('Select Destination Folder')   FD = QFileDialog   if os.path.isfile(curr): - caption = _('Select %s File') % capt   filter = 'All Files (*.*)'   filename = FD.getOpenFileName(parent=self, caption=caption,   options=FD.ReadOnly)   response = hglib.fromunicode(filename)   else: - caption = _('Select %s Folder' % capt)   path = FD.getExistingDirectory(parent=self, caption=caption,   options=FD.ShowDirsOnly | FD.ReadOnly)   response = hglib.fromunicode(path)