Added tooltips, and Buttonnamings for translation.
This commit is contained in:
1 parent
01d6e7a720
commit
bff480176f
1 file changed
+10
-1
@@ -18,12 +18,20 @@ class DBLogin(object):
|
||||
self.dialog.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
|
||||
self.dialog.set_has_separator(False)
|
||||
self.dialog.set_icon(TRYTON_ICON)
|
||||
self.dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CANCEL)
|
||||
|
||||
tooltips = gtk.Tooltips()
|
||||
button_cancel = gtk.Button(_('_Cancel'))
|
||||
img_cancel = gtk.Image()
|
||||
img_cancel.set_from_stock('tryton-cancel', gtk.ICON_SIZE_BUTTON)
|
||||
button_cancel.set_image(img_cancel)
|
||||
tooltips.set_tip(button_cancel, _('Cancel connection or reconnection to the Tryton server'))
|
||||
self.dialog.add_action_widget(button_cancel, gtk.RESPONSE_CANCEL)
|
||||
self.button_connect = gtk.Button(_('C_onnect'))
|
||||
img_connect = gtk.Image()
|
||||
img_connect.set_from_stock('tryton-connect', gtk.ICON_SIZE_BUTTON)
|
||||
self.button_connect.set_image(img_connect)
|
||||
self.button_connect.set_flags(gtk.CAN_DEFAULT)
|
||||
tooltips.set_tip(self.button_connect, _('Connect or reconnect the Tryton server'))
|
||||
self.dialog.add_action_widget(self.button_connect, gtk.RESPONSE_OK)
|
||||
self.dialog.set_default_response(gtk.RESPONSE_OK)
|
||||
dialog_vbox = gtk.VBox()
|
||||
@@ -74,6 +82,7 @@ class DBLogin(object):
|
||||
self.entry_server.set_width_chars(16)
|
||||
self.button_server = gtk.Button(label=_("C_hange"), stock=None,
|
||||
use_underline=True)
|
||||
tooltips.set_tip(self.button_server, _('Configure the Tryton server connection preferences'))
|
||||
table_main.attach(self.button_server, 2, 3, 0, 1, xoptions=gtk.FILL)
|
||||
label_password = gtk.Label(str = _("Password:"))
|
||||
label_password.set_justify(gtk.JUSTIFY_RIGHT)
|
||||
|
||||
Reference in new issue
Block a user