Set all strings translatable in about dialog, use AUTHORS file
logger->Typo
This commit is contained in:
parent
da0eab3e84
commit
5252ec2d3f
|
@ -358,7 +358,7 @@ class Logger:
|
||||||
# 3 - 8 (we avoid the last 2 lines but we still return 5 asked)
|
# 3 - 8 (we avoid the last 2 lines but we still return 5 asked)
|
||||||
self.cur.execute('''
|
self.cur.execute('''
|
||||||
SELECT time, kind, message FROM logs
|
SELECT time, kind, message FROM logs
|
||||||
WHERE (%s) AND kind IN (%d, %d, %d, %d) AND time > %d
|
WHERE (%s) AND kind IN (%d, %d, %d, %d) AND time > %d
|
||||||
ORDER BY time DESC LIMIT %d OFFSET %d
|
ORDER BY time DESC LIMIT %d OFFSET %d
|
||||||
''' % (where_sql, constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV,
|
''' % (where_sql, constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV,
|
||||||
constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT,
|
constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT,
|
||||||
|
|
|
@ -568,30 +568,28 @@ class AboutDialog:
|
||||||
text = open('../COPYING').read()
|
text = open('../COPYING').read()
|
||||||
dlg.set_license(text)
|
dlg.set_license(text)
|
||||||
|
|
||||||
#FIXME: do versions strings translatable after .10
|
dlg.set_comments('%s\n%s : %s\n%s : %s'
|
||||||
#FIXME: use %s then
|
% (_('A GTK+ jabber client'), \
|
||||||
dlg.set_comments(_('A GTK+ jabber client') + '\nGTK+ Version: ' + \
|
_('GTK+ Version'), self.tuple2str(gtk.gtk_version), \
|
||||||
self.tuple2str(gtk.gtk_version) + '\nPyGTK Version: ' + \
|
_('PyGTK Version'), self.tuple2str(gtk.pygtk_version)))
|
||||||
self.tuple2str(gtk.pygtk_version))
|
|
||||||
dlg.set_website('http://www.gajim.org')
|
dlg.set_website('http://www.gajim.org')
|
||||||
|
|
||||||
#FIXME: do current devs a translatable string
|
authors = []
|
||||||
authors = [
|
authors_file = open('../AUTHORS').read()
|
||||||
'Current Developers:',
|
authors_file = authors_file.split('\n')
|
||||||
'Yann Le Boulanger <asterix@lagaule.org>',
|
for author in authors_file:
|
||||||
'Dimitur Kirov <dkirov@gmail.com>',
|
if author == 'CURRENT DEVELOPERS:':
|
||||||
'Travis Shirk <travis@pobox.com>',
|
authors.append(_('Current Developers:'))
|
||||||
'',
|
elif author == 'PAST DEVELOPERS:':
|
||||||
_('Past Developers:'),
|
authors.append('\n' +_('Past Developers:'))
|
||||||
'Nikos Kouremenos <kourem@gmail.com>',
|
elif author != '': # Real author line
|
||||||
'Vincent Hanquez <tab@snarc.org>',
|
authors.append(author)
|
||||||
'',
|
|
||||||
_('THANKS:'),
|
authors.append('\n' + _('THANKS:'))
|
||||||
]
|
|
||||||
|
|
||||||
text = open('../THANKS').read()
|
text = open('../THANKS').read()
|
||||||
text_splitted = text.split('\n')
|
text_splitted = text.split('\n')
|
||||||
text = '\n'.join(text_splitted[:-2]) # remove one english setence
|
text = '\n'.join(text_splitted[:-2]) # remove one english sentence
|
||||||
# and add it manually as translatable
|
# and add it manually as translatable
|
||||||
text += '\n%s\n' % _('Last but not least, we would like to thank all '
|
text += '\n%s\n' % _('Last but not least, we would like to thank all '
|
||||||
'the package maintainers.')
|
'the package maintainers.')
|
||||||
|
|
Loading…
Reference in New Issue