summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpm-upower.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index 744eae4..82d12e9 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -648,6 +648,10 @@ gpm_device_state_to_localised_string (UpDeviceState state)
/* TRANSLATORS: battery state */
state_string = _("Waiting to discharge");
break;
+ case UP_DEVICE_STATE_UNKNOWN:
+ /* TRANSLATORS: battery state */
+ state_string = _("Unknown state");
+ break;
default:
g_assert_not_reached ();
break;