Merge lp:~alexlauni/ubuntu/lucid/gnome-power-manager/gpm-fix-530751 into lp:ubuntu/lucid/gnome-power-manager

Proposed by Alex Launi
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~alexlauni/ubuntu/lucid/gnome-power-manager/gpm-fix-530751
Merge into: lp:ubuntu/lucid/gnome-power-manager
Diff against target: 50 lines (+30/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/19_ac_power_notify_osd_spec.patch (+21/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~alexlauni/ubuntu/lucid/gnome-power-manager/gpm-fix-530751
Reviewer Review Type Date Requested Status
Michael Terry ubuntu-sponsor Needs Fixing
James Westby (community) Abstain
Chris Coulson Pending
Review via email: mp+20920@code.launchpad.net

Description of the change

Updates the g-p-m notification for unplugging an AC power adapter to conform to the text specified in https://wiki.ubuntu.com/NotifyOSD#gnome-power-manager

To post a comment you must log in.
Revision history for this message
James Westby (james-w) :
review: Abstain
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Hello. Here:

- message = g_strdup_printf (_("%s discharging (%.1f%%)"),
+ message = g_strdup_printf (_("%.1f%% of %s remaining"),

You have inverted the order of the two parameters (%s and %.1f), but forgot to invert the arguments of the function call (type_desc and percentage).

Revision history for this message
Michael Terry (mterry) wrote :

In addition, the recommended wording from https://wiki.ubuntu.com/NotifyOSD is "Running on battery" not "AC power disconnected".

The same change should be made to the UPS notifications right below that block of code too.

review: Needs Fixing (ubuntu-sponsor)
Revision history for this message
James Westby (james-w) wrote :

Hi,

I'm assuming that we don't want to fix this is the released lucid now.
If it's still relevant then please re-propose, or propose for precise as
appropriate.

Thanks,

James

Unmerged revisions

165. By Alex Launi

* debian/patches/19_ac_power_notify_osd_spec.patch
  - Update AC unplugged notification to conform to notify OSD
    specification. (LP: #530751).

164. By Alex Launi

Update AC unplugged notification to conform to Notify OSD g-p-m specification

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-03-05 18:44:26 +0000
3+++ debian/changelog 2010-03-08 18:46:22 +0000
4@@ -1,3 +1,11 @@
5+gnome-power-manager (2.29.91-0ubuntu6) lucid; urgency=low
6+
7+ * debian/patches/19_ac_power_notify_osd_spec.patch
8+ - Update AC unplugged notification to conform to notify OSD
9+ specification. (LP: #530751).
10+
11+ -- Alex Launi <alex.launi@gmail.com> Mon, 08 Mar 2010 13:24:58 -0500
12+
13 gnome-power-manager (2.29.91-0ubuntu5) lucid; urgency=low
14
15 * debian/patches/18-fix-idletime-reset-race.patch:
16
17=== added file 'debian/patches/19_ac_power_notify_osd_spec.patch'
18--- debian/patches/19_ac_power_notify_osd_spec.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/19_ac_power_notify_osd_spec.patch 2010-03-08 18:46:22 +0000
20@@ -0,0 +1,21 @@
21+Index: gnome-power-manager/src/gpm-manager.c
22+===================================================================
23+--- gnome-power-manager.orig/src/gpm-manager.c 2010-03-08 13:02:41.506956447 -0500
24++++ gnome-power-manager/src/gpm-manager.c 2010-03-08 13:03:58.000000000 -0500
25+@@ -1270,14 +1270,14 @@
26+
27+ if (type == DKP_DEVICE_TYPE_BATTERY) {
28+ /* TRANSLATORS: laptop battery is now discharging */
29+- title = _("Battery Discharging");
30++ title = _("AC power disconnected");
31+
32+ if (remaining_text != NULL) {
33+ /* TRANSLATORS: tell the user how much time they have got */
34+ message = g_strdup_printf (_("%s of battery power remaining (%.1f%%)"), remaining_text, percentage);
35+ } else {
36+ /* TRANSLATORS: the device is discharging, but we only have a percentage */
37+- message = g_strdup_printf (_("%s discharging (%.1f%%)"),
38++ message = g_strdup_printf (_("%.1f%% of %s remaining"),
39+ type_desc, percentage);
40+ }
41+ } else if (type == DKP_DEVICE_TYPE_UPS) {
42
43=== modified file 'debian/patches/series'
44--- debian/patches/series 2010-03-05 18:44:26 +0000
45+++ debian/patches/series 2010-03-08 18:46:22 +0000
46@@ -1,3 +1,4 @@
47+19_ac_power_notify_osd_spec.patch
48 02-notify-osd-support.patch
49 06-bugreport-debian.patch
50 08-desktop-bugreport-path.patch

Subscribers

People subscribed via source and target branches