Merge lp:~kelemeng/software-center/bug685467 into lp:software-center

Proposed by Gabor Kelemen
Status: Merged
Merged at revision: 1335
Proposed branch: lp:~kelemeng/software-center/bug685467
Merge into: lp:software-center
Diff against target: 35 lines (+5/-2)
1 file modified
softwarecenter/view/catview_gtk.py (+5/-2)
To merge this branch: bzr merge lp:~kelemeng/software-center/bug685467
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+42826@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Looks great, many thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/view/catview_gtk.py'
2--- softwarecenter/view/catview_gtk.py 2010-11-26 08:57:29 +0000
3+++ softwarecenter/view/catview_gtk.py 2010-12-06 11:44:20 +0000
4@@ -323,10 +323,12 @@
5 def _show_recommended_apps_widget(query, r_apps):
6 # build UI
7 self.hbox = gtk.HBox()
8+ # Translators: full sentence will be: Welcome back! There is/are %(len)i new recommendation/s for you.
9 welcome = gettext.ngettext("Welcome back! There is",
10 "Welcome back! There are",
11 len(r_apps))
12 self.hbox.pack_start(gtk.Label(welcome), False, False)
13+ # Translators: full sentence will be: Welcome back! There is/are %(len)i new recommendation/s for you.
14 label = gettext.ngettext("%(len)i new recommendation",
15 "%(len)i new recommendations",
16 len(r_apps)) % { 'len' : len(r_apps) }
17@@ -334,7 +336,8 @@
18 linkbutton.set_underline(True)
19 linkbutton.set_subdued(True)
20 self.hbox.pack_start(linkbutton, False, False)
21- self.hbox.pack_start(gtk.Label("for you."), False, False)
22+ # Translators: full sentence will be: Welcome back! There is/are %(len)i new recommendation/s for you.
23+ self.hbox.pack_start(gtk.Label(_("for you.")), False, False)
24 self.vbox.pack_start(self.hbox, False, False)
25 self.vbox.reorder_child(self.hbox, 0)
26 # build category
27@@ -1217,7 +1220,7 @@
28 # a11y for page selector
29 self.set_property("can-focus", True)
30 self.a11y = self.get_accessible()
31- self.a11y.set_name("Go to page " + str(self.page_number + 1))
32+ self.a11y.set_name(_("Go to page %d") % (self.page_number + 1))
33 return
34
35 def calc_width(self):