~joshuascotton/entertainer/pluginsV2

« back to all changes in this revision

Viewing changes to entertainerlib/frontend/gui/screens/disc_screen.py

  • Committer: Paul Hummer
  • Date: 2008-08-06 05:23:49 UTC
  • mfrom: (258.1.19 new-i18n-branch)
  • Revision ID: paul@ubuntu.com-20080806052349-f4spdhg5ixbis64a
Translations are now supported in Entertainer!

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        self.track_menu = None
66
66
 
67
67
        # Screen Title (Displayed at the bottom left corner)
68
 
        screen_title = Label(0.13, "screentitle", 0, 0.87, "Audio Disc",
 
68
        screen_title = Label(0.13, "screentitle", 0, 0.87, _("Audio Disc"),
69
69
            "screen_title")
70
70
        self.group.add(screen_title)
71
71
 
109
109
                art_search.start()
110
110
 
111
111
        except: # No disc in drive
112
 
            no_disc = Label(0.05, "title", 0.5, 0.5, "No audio disc in drive")
 
112
            no_disc = Label(0.05, "title", 0.5, 0.5, 
 
113
                _("No audio disc in drive"))
113
114
            no_disc.set_anchor_point_from_gravity(clutter.GRAVITY_CENTER)
114
115
            self.group.add(no_disc)
115
116
 
193
194
        self.group.add(album)
194
195
 
195
196
        minutes = str(length / 60)
 
197
 
196
198
        num_of_tracks = Label(0.02604, "subtitle", 0.50146, 0.18,
197
 
            str(len(tracks)) + " tracks, " + minutes + " minutes",
198
 
            font_weight="bold")
 
199
            _("%(total)s tracks, %(time)s minutes") % \
 
200
            {'total': len(tracks), 'time': minutes}, font_weight="bold")
199
201
        self.group.add(num_of_tracks)
200
202
 
201
203
    def _create_track_menu(self, tracks):