Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1:/tmp/cvs-serv671
Modified Files:
program_display.py
Log Message:
i18n patches from Davin Sagnol
Index: program_display.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/program_display.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** program_display.py 22 Oct 2003 02:45:02 -0000 1.21
--- program_display.py 15 Nov 2003 17:24:31 -0000 1.22
***************
*** 10,13 ****
--- 10,16 ----
#-----------------------------------------------------------------------
# $Log$
+ # Revision 1.22 2003/11/15 17:24:31 dischi
+ # i18n patches from Davin Sagnol
+ #
# Revision 1.21 2003/10/22 02:45:02 rshortt
# Fix a crash when no recordserver is available.
***************
*** 152,156 ****
color=self.font.color)
! chan = Label('Channel: %s' % \
tv_util.get_chan_displayname(self.prog.channel_id),
self, Align.LEFT)
--- 155,159 ----
color=self.font.color)
! chan = Label(_('Channel: %s') % \
tv_util.get_chan_displayname(self.prog.channel_id),
self, Align.LEFT)
***************
*** 158,162 ****
color=self.font.color)
! start = Label('Start: %s' % time.strftime(config.TV_DATETIMEFORMAT,
time.localtime(self.prog.start)),
self, Align.LEFT)
--- 161,165 ----
color=self.font.color)
! start = Label(_('Start: %s') % time.strftime(config.TV_DATETIMEFORMAT,
time.localtime(self.prog.start)),
self, Align.LEFT)
***************
*** 164,168 ****
color=self.font.color)
! stop = Label('Stop: %s' % time.strftime(config.TV_DATETIMEFORMAT,
time.localtime(self.prog.stop)),
self, Align.LEFT)
--- 167,171 ----
color=self.font.color)
! stop = Label(_('Stop: %s') % time.strftime(config.TV_DATETIMEFORMAT,
time.localtime(self.prog.stop)),
self, Align.LEFT)
***************
*** 174,182 ****
if self.context == 'guide':
! self.b0 = Button('Record', width=(width-60)/2)
# self.options.add_item(text='Search for more of this program', value=2)
# self.options.add_item(text='Add "%s" to favorites' % prog.title,
value=3)
else:
! self.b0 = Button('Remove', width=(width-60)/2)
self.b0.set_h_align(Align.CENTER)
--- 177,185 ----
if self.context == 'guide':
! self.b0 = Button(_('Record'), width=(width-60)/2)
# self.options.add_item(text='Search for more of this program', value=2)
# self.options.add_item(text='Add "%s" to favorites' % prog.title,
value=3)
else:
! self.b0 = Button(_('Remove'), width=(width-60)/2)
self.b0.set_h_align(Align.CENTER)
***************
*** 184,188 ****
self.b0.toggle_selected()
! self.b1 = Button('CANCEL', width=(width-60)/2)
self.b1.set_h_align(Align.CENTER)
self.add_child(self.b1)
--- 187,191 ----
self.b0.toggle_selected()
! self.b1 = Button(_('CANCEL'), width=(width-60)/2)
self.b1.set_h_align(Align.CENTER)
self.add_child(self.b1)
***************
*** 204,208 ****
def eventhandler(self, event, menuw=None):
! if DEBUG: print 'ProgramDisplay: event = %s' % event
trapped = em.MENU_EVENTS.values()
--- 207,211 ----
def eventhandler(self, event, menuw=None):
! if DEBUG: print _('ProgramDisplay: event = %s') % event
trapped = em.MENU_EVENTS.values()
***************
*** 234,242 ****
if result:
AlertBox(parent=self,
! text='"%s" has been scheduled for recording' % \
self.prog.title, handler=self.destroy).show()
else:
AlertBox(parent=self,
! text='Scheduling Failed: %s' % msg).show()
# XXX: search for other programs like this
--- 237,245 ----
if result:
AlertBox(parent=self,
! text=_('"%s" has been scheduled for recording') % \
self.prog.title, handler=self.destroy).show()
else:
AlertBox(parent=self,
! text=_('Scheduling Failed: %s') % msg).show()
# XXX: search for other programs like this
***************
*** 281,285 ****
else:
AlertBox(parent=self,
! text='Remove Failed: %s' % msg).show()
elif self.b1.selected:
--- 284,288 ----
else:
AlertBox(parent=self,
! text=_('Remove Failed: %s') % msg).show()
elif self.b1.selected:
***************
*** 316,320 ****
if not text:
! text = 'Scheduled Recordings'
PopupBox.__init__(self, parent, text, handler, left, top, width, height,
--- 319,323 ----
if not text:
! text = _('Scheduled Recordings')
PopupBox.__init__(self, parent, text, handler, left, top, width, height,
***************
*** 326,330 ****
(self.server_available, msg) = record_client.connectionTest()
if not self.server_available:
! errormsg = Label('Record server unavailable: %s' % msg,
self, Align.CENTER)
return
--- 329,333 ----
(self.server_available, msg) = record_client.connectionTest()
if not self.server_available:
! errormsg = Label(_('Record server unavailable: %s') % msg,
self, Align.CENTER)
return
***************
*** 351,355 ****
progs = recordings.getProgramList()
else:
! errormsg = Label('Get recordings failed: %s' % recordings,
self, Align.CENTER)
return
--- 354,358 ----
progs = recordings.getProgramList()
else:
! errormsg = Label(_('Get recordings failed: %s') % recordings,
self, Align.CENTER)
return
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog