summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpm-upower.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index 43969e2..168e879 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -300,11 +300,17 @@ gpm_upower_get_device_summary (UpDevice *device)
/* TRANSLATORS: this is only shown for laptops with multiple batteries */
description = g_strdup_printf (_("%s waiting to charge (%.1f%%)"), kind_desc, percentage);
+ } else if (state == UP_DEVICE_STATE_EMPTY) {
+
+ /* TRANSLATORS: when the device has no charge left */
+ description = g_strdup_printf (_("%s empty"), kind_desc);
+
} else {
egg_warning ("in an undefined state we are not charging or "
"discharging and the batteries are also not charged");
description = g_strdup_printf ("%s (%.1f%%)", kind_desc, percentage);
}
+
return description;
}