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

Proposed by Michael Vogt
Status: Merged
Merge reported by: Michael Vogt
Merged at revision: not available
Proposed branch: lp:~kelemeng/software-center/bug1001746
Merge into: lp:software-center
Diff against target: 21 lines (+2/-2)
1 file modified
softwarecenter/ui/gtk3/widgets/thumbnail.py (+2/-2)
To merge this branch: bzr merge lp:~kelemeng/software-center/bug1001746
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Review via email: mp+106602@code.launchpad.net

Description of the change

Nice i18n fix from Gabor

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

And setting it to approve as its obviously correct.

review: Approve
Revision history for this message
Michael Vogt (mvo) wrote :

This is merged into both trunk and 5.2:

revno: 3023
fixes bug: https://launchpad.net/bugs/1001746
committer: Michael Vogt <email address hidden>
branch nick: 5.2
timestamp: Mon 2012-05-21 11:40:47 +0200
message:
  * lp:~kelemeng/software-center/bug1001746:
    - merge i18n fix (LP: #1001746)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/ui/gtk3/widgets/thumbnail.py'
2--- softwarecenter/ui/gtk3/widgets/thumbnail.py 2012-03-08 17:42:36 +0000
3+++ softwarecenter/ui/gtk3/widgets/thumbnail.py 2012-05-21 09:43:18 +0000
4@@ -210,7 +210,7 @@
5 self.screenshot.pack_start(self.button, True, False, 0)
6
7 # unavailable layout
8- self.unavailable = Gtk.Label(label=self.NOT_AVAILABLE_STRING)
9+ self.unavailable = Gtk.Label(label=_(self.NOT_AVAILABLE_STRING))
10 self.unavailable.set_alignment(0.5, 0.5)
11 # force the label state to INSENSITIVE so we get the nice
12 # subtle etched in look
13@@ -325,7 +325,7 @@
14 self.unavailable.show()
15 self.button.hide()
16 acc = self.get_accessible()
17- acc.set_name(self.NOT_AVAILABLE_STRING)
18+ acc.set_name(_(self.NOT_AVAILABLE_STRING))
19 acc.set_role(Atk.Role.LABEL)
20
21 def display_image(self):