Commit fbec47dd authored by nkour's avatar nkour

sec text should not be escaped for pango as it is put in pango formatting....

sec text should not be escaped for pango as it is put in pango formatting. apostrophe etc show ok now in file req window
parent 381ce663
......@@ -299,17 +299,14 @@ def show_file_request(self, account, contact, file_props):
if file_props is None or not file_props.has_key('name'):
return
last_save_dir = gajim.config.get('last_save_dir')
sec_text = '\t' + _('File: %s') % \
gtkgui_helpers.escape_for_pango_markup(file_props['name'])
sec_text = '\t' + _('File: %s') % file_props['name']
if file_props.has_key('size'):
sec_text += '\n\t' + _('Size: %s') % \
helpers.convert_bytes(file_props['size'])
if file_props.has_key('mime-type'):
sec_text += '\n\t' + _('Type: %s') % \
gtkgui_helpers.escape_for_pango_markup(file_props['mime-type'])
sec_text += '\n\t' + _('Type: %s') % file_props['mime-type']
if file_props.has_key('desc'):
sec_text += '\n\t' + _('Description: %s') % \
gtkgui_helpers.escape_for_pango_markup(file_props['desc'])
sec_text += '\n\t' + _('Description: %s') % file_props['desc']
prim_text = _('%s wants to send you a file:') % contact.jid
dialog = dialogs.ConfirmationDialog(prim_text, sec_text)
if dialog.get_response() == gtk.RESPONSE_OK:
......@@ -334,7 +331,6 @@ def show_file_request(self, account, contact, file_props):
file_path = dialog.get_filename()
file_path = file_path.decode('utf-8')
if not gtk28 and os.path.exists(file_path):
#FIXME: pango does not work here.
primtext = _('This file already exists')
sectext = _('Would you like to overwrite it?')
dialog2 = dialogs.ConfirmationDialog(primtext, sectext)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment