Merge lp:~kelemeng/software-properties/bug1035544 into lp:software-properties

Proposed by Gabor Kelemen
Status: Merged
Merged at revision: 788
Proposed branch: lp:~kelemeng/software-properties/bug1035544
Merge into: lp:software-properties
Diff against target: 53 lines (+9/-7)
1 file modified
softwareproperties/gtk/SoftwarePropertiesGtk.py (+9/-7)
To merge this branch: bzr merge lp:~kelemeng/software-properties/bug1035544
Reviewer Review Type Date Requested Status
Ubuntu Core Development Team Pending
Review via email: mp+121311@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwareproperties/gtk/SoftwarePropertiesGtk.py'
2--- softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-07-18 09:25:06 +0000
3+++ softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-08-25 14:27:30 +0000
4@@ -712,7 +712,7 @@
5 self.keys_store = Gtk.ListStore(str)
6 self.treeview_auth.set_model(self.keys_store)
7 tr = Gtk.CellRendererText()
8- keys_col = Gtk.TreeViewColumn("Key", tr, text=0)
9+ keys_col = Gtk.TreeViewColumn(_("Key"), tr, text=0)
10 self.treeview_auth.append_column(keys_col)
11 try:
12 self.treeview_auth.enable_model_drag_dest(
13@@ -1001,7 +1001,7 @@
14 self.progress_bar.set_visible(True)
15 self.progress_bar.set_visible(True)
16
17- self.label_driver_action.set_label("Applying changes...")
18+ self.label_driver_action.set_label(_("Applying changes..."))
19 self.progress_bar.set_fraction(progress / 100.0)
20
21 def on_driver_changes_finish(self, transaction, exit_state):
22@@ -1210,7 +1210,7 @@
23 try:
24 pkg = self.apt_cache[pkg_driver_name]
25 installed = pkg.is_installed
26- description = "Using {} from {}".format(pkg.candidate.summary, pkg.shortname)
27+ description = _("Using {} from {}").format(pkg.candidate.summary, pkg.shortname)
28 except KeyError:
29 print("WARNING: a driver ({}) doesn't have any available package associated: {}".format(pkg_driver_name, current_driver))
30 continue
31@@ -1327,7 +1327,7 @@
32 def set_driver_action_status(self):
33 # Update the label in case we end up having some kind of proprietary driver in use.
34 if (os.path.exists('/var/run/reboot-required')):
35- self.label_driver_action.set_label("You need to restart the computer to complete the driver changes.")
36+ self.label_driver_action.set_label(_("You need to restart the computer to complete the driver changes."))
37 self.button_driver_restart.set_visible(True)
38 self.window_main.set_urgency_hint(True)
39 return
40@@ -1340,9 +1340,11 @@
41 self.nonfree_drivers = self.nonfree_drivers + 1
42
43 if self.nonfree_drivers > 0:
44- self.label_driver_action.set_label(_("%(count)d proprietary driver%(plural)s in use.")
45- % { 'count': self.nonfree_drivers,
46- 'plural': "s" if self.nonfree_drivers > 1 else "" })
47+ self.label_driver_action.set_label(gettext.ngettext (
48+ "%(count)d proprietary driver in use.",
49+ "%(count)d proprietary drivers in use.",
50+ self.nonfree_drivers)
51+ % { 'count': self.nonfree_drivers})
52 else:
53 self.label_driver_action.set_label(_("No proprietary drivers are in use."))
54

Subscribers

People subscribed via source and target branches

to status/vote changes: