mycae said 11 hours ago:

OK, i did a bit of digging and found this in one of the debian patches
-- they don't like it either.

My original guess looks to be on the right track. You can probably
change it to what you want. The comment to translators (such as yourself
:) ) is:

TRANSLATORS: the device is discharging and we don't have a time
remaining yet

So debian (and thus ubuntu) report:
%s (estimating...)

You should probably raise this as a bug with the gnome-power-manager
people, and tell them to clarify that message.

---------------------- excerpt of debian patch below -----------

+diff -uNr -x .pc gnome-power-manager-2.31.90.orig/src/gpm-upower.c 
gnome-power-manager-2.31.90/src/gpm-upower.c
+--- gnome-power-manager-2.31.90.orig/src/gpm-upower.c 2010-08-17 
15:30:31.000000000 +0100
++++ gnome-power-manager-2.31.90/src/gpm-upower.c 2010-08-25 14:54:19.291183081 
+0100
+@@ -229,7 +229,10 @@
+
+ /* we always display "Laptop battery 16 minutes remaining" as we need to 
clarify what device we are refering to */
+ if (state == UP_DEVICE_STATE_FULLY_CHARGED) {
+-
++#ifdef HAVE_APP_INDICATOR
++ /* TRANSLATORS: the device is fully charged */
++ description = g_strdup_printf (_("%s is charged"), kind_desc);
++#else
+ if (kind == UP_DEVICE_KIND_BATTERY && time_to_empty_round > 
GPM_UP_TEXT_MIN_TIME) {
+ time_to_empty_str = gpm_get_timestring (time_to_empty_round);
+ /* TRANSLATORS: The laptop battery is fully charged, and we know a time */
+@@ -240,9 +243,22 @@
+ /* TRANSLATORS: the device is fully charged */
+ description = g_strdup_printf (_("%s is fully charged"), kind_desc);
+ }
+-
++#endif
+ } else if (state == UP_DEVICE_STATE_DISCHARGING) {
+-
++#ifdef HAVE_APP_INDICATOR
++ if (time_to_empty_round <= GPM_UP_TEXT_MIN_TIME) {
++ /* TRANSLATORS: the device is discharging and we don't have a time remaining 
yet */
++ description = g_strdup_printf (_("%s (estimating...)"), kind_desc);
++ } else if (time_to_empty_round <= 12*60*60) {
++ time_to_empty_str = gpm_get_timestring (time_to_empty_round);
++ /* TRANSLATORS: the device is discharging, and we have a time remaining */
++ description = g_strdup_printf (_("%s %s left"), kind_desc, 
time_to_empty_str);
++ g_free (time_to_empty_str);
++ } else { /* larger than 12 hours remaining */
++ /* TRANSLATORS: the device is discharging */
++ description = g_strdup_printf (_("%s"), kind_desc);
++ }

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.
https://bugs.launchpad.net/bugs/691828

Title:
  "%s waiting to discharge"

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to