~lubuntu-software-center-team/lubuntu-software-center/build-system

« back to all changes in this revision

Viewing changes to LSC/UI.py

  • Committer: Stephen Smally
  • Date: 2011-09-06 12:11:21 UTC
  • mfrom: (33.1.14 lubuntu-software-center)
  • Revision ID: stephen.smally@gmail.com-20110906121121-7ytkv8f2vxh44xuo
merged with the build-system

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import pango
5
5
import searchentry
6
6
import control
 
7
import gettext
 
8
 
 
9
_ = gettext.gettext
7
10
 
8
11
global theme
9
12
theme = '''
43
46
        self.window.set_position(gtk.WIN_POS_CENTER)
44
47
        self.window.connect("destroy", gtk.main_quit)
45
48
        self.window.set_default_size(600, 400)
46
 
        self.window.set_title("Lubuntu Software Center")
 
49
        self.window.set_title(_("Lubuntu Software Center"))
47
50
        self.window.set_name("LSCMainWindow")
48
51
        #-------------------------------------------------------
49
52
        '''Setting up left pane'''
59
62
        self.status_column.add_attribute(self.status_icon_cell, "icon-name", 1)
60
63
        self.status_column.add_attribute(self.status_icon_cell, "stock-size", 2)
61
64
        self.status_column.add_attribute(self.status_label_cell, "text", 0)
62
 
        for item in (["Get Software", "stock_down", 3], ["Installed Software", "harddrive", 3], ["Apps Basket", "applications-other", 3]):
 
65
        for item in ([_("Get Software"), "stock_down", 3], [_("Installed Software"), "harddrive", 3], [_("Apps Basket"), "applications-other", 3]):
63
66
            self.status_model.append([item[0], item[1], item[2]])
64
67
        self.status_view.append_column(self.status_column)
65
68
        self.box7.pack_start(self.status_view)
138
141
        self.close_image = gtk.Image()
139
142
        self.close_image.set_from_stock('gtk-close', 1)
140
143
        self.message_close = gtk.Button()
141
 
        self.message_close.set_tooltip_text("Hide this message")
 
144
        self.message_close.set_tooltip_text(_("Hide this message"))
142
145
        self.message_close.set_relief(gtk.RELIEF_NONE)
143
146
        self.message_close.set_image(self.close_image)
144
147
        self.message_label = gtk.Label()
145
148
        self.message_label.set_ellipsize(pango.ELLIPSIZE_END)
146
 
        self.message_more_info = gtk.Button("Details")
147
 
        self.message_add_tab = gtk.Button("Add to the Apps Basket")
 
149
        self.message_more_info = gtk.Button(_("Details"))
 
150
        self.message_add_tab = gtk.Button(_("Add to the Apps Basket"))
148
151
        self.apps_message = gtk.InfoBar()
149
152
        self.apps_message_cont = self.apps_message.get_content_area()
150
153
        self.apps_message_cont.pack_start(self.message_close, False)
160
163
        self.close_image2 = gtk.Image()
161
164
        self.close_image2.set_from_stock(gtk.STOCK_CLOSE, 1)
162
165
        self.message_inst_close = gtk.Button()
163
 
        self.message_inst_close.set_tooltip_text("Hide this message")
 
166
        self.message_inst_close.set_tooltip_text(_("Hide this message"))
164
167
        self.message_inst_close.set_relief(gtk.RELIEF_NONE)
165
168
        self.message_inst_close.set_image(self.close_image2)
166
169
        self.message_inst_label = gtk.Label()
167
170
        self.message_inst_label.set_ellipsize(pango.ELLIPSIZE_END)
168
 
        self.message_inst_more_info = gtk.Button("Details")
169
 
        self.message_inst_remove = gtk.Button("Remove from the system")
 
171
        self.message_inst_more_info = gtk.Button(_("Details"))
 
172
        self.message_inst_remove = gtk.Button(_("Remove from the system"))
170
173
        self.installed_message_cont.pack_start(self.message_inst_close, False)
171
174
        self.installed_message_cont.pack_start(self.message_inst_label)
172
175
        self.installed_message_cont.pack_start(self.message_inst_more_info, False)