Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv29343/src/plugins

Modified Files:
        lcd.py 
Log Message:
i18n


Index: lcd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/lcd.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** lcd.py      7 Oct 2003 04:35:27 -0000       1.13
--- lcd.py      14 Oct 2003 21:05:52 -0000      1.14
***************
*** 14,17 ****
--- 14,20 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.14  2003/10/14 21:05:52  gsbarbieri
+ # i18n
+ #
  # Revision 1.13  2003/10/07 04:35:27  gsbarbieri
  # Applied patch from: Immo Goltz <immo [At] nothrix.org>
***************
*** 113,136 ****
  menu_info = {
      "main" : [ ],
!     "audio" : [ ( "length", "Length: %s" ),
!                 ( "artist", "Artist: %s" ),
!                 ( "album", "Album: %s" ),
!                 ( "year", "Year: %s" ) ],
!     "audiocd" : [ ( "len(tracks)", "Tracks: %s" ),
!                   ( "artist", "Artist: %s" ),
!                   ( "album", "Album: %s" ),
!                   ( "year", "Year: %s" ) ],
!     "video" : [ ( "length", "Length: %s" ),
!                 ( "geometry", "Resolution: %s" ),
!                 ( "aspect", "Aspect: %s" ),
!                 ( "tagline", "Tagline: %s" ),
!                 ( "plot", "Plot: %s" ) ],
!     "dir" : [ ( "plot", "Plot: %s" ),
!               ( "tagline", "Tagline: %s" ) ],
!     "image" : [ ( "geometry", "Geometry: %s" ),
!                 ( "date", "Date: %s" ),
!                 ( "description", "Description: %s" ) ],
!     "playlist" : [ ( "len(playlist)", "%s items" ) ],
!     "mame" : [ ( "description", "Description: %s" ) ],
      "unknow" : [ ]
      }
--- 116,139 ----
  menu_info = {
      "main" : [ ],
!     "audio" : [ ( "length", _( "Length: %s" ) ),
!                 ( "artist", _( "Artist: %s" ) ),
!                 ( "album", _( "Album: %s" ) ),
!                 ( "year", _( "Year: %s" ) ) ],
!     "audiocd" : [ ( "len(tracks)", _( "Tracks: %s" ) ),
!                   ( "artist", _( "Artist: %s" ) ),
!                   ( "album", _( "Album: %s" ) ),
!                   ( "year", _( "Year: %s" ) ) ],
!     "video" : [ ( "length", _( "Length: %s" ) ),
!                 ( "geometry", _( "Resolution: %s" ) ),
!                 ( "aspect", _( "Aspect: %s" ) ),
!                 ( "tagline", _( "Tagline: %s" ) ),
!                 ( "plot", _( "Plot: %s" ) ) ],
!     "dir" : [ ( "plot", _( "Plot: %s" ) ),
!               ( "tagline", _( "Tagline: %s" ) ) ],
!     "image" : [ ( "geometry", _( "Geometry: %s" ) ),
!                 ( "date", _( "Date: %s" ) ),
!                 ( "description", _( "Description: %s" ) ) ],
!     "playlist" : [ ( "len(playlist)", _( "%s items" ) ) ],
!     "mame" : [ ( "description", _( "Description: %s" ) ) ],
      "unknow" : [ ]
      }
***************
*** 186,190 ****
                                   None ),
                    "calendar" : ( "scroller",
!                                  "1 2 %d 2 m 3 \"Today is %s.%s\"",
                                   "( self.width, time.strftime('%A, %d-%B'), 
self.get_sepstrmscroll(time.strftime('%A, %d-%B')) )" ),
                    "clock"    : ( "string",
--- 189,193 ----
                                   None ),
                    "calendar" : ( "scroller",
!                                  "1 2 %d 2 m 3 \"" + _( "Today is %s." ) + "%s\"",
                                   "( self.width, time.strftime('%A, %d-%B'), 
self.get_sepstrmscroll(time.strftime('%A, %d-%B')) )" ),
                    "clock"    : ( "string",
***************
*** 196,209 ****
                  "menu"    :
                  { "title_l"  : ( "string",
!                                  "1 1 'MENU: '",
                                   None ),
                    "item_l"   : ( "string",
!                                  "1 2 'ITEM: '",
                                   None ),
                    "type_l"   : ( "string",
!                                  "1 3 'TYPE: '",
                                   None ),
                    "info_l"   : ( "string",
!                                  "1 4 'INFO: '",
                                   None ),                
                    "title_v"  : ( "scroller",
--- 199,212 ----
                  "menu"    :
                  { "title_l"  : ( "string",
!                                  "1 1 '"+ _( "MENU" ) + ": '",
                                   None ),
                    "item_l"   : ( "string",
!                                  "1 2 '" + _( "ITEM" ) + ": '",
                                   None ),
                    "type_l"   : ( "string",
!                                  "1 3 '" + _( "TYPE" ) + ": '",
                                   None ),
                    "info_l"   : ( "string",
!                                  "1 4 '" + _( "INFO" ) + ": '",
                                   None ),                
                    "title_v"  : ( "scroller",
***************
*** 223,233 ****
                  "audio_player"  :
                  { "music_l"   : ( "string",
!                                   "2 1 'MUSIC: '",
                                    None ),
                    "album_l"   : ( "string",
!                                   "2 2 'ALBUM: '",
                                    None ),
                    "artist_l"  : ( "string",
!                                   "1 3 'ARTIST: '",
                                    None ),
                    "music_v"   : ( "scroller",
--- 226,236 ----
                  "audio_player"  :
                  { "music_l"   : ( "string",
!                                   "1 1 '" + _( " MUSIC" ) + ": '",
                                    None ),
                    "album_l"   : ( "string",
!                                   "1 2 '" + _( " ALBUM" ) + ": '",
                                    None ),
                    "artist_l"  : ( "string",
!                                   "1 3 '" + _( "ARTIST" ) + ": '",
                                    None ),
                    "music_v"   : ( "scroller",
***************
*** 261,271 ****
                  "video_player"  :
                  { "video_l"   : ( "string",
!                                   "2 1 'VIDEO: '",
                                    None ),
                    "tag_l"     : ( "string",
!                                   "2 2 '  TAG: '",
                                    None ),
                    "genre_l"   : ( "string",
!                                   "1 3 'GENRE: '",
                                    None ),
                    "video_v"   : ( "scroller",
--- 264,274 ----
                  "video_player"  :
                  { "video_l"   : ( "string",
!                                   "2 1 '" + _( "VIDEO" ) + ": '",
                                    None ),
                    "tag_l"     : ( "string",
!                                   "2 2 '" + _( "  TAG" ) + ": '",
                                    None ),
                    "genre_l"   : ( "string",
!                                   "1 3 '" + _( "GENRE" ) + ": '",
                                    None ),
                    "video_v"   : ( "scroller",
***************
*** 300,313 ****
                  "tv"            :
                  { "chan_l"   : ( "string",
!                                  "1 1 'CHAN: '",
                                   None ),
                    "prog_l"   : ( "string",
!                                  "1 2 'PROG: '",
                                   None ),
                    "time_l"  : ( "string",
!                                 "1 3 'TIME: '",
                                  None ),
                    "desc_l"  : ( "string",
!                                 "1 4 'DESC: '",
                                  None ),                
                    "chan_v"   : ( "scroller",
--- 303,316 ----
                  "tv"            :
                  { "chan_l"   : ( "string",
!                                  "1 1 '" + _( "CHAN" ) + ": '",
                                   None ),
                    "prog_l"   : ( "string",
!                                  "1 2 '" + _( "PROG" ) + ": '",
                                   None ),
                    "time_l"  : ( "string",
!                                 "1 3 '" + _( "TIME" ) + ": '",
                                  None ),
                    "desc_l"  : ( "string",
!                                 "1 4 '" + _( "DESC" ) + ": '",
                                  None ),                
                    "chan_v"   : ( "scroller",
***************
*** 334,338 ****
                                   None ),
                    "calendar" : ( "scroller",
!                                  "1 2 %d 2 m 3 \"Today is %s.%s\"",
                                   "( self.width, time.strftime('%A, %d-%B'), 
self.get_sepstrmscroll(time.strftime('%A, %d-%B')) )" ),
                    "clock"    : ( "string",
--- 337,341 ----
                                   None ),
                    "calendar" : ( "scroller",
!                                  "1 2 %d 2 m 3 \"" + _( "Today is %s." ) + "%s\"",
                                   "( self.width, time.strftime('%A, %d-%B'), 
self.get_sepstrmscroll(time.strftime('%A, %d-%B')) )" ),
                    "clock"    : ( "string",
***************
*** 555,562 ****
                   "menu":
                   { "title_l"  : ( "string",
!                                  "1 1 'MENU: '",
                                   None ),
                    "item_l"   : ( "string",
!                                  "1 2 'ITEM: '",
                                   None ),
                     "title_v"  : ( "scroller",
--- 558,565 ----
                   "menu":
                   { "title_l"  : ( "string",
!                                  "1 1 '" + _( "MENU" ) + ": '",
                                   None ),
                    "item_l"   : ( "string",
!                                  "1 2 '" + _( "ITEM" ) + ": '",
                                   None ),
                     "title_v"  : ( "scroller",
***************
*** 570,574 ****
                   "audio_player":
                   { "music_l"   : ( "string",
!                                   "1 1 'MUSIC: '",
                                    None ),
                    "music_v"   : ( "scroller",
--- 573,577 ----
                   "audio_player":
                   { "music_l"   : ( "string",
!                                   "1 1 '" + _( "MUSIC" ) + ": '",
                                    None ),
                    "music_v"   : ( "scroller",
***************
*** 597,601 ****
                  "video_player"  :
                  { "video_l"   : ( "string",
!                                   "2 1 'VIDEO: '",
                                    None ),
                    "video_v"   : ( "scroller",
--- 600,604 ----
                  "video_player"  :
                  { "video_l"   : ( "string",
!                                   "2 1 '" + _( "VIDEO" ) + ": '",
                                    None ),
                    "video_v"   : ( "scroller",
***************
*** 625,632 ****
                  "tv":
                  { "chan_l"   : ( "string",
!                                  "1 1 'CHAN: '",
                                   None ),
                    "prog_l"   : ( "string",
!                                  "1 2 'PROG: '",
                                   None ),
                    "chan_v"   : ( "scroller",
--- 628,635 ----
                  "tv":
                  { "chan_l"   : ( "string",
!                                  "1 1 '" + _( "CHAN" ) + ": '",
                                   None ),
                    "prog_l"   : ( "string",
!                                  "1 2 '" + _( "PROG" ) + ": '",
                                   None ),
                    "chan_v"   : ( "scroller",
***************
*** 711,722 ****
              cm = self.lcd.connect()
          except:
!             print "ERROR: LCD plugin will not load! " + \
!                   "Maybe you don't have LCDd (lcdproc daemon) running?"
              self.disable = 1
              return
          
          if config.DEBUG > 0:
!             print "Connecting to LCD: %s" % cm
!             print "Info as know by the module:"
              self.lcd.getinfo()
              print ""
--- 714,724 ----
              cm = self.lcd.connect()
          except:
!             print _( "ERROR" ) + ":" + _( "LCD plugin will not load! Maybe you don't 
have LCDd (lcdproc daemon) running?" )
              self.disable = 1
              return
          
          if config.DEBUG > 0:
!             print _( "Connecting to LCD: %s" ) % cm
!             print _( "Info as know by the LCD module:" )
              self.lcd.getinfo()
              print ""
***************
*** 906,913 ****
                  screens = layouts[ l ]
              except KeyError:
!                 _debug_("WARNING: Could not find screens for %d lines LCD!" % l)
                  l -= 1
                  if l < 1:
!                     print "ERROR: No screens found!"
                      self.disable = 1
                      return
--- 908,915 ----
                  screens = layouts[ l ]
              except KeyError:
!                 _debug_( _( "WARNING" ) + ": " + _( "Could not find screens for %d 
lines LCD!" ) % l )
                  l -= 1
                  if l < 1:
!                     print _( "ERROR" ) + ": " + _( "No screens found for this LCD 
(%dx%d)!" ) % ( self.height, self.width )
                      self.disable = 1
                      return
***************
*** 917,925 ****
                  screens = layouts[ l ][ c ]
              except KeyError:
!                 _debug_("WARNING: Could not find screens for %d lines and %d "\
!                         "columns LCD!" % ( l, c ))
                  c -= 1
                  if c < 1:
!                     print "ERROR: No screens found!"
                      self.disable = 1
                      return
--- 919,926 ----
                  screens = layouts[ l ][ c ]
              except KeyError:
!                 _debug_( _( "WARNING" ) + ": " + _( "Could not find screens for %d 
lines and %d columns LCD!" ) % ( l, c ) )
                  c -= 1
                  if c < 1:
!                     print _( "ERROR" ) + ": " + _( "No screens found for this LCD 
(%dx%d)!" ) % ( self.height, self.width )
                      self.disable = 1
                      return
***************
*** 931,937 ****
              self.screens = screens = layouts[ l ][ c ]
          except KeyError:
!             _debug_("WARNING: Could not find screens for %d lines"\
!                     " and %d columns LCD!" % ( self.height, self.width ))
!             print "ERROR: No screens found!"
              self.disable = 1
              return
--- 932,937 ----
              self.screens = screens = layouts[ l ][ c ]
          except KeyError:
!             _debug_( _( "WARNING" ) + ": " + _( "Could not find screens for %d lines 
and %d columns LCD!" ) % ( self.height, self.width ))
!             print _( "ERROR" ) + ": " + _( "No screens found for this LCD (%dx%d)!" 
) % ( self.height, self.width )
              self.disable = 1
              return




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to