Translate list headers

svn: r1400
This commit is contained in:
Don Allingham
2003-03-26 02:32:58 +00:00
parent a2498c0e0e
commit 42b49c4c49
4 changed files with 23 additions and 29 deletions

View File

@ -51,8 +51,6 @@ from QuestionDialog import QuestionDialog
#-------------------------------------------------------------------------
from intl import gettext as _
_column_headers = [(_('Title'),3,350),(_('ID'),1,50),(_('Author'),4,70),('',3,0),('',4,0) ]
#-------------------------------------------------------------------------
#
# SouceView
@ -66,7 +64,11 @@ class SourceView:
self.list = glade.get_widget("source_list")
self.selection = self.list.get_selection()
colno = 0
for title in _column_headers:
self.column_headers = [(_('Title'),3,350),(_('ID'),1,50),
(_('Author'),4,70),('',3,0),('',4,0) ]
for title in self.column_headers:
renderer = gtk.CellRendererText ()
column = gtk.TreeViewColumn (title[0], renderer, text=colno)
colno = colno + 1