From b1c5db99aae47927d1641bfb83beba3f4f8e9918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 7 Aug 2008 10:59:01 +0200 Subject: [PATCH] Fix title and error message --- tryton/common/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index 82823a2fbf..cc44d56190 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -59,7 +59,7 @@ def refresh_langlist(lang_widget, host, port): def request_server(server_widget, parent): result = False dialog = gtk.Dialog( - title = _('Tryton connect'), + title = _('Tryton Connection'), parent = parent, flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | @@ -433,8 +433,8 @@ def send_bugtracker(msg, parent): # second create issue with this message issue_id = server.create('issue', *['messages=' + str(msg_id), 'nosy=' + user, 'title=' + title, 'priority=bug']) - message(_('Created new bug with ID issue') + \ - '%s' % issue_id, parent) + message(_('Created new bug with ID ') + \ + 'issue%s' % issue_id, parent) webbrowser.open(CONFIG['roundup.url'] + 'issue%s' % issue_id, new=2) except Exception, exception: tb_s = reduce(lambda x, y: x + y, @@ -532,7 +532,7 @@ def sur_3b(msg, parent): return 'cancel' def ask(question, parent, visibility=True): - win = gtk.Dialog(_('Tryton'), parent, + win = gtk.Dialog('Tryton', parent, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))