aboutsummaryrefslogtreecommitdiff
path: root/bat_tray
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-04-25 19:01:34 +1200
committerDavid <dbphillipsnz@gmail.com>2014-04-25 19:01:34 +1200
commitfa14c5dd9a80d98296fb0230be3c99daae3e0131 (patch)
tree9199f7ccc6847506b75165920614d541a1ddc9c2 /bat_tray
parent4097b55e0daf772b0d5b8f83861866da90f0a5a7 (diff)
downloadparamano-fa14c5dd9a80d98296fb0230be3c99daae3e0131.tar.xz
Making preparations for gettext
Diffstat (limited to 'bat_tray')
-rw-r--r--bat_tray/bat_tray.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bat_tray/bat_tray.c b/bat_tray/bat_tray.c
index 38c85bc..181f8d5 100644
--- a/bat_tray/bat_tray.c
+++ b/bat_tray/bat_tray.c
@@ -17,7 +17,6 @@
************************************************************************/
-#include "../strings.h"
#include "bat_tray.h"
#include "../common.h"
@@ -25,6 +24,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <libintl.h>
static GtkStatusIcon* tray;
@@ -53,18 +53,18 @@ static gboolean update_tooltip(GtkStatusIcon* status_icon,gint x,gint y,gboolean
switch(get_battery_state())
{
case STATE_DISCHARGING:
- sprintf(msg, S_BAT_TRAY_C_BATTERY_DISCHARGING, get_bat_percent());
+ sprintf(msg, _("Discharging (%i%%)"), get_bat_percent());
break;
case STATE_CHARGING:
- sprintf(msg, S_BAT_TRAY_C_BATTERY_CHARGING, get_bat_percent());
+ sprintf(msg, _("Charging (%i%%)"), get_bat_percent());
break;
case STATE_CHARGED:
- sprintf(msg, S_BAT_TRAY_C_BATTERY_FULL);
+ sprintf(msg, _("Fully charged") );
break;
default:
- sprintf(msg, S_BAT_TRAY_C_BATTERY_UNKNOWN);
+ sprintf(msg, _("Unknown status") );
break;
}