fix strings, coding standards and add a fixme for dkirov to investigate
This commit is contained in:
parent
d74f43144a
commit
bc284578f2
3 changed files with 10 additions and 9 deletions
|
@ -492,7 +492,7 @@ class ConfirmationDialogCheck(ConfirmationDialog):
|
||||||
# add ok button manually, because we need to focus on it
|
# add ok button manually, because we need to focus on it
|
||||||
ok_button = self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
|
ok_button = self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||||
self.checkbutton = gtk.CheckButton(checktext)
|
self.checkbutton = gtk.CheckButton(checktext)
|
||||||
self.vbox.pack_start(self.checkbutton, expand=False, fill=True)
|
self.vbox.pack_start(self.checkbutton, expand = False, fill = True)
|
||||||
ok_button.grab_focus()
|
ok_button.grab_focus()
|
||||||
|
|
||||||
def is_checked(self):
|
def is_checked(self):
|
||||||
|
|
|
@ -300,6 +300,7 @@ _('Connection with peer cannot be established.'))
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
file_path = dialog.get_filename()
|
file_path = dialog.get_filename()
|
||||||
if os.path.exists(file_path):
|
if os.path.exists(file_path):
|
||||||
|
#FIXME: pango does not work here.
|
||||||
primtext = _('This file already exists')
|
primtext = _('This file already exists')
|
||||||
sectext = _('Would you like to overwrite it?')
|
sectext = _('Would you like to overwrite it?')
|
||||||
dialog2 = dialogs.ConfirmationDialog(primtext, sectext)
|
dialog2 = dialogs.ConfirmationDialog(primtext, sectext)
|
||||||
|
|
|
@ -386,28 +386,28 @@ class FileTransfersTooltip(BaseTooltip):
|
||||||
text += '\n<b>' + _('Status: ') + '</b>'
|
text += '\n<b>' + _('Status: ') + '</b>'
|
||||||
status = ''
|
status = ''
|
||||||
if not file_props.has_key('started') or not file_props['started']:
|
if not file_props.has_key('started') or not file_props['started']:
|
||||||
status = _('not started')
|
status = _('Not started')
|
||||||
elif file_props.has_key('connected'):
|
elif file_props.has_key('connected'):
|
||||||
if file_props.has_key('stopped') and \
|
if file_props.has_key('stopped') and \
|
||||||
file_props['stopped'] == True:
|
file_props['stopped'] == True:
|
||||||
status = _('stopped')
|
status = _('Stopped')
|
||||||
elif file_props['completed']:
|
elif file_props['completed']:
|
||||||
status = _('completed')
|
status = _('Completed')
|
||||||
elif file_props['connected'] == False:
|
elif file_props['connected'] == False:
|
||||||
if file_props['completed']:
|
if file_props['completed']:
|
||||||
status = _('completed') # FIXME: all those make them Completed
|
status = _('Completed')
|
||||||
else:
|
else:
|
||||||
if file_props.has_key('paused') and \
|
if file_props.has_key('paused') and \
|
||||||
file_props['paused'] == True:
|
file_props['paused'] == True:
|
||||||
status = _('paused')
|
status = _('Paused')
|
||||||
elif file_props.has_key('stalled') and \
|
elif file_props.has_key('stalled') and \
|
||||||
file_props['stalled'] == True:
|
file_props['stalled'] == True:
|
||||||
#stalled is not paused. it is like 'frozen' it stopped alone
|
#stalled is not paused. it is like 'frozen' it stopped alone
|
||||||
status = _('stalled') # FIXME: all those make them Stalled
|
status = _('Stalled')
|
||||||
else:
|
else:
|
||||||
status = _('transferring')
|
status = _('Transferring')
|
||||||
else:
|
else:
|
||||||
status = _('not started')
|
status = _('Not started')
|
||||||
|
|
||||||
text += status
|
text += status
|
||||||
self.text_lable.set_markup(text)
|
self.text_lable.set_markup(text)
|
||||||
|
|
Loading…
Add table
Reference in a new issue