Remove space before !
This commit is contained in:
1 parent
b518f89a61
commit
20ed0eef11
3 files changed
+7
-7
No files matched your search
@@ -425,7 +425,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))
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ class ConfigManager(object):
|
||||
'roundup.url': 'http://bugs.tryton.org/roundup/',
|
||||
'roundup.xmlrpc': 'roundup-xmlrpc.tryton.org',
|
||||
}
|
||||
parser = optparse.OptionParser(version=_("Tryton %s" % VERSION))
|
||||
parser = optparse.OptionParser(version=("Tryton %s" % VERSION))
|
||||
parser.add_option("-c", "--config", dest="config",
|
||||
help=_("specify alternate config file"))
|
||||
parser.add_option("-v", "--verbose", action="store_true",
|
||||
|
||||
+5
-5
@@ -94,14 +94,14 @@ class DBLogin(object):
|
||||
def refreshlist(widget, db_widget, label, host, port, butconnect=None):
|
||||
res = _refresh_dblist(db_widget, host, port)
|
||||
if res is None:
|
||||
label.set_label('<b>'+_('Could not connect to server !')+'</b>')
|
||||
label.set_label('<b>'+_('Could not connect to server!')+'</b>')
|
||||
db_widget.hide()
|
||||
label.show()
|
||||
if butconnect:
|
||||
butconnect.set_sensitive(False)
|
||||
elif res==0:
|
||||
label.set_label('<b>' + \
|
||||
_('No database found, you must create one !') + '</b>')
|
||||
_('No database found, you must create one!') + '</b>')
|
||||
db_widget.hide()
|
||||
label.show()
|
||||
if butconnect:
|
||||
@@ -190,12 +190,12 @@ class DBCreate(object):
|
||||
def set_sensitive(self, sensitive):
|
||||
if sensitive:
|
||||
label = self.dialog.get_widget('db_label_info')
|
||||
label.set_text(_('Do not use special characters !'))
|
||||
label.set_text(_('Do not use special characters!'))
|
||||
self.dialog.get_widget('button_db_ok').set_sensitive(True)
|
||||
else:
|
||||
label = self.dialog.get_widget('db_label_info')
|
||||
label.set_markup('<b>' + \
|
||||
_('Can not connect to server, please change it !') + '</b>')
|
||||
_('Can not connect to server!') + '</b>')
|
||||
self.dialog.get_widget('button_db_ok').set_sensitive(False)
|
||||
return sensitive
|
||||
|
||||
@@ -248,7 +248,7 @@ class DBCreate(object):
|
||||
'only normal characters or "_".\n' \
|
||||
'You must avoid all accents, space ' \
|
||||
'or special characters.'), parent,
|
||||
_('Bad database name !'))
|
||||
_('Bad database name!'))
|
||||
|
||||
else:
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user